/* Extended styles for plans comparison page */
/* Light Mode is already defined in layout_header.php */
/* We only need to ensure dark mode overrides work */

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

/* Screen reader only - visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.page-container {
    max-width: 100%;
    padding: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.page-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
}

.btn-icon {
    padding: 8px !important;
    min-width: 36px;
    justify-content: center;
    background: #475569;
    border-color: #475569;
}

.btn-icon:hover {
    background: #64748b;
    border-color: #64748b;
}

.btn-visit {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
}

.btn-visit:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Filter Panel */
.filters-panel {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.filters-header h2.filters-title,
.filters-header h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 600;
}

.filters-toggle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.filters-body {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.filters-body.collapsed {
    display: none;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.filter-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background-color: rgba(59, 130, 246, 0.05);
}

.filter-group select:hover,
.filter-group input:hover {
    border-color: var(--text-muted);
}

.filter-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.filter-range input {
    width: 100%;
}

.filter-range input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Range Slider Styles */
.range-slider-group {
    grid-column: span 2;
    background: var(--bg);
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid var(--border);
}

.range-slider-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.range-slider-group label span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.range-slider-group .range-values {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 600;
    background: rgba(59, 130, 246, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
}

.range-slider-container {
    position: relative;
    height: 24px;
    margin: 20px 0;
    cursor: pointer;
}

.range-slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 9px;
    background: var(--border);
    border-radius: 3px;
}

.range-slider-range {
    position: absolute;
    height: 6px;
    top: 9px;
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    border-radius: 3px;
    pointer-events: none;
}

.range-slider-container input[type="range"] {
    position: absolute;
    width: 100%;
    height: 24px;
    top: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
}

.range-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.range-slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.4);
}

.range-slider-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.range-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.range-inputs input {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.85rem;
    text-align: center;
    width: 100%;
}

.range-inputs input:focus {
    outline: none;
    border-color: var(--primary);
}

