/* ===== E-Dergi System - doktornow.com Inspired Modern Design ===== */
/* ===== Design System: Clean, Modern, Minimalist ===== */

:root {
    --primary: #00aeac;
    --primary-dark: #008c8a;
    --primary-darker: #006b6a;
    --primary-light: #e0f7f7;
    --primary-lighter: #f0fbfb;
    --bs-primary: #00aeac;
    --bs-primary-rgb: 0, 174, 172;
    
    /* Light mode (default) */
    --bg-body: #ffffff;
    --bg-section: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --bg-table-light: #f8f9fa;
    --bg-input: #ffffff;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.05);
    --shadow-color: rgba(0,0,0,0.06);
    --bg-footer: #1a1a2e;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Dark Mode Variables ===== */
[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-section: #1e293b;
    --bg-card: #1e293b;
    --bg-card-hover: #263548;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --bg-table-light: #263548;
    --bg-input: #1e293b;
    --bg-light: #1e293b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.5);
    --shadow-color: rgba(0,0,0,0.3);
    --bg-footer: #0b1120;
}

/* ===== Dark Mode Overrides ===== */
[data-theme="dark"] body {
    background-color: var(--bg-body) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .card-header {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .card:hover {
    background-color: var(--bg-card-hover) !important;
}

[data-theme="dark"] .table {
    color: var(--text-primary) !important;
    --bs-table-bg: var(--bg-card);
    --bs-table-hover-bg: var(--bg-card-hover);
    --bs-table-border-color: var(--border-color);
    --bs-border-color: var(--border-color);
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .table-light,
[data-theme="dark"] .table thead {
    --bs-table-bg: var(--bg-table-light) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .table-light th,
[data-theme="dark"] .table-light td {
    background-color: var(--bg-table-light) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--bg-input) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .input-group-text {
    background-color: var(--bg-table-light) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .modal-content {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .modal-footer,
[data-theme="dark"] .modal-header {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .bg-light {
    background-color: var(--bg-light) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}

[data-theme="dark"] footer,
[data-theme="dark"] .site-footer {
    background-color: var(--bg-footer) !important;
}

[data-theme="dark"] .alert {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .alert-warning {
    background-color: rgba(255,193,7,0.12) !important;
    color: #fde68a !important;
}

[data-theme="dark"] .alert-info {
    background-color: rgba(13,202,240,0.12) !important;
    color: #67e8f9 !important;
}

[data-theme="dark"] .alert-success {
    background-color: rgba(40,167,69,0.12) !important;
    color: #86efac !important;
}

[data-theme="dark"] .alert-danger {
    background-color: rgba(220,53,69,0.12) !important;
    color: #fca5a5 !important;
}

[data-theme="dark"] .alert-primary {
    background-color: rgba(0,174,172,0.12) !important;
    color: #5ecfcf !important;
    border-color: rgba(0,174,172,0.25) !important;
}

[data-theme="dark"] .card-footer {
    border-color: var(--border-color) !important;
    background-color: transparent !important;
}

/* Dark mode text */
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6,
[data-theme="dark"] .h1, [data-theme="dark"] .h2, [data-theme="dark"] .h3,
[data-theme="dark"] .h4, [data-theme="dark"] .h5, [data-theme="dark"] .h6 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] p, [data-theme="dark"] span, [data-theme="dark"] li,
[data-theme="dark"] td, [data-theme="dark"] th, [data-theme="dark"] dt,
[data-theme="dark"] dd, [data-theme="dark"] label, [data-theme="dark"] legend,
[data-theme="dark"] figcaption, [data-theme="dark"] blockquote,
[data-theme="dark"] small, [data-theme="dark"] .small {
    color: var(--text-primary);
}

[data-theme="dark"] a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not(.page-link) {
    color: #5ecfcf;
}
[data-theme="dark"] a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not(.page-link):hover {
    color: #8ae0e0;
}

[data-theme="dark"] .card-title, [data-theme="dark"] .card-text,
[data-theme="dark"] .card-subtitle, [data-theme="dark"] .card-body,
[data-theme="dark"] .card-body p, [data-theme="dark"] .card-body span,
[data-theme="dark"] .card-body small, [data-theme="dark"] .card-body label,
[data-theme="dark"] .card-body li, [data-theme="dark"] .card-header {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .card-subtitle {
    color: var(--text-secondary) !important;
}

/* Dark mode tables */
[data-theme="dark"] .table td, [data-theme="dark"] .table th,
[data-theme="dark"] .table tr, [data-theme="dark"] .table thead th,
[data-theme="dark"] .table tbody td {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}
[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(255,255,255,0.02) !important;
}
[data-theme="dark"] .table-hover > tbody > tr:hover > * {
    background-color: rgba(255,255,255,0.04) !important;
}

/* Dark mode forms */
[data-theme="dark"] .form-label, [data-theme="dark"] .form-check-label,
[data-theme="dark"] .col-form-label {
    color: var(--text-primary) !important;
}
[data-theme="dark"] .form-text {
    color: var(--text-muted) !important;
}
[data-theme="dark"] .form-select option {
    background-color: var(--bg-input);
    color: var(--text-primary);
}
[data-theme="dark"] .form-check-input {
    background-color: var(--bg-input);
    border-color: var(--border-color);
}
[data-theme="dark"] textarea.form-control {
    background-color: var(--bg-input) !important;
    color: var(--text-primary) !important;
}

/* Dark mode modals */
[data-theme="dark"] .modal-title, [data-theme="dark"] .modal-body,
[data-theme="dark"] .modal-body p, [data-theme="dark"] .modal-body label,
[data-theme="dark"] .modal-body span, [data-theme="dark"] .modal-body li {
    color: var(--text-primary) !important;
}
[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Dark mode badges */
[data-theme="dark"] .badge.bg-secondary { background-color: #475569 !important; color: #e2e8f0 !important; }
[data-theme="dark"] .badge.bg-light { background-color: var(--bg-light) !important; color: var(--text-primary) !important; }

/* Dark mode misc */
[data-theme="dark"] .alert a { color: inherit !important; text-decoration: underline; }
[data-theme="dark"] .list-group-item {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}
[data-theme="dark"] .list-group-item.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

[data-theme="dark"] .bg-white { background-color: var(--bg-card) !important; }
[data-theme="dark"] .bg-body { background-color: var(--bg-body) !important; }
[data-theme="dark"] .border { border-color: var(--border-color) !important; }
[data-theme="dark"] .border-bottom, [data-theme="dark"] .border-top,
[data-theme="dark"] .border-start, [data-theme="dark"] .border-end {
    border-color: var(--border-color) !important;
}
[data-theme="dark"] hr { border-color: var(--border-color) !important; opacity: 0.3; }

/* Dark mode buttons */
[data-theme="dark"] .btn-secondary { background-color: #475569 !important; border-color: #475569 !important; }
[data-theme="dark"] .btn-outline-secondary { color: var(--text-secondary) !important; border-color: var(--border-color) !important; }
[data-theme="dark"] .btn-outline-secondary:hover { background-color: var(--bg-light) !important; color: var(--text-primary) !important; }
[data-theme="dark"] .btn-light { background-color: var(--bg-light) !important; border-color: var(--border-color) !important; color: var(--text-primary) !important; }

/* Dark mode pagination/dropdown */
[data-theme="dark"] .page-link { background-color: var(--bg-card) !important; border-color: var(--border-color) !important; color: var(--primary) !important; }
[data-theme="dark"] .dropdown-menu { background-color: var(--bg-card) !important; border-color: var(--border-color) !important; }
[data-theme="dark"] .dropdown-item { color: var(--text-primary) !important; }
[data-theme="dark"] .dropdown-item:hover { background-color: var(--bg-card-hover) !important; }

/* Dark mode nav tabs */
[data-theme="dark"] .nav-tabs { border-color: var(--border-color) !important; }
[data-theme="dark"] .nav-tabs .nav-link { color: var(--text-secondary) !important; }
[data-theme="dark"] .nav-tabs .nav-link.active { background-color: var(--bg-card) !important; border-color: var(--border-color) !important; color: var(--text-primary) !important; }

/* Dark mode text utilities */
[data-theme="dark"] .text-body { color: var(--text-primary) !important; }
[data-theme="dark"] .text-black, [data-theme="dark"] .text-black-50 { color: var(--text-primary) !important; }
[data-theme="dark"] .text-secondary { color: var(--text-secondary) !important; }
[data-theme="dark"] .lead { color: var(--text-primary) !important; }

/* Dark mode stat/admin cards */
[data-theme="dark"] .stat-card h3, [data-theme="dark"] .stat-card p,
[data-theme="dark"] .stat-card span, [data-theme="dark"] .stat-card small { color: var(--text-primary) !important; }
[data-theme="dark"] .admin-link-card h5, [data-theme="dark"] .admin-link-card p { color: var(--text-primary) !important; }

/* Dark mode accordion */
[data-theme="dark"] .accordion-item { background-color: var(--bg-card) !important; border-color: var(--border-color) !important; }
[data-theme="dark"] .accordion-button { background-color: var(--bg-card) !important; color: var(--text-primary) !important; }
[data-theme="dark"] .accordion-button::after { filter: invert(1); }
[data-theme="dark"] .accordion-body { color: var(--text-primary) !important; }

/* Dark mode offcanvas/toast/popover */
[data-theme="dark"] .offcanvas { background-color: var(--bg-card) !important; color: var(--text-primary) !important; }
[data-theme="dark"] .toast { background-color: var(--bg-card) !important; color: var(--text-primary) !important; }
[data-theme="dark"] .popover { background-color: var(--bg-card) !important; border-color: var(--border-color) !important; }
[data-theme="dark"] .popover-body { color: var(--text-primary) !important; }

[data-theme="dark"] .shadow, [data-theme="dark"] .shadow-sm, [data-theme="dark"] .shadow-lg {
    box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
}

[data-theme="dark"] canvas { border-radius: 8px; }

/* ===== Override Bootstrap Primary ===== */
.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 174, 172, 0.35);
}
.btn-primary:active { background-color: #007a79 !important; border-color: #007a79 !important; transform: translateY(0); }
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 174, 172, 0.35);
}
.badge.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 0.2rem rgba(0, 174, 172, 0.15); }
.form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 0.2rem rgba(0, 174, 172, 0.15); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.page-link { color: var(--primary); }
.page-item.active .page-link { background-color: var(--primary); border-color: var(--primary); }
a { color: var(--primary); transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* ===== Global Styles ===== */
body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }

/* ===== All Buttons ===== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
}
.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}
.btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
}

/* ===== Navigation ===== */
.site-navbar {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 0.5rem 0;
    transition: var(--transition);
    z-index: 1030;
}

.site-navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.site-navbar .navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.site-navbar .navbar-brand i {
    color: var(--primary);
}

.navbar-cta-btn {
    color: #fff !important;
}
.site-navbar .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.6rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.95rem;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-lighter);
}

.site-navbar .nav-link i {
    font-size: 1rem;
}

.navbar-cta-btn {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.5rem 1.25rem !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
}

.navbar-cta-btn:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 174, 172, 0.3);
}

/* Dark mode navbar */
[data-theme="dark"] .site-navbar {
    background: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
[data-theme="dark"] .site-navbar .nav-link {
    color: var(--text-primary) !important;
}
[data-theme="dark"] .site-navbar .nav-link:hover,
[data-theme="dark"] .site-navbar .nav-link.active {
    color: var(--primary) !important;
    background: rgba(0,174,172,0.1);
}
[data-theme="dark"] .site-navbar .navbar-brand {
    color: var(--primary) !important;
}

#darkModeToggle {
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-sm);
}
#darkModeToggle:hover {
    background: var(--primary-lighter);
}
[data-theme="dark"] #darkModeToggle:hover {
    background: rgba(0,174,172,0.1);
}

/* Mobile hamburger */
.site-navbar .navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
}
.site-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23212529' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
[data-theme="dark"] .site-navbar .navbar-toggler {
    border-color: var(--border-color);
}
[data-theme="dark"] .site-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23e2e8f0' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Cards ===== */
.card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
}
.card:hover {
    box-shadow: var(--shadow-md);
}

