html {
    overflow-x: hidden;
    width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #1a1f35 0%, #0f1419 100%);
    min-height: 100vh;
    padding: 20px;
    color: #e0e6ed;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(80, 200, 120, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #1a1f35;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    width: 100%;
    position: relative;
    z-index: 1;
}

header {
    background: transparent;
    color: white;
    padding: 60px 40px;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.75;
    margin-bottom: 10px;
    font-weight: 300;
    line-height: 1.6;
}

.last-updated {
    font-size: 0.9em;
    opacity: 0.8;
    font-style: italic;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1000;
}

.language-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 2px 4px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8em;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.language-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.globe-icon {
    font-size: 1.2em;
}

.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.language-dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(26, 31, 53, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 150px;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(74, 144, 226, 0.15);
    color: #ffffff;
    padding-left: 25px;
}

.language-option.active {
    background: linear-gradient(90deg, rgba(74, 144, 226, 0.3), rgba(80, 200, 120, 0.3));
    color: white;
    font-weight: 600;
}

.language-option.active:hover {
    background: linear-gradient(90deg, rgba(74, 144, 226, 0.4), rgba(80, 200, 120, 0.4));
}

.tabs {
    display: flex;
    background: rgba(26, 31, 53, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.tab-button {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1.05em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 44px; /* Minimum touch target size */
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.tab-button.active {
    background: transparent;
    color: #ffffff;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2, #50c878);
}

.tab-content {
    display: none;
    padding: 40px;
    overflow-x: hidden;
    word-wrap: break-word;
    background: #1a1f35;
}

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

.tab-content h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #ffffff;
}

.section-description {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    font-size: 1.05em;
    line-height: 1.6;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 40px;
}

/* Hide mobile table on desktop */
.mobile-table {
    display: none;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(30, 35, 55, 0.5);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table thead {
    background: rgba(74, 144, 226, 0.15);
    color: white;
}

.comparison-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.3);
}

.comparison-table td {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

.comparison-table tbody tr {
    transition: all 0.3s ease;
}

.comparison-table tbody tr:hover {
    background: rgba(74, 144, 226, 0.08);
    transform: scale(1.005);
}

.service-name {
    min-width: 120px;
}

.service-name strong {
    display: block;
    font-size: 1.2em;
    color: #ffffff;
    margin-bottom: 5px;
}

.provider {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
}

.price {
    font-size: 1.8em;
    font-weight: 700;
    color: #4a90e2;
    margin-bottom: 8px;
}

.plan-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.plan-name-alt {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.features-list {
    list-style: none;
    margin-top: 10px;
}

.features-list li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #50c878;
    font-weight: bold;
}

.note {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    font-style: italic;
}

.feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(90deg, #4a90e2, #50c878);
    color: white;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
}

.badge-small {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(74, 144, 226, 0.2);
    color: #4a90e2;
    border-radius: 15px;
    font-size: 0.85em;
    margin-right: 8px;
    margin-bottom: 5px;
}

.info-section {
    margin-top: 50px;
}

.info-section h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #ffffff;
}

.business-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.plan-card {
    background: rgba(30, 35, 55, 0.6);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 144, 226, 0.5);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.2);
}

.plan-card h4 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #ffffff;
}

.plan-card .price {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.plan-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.pricing-info,
.savings-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card,
.tip-card {
    background: rgba(30, 35, 55, 0.4);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid #4a90e2;
}

.info-card h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #4a90e2;
}

.info-card p,
.tip-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.tip-card strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 1.1em;
}

.provider-section td {
    background: rgba(74, 144, 226, 0.15);
    font-weight: 600;
    padding: 12px 15px;
}

.provider-header {
    background: rgba(74, 144, 226, 0.15);
    color: white !important;
    text-align: center;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.provider-name {
    font-weight: 600;
    color: #4a90e2;
    min-width: 120px;
}

.price-cell {
    font-weight: 600;
    color: #4a90e2;
    font-size: 1.05em;
}

.cache-price {
    display: block;
    font-size: 0.85em;
    color: #50c878;
    margin-top: 3px;
}

.feature-note {
    background: rgba(74, 144, 226, 0.1);
    padding: 15px !important;
}

footer {
    background: rgba(15, 20, 25, 0.8);
    padding: 30px 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

footer p {
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.9em;
    font-style: italic;
}

/* Intro Section Styles */
.intro-section {
    background: rgba(26, 31, 53, 0.5);
    padding: 40px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.intro-section h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ffffff;
    text-align: center;
}

.intro-text {
    text-align: center;
    font-size: 1.05em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    line-height: 1.6;
}

.quick-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.guide-card {
    background: rgba(30, 35, 55, 0.6);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 144, 226, 0.5);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.2);
}

.guide-card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #4a90e2;
}

