:root {
    --bg-light: #FEF4EA;
    --bg-white: #ffffff;
    --primary: #1d4ed8; /* Deep Educational Blue */
    --primary-hover: #1e3a8a;
    --accent: #f97316; /* Vibrant Orange */
    --accent-hover: #ea580c;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --border-color: #e5e7eb;
    --font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --primary-gradient: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 { color: var(--text-main); font-weight: 700; }
a { text-decoration: none; color: var(--primary); transition: all 0.2s ease; }
a:hover { color: var(--primary-hover); }

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo ion-icon {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a ion-icon {
    font-size: 1.2rem;
    color: var(--primary);
    opacity: 0.7;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover ion-icon {
    opacity: 1;
    transform: translateY(-2px);
}

/* Navbar Search */
.nav-search {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 0.35rem 0.5rem;
    border-radius: 50px;
    margin-right: 1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-search:focus-within {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.nav-search input {
    border: none;
    background: transparent;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    outline: none;
    width: 180px;
    color: var(--text-main);
}

.nav-search button {
    background: var(--primary);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-search button:hover {
    transform: scale(1.1);
    background: var(--primary-hover);
}

@media (max-width: 1024px) {
    .nav-search input { width: 120px; }
}

.mobile-toggle {
    display: none;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-block;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

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

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

.btn-accent {
    background: var(--accent);
    color: white !important;
}
.btn-accent:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-md);
}

.btn-outline:hover {
    background: var(--primary);
    color: white !important;
}

/* Account Dropdown */
.account-dropdown {
    position: relative;
    padding: 0.5rem 0;
}

.account-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.account-trigger ion-icon {
    font-size: 1.6rem;
    color: var(--primary);
}

.account-dropdown:hover .account-trigger {
    background: #f1f5f9;
    color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    padding: 0.75rem;
    border: 1px solid #f1f5f9;
}

.account-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--text-main) !important;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s;
    width: 100%;
    margin: 2px 0;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: var(--primary) !important;
    transform: translateX(5px);
}

.dropdown-menu a ion-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.dropdown-menu a.logout-link {
    border-top: 1px solid #f1f5f9;
    margin-top: 0.5rem;
    padding-top: 1rem;
    color: #ef4444 !important;
}

.dropdown-menu a.logout-link ion-icon {
    color: #ef4444;
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
    color: #cbd5e1;
    border: 1px solid #f1f5f9;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.wishlist-btn.active {
    color: #ef4444;
    background: #fff;
}

.wishlist-btn ion-icon {
    font-size: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wishlist-btn.active ion-icon {
    animation: heartBeat 0.4s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Material horizontal card Wishlist button tweak */
.material-card-horizontal .wishlist-btn {
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
}

/* Wishlist Notification Bubble */
.wish-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Layout */
.main-content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero Section & Page Header */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
}

.page-header {
    background: linear-gradient(135deg, #ffffff 0%, #fef4ea 100%);
    padding: 3.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.page-header-container {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb ion-icon { font-size: 0.8rem; }

.page-header h1 {
    font-size: 2.8rem;
    margin: 0;
    color: var(--text-main);
    font-weight: 800;
}

.page-header p {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

.nav-links a.active {
    color: var(--primary)!important;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Forms & Cards */
.card {
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Material Card */
.material-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    border-bottom: 4px solid transparent;
}

.material-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary);
}

.material-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.material-category {
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.material-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.material-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.material-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--text-muted);
    font-weight: 700;
    background: #f9fafb;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Footer */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-main);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

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

.footer-col p {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.alert-success { background: #dcfce7; border: 1px solid #22c55e; color: #166534; }
.alert-error { background: #fee2e2; border: 1px solid #ef4444; color: #b91c1c; }

/* Responsive Grid container */
.centered-flex { display: flex; justify-content: center; align-items: flex-start; margin-top: 2rem; min-height: 60vh; }
.auth-card { width: 100%; max-width: 400px; }

/* Slider Component */
.slider-container {
    position: relative;
    width: 100%;
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}
.slider-slide {
    display: none;
    width: 100%;
    height: 400px; /* Fixed height for consistency */
    background-size: cover;
    background-position: center;
    position: relative;
}
.slider-slide.active { display: block; }
.slider-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 3rem 2rem 2rem;
    color: white;
}
.slider-overlay h2 { color: white; font-size: 2rem; margin-bottom: 0.5rem; }
.slider-nav { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; transform: translateY(-50%); padding: 0 1rem; }
.slider-btn { background: rgba(255,255,255,0.7); cursor: pointer; border: none; font-size: 2rem; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .slider-slide { height: 250px; }
}

/* Custom Admin Dashboard specifically */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f3f4f6;
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: fixed;
    height: 100vh;
}

.admin-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-nav {
    padding: 1.5rem 0;
    flex: 1;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    color: var(--text-muted);
    font-weight: 600;
}

.admin-nav a:hover, .admin-nav a.active {
    background: #eff6ff;
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.admin-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: var(--bg-white);
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* FAQ Component */
.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.faq-q {
    padding: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}
.faq-a {
    padding: 0 1.2rem 1.2rem;
    color: var(--text-muted);
    display: none;
}
.faq-q.active + .faq-a {
    display: block;
}
/* Explorer Section Styles */
.explorer-section {
    padding: 6rem 1rem;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin: 4rem 0;
    text-align: center;
}

/* Horizontal Data Cards (Unified System) */
.explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.data-card-horizontal {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

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

.card-logo-area {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
}

.card-logo-area img { width: 100%; height: 100%; object-fit: contain; }

.data-card-horizontal:hover .card-logo-area img {
    transform: scale(1.1);
}

.card-logo-area ion-icon {
    font-size: 2rem;
    color: var(--primary);
}

.card-info-area {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.card-info-area h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info-area p {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.explorer-sub-header {
    text-align: left;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 2.5rem 0 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Material Horizontal Cards */
.material-card-horizontal {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: stretch;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.material-card-horizontal:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.material-vis-area {
    flex: 0 0 20%;
    background: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #f1f5f9;
}

.material-vis-area ion-icon {
    font-size: 3rem;
    color: var(--primary);
}

.material-text-area {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.material-meta h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.material-meta p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.material-actions {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.material-actions .price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 2.5rem 1.5rem;
        box-shadow: var(--shadow-lg);
        gap: 1.5rem;
        z-index: 1000;
        text-align: left;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-search {
        margin: 0 0 1rem 0;
        width: 100%;
    }

    .nav-search input {
        flex: 1;
        width: auto;
    }

    .nav-links a {
        font-size: 1.1rem;
        width: 100%;
        padding: 0.5rem 0;
    }

    .nav-links .btn {
        width: 100%;
        justify-content: center;
    }

    .sub-nav-container { grid-template-columns: 1fr; }
    .sub-list { grid-template-columns: 1fr; }
}

/* Transitions */
.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Flat Card Styles (col-md-6) */
.explorer-card-flat {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.explorer-card-flat:hover {
    border-color: var(--primary);
    background: #f8fafc;
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.card-logo {
    flex: 0 0 25%; /* col-3 equivalent */
    max-width: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-logo img {
    max-width: 100%;
    height: 60px;
    object-fit: contain;
}

.card-info {
    flex: 0 0 75%; /* col-9 equivalent */
    max-width: 75%;
}

.card-info h4 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

/* List Item Flat Style */
.list-item-flat {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none !important;
    color: var(--text-main) !important;
    font-weight: 600;
    transition: all 0.2s;
}

.list-item-flat:hover {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
    transform: translateX(5px);
}

.list-item-flat ion-icon {
    font-size: 1.2rem;
}
/* Swiper Custom Pagination */
.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    opacity: 0.3;
}
.swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 6px;
    transition: all 0.3s;
}
/* --- MOBILE RESPONSIVENESS OVERHAUL --- */
@media (max-width: 1024px) {
    .nav-search input { width: 140px; }
    .nav-links { gap: 1rem; }
}

@media (max-width: 768px) {
    /* Navbar */
    .mobile-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active { left: 0; }
    
    .nav-search { width: 100%; order: -1; margin-bottom: 1rem; }
    .nav-search input { width: 100%; }

    /* Page Header */
    .page-header { padding: 2.5rem 1rem; }
    .page-header h1 { font-size: 2rem; }
    .page-header p { font-size: 1rem; margin: 0.5rem 0 0; }
    .breadcrumb { justify-content: flex-start; }

    /* Layout & Containers */
    .main-content { padding: 1.5rem 1rem; }
    .grid { grid-template-columns: 1fr !important; }

    /* Contact Page 2-column Grid */
    .contact-info, .contact-form-container { grid-column: span 1; }
    div[style*="display: grid; grid-template-columns: 1fr 1.5fr;"] { 
        grid-template-columns: 1fr !important; 
        gap: 2rem !important;
    }

    /* About split sections */
    .about-split, .about-split.reverse { 
        flex-direction: column !important; 
        gap: 2rem !important;
    }
    
    .section-title { font-size: 2rem; }

    /* Footer */
    .footer-content { 
        grid-template-columns: 1fr !important; 
        gap: 2.5rem; 
    }
    .footer-col { align-items: flex-start; }

    /* Horizontal Cards (Special case) */
    .data-card-horizontal {
        flex-direction: row !important; /* Keep horizontal on mobile but more compact */
        padding: 1rem !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    .data-logo-container, .card-logo-area {
        width: 60px !important;
        height: 60px !important;
        flex: 0 0 60px !important;
        border-right: none !important;
        border-bottom: none !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f8fafc !important;
        border-radius: 12px !important;
    }
    .data-logo-container img, .card-logo-area img {
        width: 35px !important;
        height: 35px !important;
    }
    .card-info-area h4 { font-size: 1rem !important; }
    .card-info-area p { font-size: 0.8rem !important; }

    /* Material Horizontal Cards Mobile */
    .material-card-horizontal {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .material-vis-area {
        width: 100% !important;
        padding: 1.5rem !important;
        border-right: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }
    .material-text-area {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
    }
    .material-actions {
        width: 100% !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-top: 1rem !important;
        border-top: 1px solid #f1f5f9 !important;
    }
}

@media (max-width: 480px) {
    .page-header h1 { font-size: 1.7rem; }
    .btn { width: 100%; }
}

.revenue-pulse-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.admin-secondary-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Admin Mobile Optimization */
@media (max-width: 992px) {
    .revenue-pulse-grid { grid-template-columns: 1fr; gap: 1rem; }
    .admin-secondary-grid { grid-template-columns: 1fr; }
    .admin-mobile-header { display: flex !important; }
    
    .admin-sidebar { 
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        z-index: 2000;
        width: 280px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 20px 0 50px rgba(0,0,0,0.1);
    }
    
    .admin-sidebar.active { left: 0; }
    
    .admin-layout { display: block; }
    .admin-content { margin-left: 0; padding: 1.5rem 1rem; }
    .admin-topbar { padding: 1rem; flex-direction: column; gap: 1rem; align-items: flex-start; }
    
    .admin-nav { height: calc(100vh - 160px); }
    
    /* Responsive Table Wrapper */
    .card { overflow-x: auto; padding: 1.5rem !important; }
    table { min-width: 600px; }
}

/* Profile Management */
.profile-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .profile-container { grid-template-columns: 1fr; gap: 2rem; }
}

.profile-sidebar {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

.avatar-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.avatar-edit-label {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-edit-label:hover {
    transform: scale(1.15) rotate(15deg);
}

.settings-section {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    margin-bottom: 2rem;
}

.settings-section h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-section h3 ion-icon {
    color: var(--primary);
    font-size: 1.6rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
}

.profile-nav-thumb {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
