:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #059669;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --danger: #dc2626;
    --warning: #f59e0b;
    --success: #10b981;
    --info: #3b82f6;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.main-container {
    background-color: #f3f4f6;
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header-title {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 25px;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.calculator-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.results-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
}

h2 i {
    margin-right: 10px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

input, select {
    width: 100%;
    padding: 12px 15px;
    padding-left: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f9fafb;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: white;
}

.input-currency {
    position: relative;
}

.input-currency::before {
    content: '$';
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark);
    font-weight: 500;
}

.input-currency input {
    padding-left: 50px;
}

.platform-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.platform-option {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background-color: #f9fafb;
}

.platform-option:hover {
    border-color: var(--primary);
    background-color: white;
}

.platform-option.selected {
    border-color: var(--primary);
    background-color: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 0 1px var(--primary);
}

.platform-option i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.platform-option.facebook {
    color: #1877f2;
}

.platform-option.instagram {
    color: #e4405f;
}

.platform-option.twitter {
    color: #1da1f2;
}

.platform-option.linkedin {
    color: #0a66c2;
}

.platform-option.tiktok {
    color: #000000;
}

.platform-option.youtube {
    color: #ff0000;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

button i {
    margin-right: 8px;
}

.secondary-button {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.secondary-button:hover {
    background: rgba(37, 99, 235, 0.05);
}

.roi-result {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: #f0fdf4;
    border-left: 4px solid var(--success);
}

.roi-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.roi-label {
    font-size: 1rem;
    color: var(--gray);
}

.result-positive {
    background-color: #f0fdf4;
    border-left-color: var(--success);
}

.result-negative {
    background-color: #fef2f2;
    border-left-color: var(--danger);
}

.result-neutral {
    background-color: #eff6ff;
    border-left-color: var(--info);
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.metric-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--gray);
}

.chart-container {
    position: relative;
    height: 250px;
    margin-top: auto;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.comparison-table th, .comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: var(--dark);
}

.comparison-table tr:hover {
    background-color: #f9fafb;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background-color: #d1fae5;
    color: var(--success);
}

.badge-danger {
    background-color: #fee2e2;
    color: var(--danger);
}

.badge-warning {
    background-color: #fef3c7;
    color: var(--warning);
}

.export-options {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.export-options button {
    flex: 1;
}

.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    color: var(--gray);
}

.tooltip i {
    font-size: 0.9rem;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--dark);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    font-weight: normal;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

footer {
    text-align: center;
    padding: 30px;
    color: var(--gray);
    margin-top: 40px;
    border-top: 1px solid #e9ecef;
    background-color: white;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.info-text {
    background: #eff6ff;
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    border-left: 4px solid var(--primary);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 0 10px;
    }
    
    .calculator-section, .results-section {
        padding: 20px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-selector {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* ===== ARTICLE SPECIFIC STYLES - NO BODY STYLES ===== */
#sm-roi-ultimate-article {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem 1.5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Hero Section */
.smroi-article-hero {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 32px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.smroi-article-hero h2 {
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6, #059669);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.smroi-article-hero .smroi-hero-sub {
  font-size: 1.2rem;
  color: #334155;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}

.smroi-article-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: #475569;
  font-weight: 500;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.smroi-article-meta span i {
  margin-right: 0.5rem;
  color: #3b82f6;
}

/* Grid Layout */
.smroi-article-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}

/* Main Content */
.smroi-main-content {
  background: white;
  border-radius: 28px;
  padding: 2rem 2rem 2.5rem 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.smroi-main-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #0f172a;
  border-left: 5px solid #3b82f6;
  padding-left: 1rem;
}

.smroi-main-content h2:first-of-type {
  margin-top: 0;
}

.smroi-main-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
  color: #1e293b;
}

.smroi-main-content p {
  font-size: 1.05rem;
  color: #1e293b;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.smroi-main-content ul, .smroi-main-content ol {
  margin: 1rem 0 1.2rem 1.8rem;
  color: #1e293b;
  line-height: 1.6;
}

.smroi-main-content li {
  margin-bottom: 0.5rem;
}

.smroi-highlight-box {
  background: #eef2ff;
  border-left: 6px solid #3b82f6;
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  margin: 1.75rem 0;
}

.smroi-pro-tip {
  background: #fef9e3;
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid #fde047;
}

.smroi-pro-tip i {
  font-size: 1.8rem;
  color: #eab308;
}

.smroi-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.smroi-stat-card {
  background: #f8fafc;
  border-radius: 20px;
  padding: 1.2rem;
  text-align: center;
  transition: all 0.2s;
}

.smroi-stat-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #2563eb;
  margin-bottom: 0.25rem;
}

.smroi-formula-block {
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.9rem 1.2rem;
  border-radius: 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  text-align: center;
  margin: 1.5rem 0;
}

.smroi-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.smroi-benchmark-table {
  width: 100%;
  border-collapse: collapse;
  background: #f8fafc;
  border-radius: 16px;
  overflow: hidden;
}

.smroi-benchmark-table th, .smroi-benchmark-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.smroi-benchmark-table th {
  background: #eef2ff;
  font-weight: 600;
  color: #1e40af;
}

.smroi-benchmark-table tr:hover {
  background: #f1f5f9;
}

/* Sidebar */
.smroi-sidebar-section {
  align-self: start;
}

.smroi-side-card {
  background: white;
  border-radius: 24px;
  padding: 1.5rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.smroi-side-card h4 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 3px solid #e2e8f0;
  padding-bottom: 0.6rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.smroi-checklist, .smroi-resource-list {
  list-style: none;
  padding: 0;
}

.smroi-checklist li, .smroi-resource-list li {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.smroi-checklist i, .smroi-resource-list i {
  color: #3b82f6;
  width: 1.5rem;
  font-size: 1rem;
}

.smroi-tool-link {
  display: inline-block;
  background: linear-gradient(95deg, #2563eb, #059669);
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.2rem;
  border-radius: 40px;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  transition: transform 0.2s, background 0.2s;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.smroi-tool-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(95deg, #1d4ed8, #059669);
}

.smroi-share-buttons {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.2rem;
}

.smroi-share-btn {
  background: #f1f5f9;
  padding: 0.5rem 1rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: #1e293b;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.smroi-share-btn:hover {
  background: #e2e8f0;
}

.smroi-footer-note {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #475569;
  border-top: 1px solid #cbd5e1;
  padding-top: 2rem;
}

@media (max-width: 880px) {
  .smroi-article-grid {
    grid-template-columns: 1fr;
  }
  .smroi-article-hero h2 {
    font-size: 2rem;
  }
  .smroi-main-content {
    padding: 1.5rem;
  }
  #sm-roi-ultimate-article {
    padding: 1rem;
  }
}