@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1a5336; /* Dark Forest Green */
    --primary-light: #2d6a4f;
    --primary-soft: #d8f3dc;
    --secondary: #40916c;
    --accent: #52b788;
    --bg-white: #ffffff;
    --bg-light: #f0f4f1;
    --bg-card: #ffffff;
    --text-main: #1b4332;
    --text-dim: #6c757d;
    --border-light: #e9ecef;
    --radius-lg: 24px;
    --radius-md: 16px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(26, 83, 54, 0.04);
    --shadow-md: 0 12px 24px rgba(26, 83, 54, 0.08);
    --shadow-lg: 0 20px 40px rgba(26, 83, 54, 0.12);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light); /* Solid light background */
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glow elements removed as they are transparent-based design */
.bg-glow {
    display: none;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.05); }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Navbar Enhancement (Light Mode) */
.navbar {
    height: 80px;
    background: var(--bg-white); /* Solid white */
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container, .container {
    max-width: 1300px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.container {
    display: block;
    height: auto;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 16px var(--primary-glow);
}

.nav-center {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* User Menu & Dropdown */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    background: var(--bg-light);
    border-radius: 100px;
    cursor: pointer;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.user-menu:hover {
    background: #f1f5f9;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    overflow: hidden;
}

.user-avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name-nav {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    padding: 10px;
    display: none;
    z-index: 1100;
    animation: slideDown 0.3s ease-out;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
}

.user-dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.user-dropdown a i {
    font-size: 1rem;
    opacity: 0.7;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 0;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-main);
    border-radius: 10px;
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    padding: 30px;
    display: none;
    flex-direction: column;
    gap: 20px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

/* Dashboard Page Overrides */
.dashboard-page .nav-center {
    display: none;
}

.dashboard-page .navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 12px rgba(26, 83, 54, 0.06);
}

.dashboard-page .nav-container {
    max-width: none;
    padding: 0 24px;
    gap: 16px;
}

.dashboard-page .nav-search {
    flex: 1;
    max-width: 460px;
    min-width: 180px;
}

/* Header icon buttons (messages / notifications) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--bg-light);
    color: var(--text-dim);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.header-icon-btn:hover {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

.header-icon-btn .dot {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e11d48;
    border: 2px solid var(--bg-white);
}

/* Header dropdown panels (emails / notifications) */
.header-drop {
    position: relative;
}

.header-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1200;
    animation: slideDown 0.25s ease-out;
}

.header-panel.show {
    display: block;
}

.header-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: var(--bg-white);
}

.header-panel-head h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.header-count {
    font-size: 0.72rem;
    font-weight: 800;
    background: var(--primary);
    color: #fff;
    border-radius: 100px;
    padding: 2px 10px;
}

.header-list {
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.header-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 10px;
    border-radius: 12px;
    transition: var(--transition);
}

.header-item:hover {
    background: var(--bg-light);
}

.header-item-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.header-item-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.header-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.header-item-time {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.header-empty {
    text-align: center;
    padding: 40px 20px;
}

.header-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: var(--bg-light);
    color: var(--text-dim);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-empty p {
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.header-empty span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Premium Buttons (Light Mode) */
.btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(26, 83, 54, 0.15);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 83, 54, 0.25);
}

.btn-secondary {
    background: white;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Badges */
.badge {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-green { background: #dcfce7; color: #166534; }
.badge-blue { background: #e0f2fe; color: #0369a1; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-purple { background: #f3e8ff; color: #6b21a8; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* Hero Section Refinement (Light Mode) */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-soft);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto 48px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Bento Grid System (Light Mode) */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
}

.course-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 12px;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-md);
}

.course-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-glow);
}

.course-thumb {
    width: 100%;
    height: 220px;
    border-radius: calc(var(--radius-lg) - 10px);
    overflow: hidden;
    margin-bottom: 20px;
    background: #f1f5f9;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-thumb img {
    transform: scale(1.05);
}

.course-content {
    padding: 15px 10px 20px;
}

.course-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
    letter-spacing: 0.05em;
}

.course-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

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

.course-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Footer (Light Mode) */
.footer {
    background: var(--bg-light);
    padding: 100px 0 40px;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    display: block;
}

.footer-text {
    color: var(--text-dim);
    margin-bottom: 30px;
    max-width: 300px;
}

.footer h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: var(--text-dim);
    font-size: 0.95rem;
}

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

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Animations */
@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.reveal {
    animation: slideDown 0.8s forwards;
}

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

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

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .course-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 4rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .course-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; }
    .nav-center { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Dashboard Layout & Components
   ============================================================ */

/* Sidebar Redesign */
.sidebar {
    width: 260px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-light);
    padding: 30px 20px;
    position: fixed;
    height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 900;
    transition: var(--transition);
}

.sidebar-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 25px 0 15px 18px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.sidebar-link.active {
    position: relative;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 10%;
    height: 80%;
    width: 4px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
}