.range-inputs .separator {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.range-presets {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.range-preset {
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.range-preset:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.range-preset.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.filters-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
    align-items: center;
}

.filters-actions .filter-status {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Quick filters */
.quick-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quick-filter {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    text-decoration: none;
}

.quick-filter:hover,
.quick-filter.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.quick-filter .count {
    background: rgba(0,0,0,0.15);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
    font-size: 0.75rem;
}

.quick-filter.active .count,
.quick-filter:hover .count {
    background: rgba(0,0,0,0.25);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 5px;
}

.stat-card.highlight {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border: none;
}

.stat-card.highlight .value,
.stat-card.highlight .label {
    color: white;
}

/* Column Toggle */
.column-toggle {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid var(--border);
}

.column-toggle label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-muted);
}

.column-toggle label:hover {
    color: var(--text);
}

.column-toggle input[type="checkbox"] {
    accent-color: var(--primary);
}

/* Table */
.table-container {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.table-scroll {
    overflow: auto;
    max-height: calc(100vh - 400px);
}

.plans-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.plans-table th {
    background: var(--bg);
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

.plans-table th a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.plans-table th a:hover {
    color: var(--primary);
}

.sort-icon {
    font-size: 0.7rem;
    opacity: 0.5;
}

.sort-icon.active {
    opacity: 1;
    color: var(--primary);
}

.plans-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.plans-table tr:hover {
    background: var(--bg-hover);
}

.plans-table .provider-cell {
    font-weight: 600;
    white-space: nowrap;
}

.plans-table .name-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plans-table .price-cell {
    font-weight: 700;
    color: var(--success);
    white-space: nowrap;
}

.plans-table .specs-cell {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    white-space: nowrap;
}

.plans-table .derived-price {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

/* Platform badges */
.badge-linux { background: #15803d; }
.badge-windows { background: #2563eb; }
.badge-secondary { background: #4b5563; }

/* Category badges - WCAG AA compliant contrast */
.badge-cloud-vps { background: #2563eb; }
.badge-cpu-optimized { background: #b45309; }
.badge-memory-optimized { background: #6d28d9; }
.badge-storage-vps { background: #047857; }
.badge-dedicated { background: #b91c1c; }
.badge-default { background: #4b5563; }

/* Features */
.feature-yes { color: var(--success); font-weight: bold; }
.feature-no { color: var(--error); opacity: 0.5; }

/* Utility classes for inline style replacement */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 0.75rem; }
.text-xs { font-size: 0.7rem; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-60 { margin-top: 60px; }
.mr-10 { margin-right: 10px; }
.spec-detail { font-size: 0.7rem; color: var(--text-muted); }
.tier-detail { font-size: 0.75rem; color: var(--text-muted); }

.features-cell {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
}

.feature-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    background: var(--bg);
    border: 1px solid var(--border);
}

.feature-tag.active {
    background: rgba(34, 197, 94, 0.2);
    border-color: var(--success);
    color: var(--success);
}

/* No results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* Export dropdown */
.export-dropdown {
    position: relative;
}

.export-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 150px;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.export-dropdown:hover .export-menu {
    display: block;
}

.export-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
}

.export-menu a:hover {
    background: var(--bg-hover);
}

/* Active filters */
.active-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.active-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
}

.active-filter button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    opacity: 0.7;
}

.active-filter button:hover {
    opacity: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Print styles */
@media print {
    .filters-panel, .column-toggle, .header-actions, .quick-filters {
        display: none !important;
    }

    .table-scroll {
        max-height: none;
        overflow: visible;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Page Header */
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    /* Quick Filters */
    .quick-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .quick-filters::-webkit-scrollbar {
        display: none;
    }

    .quick-filter {
        flex-shrink: 0;
    }

    /* Filters Panel */
    .filters-body {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }

    .range-slider-group {
        grid-column: span 1;
    }

    .filters-header {
        padding: 12px 15px;
    }

    .filters-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-actions .filter-status {
        margin-left: 0;
        text-align: center;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card .value {
        font-size: 1.2rem;
    }

    /* Column Toggle - Hide on mobile */
    .column-toggle {
        display: none;
    }

    /* Hide table, show cards */
    .table-container {
        background: transparent;
        border: none;
    }

    .table-scroll {
        max-height: none;
        overflow: visible;
    }

    .plans-table {
        display: block;
    }

    .plans-table thead {
        display: none;
    }

    /* Mobile Card Layout */
    .plans-table tbody {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .plans-table tbody tr {
        display: block;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 0;
    }

    .plans-table tbody tr:hover {
        background: var(--bg-card);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: all 0.2s;
    }

    .plans-table tbody td {
        display: block;
        padding: 8px 0;
        border: none;
        text-align: left !important;
        white-space: normal;
        word-wrap: break-word;
    }

    .plans-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        font-size: 0.75rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
    }

    /* Special styling for specific cells */
    .plans-table tbody .provider-cell {
        font-size: 1.1rem;
        padding-top: 0;
        padding-bottom: 12px;
        margin-bottom: 8px;
        border-bottom: 1px solid var(--border);
    }

    .plans-table tbody .provider-cell::before {
        display: none;
    }

    .plans-table tbody .name-cell {
        max-width: none;
        font-size: 0.95rem;
        padding-bottom: 12px;
        margin-bottom: 8px;
        border-bottom: 1px solid var(--border);
    }

    .plans-table tbody .price-cell {
        font-size: 1.3rem;
        padding: 12px 0;
        margin: 8px 0;
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.05));
        border-radius: 8px;
        padding-left: 12px;
    }

    .plans-table tbody .specs-cell {
        font-size: 0.95rem;
        white-space: normal;
        line-height: 1.5;
    }

    .plans-table tbody .specs-cell .spec-detail {
        display: block;
        margin-top: 4px;
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    .plans-table tbody .features-cell {
        flex-wrap: wrap;
    }

    .plans-table tbody .col-visit,
    .plans-table tbody .col-info {
        text-align: left !important;
    }

    .plans-table tbody .col-visit {
        padding-bottom: 0;
    }

    .plans-table tbody .col-visit .btn-visit {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .plans-table tbody .col-info .btn {
        width: auto;
    }

    /* Hide some less important columns on mobile */
    .plans-table tbody .col-pricegb,
    .plans-table tbody .col-pricecore,
    .plans-table tbody .col-bandwidth {
        display: none;
    }

    /* Mobile Load More - hide plans beyond first 10 */
    .plans-table tbody tr.mobile-hidden {
        display: none !important;
    }

    /* Load More Button Container */
    .load-more-container {
        display: flex;
        justify-content: center;
        padding: 20px;
        margin-top: 15px;
    }

    .load-more-btn {
        width: 100%;
        max-width: 400px;
        padding: 14px 24px;
        font-size: 1rem;
        font-weight: 600;
    }

    /* Active filters */
    .active-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .active-filter {
        flex-shrink: 0;
    }

    /* Export menu positioning */
    .export-menu {
        right: auto;
        left: 0;
    }

    /* No results */
    .no-results {
        padding: 40px 15px;
    }

    .no-results h3 {
        font-size: 1.3rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card .value {
        font-size: 1.1rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .filters-header h3 {
        font-size: 0.9rem;
    }

    .range-presets {
        gap: 4px;
    }

    .range-preset {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* SEO Content Section Styles */
.seo-content {
    max-width: 100%;
    margin: 80px 0 0 0;
    padding: 60px 40px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
    border-radius: 24px;
    border: 1px solid var(--border);
}

.seo-section {
    margin-bottom: 60px;
}

.seo-section:last-child {
    margin-bottom: 0;
}

.seo-section h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text);
    font-weight: 700;
    position: relative;
    padding-bottom: 16px;
}

.seo-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #2dd4bf);
    border-radius: 2px;
}

.seo-section h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 600;
}

.seo-section h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 600;
}

.seo-section > p {
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1.05rem;
    max-width: 800px;
}

.seo-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 8px;
}

.seo-list li {
    padding: 16px 20px 16px 52px;
    position: relative;
    line-height: 1.6;
    color: var(--text-muted);
    background: var(--surface);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.seo-list li:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.seo-list li:before {
    content: "✓";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    background: linear-gradient(135deg, var(--primary), #2dd4bf);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.seo-feature-card {
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.seo-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #2dd4bf);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.seo-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.seo-feature-card:hover::before {
    opacity: 1;
}

.seo-feature-card h3 {
    color: var(--text);
    margin-bottom: 14px;
}

.seo-feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

.seo-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    position: relative;
}

.seo-steps::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), #2dd4bf, var(--primary));
    opacity: 0.3;
}

.seo-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.seo-step:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.step-number {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--primary), #0d9488);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
    position: relative;
    z-index: 1;
}

.step-content {
    flex: 1;
    padding-top: 4px;
}

.step-content h3 {
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

.seo-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.seo-category {
    padding: 28px 24px;
    background: var(--surface);
    border-left: 4px solid;
    border-image: linear-gradient(180deg, var(--primary), #2dd4bf) 1;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.seo-category:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.seo-category h4 {
    color: var(--text);
    margin-bottom: 12px;
}

.seo-category p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    font-size: 0.9rem;
}

.seo-footer {
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(45, 212, 191, 0.05));
    border-radius: 20px;
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.seo-footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    animation: seo-pulse 4s ease-in-out infinite;
}

@keyframes seo-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.seo-footer h2 {
    position: relative;
    z-index: 1;
}

.seo-footer h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.seo-footer p {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.seo-footer .btn {
    position: relative;
    z-index: 1;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #0d9488);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.seo-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
}

/* SEO Section Mobile */
@media (max-width: 768px) {
    .seo-content {
        padding: 40px 20px;
        margin: 60px 0 0 0;
        border-radius: 16px;
    }

    .seo-section h2 {
        font-size: 1.5rem;
    }

    .seo-features-grid,
    .seo-categories {
        grid-template-columns: 1fr;
    }

    .seo-step {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .seo-steps::before {
        display: none;
    }

    .seo-footer {
        padding: 35px 25px;
    }

    .seo-list li {
        padding: 14px 16px 14px 48px;
    }

    .seo-list li:before {
        left: 14px;
    }
}

/* Desktop: Hide load more button and show all plans */
@media (min-width: 769px) {
    .load-more-container {
        display: none !important;
    }

    .plans-table tbody tr.mobile-hidden {
        display: table-row !important;
    }
}