.guide-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Model Description Cards */
.model-descriptions {
    margin-bottom: 40px;
}

.model-descriptions h3 {
    font-size: 1.6em;
    margin-bottom: 20px;
    color: #ffffff;
}

.model-card {
    background: rgba(30, 35, 55, 0.4);
    border-left: 3px solid #4a90e2;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.model-card:hover {
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
    border-left-color: #50c878;
}

.model-card.collapsible .model-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.model-card.collapsible .model-header:hover {
    color: #764ba2;
}

.model-header {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #4a90e2;
}

.model-header .by {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8em;
    font-weight: normal;
    margin-left: 0;
}

.model-header strong {
    margin-right: 0;
}

/* Ensure all text in model header is properly styled */
.model-card.collapsible .model-header strong,
.model-card.collapsible .model-header .by,
.model-card.collapsible .model-header a {
    color: inherit;
}

.toggle-icon {
    font-size: 0.7em;
    transition: transform 0.3s ease;
    color: #667eea;
    margin-left: 10px;
}

.model-card.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.model-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 1;
}

.model-card.collapsed .model-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.model-card.collapsed .model-header {
    margin-bottom: 0;
}

.model-card p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.model-card p strong {
    color: #ffffff;
}

/* Beginner Box (API Tab) */
.beginner-box {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.beginner-box h3 {
    color: #ffc107;
    margin-bottom: 15px;
}

.beginner-box h4 {
    color: #ffb300;
    margin-top: 20px;
    margin-bottom: 10px;
}

.beginner-box p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 10px;
}

.beginner-box ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.beginner-box li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Cost Example Styles */
.cost-example-intro {
    background: rgba(33, 150, 243, 0.1);
    border-left: 3px solid #4a90e2;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
}

.cost-example-intro p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.cost-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.cost-example-card {
    background: rgba(30, 35, 55, 0.6);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cost-example-card:hover {
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.3);
    transform: translateY(-3px);
    border-color: rgba(74, 144, 226, 0.5);
}

.cost-example-card.highlighted {
    border-color: #50c878;
    box-shadow: 0 4px 15px rgba(80, 200, 120, 0.3);
}

.best-value-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.model-name-badge {
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 15px;
    padding: 8px 12px;
    border-radius: 8px;
    color: white;
    display: inline-block;
}