/* ===== HERO SECTION - doktornow.com inspired ===== */
.hero-section-new {
    background: #ffffff;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section-new::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,174,172,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section-new::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,174,172,0.04) 0%, transparent 70%);
    pointer-events: none;
}

[data-theme="dark"] .hero-section-new {
    background: var(--bg-body);
}

.hero-badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-lighter);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.5s ease-out;
}

[data-theme="dark"] .hero-badge-new {
    background: rgba(0,174,172,0.15);
}

.hero-title-new {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title-new .text-highlight {
    color: var(--primary);
    position: relative;
}

.hero-subtitle-new {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 540px;
    animation: fadeInUp 0.7s ease-out;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.9s ease-out;
}

.hero-features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.hero-features-list li .check-icon {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.hero-image-wrapper {
    position: relative;
    animation: floatIn 0.8s ease-out;
}

.hero-image-wrapper img {
    max-height: 420px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transition: transform 0.4s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.02) rotate(-1deg);
}

.hero-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-lighter), var(--primary-light));
    border-radius: var(--radius-lg);
    color: var(--primary);
}
.hero-image-placeholder i { font-size: 5rem; opacity: 0.4; }
.hero-image-placeholder span { font-size: 1.3rem; font-weight: 700; margin-top: 10px; opacity: 0.6; }