/* Sidebar App Card */
.sidebar-app-card {
    margin-top: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 20px;
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.sidebar-app-card h5 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.sidebar-app-card p {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.sidebar-app-card .btn-app {
    background: #1a5336; /* Solid dark green */
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Header Search */
.nav-search {
    position: relative;
    width: 350px;
    margin: 0 40px;
}

.nav-search input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: var(--bg-light);
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-search input:focus {
    background: white;
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    outline: none;
}

.nav-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.search-shortcut {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    background: white;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    color: var(--text-dim);
}

/* Stat Cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.stat-card-primary .stat-info h4, 
.stat-card-primary .stat-trend {
    color: #a9dcc3; /* Solid light green for text on dark green */
}

.stat-card-primary .stat-value {
    color: white;
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card-header .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
}

/* Compact Mode Refinements */


.stat-grid {
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    padding: 16px 20px;
    gap: 10px;
}

.stat-value {
    font-size: 1.8rem !important;
}

.card-widget {
    padding: 18px;
}

.card-widget-header {
    margin-bottom: 15px;
}

.card-widget-header h3 {
    font-size: 1rem;
}

/* Sidebar Toggle at Bottom */
.sidebar {
    display: flex;
    flex-direction: column;
    padding-bottom: 80px; /* Space for toggle */
}

.sidebar-toggle-container {
    margin-top: auto;
    padding-top: 20px;
}

.sidebar-toggle-btn {
    width: 100%;
    height: 44px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
}

.sidebar-toggle-btn:hover {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: var(--primary-light);
}

/* Sidebar Collapsed State */
.sidebar.collapsed {
    width: 80px;
    padding: 30px 10px;
}

.sidebar.collapsed .sidebar-label,
.sidebar.collapsed .sidebar-link span,
.sidebar.collapsed .sidebar-app-card {
    display: none;
}

.sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding: 12px 0;
    gap: 0;
}

.sidebar.collapsed .sidebar-link i {
    font-size: 1.2rem;
}

.sidebar.collapsed + .dashboard-main {
    margin-left: 80px;
}

.sidebar.collapsed .sidebar-toggle-btn {
    padding: 0;
}

.sidebar.collapsed .sidebar-toggle-btn span {
    display: none;
}

.sidebar.collapsed .sidebar-toggle-btn i {
    font-size: 1.2rem;
}

/* Dashboard Layout — fixed: sidebar is position:fixed so container is block and
   main uses margin-left with automatic width (no flex:1 + margin which overflowed
   and cut off the right side). width:auto fills remaining space for any sidebar width. */
.dashboard-container {
    display: block;
    min-height: 100vh;
    padding-top: 80px;
}

.dashboard-main {
    margin-left: 260px;
    min-width: 0;
    box-sizing: border-box;
    padding: 20px 30px;
    background: var(--bg-light);
    transition: var(--transition);
    overflow-x: clip;
}

/* Header Adjustments */
.nav-search {
    width: 300px; /* Slimmer search */
    margin: 0 20px;
}

/* Dashboard Tables Refined */
.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th {
    background: #fcfdfe;
    padding: 16px 30px;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 700;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-light);
}

.modern-table td {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
    color: var(--text-main);
}

.modern-table tr:hover td {
    background-color: #fbfcfe;
}

.badge {
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
}