.model-name-badge.openai {
    background: linear-gradient(135deg, #10a37f, #0e8f6f);
}

.model-name-badge.anthropic {
    background: linear-gradient(135deg, #d4a373, #c89563);
}

.model-name-badge.google {
    background: linear-gradient(135deg, #4285f4, #3367d6);
}

.model-name-badge.mistral {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.model-name-badge.xai {
    background: linear-gradient(135deg, #000000, #333333);
}

.cost-breakdown {
    margin: 15px 0;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9em;
}

.cost-row span:first-child {
    color: rgba(255, 255, 255, 0.6);
}

.cost-value {
    font-weight: 600;
    color: #4a90e2;
}

.cost-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 10px 0;
    margin-top: 10px;
    border-top: 2px solid #4a90e2;
    font-size: 1.1em;
}

.total-price {
    font-size: 1.4em;
    font-weight: 700;
    color: #4a90e2;
}

.cost-note {
    background: rgba(74, 144, 226, 0.1);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85em;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.bulk-cost {
    background: rgba(255, 193, 7, 0.1);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.85em;
    margin-top: 10px;
    color: #ffc107;
    border-left: 3px solid #ffc107;
}

.bulk-cost strong {
    color: #ffb300;
}

.cost-comparison-summary {
    background: rgba(26, 31, 53, 0.5);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.cost-comparison-summary h4 {
    margin-bottom: 20px;
    font-size: 1.4em;
    color: #ffffff;
}

.summary-table {
    background: rgba(30, 35, 55, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.summary-row {
    display: grid;
    grid-template-columns: 150px 1fr 1fr;
    gap: 20px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

.summary-row.header-row {
    background: rgba(74, 144, 226, 0.15);
    color: white;
    font-weight: 600;
}

.summary-row:last-child {
    border-bottom: none;
}

.price-range {
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.95em;
}

.price-range.cheap {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.price-range.medium {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.price-range.expensive {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cost-calculator-tip {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(80, 200, 120, 0.2));
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    margin-top: 30px;
    line-height: 1.7;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.cost-calculator-tip strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

/* FAQ Styles */
.faq-container {
    max-width: 900px;
}

.faq-item {
    background: rgba(30, 35, 55, 0.5);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
    border-color: rgba(74, 144, 226, 0.4);
}

.faq-question {
    background: rgba(26, 31, 53, 0.6);
    padding: 18px 20px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.05em;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(74, 144, 226, 0.1);
}

.faq-answer {
    padding: 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-answer strong {
    color: #4a90e2;
}

/* Advertisement Styles */
.ad-container {
    margin: 20px 0;
    text-align: center;
}

.ad-banner-top,
.ad-footer {
    padding: 15px;
    border-radius: 10px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-in-content {
    padding: 20px;
    border-radius: 10px;
    margin: 30px auto;
    max-width: 400px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-sidebar {
    padding: 15px;
    border-radius: 10px;
    min-height: 600px;
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.ad-placeholder {
    color: #999;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    background: white;
    display: inline-block;
}

.ad-placeholder-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Sidebar Layout */
.content-with-sidebar {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar-ads {
    flex-shrink: 0;
}

.sticky-ad {
    position: sticky;
    top: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-with-sidebar {
        flex-direction: column;
    }

    .sidebar-ads {
        width: 100%;
        order: -1;
    }

    .ad-sidebar {
        width: 100%;
        min-height: 100px;
        max-width: 728px;
        margin: 0 auto 20px;
    }

    .ad-placeholder-vertical {
        writing-mode: horizontal-tb;
    }

    .sticky-ad {
        position: static;
    }
}

@media (max-width: 768px) {
    body {
        padding: 5px;
        overflow-x: hidden;
    }

    .container {
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
    }

    /* Ensure all text wraps properly */
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    header {
        padding: 25px 15px;
    }

    header h1 {
        font-size: 1.6em;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1em;
    }

    .last-updated {
        font-size: 0.85em;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-button {
        padding: 15px;
        font-size: 1em;
        border-bottom: 1px solid #e0e0e0;
    }

    .tab-content {
        padding: 15px;
        width: 100%;
        max-width: 100%;
    }

    .main-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .tab-content h2 {
        font-size: 1.5em;
    }

    .section-description {
        font-size: 1em;
    }

    /* Hide desktop table on mobile */
    .desktop-table {
        display: none !important;
    }

    /* Show mobile table on mobile */
    .mobile-table {
        display: block !important;
    }

    /* Mobile table styles */
    .mobile-table .table-container {
        overflow-x: visible;
        margin: 0 0 30px;
        padding: 0;
    }

    .mobile-table .comparison-table {
        width: 100%;
        font-size: 0.7em;
        border-collapse: collapse;
    }

    .mobile-table .comparison-table thead th {
        padding: 10px 4px !important;
        font-size: 0.85em;
        text-align: center;
        width: 33.33%;
    }

    .mobile-table .comparison-table tbody tr {
        border-bottom: 1px solid #e0e0e0;
    }

    /* Mobile service header row (service name spanning 3 columns) */
    .mobile-table .comparison-table tbody tr.mobile-service-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-bottom: 2px solid #e0e0e0;
    }

    .mobile-table .comparison-table tbody tr.mobile-service-header td {
        padding: 6px 4px !important;
        text-align: center;
        color: white;
    }

    .mobile-table .comparison-table tbody tr.mobile-service-header strong {
        font-size: 0.95em;
        color: white;
        display: inline;
        margin-right: 4px;
        line-height: 1.1;
    }

    .mobile-table .comparison-table tbody tr.mobile-service-header strong a {
        color: white;
        text-decoration: none;
    }

    .mobile-table .comparison-table tbody tr.mobile-service-header .provider {
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.75em;
        display: inline;
    }

    .mobile-table .comparison-table tbody tr.mobile-service-header .provider a {
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
    }

    /* Pricing columns (3 columns per service) */
    .mobile-table .comparison-table tbody tr:not(.mobile-service-header) td {
        padding: 10px 4px !important;
        vertical-align: top;
        width: 33.33%;
        border-left: 1px solid #e0e0e0;
    }

    .mobile-table .comparison-table tbody tr:not(.mobile-service-header) td:first-child {
        border-left: none;
    }

    .service-name strong {
        font-size: 0.9em;
    }

    .provider {
        font-size: 0.7em;
    }

    .price {
        font-size: 1.1em;
        margin-bottom: 8px;
    }

    .plan-name {
        font-size: 0.85em;
        margin-bottom: 8px;
    }

    .plan-name-alt {
        font-size: 0.75em;
    }

    .features-list {
        font-size: 0.75em;
        margin-top: 8px;
    }

    .features-list li {
        padding: 2px 0;
        font-size: 0.85em;
        padding-left: 15px;
    }

    .features-list li::before {
        font-size: 0.8em;
    }

    .badge {
        font-size: 0.7em;
        padding: 4px 8px;
    }

    .note {
        font-size: 0.7em;
    }

    .business-plans,
    .pricing-info,
    .savings-tips {
        grid-template-columns: 1fr;
    }

    .plan-card {
        padding: 20px;
    }

    .info-section h3 {
        font-size: 1.4em;
    }

    /* Mobile ad adjustments */
    .ad-banner-top,
    .ad-footer,
    .ad-in-content {
        min-height: 50px;
        padding: 10px;
    }

    .ad-in-content {
        max-width: 100%;
    }

    .ad-placeholder {
        font-size: 0.75em;
        padding: 10px;
    }

    /* Mobile intro adjustments */
    .intro-section {
        padding: 20px 15px;
    }

    .intro-section h2 {
        font-size: 1.3em;
    }

    .intro-text {
        font-size: 1em;
    }

    .quick-guide {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .guide-card {
        padding: 15px;
    }

    .guide-card h3 {
        font-size: 1.1em;
    }

    .guide-card p {
        font-size: 0.95em;
    }

    /* Mobile model cards */
    .model-descriptions h3 {
        font-size: 1.3em;
    }

    .model-card {
        padding: 15px;
    }

    .model-header {
        font-size: 1.1em;
    }

    .model-card p {
        font-size: 0.95em;
    }

    /* Mobile beginner box */
    .beginner-box {
        padding: 15px;
    }

    .beginner-box h3 {
        font-size: 1em;
    }

    .beginner-box h4 {
        font-size: 1em;
    }

    .beginner-box p,
    .beginner-box li {
        font-size: 0.9em;
    }

    /* Mobile FAQ */
    .faq-question {
        font-size: 0.95em;
        padding: 12px 15px;
    }

    .faq-answer {
        padding: 12px 15px;
        font-size: 0.9em;
    }

    /* Mobile cost examples */
    .cost-example-intro {
        padding: 15px;
    }

    .cost-example-intro p {
        font-size: 0.95em;
    }

    .cost-examples-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cost-example-card {
        padding: 15px;
    }

    .model-name-badge {
        font-size: 0.95em;
        padding: 6px 10px;
    }

    .cost-row {
        font-size: 0.85em;
    }

    .cost-total {
        font-size: 1em;
    }

    .total-price {
        font-size: 1.2em;
    }

    .cost-note {
        font-size: 0.8em;
    }

    .bulk-cost {
        font-size: 0.8em;
    }

    .summary-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 15px;
    }

    .summary-row span {
        padding: 5px 0;
    }

    .price-range {
        font-size: 0.85em;
    }

    .cost-comparison-summary {
        padding: 15px;
    }

    .cost-comparison-summary h4 {
        font-size: 1.2em;
    }

    .cost-calculator-tip {
        padding: 15px;
        font-size: 0.9em;
    }

    /* Footer */
    footer {
        padding: 20px 15px;
        font-size: 0.9em;
    }

    footer p {
        margin-bottom: 8px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    body {
        padding: 0;
        overflow-x: hidden;
        width: 100vw;
    }

    .container {
        border-radius: 0;
        width: 100%;
        max-width: 100vw;
    }

    header h1 {
        font-size: 1.4em;
    }

    .subtitle {
        font-size: 0.95em;
    }

    .tab-button {
        font-size: 0.95em;
        padding: 12px;
    }

    .tab-content {
        padding: 12px;
    }

    .tab-content h2 {
        font-size: 1.3em;
    }

    .table-container {
        margin: 0 -12px 20px;
        padding: 0 12px;
    }

    .comparison-table {
        font-size: 0.8em;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 8px 6px;
    }

    .price {
        font-size: 1.2em;
    }

    .intro-section {
        padding: 15px 12px;
    }

    .intro-section h2 {
        font-size: 1.2em;
    }

    .guide-card h3 {
        font-size: 1em;
    }

    .model-card {
        padding: 12px;
    }

    .model-header {
        font-size: 1em;
    }

    .info-section h3 {
        font-size: 1.2em;
    }

    .cost-examples-grid {
        gap: 12px;
    }

    .cost-example-card {
        padding: 12px;
    }

    .provider-section {
        display: table-row !important;
    }

    .provider-name {
        display: none !important;
    }

    .provider-name-header {
        display: none !important;
    }
}

/* Provider and Service Links */
.service-name a,
.provider a,
.provider-name a,
.provider-header a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.provider-section {
    display: none;
}

.service-name strong a {
    color: #333;
}

.service-name strong a:hover {
    color: #667eea;
}

.provider a:hover {
    color: #667eea;
    text-decoration: underline;
}

.provider-name a {
    color: #667eea;
}

.provider-name a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.provider-header a {
    color: white;
}

.provider-header a:hover {
    opacity: 0.9;
    text-decoration: underline;
}

/* Form elements - better touch targets */
input[type="text"],
input[type="email"],
textarea,
button[type="submit"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

button[type="submit"] {
    min-height: 48px; /* Better touch target */
    cursor: pointer;
}

button[type="submit"]:active {
    transform: scale(0.98);
}

/* Better link touch targets on mobile */
@media (max-width: 768px) {
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    footer a {
        padding: 8px 4px;
    }

    .language-option {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .faq-question {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}