/* ===== Trust Section ===== */
.trust-section {
    padding: 3rem 0;
    background: var(--bg-section);
}

[data-theme="dark"] .trust-section {
    background: var(--bg-section);
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.trust-badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.trust-badge .trust-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.trust-badge h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.trust-badge p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== How It Works Section ===== */
.how-it-works-section {
    padding: 4rem 0;
    background: var(--bg-body);
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-heading p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 15px rgba(0,174,172,0.3);
}

.step-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Step connector line */
.step-connector {
    display: none;
}
@media (min-width: 768px) {
    .step-connector {
        display: block;
        position: absolute;
        top: 28px;
        right: -50%;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--primary), transparent);
        z-index: 0;
    }
    .step-card { position: relative; z-index: 1; }
}

/* ===== Featured Magazines Section ===== */
.featured-section {
    padding: 4rem 0;
    background: var(--bg-section);
}

.magazine-card-new {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: var(--transition);
}

.magazine-card-new:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.magazine-card-new .magazine-cover-new {
    height: 100%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary-light), #f0f0f0);
}

.magazine-card-new .magazine-cover-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.magazine-card-new:hover .magazine-cover-new img {
    transform: scale(1.08);
}

.magazine-card-new .card-body {
    padding: 1.25rem;
}

.magazine-card-new .card-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