.badge-blue { background: var(--primary-soft); color: var(--primary); }
.badge-green { background: #dcfce7; color: #166534; }
.badge-orange { background: #ffedd5; color: #9a3412; }

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

@media (max-width: 992px) {
    .sidebar { width: 80px; padding: 30px 10px; }
    .sidebar-link span, .sidebar-label, .sidebar-app-card { display: none; }
    .dashboard-main { margin-left: 80px; }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .dashboard-main { margin-left: 0; padding: 20px 16px; }
}

/* Dashboard header responsiveness */
@media (max-width: 1100px) {
    .dashboard-page .nav-search { max-width: 300px; }
    .user-name-nav + span { display: none; }
}

@media (max-width: 860px) {
    .dashboard-page .nav-search { display: none; }
    .header-actions { display: none; }
    .dashboard-page .nav-container { padding: 0 16px; }
}

/* ============================================================
   Admin Design-System Fix — unified dashboard components
   (Fixes missing classes + inconsistent inline styles)
   ============================================================ */

/* Main 2-col dashboard grid used by admin dashboard */
.dashboard-grid-main {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Generic page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 5px;
    letter-spacing: -0.01em;
}
.page-header p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin: 0;
}
.page-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Cards */
.card-widget {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.card-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.card-widget-header h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}
.card-dark {
    background: #133124;
    color: #fff;
    border: none;
}
.card-dark h3 { color: #fff; }

/* Avatars / table helpers */
.avatar-md {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    overflow: hidden;
}
.table-card { background: #fff; border: 1px solid var(--border-light); border-radius: 20px; box-shadow: var(--shadow-sm); }
.activity-item { display: flex; align-items: center; gap: 14px; }
.table-wrap { overflow-x: auto; border-radius: 20px; }
.table-wrap .modern-table { min-width: 760px; }

/* Sidebar menu layout */
.sidebar-menu { display: flex; flex-direction: column; gap: 4px; }
.sidebar-toggle-container { margin-top: auto; padding-top: 20px; }
.sidebar { gap: 0; }

/* Flash messages */
.flash {
    position: fixed;
    top: 92px;
    right: 24px;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    background: #fff;
    max-width: min(420px, calc(100vw - 48px));
}
.flash-success { border-left: 4px solid #16a34a; }
.flash-error { border-left: 4px solid #dc2626; }
.flash-info, .flash-warning { border-left: 4px solid #0284c7; }
.flash button { background: none; border: none; cursor: pointer; color: var(--text-dim); }

/* Forms */
.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text-main);
}
.form-control:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(26,83,54,.08); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

/* Buttons */
.btn-danger {
    background: #fef2f2;
    color: #dc2626 !important;
    border: 1px solid #fecaca;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-danger:hover { background: #fee2e2; }
.btn-sm { padding: 8px 14px !important; font-size: 0.8rem !important; border-radius: 10px !important; }
.icon-btn {
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: var(--bg-light);
    color: var(--text-dim);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.85rem;
    text-decoration: none;
}
.icon-btn:hover { background: var(--primary-soft); color: var(--primary); }
.icon-btn.danger { color: #ef4444; }
.icon-btn.danger:hover { background: #fef2f2; }

/* Class booking / attendance specific */
.seat-bar { height: 8px; background: #f1f5f9; border-radius: 10px; overflow: hidden; }
.seat-bar > div { height: 100%; background: var(--primary); border-radius: 10px; }
.seat-bar.full > div { background: #ea580c; }
.class-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 0.82rem; color: var(--text-dim); }
.class-meta i { color: var(--primary); margin-right: 6px; }
.attendance-radio { display: flex; gap: 8px; flex-wrap: wrap; }
.att-pill { cursor: pointer; }
.att-pill input { display: none; }
.att-pill span {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-dim);
    background: #f8fafc;
}
.att-pill input:checked + span.present { background: #dcfce7; border-color: #86efac; color: #166534; }
.att-pill input:checked + span.absent { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.att-pill input:checked + span.late { background: #ffedd5; border-color: #fdba74; color: #9a3412; }
.att-pill input:checked + span.excused { background: #e0f2fe; border-color: #7dd3fc; color: #0c4a6e; }
.filter-bar {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--border-light);
    border-radius: 16px; padding: 14px 18px; margin-bottom: 22px;
}
.filter-bar input, .filter-bar select {
    padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border-light);
    font-size: 0.85rem; font-family: inherit; background: #fff; color: var(--text-main);
}
.stat-sub { font-size: 0.75rem; color: var(--text-dim); font-weight: 600; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* Modal */
.modal-card {
    background: #fff; border-radius: 20px; padding: 30px;
    width: 100%; max-width: 520px; box-shadow: var(--shadow-lg);
}

@media (max-width: 1200px) {
    .dashboard-grid-main { grid-template-columns: 1fr; }
    .form-grid-3 { grid-template-columns: 1fr 1fr; }
}
/* Manage-courses + admin tables responsive fix */
.stat-grid { min-width: 0; }
.stat-grid > * { min-width: 0; }
.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-wrap .modern-table { min-width: 900px; }
.modern-table th, .modern-table td { white-space: nowrap; }
.modern-table td:first-child { white-space: normal; min-width: 220px; }
.manage-filter { flex-wrap: wrap; }
.manage-filter > * { min-width: 0; }
@media (max-width: 1300px) {
    .stats-3 { grid-template-columns: repeat(2, 1fr) !important; }
    .stats-4 { grid-template-columns: repeat(2, 1fr) !important; }
    .stats-5 { grid-template-columns: repeat(3, 1fr) !important; }
    .modern-table th { padding: 14px 18px; }
    .modern-table td { padding: 16px 18px; }
}
@media (max-width: 640px) {
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 1.5rem; }
    .card-widget { padding: 18px; }
    .stats-3 { grid-template-columns: 1fr !important; }
    .stats-4 { grid-template-columns: 1fr !important; }
    .stats-5 { grid-template-columns: repeat(2, 1fr) !important; }
    .dashboard-main { padding: 16px 12px; }
}

/* ============================================================
   Amour Crochets Theme — pink handmade palette
   (Later :root wins over the green defaults above)
   ============================================================ */
:root {
    --primary: #e0217f;
    --primary-dark: #b31263;
    --primary-light: #f0569b;
    --primary-soft: #fde3ee;
    --secondary: #f78fb8;
    --accent: #ff5c9d;
    --bg-white: #ffffff;
    --bg-light: #fff5f8;
    --bg-card: #ffffff;
    --bg-blush: #fdeef4;
    --bg-blob: #f9c9dc;
    --text-main: #2b2f3e;
    --text-ink: #232838;
    --text-dim: #8a8fa3;
    --border-light: #f3dde6;
    --font-heading: 'Playfair Display', 'Outfit', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-script: 'Parisienne', cursive;
    --shadow-sm: 0 2px 8px rgba(224, 33, 127, 0.06);
    --shadow-md: 0 12px 24px rgba(224, 33, 127, 0.10);
    --shadow-lg: 0 20px 40px rgba(224, 33, 127, 0.16);
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-light);
    color: var(--text-main);
}

/* ---------- Buttons (pill, pink) ---------- */
.btn-primary {
    background: var(--primary);
    border-radius: 100px;
    box-shadow: 0 8px 20px rgba(224, 33, 127, 0.28);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 12px 26px rgba(224, 33, 127, 0.36); }
.btn-secondary { border-radius: 100px; border-color: var(--border-light); }

/* ---------- Public navbar (reference style) ---------- */
.navbar { background: rgba(255, 245, 248, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-light); }
.nav-brand .brand-logo-img {
    height: 54px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(224, 33, 127, 0.18));
    transition: var(--transition);
}
.nav-brand:hover .brand-logo-img { transform: scale(1.03) rotate(-1deg); }
.footer-logo-img { height: 62px; max-width: 230px; }
/* ============================================================
   Mouse-tracking effects — cursor aura, magnetic, tilt, parallax
   ============================================================ */
.cursor-aura {
    position: fixed; top: 0; left: 0;
    width: 340px; height: 340px; margin: -170px 0 0 -170px;
    border-radius: 50%; pointer-events: none; z-index: 1;
    background: radial-gradient(circle, rgba(240, 86, 155, 0.14) 0%, rgba(240, 86, 155, 0.05) 45%, transparent 70%);
    opacity: 0; transition: opacity 0.4s ease;
}
body.aura-on .cursor-aura { opacity: 1; }
@media (pointer: coarse) { .cursor-aura { display: none; } }

/* 3D tilt cards (JS adds transforms; transition smooths reset) */
.tilt-ready { transition: transform 0.25s ease, box-shadow 0.25s ease; transform-style: preserve-3d; will-change: transform; }
.tilt-active { box-shadow: var(--shadow-lg); z-index: 2; }

/* Magnetic elements glide toward the cursor */
.magnetic { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1.2); will-change: transform; display: inline-flex; }

/* Parallax layers glide smoothly */
.px-layer { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1); will-change: transform; }
.hero-blob-wrap { perspective: 900px; }

@media (prefers-reduced-motion: reduce) {
    .cursor-aura { display: none; }
    .tilt-ready, .magnetic, .px-layer { transition: none; }
}
.brand-text .brand-script { font-family: var(--font-script); font-size: 1.45rem; color: var(--primary); }
.brand-text .brand-sub { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.nav-center .nav-link { color: var(--text-main); font-weight: 600; padding: 6px 2px; }
.nav-center .nav-link:hover, .nav-center .nav-link.active { color: var(--primary); }
.nav-center .nav-link.active::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px; background: var(--primary); }
.nav-cta { border-radius: 100px; padding: 12px 26px; }
.nav-icon-btn {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-light);
    background: #fff; color: var(--text-main); display: inline-flex; align-items: center; justify-content: center;
    position: relative; cursor: pointer; transition: var(--transition);
}
.nav-icon-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.nav-icon-btn .cart-count {
    position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--primary); color: #fff; font-size: 0.65rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero-crochet { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff5f8 0%, #fdeaf2 100%); padding: 150px 0 90px; }
.hero-crochet .hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; max-width: 1300px; margin: 0 auto; padding: 0 30px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.28em; color: var(--text-main); text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::after { content: ''; width: 56px; height: 2px; background: var(--primary-light); border-radius: 2px; }
.eyebrow .fa-heart { color: var(--primary); }
.hero-title { font-family: var(--font-heading); font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.08; color: var(--text-ink); font-weight: 700; margin-bottom: 20px; }
.hero-title .italic { font-style: italic; }
.hero-title .pink { color: var(--primary); font-style: italic; }
.hero-sub { color: #5b6172; font-size: 1.05rem; max-width: 480px; margin-bottom: 30px; }
.hero-points { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 30px; }
.hero-point { display: flex; align-items: center; gap: 12px; font-size: 1.02rem; font-weight: 800; color: #232030; line-height: 1.25; }
.hero-point i { color: var(--primary); font-size: 1.7rem; }
.hero-point small { display: block; font-weight: 500; font-size: 0.92rem; color: #8a8a93; }
.hero-blob-wrap { position: relative; }
.hero-blob {
    position: absolute; inset: 4% -6% -4% 6%;
    background: linear-gradient(135deg, #f9c2d8, #f6a8c6);
    border-radius: 46% 54% 52% 48% / 44% 46% 54% 56%;
    transform: rotate(-4deg);
}
.hero-blob-img {
    position: relative; width: 100%; aspect-ratio: 1/0.92; object-fit: cover;
    border-radius: 46% 54% 52% 48% / 44% 46% 54% 56%;
    transform: rotate(-4deg);
    box-shadow: var(--shadow-lg);
    background: #f9c2d8;
}
.hero-float-heart { position: absolute; color: #f27bab; opacity: 0.9; animation: floatY 4s ease-in-out infinite; z-index: 2; }
@keyframes floatY { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
.hero-script-note {
    position: absolute; top: 2%; right: 0; z-index: 3; text-align: right;
    font-family: var(--font-script); font-size: 1.9rem; color: var(--primary); line-height: 1.2;
    transform: rotate(6deg);
}

/* ---------- Section headings ---------- */
.section-eyebrow { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.3em; color: var(--text-dim); text-transform: uppercase; margin-bottom: 12px; }
.section-eyebrow::before, .section-eyebrow::after { content: ''; width: 44px; height: 2px; background: var(--secondary); border-radius: 2px; opacity: 0.7; }
.section-h2 { font-family: var(--font-heading); font-size: clamp(1.7rem, 3.4vw, 2.5rem); text-align: center; color: var(--text-ink); font-weight: 700; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--text-dim); margin-bottom: 44px; }

/* ---------- Collection cards ---------- */
.collection-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cat-card { background: #fff; border: 1px solid var(--border-light); border-radius: 20px; overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-sm); }
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.cat-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--primary-soft); display: block; }
.cat-card .cat-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; font-size: 0.8rem; font-weight: 700; color: var(--text-main); }
.cat-arrow { width: 28px; height: 28px; min-width: 28px; border-radius: 50%; border: 1.5px solid var(--primary-light); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; }

/* ---------- Trust strip ---------- */
.trust-strip { background: #fff; border: 1px solid #f3dde6; border-radius: 24px; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 26px; box-shadow: var(--shadow-sm); overflow: hidden; }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 24px 28px; }
.trust-item + .trust-item { border-left: 1px solid #f3dde6; }
.trust-item i { font-size: 2.1rem; color: var(--primary); min-width: 40px; text-align: center; }
.trust-item b { display: block; font-size: 0.95rem; font-weight: 800; color: #232030; line-height: 1.3; }
.trust-item small { color: #8a8a93; font-size: 0.8rem; }

/* ---------- Pink course cards ---------- */
.course-card { border-color: var(--border-light); }
.course-card:hover { border-color: #f3a5c4; }
.course-tag { color: var(--primary); }
.course-thumb { background: var(--primary-soft); }

/* ---------- About / steps / testimonials / blog ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-collage { position: relative; }
.about-collage .main-img { width: 100%; border-radius: 28px; aspect-ratio: 4/4.4; object-fit: cover; box-shadow: var(--shadow-lg); }
.about-collage .small-img { position: absolute; right: -24px; bottom: -24px; width: 46%; border-radius: 22px; border: 8px solid #fff; aspect-ratio: 1/1; object-fit: cover; box-shadow: var(--shadow-md); }
.about-badge { position: absolute; left: -18px; top: 26px; background: #fff; border-radius: 16px; padding: 12px 18px; box-shadow: var(--shadow-md); font-weight: 800; color: var(--primary-dark); }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 22px 0 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; color: #4a4f61; }
.check-list i { color: var(--primary); margin-top: 4px; }
.stat-row { display: flex; gap: 36px; margin-top: 26px; }
.stat-row .num { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--primary-dark); }
.stat-row .lbl { font-size: 0.78rem; color: var(--text-dim); font-weight: 600; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { background: #fff; border: 1px solid var(--border-light); border-radius: 22px; padding: 34px 28px; text-align: center; position: relative; box-shadow: var(--shadow-sm); }
.step-num { position: absolute; top: 16px; right: 22px; font-family: var(--font-heading); font-size: 2.4rem; color: var(--primary-soft); font-weight: 800; }
.step-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 18px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card { background: #fff; border: 1px solid var(--border-light); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-sm); }
.testi-card .stars { color: #f5a623; font-size: 0.8rem; margin-bottom: 12px; letter-spacing: 2px; }
.testi-card p { font-size: 0.9rem; color: #4a4f61; margin-bottom: 18px; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); transition: var(--transition); }
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.blog-card img { width: 100%; height: 210px; object-fit: cover; }
.blog-body { padding: 22px 24px 26px; }
.blog-date { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; color: var(--primary); text-transform: uppercase; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: linear-gradient(180deg, #fbd3e3, #f7b9d0); border-radius: 48px 48px 0 0; margin-top: 90px; overflow: hidden; }
.cta-band .cta-inner { max-width: 1300px; margin: 0 auto; padding: 70px 30px 90px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; position: relative; z-index: 2; }
.cta-script { font-family: var(--font-script); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--primary-dark); }
.cta-tag { letter-spacing: 0.32em; font-size: 0.7rem; font-weight: 800; color: #8a4a63; margin-top: 10px; text-transform: uppercase; }
.cta-yarn { width: 250px; height: 250px; border-radius: 50%; object-fit: cover; border: 10px solid rgba(255,255,255,0.65); box-shadow: var(--shadow-lg); }
.yarn-string { position: absolute; left: 0; right: 0; bottom: 26px; opacity: 0.7; }

/* ---------- Footer pink ---------- */
.footer { background: #fff; border-top: 1px solid var(--border-light); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; max-width: 1300px; margin: 0 auto; padding: 0 30px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer h4 { font-family: var(--font-heading); }
.footer ul li a:hover { color: var(--primary); }
.social-links a { background: var(--primary-soft); color: var(--primary-dark); width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.social-links a:hover { background: var(--primary); color: #fff; }
.newsletter-box { display: flex; gap: 8px; margin-top: 14px; }
.newsletter-box input { flex: 1; padding: 12px 18px; border-radius: 100px; border: 1px solid var(--border-light); font-family: inherit; font-size: 0.85rem; min-width: 0; }
.newsletter-box button { border-radius: 100px; border: none; background: var(--primary); color: #fff; padding: 12px 22px; font-weight: 700; cursor: pointer; }
.footer-bottom { max-width: 1300px; margin: 40px auto 0; padding: 22px 30px 0; border-top: 1px solid var(--border-light); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Public responsive ---------- */
@media (max-width: 1100px) {
    .collection-grid { grid-template-columns: repeat(3, 1fr); }
    .trust-strip { grid-template-columns: repeat(2, 1fr); }
    .trust-item + .trust-item { border-left: none; }
    .hero-crochet .hero-grid { grid-template-columns: 1fr; }
    .hero-blob-wrap { max-width: 560px; margin: 0 auto; width: 100%; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-center { display: none; }
    .steps-grid, .testi-grid, .blog-grid { grid-template-columns: 1fr; }
    .collection-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-band .cta-inner { grid-template-columns: 1fr; text-align: center; }
    .cta-yarn { margin: 0 auto; }
    .hero-crochet { padding: 120px 0 60px; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 1.5rem; }
    .card-widget { padding: 18px; }
    .stats-3 { grid-template-columns: 1fr !important; }
    .stats-4 { grid-template-columns: 1fr !important; }
    .stats-5 { grid-template-columns: repeat(2, 1fr) !important; }
    .dashboard-main { padding: 16px 12px; }
    .trust-strip { grid-template-columns: 1fr; }
    .collection-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .hero-points { gap: 14px; }
}

/* ============================================================
   E-commerce shop — toolbar, product cards, cart drawer
   ============================================================ */
.shop-toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--border-light); border-radius: 18px; padding: 14px 18px; margin-bottom: 26px; box-shadow: var(--shadow-sm); }
.shop-search { position: relative; flex: 1 1 220px; min-width: 200px; }
.shop-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 0.85rem; }
.shop-search input { width: 100%; box-sizing: border-box; padding: 11px 16px 11px 42px; border-radius: 100px; border: 1px solid var(--border-light); font-family: inherit; font-size: 0.88rem; }
.shop-search input:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(224,33,127,0.08); }
.shop-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-pills .pill { border: 1.5px solid var(--border-light); background: #fff; color: var(--text-dim); font-weight: 700; font-size: 0.8rem; padding: 9px 18px; border-radius: 100px; cursor: pointer; font-family: inherit; transition: var(--transition); }
.shop-pills .pill:hover { border-color: var(--primary-light); color: var(--primary); }
.shop-pills .pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.shop-toolbar select { padding: 11px 16px; border-radius: 100px; border: 1px solid var(--border-light); font-size: 0.85rem; font-family: inherit; background: #fff; color: var(--text-main); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { background: #fff; border: 1px solid var(--border-light); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.35s cubic-bezier(0.2,0.8,0.3,1), box-shadow 0.35s, border-color 0.35s; display: flex; flex-direction: column; will-change: transform; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-8px); border-color: var(--primary-light); }
.product-card:hover .product-body h3 { color: var(--primary); }
.product-media { position: relative; background: var(--primary-soft); overflow: hidden; }
.product-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.2,0.8,0.3,1); }
.product-card:hover .product-media img { transform: scale(1.08) rotate(0.5deg); }
.product-card .add-btn { transition: transform 0.25s, box-shadow 0.25s, background 0.25s; }
.product-card:hover .add-btn { box-shadow: 0 12px 24px rgba(214,51,108,0.35); }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--primary); color: #fff; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 12px; border-radius: 100px; box-shadow: var(--shadow-sm); }
.product-badge.preorder { top: auto; bottom: 12px; background: #7c3aed; }
.product-star { border:0; background:none; color:#cbd5e1; font-size:1rem; cursor:pointer; padding:4px; }
.product-star:hover, .product-star.on { color:#f5a623; transform:scale(1.15); }
.product-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); }
.product-body h3 { font-family: var(--font-heading); font-size: 1.08rem; margin: 0; }
.p-stars { font-size: 0.72rem; color: var(--text-dim); }
.p-stars i { font-size: 0.7rem; }
.product-desc { font-size: 0.82rem; color: var(--text-dim); margin: 2px 0 4px; }
.product-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.product-price { font-size: 1.25rem; font-weight: 800; color: var(--text-main); }
.product-mrp { font-size: 0.85rem; color: var(--text-dim); text-decoration: line-through; }
.preorder-line { font-size: 0.75rem; font-weight: 700; color: #7c3aed; background: #ede9fe; border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }
.product-body .add-btn { margin-top: auto; }
.home-product-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.home-product-card { background:#fff; border:1px solid var(--border-light); border-radius:22px; overflow:hidden; box-shadow:var(--shadow-sm); transition:transform 0.35s cubic-bezier(0.2,0.8,0.3,1), box-shadow 0.35s, border-color 0.35s; will-change:transform; }
.home-product-card:hover { box-shadow:var(--shadow-md); transform:translateY(-8px); border-color:var(--primary-light); }
.home-product-card:hover .home-product-body h3 { color:var(--primary); }
.home-product-image { position:relative; background:var(--primary-soft); overflow:hidden; }
.home-product-image img { display:block; width:100%; aspect-ratio:1/0.85; object-fit:cover; transition:transform 0.6s cubic-bezier(0.2,0.8,0.3,1); }
.home-product-card:hover .home-product-image img { transform:scale(1.09) rotate(0.5deg); }
.home-product-card .home-product-footer .btn-primary { transition:transform 0.25s, box-shadow 0.25s; }
.home-product-card:hover .home-product-footer .btn-primary { box-shadow:0 12px 24px rgba(214,51,108,0.35); transform:translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .product-card, .home-product-card, .product-media img, .home-product-image img { transition:none; } .product-card:hover, .home-product-card:hover { transform:none; } }
.home-product-body { padding:18px 20px 20px; }
.home-product-body h3 { font-family:var(--font-heading); font-size:1.12rem; margin:4px 0 7px; }
.home-product-body p { color:var(--text-dim); font-size:.8rem; min-height:40px; margin-bottom:12px; }
.home-product-footer { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.home-product-footer strong { color:var(--primary); font-size:1.15rem; }
.home-product-footer .btn-primary { padding:8px 15px; font-size:.75rem; }
.cart-overlay { position: fixed; inset: 0; background: rgba(43, 47, 62, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 2500; }
.cart-overlay.show { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; width: min(420px, 94vw); background: #fff; z-index: 2600; transform: translateX(105%); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); border-radius: 24px 0 0 24px; overflow: hidden; }
.cart-drawer.open { transform: none; }
@media(max-width:640px){ .cart-drawer{ right:0; left:auto; width:min(420px,100vw); border-radius:0; } }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--border-light); background:#fff; position:sticky; top:0; z-index:2; flex-shrink:0; }
.cart-items { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 10px 22px; display: flex; flex-direction: column; min-height:0; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-light); align-items: flex-start; }
.cart-item img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--primary-soft); }
.qty-stepper { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; background: var(--bg-light); border-radius: 100px; padding: 3px 6px; }
.qty-stepper button { width: 24px; height: 24px; border-radius: 50%; border: none; background: #fff; color: var(--primary); font-weight: 800; cursor: pointer; box-shadow: var(--shadow-sm); }
.qty-stepper span { font-weight: 800; font-size: 0.85rem; min-width: 16px; text-align: center; }
.link-danger { background: none; border: none; color: #dc2626; font-size: 0.75rem; font-weight: 700; cursor: pointer; margin-top: 4px; }
.cart-foot { padding: 18px 22px 24px; border-top: 1px solid var(--border-light); background: #fffdfd; border-radius: 0 0 0 24px; }
.cart-row { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--text-dim); margin-bottom: 6px; }
.cart-row.total { font-size: 1.05rem; color: var(--text-main); font-weight: 800; margin: 10px 0 12px; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px); background: var(--text-main); color: #fff; padding: 13px 26px; border-radius: 100px; font-size: 0.88rem; font-weight: 600; opacity: 0; pointer-events: none; transition: all 0.3s; z-index: 3000; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .product-grid { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .home-product-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width: 560px) { .home-product-grid { grid-template-columns:1fr; } }
/* ============================================================
   Live search overlay (animated open/close, filters courses+shop)
   ============================================================ */
.search-overlay {
    position: fixed; inset: 0; z-index: 4000;
    background: rgba(43, 47, 62, 0.45); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: flex-start; padding: 12vh 20px 20px;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-panel {
    width: min(680px, 100%); background: #fff; border-radius: 26px; padding: 26px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-26px) scale(0.97); transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.15);
    max-height: 76vh; display: flex; flex-direction: column;
}
.search-overlay.open .search-panel { transform: none; }
.search-bar { display: flex; align-items: center; gap: 12px; background: var(--bg-light); border: 1.5px solid var(--border-light); border-radius: 100px; padding: 6px 6px 6px 20px; }
.search-bar:focus-within { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(224,33,127,0.08); }
.search-bar i.fa-search { color: var(--primary); }
.search-bar input { flex: 1; border: none; background: none; outline: none; font-family: inherit; font-size: 1rem; padding: 10px 0; min-width: 0; }
.search-close { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--primary); color: #fff; cursor: pointer; font-size: 0.9rem; }
.search-tabs { display: flex; gap: 8px; margin: 16px 0 6px; }
.search-tabs .pill { border: 1.5px solid var(--border-light); background: #fff; color: var(--text-dim); font-weight: 700; font-size: 0.78rem; padding: 8px 18px; border-radius: 100px; cursor: pointer; font-family: inherit; }
.search-tabs .pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.search-results { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.search-hint { text-align: center; color: var(--text-dim); font-size: 0.88rem; padding: 26px 10px; }
.search-hint i { color: var(--primary); }
.search-row { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 16px; text-decoration: none; color: inherit; transition: var(--transition); animation: searchIn 0.3s ease both; }
.search-row:hover { background: var(--bg-light); }
.search-row img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--primary-soft); flex-shrink: 0; }
.search-row .t { font-weight: 800; font-size: 0.9rem; }
.search-row .m { font-size: 0.75rem; color: var(--text-dim); }
.search-row .p { margin-left: auto; font-weight: 800; color: var(--primary); white-space: nowrap; }
.search-kind { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin: 8px 4px 2px; }
@keyframes searchIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* ============================================================
   Floating WhatsApp (bottom-left, bump loop + hover reaction)
   ============================================================ */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 3500;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff; font-size: 1.7rem;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
    animation: waBump 2.6s ease-in-out infinite;
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.wa-float:hover { transform: scale(1.18) rotate(-8deg); animation-play-state: paused; background: #1fb857; }
.wa-float .wa-tip {
    position: absolute; right: 68px; top: 50%; transform: translateY(-50%) translateX(8px);
    background: #fff; color: var(--text-main); font-size: 0.78rem; font-weight: 700;
    padding: 9px 15px; border-radius: 12px; white-space: nowrap; box-shadow: var(--shadow-md);
    opacity: 0; pointer-events: none; transition: all 0.25s ease;
}
.wa-float:hover .wa-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
@keyframes waBump {
    0%, 100% { transform: translateY(0) scale(1); }
    8% { transform: translateY(-9px) scale(1.06); }
    16% { transform: translateY(0) scale(1); }
    24% { transform: translateY(-5px) scale(1.03); }
    32% { transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }
/* ============================================================
   Quick-view popup (1-sec hover hold on home cards)
   ============================================================ */
.qv-pop {
    position: fixed; z-index: 3600; width: 270px; pointer-events: none;
    background: #fff; border: 1px solid var(--border-light); border-radius: 18px;
    box-shadow: var(--shadow-lg); overflow: hidden;
    opacity: 0; transform: translateY(10px) scale(0.96); transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.qv-pop.show { opacity: 1; transform: none; }
.qv-pop img { width: 100%; height: 130px; object-fit: cover; display: block; background: var(--primary-soft); }
.qv-pop .qv-body { padding: 13px 15px 15px; }
.qv-pop .qv-cat { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }
.qv-pop .qv-title { font-weight: 800; font-size: 0.92rem; margin: 3px 0; }
.qv-pop .qv-desc { font-size: 0.76rem; color: var(--text-dim); margin-bottom: 8px; }
.qv-pop .qv-foot { display: flex; justify-content: space-between; align-items: center; }
.qv-pop .qv-price { font-weight: 800; color: var(--primary); }
.qv-pop .qv-link { font-size: 0.75rem; font-weight: 800; color: var(--text-main); }
/* ============================================================
   Page loading screen + entrance animation (every page)
   ============================================================ */
.page-loader {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(180deg, #fff5f8, #fdeaf2);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader img { height: 84px; width: auto; max-width: 70vw; object-fit: contain; animation: loaderPulse 1.4s ease-in-out infinite; }
.page-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-hearts { display: flex; gap: 10px; color: var(--primary); font-size: 1.2rem; }
.loader-hearts span { animation: loaderBounce 1.1s ease-in-out infinite; }
.loader-hearts span:nth-child(2) { animation-delay: 0.15s; }
.loader-hearts span:nth-child(3) { animation-delay: 0.3s; }
@keyframes loaderPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes loaderBounce { 0%,100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-10px); opacity: 1; } }
/* Page entrance */
.main-content { animation: pageIn 0.55s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .main-content { animation: none; }
    .page-loader img, .loader-hearts span { animation: none; }
}