/* ===== CTA Section ===== */
.cta-section-new {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-darker) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section-new::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.cta-section-new h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
}

.cta-section-new p {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
}

[data-theme="dark"] .cta-section-new {
    background: linear-gradient(135deg, #005c5b 0%, #004544 50%, #003232 100%);
}

/* ===== Package Cards ===== */
.package-card-new {
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.package-card-new:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.package-card-new.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0,174,172,0.15);
}

.package-card-new.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.package-popular-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.package-card-new .package-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.8rem;
    color: var(--primary);
}

.package-card-new .package-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.package-card-new .package-duration {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.package-card-new .package-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.package-card-new .package-price-old {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.package-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li i {
    color: var(--primary);
    font-size: 1rem;
}

.package-card-new .btn-package {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
}

/* ===== Magazine Grid ===== */
.magazine-grid-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: var(--transition);
}

.magazine-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.magazine-grid-cover {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), #f0f0f0);
}

[data-theme="dark"] .magazine-grid-cover {
    background: linear-gradient(135deg, #1e3a3a, #1a2e2e);
}

.magazine-grid-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.magazine-grid-card:hover .magazine-grid-cover img {
    transform: scale(1.06);
}

.magazine-grid-cover .cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--primary);
    padding: 10px;
    text-align: center;
}
.magazine-grid-cover .cover-placeholder i { font-size: 3rem; opacity: 0.4; }
.magazine-grid-cover .cover-placeholder small { margin-top: 8px; font-weight: 600; opacity: 0.6; }

.magazine-grid-cover .access-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(34,197,94,0.3);
}

.magazine-grid-body {
    padding: 1.25rem;
}

.magazine-grid-body h6 {
    font-weight: 700;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.magazine-grid-footer {
    padding: 0 1.25rem 1.25rem;
}

/* ===== Dashboard ===== */
.dashboard-welcome {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.dashboard-welcome::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.dashboard-welcome h2 {
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff !important;
}

.dashboard-welcome p {
    opacity: 0.85;
    margin: 0;
    color: #fff !important;
}

.dashboard-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.dashboard-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.dashboard-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 0.75rem;
}

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

.dashboard-stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dashboard-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    overflow: hidden;
}

.dashboard-card .card-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-card .card-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.dashboard-card .card-header i {
    color: var(--primary);
    font-size: 1.2rem;
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

/* ===== Profile Page ===== */
.profile-header {
    background: linear-gradient(135deg, var(--primary-lighter), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

[data-theme="dark"] .profile-header {
    background: linear-gradient(135deg, rgba(0,174,172,0.1), rgba(0,174,172,0.05));
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(0,174,172,0.3);
}

.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-section h5 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-section h5 i {
    color: var(--primary);
}

/* ===== Footer ===== */
.site-footer {
    background: #1a1a2e;
    color: #94a3b8;
    padding: 3rem 0 0;
    margin-top: 0;
}

.site-footer h5 {
    color: #fff !important;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.site-footer h6 {
    color: #e2e8f0 !important;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.site-footer p {
    color: #94a3b8;
}

.site-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.site-footer a:hover {
    color: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
    margin-top: 2rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.footer-social-links {
    display: flex;
    gap: 0.75rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

[data-theme="dark"] .site-footer {
    background: #0b1120;
}

/* ===== Page Headers ===== */
.page-header {
    text-align: center;
    padding: 2.5rem 0 2rem;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Search Bar ===== */
.search-filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-filter-bar .form-control {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
}

/* ===== Alert ===== */
.alert {
    border-radius: var(--radius-sm);
    border: 1px solid;
}

/* ===== Table ===== */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Magazine Cover Sizes (legacy support) ===== */
.magazine-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), #f0f0f0);
}
.magazine-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; color: var(--primary); padding: 10px; text-align: center;
}
.cover-placeholder i { font-size: 3rem; opacity: 0.5; }
.cover-placeholder small { margin-top: 8px; font-weight: 600; opacity: 0.7; }
.magazine-cover-sm { height: 100%; overflow: hidden; background: var(--primary-light); }
.magazine-cover-sm img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder-sm { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--primary); }
.cover-placeholder-sm i { font-size: 2rem; opacity: 0.4; }
.access-badge {
    position: absolute; top: 8px; right: 8px; background: #22c55e; color: white;
    border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center;
    justify-content: center; font-size: 0.8rem; box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Admin cards */
.admin-link-card { cursor: pointer; border-radius: var(--radius-lg); }
.admin-link-card:hover { box-shadow: var(--shadow-lg) !important; transform: translateY(-4px); }
.stat-card .stat-icon {
    width: 50px; height: 50px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.bg-primary-subtle { background-color: rgba(0,174,172,0.12) !important; }
.bg-success-subtle { background-color: rgba(40,167,69,0.12) !important; }
.bg-warning-subtle { background-color: rgba(255,193,7,0.12) !important; }
.bg-info-subtle { background-color: rgba(13,202,240,0.12) !important; }

/* Footer Section Link legacy */
.footer-category-section h6 { color: #e2e8f0 !important; font-weight: 600; margin-bottom: 0.75rem; }
.footer-category-section ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.footer-category-section ul li { margin-bottom: 0.4rem; }
.footer-section-link {
    color: #94a3b8 !important; text-decoration: none !important;
    display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.9rem; transition: var(--transition);
}
.footer-section-link:hover { color: var(--primary) !important; padding-left: 4px; }

/* Navbar legacy (for backwards compat on admin pages) */
.navbar { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.navbar-brand { font-size: 1.4rem; }

/* Package Card legacy */
.package-card { border-radius: var(--radius-lg); }
.package-card:hover { box-shadow: var(--shadow-lg) !important; }
.featured-package { position: relative; border: 2px solid var(--primary) !important; }

/* Magazine Card legacy */
.magazine-card { overflow: hidden; }
.magazine-card:hover { box-shadow: var(--shadow-lg) !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }
[data-theme="dark"] ::-webkit-scrollbar-track { background: #1e293b; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #475569; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Footer */
footer { margin-top: auto; }

/* ===== PDF Reader Styles ===== */
.pdf-page-container { position: relative; }
.ad-overlay {
    position: absolute;
    cursor: pointer;
    transition: background 0.2s, border 0.2s;
    border: 2px solid transparent;
    border-radius: 4px;
}
.ad-overlay:hover {
    border-color: rgba(0, 174, 172, 0.8);
    background: rgba(0, 174, 172, 0.1);
}
[data-theme="dark"] .ad-overlay:hover {
    border-color: rgba(0, 174, 172, 0.8);
    background: rgba(0, 174, 172, 0.15);
}
.pdf-preview-container { border: 2px solid var(--border-color); }
[data-theme="dark"] .pdf-preview-container { border-color: var(--border-color); }
[data-theme="dark"] .coords-display { background: rgba(255,255,255,0.1); }
[data-theme="dark"] .selection-rect { border-color: #ff6666; background: rgba(255, 102, 102, 0.2); }
[data-theme="dark"] .existing-ad-rect { border-color: rgba(100, 255, 150, 0.7); background: rgba(100, 255, 150, 0.15); }

/* ===== HOMEPAGE CONTENT CARDS ===== */
.homepage-content-card {
    transition: var(--transition);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
.homepage-content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}
.homepage-card-img-wrapper { overflow: hidden; height: 200px; }
.homepage-card-img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s ease; }
.homepage-content-card:hover .homepage-card-img { transform: scale(1.05); }
.homepage-card-placeholder {
    height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), #f0f0f0); color: var(--primary); font-size: 3rem;
}
.homepage-content-card .card-title { color: var(--text-primary); }
.homepage-content-card .card-text { font-size: 0.9rem; line-height: 1.6; }

/* ===== LEGAL PAGES ===== */
.legal-page { line-height: 1.8; color: var(--text-primary); }
.legal-page h5 { color: var(--primary); border-bottom: 2px solid var(--primary-light); padding-bottom: 8px; }
.legal-page ul { padding-left: 1.5rem; }
.legal-page ul li { margin-bottom: 6px; }
.legal-page a { color: var(--primary); }
.legal-page a:hover { color: var(--primary-dark); }

/* Footer Legal Links */
.footer-legal-links li { transition: padding-left 0.2s ease; }
.footer-legal-links li:hover { padding-left: 5px; }
.footer-legal-link { color: #94a3b8 !important; transition: var(--transition); text-decoration: none !important; }
.footer-legal-link:hover { color: var(--primary) !important; }

/* Contact page icon */
.contact-icon { font-size: 2rem; color: var(--primary); transition: var(--transition); }
.contact-icon:hover { transform: scale(1.1); }

/* ===== CTA Banner (Legacy) ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-darker) 100%);
    position: relative;
}
.cta-bg-pattern {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='https://img.freepik.com/free-vector/black-halftone-circle-banner_78370-4262.jpg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 1; pointer-events: none;
}
.cta-package-card {
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    color: white; transition: var(--transition); border-radius: var(--radius-md);
}
.cta-package-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }
.cta-package-featured { background: rgba(255,255,255,0.22) !important; border: 2px solid rgba(255,255,255,0.5) !important; transform: scale(1.05); }
.cta-package-featured:hover { transform: scale(1.08); }

[data-theme="dark"] .cta-banner {
    background: linear-gradient(135deg, #005c5b 0%, #004544 50%, #003232 100%);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes floatIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .hero-title-new { font-size: 2.5rem; }
}

@media (max-width: 991px) {
    .hero-section-new { padding: 2.5rem 0 2rem; }
    .hero-title-new { font-size: 2.2rem; }
    .hero-subtitle-new { font-size: 1.05rem; }
    .hero-image-wrapper img { max-height: 300px; }
    .magazine-grid-cover { height: 100%; }
    .magazine-card-new .magazine-cover-new { height: 100%; }
}

@media (max-width: 767px) {
    .hero-section-new { padding: 2rem 0 1.5rem; text-align: center; }
    .hero-title-new { font-size: 1.8rem; }
    .hero-subtitle-new { font-size: 1rem; max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-cta-group { justify-content: center; }
    .hero-features-list { justify-content: center; }
    .hero-image-wrapper { margin-top: 2rem; }
    .hero-image-wrapper img { max-height: 240px; }
    .trust-badge { padding: 1rem 0.75rem; }
    .step-card { padding: 1.5rem 1rem; }
    .section-heading h2 { font-size: 1.6rem; }
    .section-heading p { font-size: 1rem; }
    .package-card-new { padding: 1.5rem 1rem; }
    .package-card-new .package-price { font-size: 2rem; }
    .dashboard-welcome { padding: 1.5rem; }
    .dashboard-welcome h2 { font-size: 1.4rem; }
    .page-header h2 { font-size: 1.6rem; }
    .cta-section-new { padding: 3rem 0; }
    .cta-section-new h2 { font-size: 1.6rem; }
    .magazine-grid-cover { height: 100%; }
    .magazine-card-new .magazine-cover-new { height: 100%; }
    .site-footer { padding: 2rem 0 0; }
}

@media (max-width: 575px) {
    .hero-title-new { font-size: 1.5rem; }
    .hero-cta-group .btn { width: 100%; }
    .hero-features-list { flex-direction: column; align-items: center; gap: 0.75rem; }
    .trust-section .row > div { flex: 0 0 50%; max-width: 50%; }
    .container { padding-left: 12px; padding-right: 12px; }
    .card-body { padding: 1rem; }
    .table { font-size: 0.85rem; }
    .cta-section-new .btn { width: 100%; }
}

/* Hero section - Legacy class support */
.homepage-hero { margin-left: calc(-0.5 * var(--bs-gutter-x, 12px)); margin-right: calc(-0.5 * var(--bs-gutter-x, 12px)); margin-top: -1.5rem; }
.hero-inner {
    position: relative;
    background: linear-gradient(135deg, #00aeac 0%, #008b89 40%, #006b6a 70%, #004d4c 100%);
    border-radius: 0 0 24px 24px; overflow: hidden; min-height: 420px;
}
[data-theme="dark"] .hero-inner { background: linear-gradient(135deg, #007a79 0%, #005c5b 40%, #003d3c 70%, #002525 100%); }
.hero-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='https://www.shutterstock.com/image-vector/teal-background-light-blue-flowing-260nw-2526432743.jpg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none; z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 3rem 2.5rem; }
.hero-badge { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; border-radius: 50px; animation: fadeInDown 0.6s ease-out; }
.hero-title { line-height: 1.2; animation: fadeInUp 0.6s ease-out; }
.hero-lead { animation: fadeInUp 0.7s ease-out; }
.hero-actions { animation: fadeInUp 0.8s ease-out; }
.hero-magazine-cover { position: relative; display: inline-block; animation: floatIn 0.8s ease-out; }
.hero-magazine-cover img { max-height: 380px; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); transition: transform 0.3s ease; }
.hero-magazine-cover:hover img { transform: scale(1.03) rotate(-1deg); }
.hero-price-badge {
    position: absolute; top: 12px; right: -10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24); color: white;
    padding: 6px 16px; border-radius: 8px; font-weight: 700; font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(238,90,36,0.4);
}
.hero-magazine-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 300px; color: rgba(255,255,255,0.3); }
.hero-magazine-placeholder i { font-size: 6rem; }
.hero-magazine-placeholder span { font-size: 1.5rem; font-weight: 700; margin-top: 10px; }

/* Section Headers legacy */
.section-title { position: relative; display: inline-block; }
.section-header { border-bottom: 2px solid var(--border-color); padding-bottom: 0.75rem; }

/* Magazine cover-lg */
.magazine-cover-lg { height: 350px; overflow: hidden; background: var(--primary-light); }
.magazine-cover-lg img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder-lg { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--primary); padding: 20px; text-align: center; }
.cover-placeholder-lg i { font-size: 5rem; opacity: 0.4; }
.cover-placeholder-lg span { margin-top: 10px; font-size: 1.2rem; font-weight: 600; }

/* Legacy homepage responsive */
@media (max-width: 991px) {
    .hero-content { padding: 2rem 1.5rem; }
    .hero-inner { min-height: auto; }
    .hero-title { font-size: 2rem !important; }
    .hero-magazine-cover img { max-height: 280px; }
}
@media (max-width: 767px) {
    .homepage-hero { margin-left: -12px; margin-right: -12px; }
    .hero-content { padding: 1.5rem 1rem; text-align: center; }
    .hero-title { font-size: 1.6rem !important; }
    .hero-lead { font-size: 1rem !important; }
    .hero-actions .btn { display: block; width: 100%; margin-bottom: 0.5rem; }
    .hero-magazine-cover img { max-height: 220px; }
    .hero-price-badge { right: 0; }
}
@media (max-width: 575px) {
    .hero-content { padding: 1rem 0.5rem; }
    .cta-banner { padding: 1.5rem 1rem !important; }
    .cta-actions .btn { display: block; width: 100%; margin-bottom: 0.5rem; }
    .cta-package-featured { transform: scale(1); }
}


/* ==================== PASSWORD STRENGTH METER ==================== */
.password-strength-meter {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.password-strength-meter .strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-meter .strength-bar::after {
    content: attr(data-label);
    display: block;
    text-align: right;
    font-size: 0.7rem;
    font-weight: 600;
    color: inherit;
    margin-top: 4px;
    line-height: 1;
}

.password-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
}

.password-requirements li {
    padding: 2px 0;
    color: #6c757d;
    transition: color 0.2s ease;
}

.password-requirements li.req-met {
    color: #198754;
}

.password-requirements li.req-unmet {
    color: #dc3545;
}

.password-requirements li i {
    margin-right: 4px;
    font-size: 0.75rem;
}

/* Dark mode support for password strength */
[data-theme="dark"] .password-strength-meter {
    background-color: #374151;
}

[data-theme="dark"] .password-requirements li {
    color: #9ca3af;
}

[data-theme="dark"] .password-requirements li.req-met {
    color: #34d399;
}

[data-theme="dark"] .password-requirements li.req-unmet {
    color: #f87171;
}
