
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --secondary: #06b6d4;
    --bg-main: #f1f5f9;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-mid: #475569;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --hover-bg: #f8fafc;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --accent: #818cf8;
    --header-h: 72px;

    --transition: .22s cubic-bezier(.4, 0, .2, 1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .07), 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, .10);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, .14);
    --shadow-xl: 0 24px 60px rgba(15, 23, 42, .18);
}

[data-theme="dark"] {
    --bg-main: #0d1117;
    --bg-card: #161b27;
    --text-dark: #e2e8f0;
    --text-mid: #94a3b8;
    --border-color: #1e293b;
    --hover-bg: #1e293b;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .35);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}

ul {
    list-style: none;
}

/* ── LAYOUT ── */
.layout-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-section {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.content-wrapper {
    flex: 1;
    margin-top: var(--header-h);
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04), var(--shadow-sm);
    transition: background var(--transition), border-color var(--transition);
    width: 100%;
    overflow: visible;
}

[data-theme="dark"] .site-header {
    background: rgba(22, 27, 39, .95);
}

.header-inner {
    display: flex;
    align-items: center;
    height: var(--header-h);
    padding: 0 28px;
    gap: 8px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    margin-right: 8px;
    text-decoration: none;
}

.header-brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, .35);
    flex-shrink: 0;
    transition: transform var(--transition), box-shadow var(--transition);
}

.header-brand:hover .header-brand-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(79, 70, 229, .45);
}

.header-brand-texts {
    display: flex;
    flex-direction: column;
}

.header-brand-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -.4px;
    line-height: 1.1;
    white-space: nowrap;
}

.header-brand-tagline {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: .4px;
    line-height: 1;
    white-space: nowrap;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.header-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-mid);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
    position: relative;
    text-decoration: none;
}

.header-nav-link i {
    font-size: 12.5px;
}

.header-nav-link:hover {
    background: var(--hover-bg);
    color: var(--text-dark);
}

.header-nav-link.active {
    background: rgba(79, 70, 229, .08);
    color: var(--primary);
}

.header-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.hdr-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-mid);
    font-size: 15px;
    position: relative;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
}

.hdr-icon-btn:hover {
    background: var(--hover-bg);
    color: var(--primary);
}

.badge-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    animation: badge-pop .3s ease;
}

@keyframes badge-pop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.hdr-divider {
    width: 1px;
    height: 28px;
    background: var(--border-color);
    margin: 0 6px;
    flex-shrink: 0;
}

.hdr-guest-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-hdr-ghost {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-mid);
    background: transparent;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-hdr-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, .04);
}

.btn-hdr-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, .35);
    transition: transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-hdr-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, .45);
    color: #fff;
}

.header-search {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: -10px;
    width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(.98);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 1100;
}

.header-search.open .search-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.search-icon {
    color: var(--text-light);
    font-size: 14px;
    flex-shrink: 0;
}

.search-field {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: var(--text-dark);
    font-family: inherit;
}

.search-field::placeholder {
    color: var(--text-light);
}

.search-kbd {
    font-size: 11px;
    color: var(--text-light);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 7px;
    font-family: inherit;
    white-space: nowrap;
}

.search-quick-links {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.sql-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.sql-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-mid);
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}

.sql-item i {
    width: 16px;
    color: var(--text-light);
    font-size: 12px;
}

.sql-item:hover {
    background: var(--hover-bg);
    color: var(--primary);
}

.search-results {
    padding: 8px 16px 14px;
}

.header-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(.98);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 1100;
}

.header-dropdown.open .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notif-panel {
    width: 360px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--border-color);
}

.panel-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
}

.panel-count {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    background: rgba(79, 70, 229, .1);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

.panel-action {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.panel-action:hover {
    text-decoration: underline;
}

.notif-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    cursor: pointer;
    transition: background var(--transition);
    position: relative;
}

.notif-item:hover {
    background: var(--hover-bg);
}

.notif-item.unread {
    background: rgba(79, 70, 229, .03);
}

.notif-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.bg-success {
    background: linear-gradient(135deg, var(--success), #16a34a);
}

.bg-warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
}

.bg-cyan {
    background: linear-gradient(135deg, var(--secondary), #0891b2);
}

.notif-body {
    flex: 1;
    min-width: 0;
}

.notif-text {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.45;
}

.notif-text strong {
    font-weight: 700;
}

.notif-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

.notif-unread-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 6px;
}

.panel-foot {
    border-top: 1px solid var(--border-color);
    padding: 12px 18px;
}

.view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.view-all-link:hover {
    text-decoration: underline;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 5px;
    border-radius: 40px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    transition: border-color var(--transition), box-shadow var(--transition);
    margin-left: 4px;
    cursor: pointer;
}

.user-btn:hover {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-online {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    border: 1.5px solid var(--bg-card);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    white-space: nowrap;
}

.user-role {
    font-size: 11px;
    color: var(--text-light);
    white-space: nowrap;
}

.user-chevron {
    font-size: 10px;
    color: var(--text-light);
    transition: transform var(--transition);
}

.header-dropdown.open .user-chevron {
    transform: rotate(180deg);
}

.user-panel {
    width: 290px;
}

.user-panel-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(79, 70, 229, .06) 0%, rgba(6, 182, 212, .06) 100%);
    border-bottom: 1px solid var(--border-color);
}

.up-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .3);
}

.up-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.up-info {
    flex: 1;
    min-width: 0;
}

.up-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.up-email {
    font-size: 11.5px;
    color: var(--text-light);
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.up-badge {
    display: inline-block;
    margin-top: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3px;
    background: rgba(79, 70, 229, .12);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 20px;
}

.user-menu-list {
    padding: 8px;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    text-decoration: none;
}

.user-menu-item:hover {
    background: var(--hover-bg);
}

.umi-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-mid);
    font-size: 13px;
    transition: background var(--transition), color var(--transition);
}

.user-menu-item:hover .umi-icon {
    background: rgba(79, 70, 229, .1);
    color: var(--primary);
}

.umi-text {
    display: flex;
    flex-direction: column;
}

.umi-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}

.umi-sub {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 1px;
}

.user-panel-foot {
    border-top: 1px solid var(--border-color);
    padding: 8px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--danger);
    transition: background var(--transition);
    cursor: pointer;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, .08);
}

.logout-arrow {
    margin-left: auto;
    font-size: 11px;
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
}

.logout-btn:hover .logout-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.hdr-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px 6px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    flex-shrink: 0;
    cursor: pointer;
}

.hdr-hamburger:hover {
    background: var(--hover-bg);
}

.hdr-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-mid);
    border-radius: 2px;
    transition: var(--transition);
}

.hdr-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hdr-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hdr-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 12px 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
    gap: 2px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-mid);
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}

.mobile-nav-link i {
    width: 18px;
    font-size: 14px;
    text-align: center;
}

.mobile-nav-link:hover {
    background: var(--hover-bg);
    color: var(--primary);
}

.mobile-nav-link.active {
    background: rgba(79, 70, 229, .08);
    color: var(--primary);
}

.mobile-nav-auth {
    display: flex;
    gap: 10px;
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px solid var(--border-color);
}

.mobile-nav-auth .btn-hdr-ghost,
.mobile-nav-auth .btn-hdr-primary {
    flex: 1;
    justify-content: center;
}

.mobile-nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
}

.mnu-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}

.mnu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mnu-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.mnu-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mnu-role {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 1px;
}

.mnu-logout-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .2);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    cursor: pointer;
    transition: background var(--transition);
}

.mnu-logout-btn:hover {
    background: rgba(239, 68, 68, .15);
}

.header-cart {
    margin-right: 14px;
}

.cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1.5px solid transparent;
    color: var(--text-mid);
    text-decoration: none;
    font-size: 18px;
    transition: color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.cart-btn:hover {
    color: var(--primary);
    background: rgba(79, 70, 229, .08);
    border-color: rgba(79, 70, 229, .18);
    transform: translateY(-1px);
}

.cart-btn:active {
    transform: translateY(0) scale(.95);
}

.cart-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--primary);
    opacity: 0;
    transform: scale(1);
    pointer-events: none;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    line-height: 1;
    border: 2px solid var(--bg-card);
    box-shadow: 0 2px 8px rgba(79, 70, 229, .35);
    letter-spacing: -.02em;
    animation: cartBadgePop .3s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes cartBadgePop {
    from {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

[data-theme="dark"] .cart-btn:hover {
    background: rgba(129, 140, 248, .12);
    border-color: rgba(129, 140, 248, .25);
    color: var(--primary-light);
}

[data-theme="dark"] .cart-count {
    border-color: var(--bg-card);
}

/* FOOTER */
.site-footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, .65);
    flex-shrink: 0;
}

[data-theme="dark"] .site-footer {
    background: #080d16;
    border-top: 1px solid #1e293b;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-top {
    padding: 60px 0 48px;
}

.footer-top .footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    align-items: start;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    text-decoration: none;
}

.footer-brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, .4);
    flex-shrink: 0;
}

.footer-brand-name {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.4px;
}

.footer-tagline {
    font-size: 13.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 22px;
    max-width: 400px;
}

.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .55);
    font-size: 14px;
    transition: background var(--transition), color var(--transition),
        border-color var(--transition), transform var(--transition);
    text-decoration: none;
}

.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-col-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 18px;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .5);
    transition: color var(--transition), padding-left var(--transition);
    text-decoration: none;
}

.footer-links-list i {
    width: 14px;
    font-size: 12px;
    opacity: .7;
    flex-shrink: 0;
}

.footer-links-list a:hover {
    color: rgba(255, 255, 255, .9);
    padding-left: 4px;
}
.footer-links-list ol,ul {
    list-style: none;
    padding-left: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 18px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .4);
}

.footer-legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal-links li a {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .4);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--transition);
    display: block;
    text-decoration: none;
    white-space: nowrap;
}

.footer-legal-links li a:hover {
    color: rgba(255, 255, 255, .85);
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
    white-space: nowrap;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .2);
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(34, 197, 94, .2);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, .07);
    }
}

.footer-version {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    padding: 2px 10px;
    font-weight: 600;
    white-space: nowrap;
}

.toast-container-custom {
    position: fixed;
    top: 82px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-custom {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 380px;
    pointer-events: all;
    animation: slideInRight .3s cubic-bezier(.4, 0, .2, 1);
}

.toast-custom.success {
    border-left: 4px solid var(--success);
}

.toast-custom.error {
    border-left: 4px solid var(--danger);
}

.toast-custom.warning {
    border-left: 4px solid var(--warning);
}

.toast-custom.info {
    border-left: 4px solid var(--primary);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), box-shadow var(--transition);
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, .35);
}

@media (max-width: 1200px) {
    .header-nav-link {
        padding: 7px 10px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {

    .header-nav {
        display: none !important;
    }

    .hdr-hamburger {
        display: flex;
    }

    .hdr-desktop-only {
        display: none !important;
    }

    .header-inner {
        padding: 0 16px;
        gap: 6px;
    }

    .content-wrapper {
        padding: 20px 16px 32px;
    }

    .btn-hdr-ghost {
        padding: 7px 14px;
        font-size: 13px;
    }

    .search-dropdown {
        width: calc(100vw - 32px);
        right: -80px;
    }

    .notif-panel {
        width: calc(100vw - 32px);
        right: -90px;
    }

    .user-panel {
        width: calc(100vw - 32px);
        right: -10px;
        max-width: 320px;
    }

    .footer-container {
        padding: 0 20px;
    }

    .footer-top {
        padding: 40px 0 32px;
    }

    .footer-top .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }

    .footer-bottom-right {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --header-h: 64px;
    }

    .content-wrapper {
        padding: 14px 12px 24px;
    }

    .header-inner {
        padding: 0 14px;
        gap: 4px;
        overflow: visible;
    }

    .header-brand {
        flex: 1;
        min-width: 0;
        margin-right: 4px;
        gap: 8px;
    }

    .header-brand-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .header-brand-tagline {
        display: none;
    }

    .header-brand-name {
        font-size: 14.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 110px;
    }

    .hdr-guest-btns .btn-hdr-primary {
        display: none;
    }

    .hdr-guest-btns {
        gap: 4px;
    }

    .hdr-guest-btns .btn-hdr-ghost {
        padding: 7px 11px;
        font-size: 12.5px;
        border-radius: 7px;
        gap: 5px;
        white-space: nowrap;
    }

    .user-info,
    .user-chevron {
        display: none;
    }

    .user-btn {
        padding: 4px;
        border-radius: 50%;
        margin-left: 2px;
        gap: 0;
        border-width: 1.5px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
    }

    .header-actions {
        gap: 4px;
        flex-shrink: 0;
    }

    .site-header {
        overflow-x: hidden;
    }

    .footer-container {
        padding: 0 16px;
    }

    .footer-top {
        padding: 32px 0 24px;
    }

    .footer-legal-links li a {
        padding: 4px 8px;
        font-size: 11.5px;
    }

    .footer-bottom-right {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .footer-brand-name {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    :root {
        --header-h: 60px;
    }

    .header-inner {
        padding: 0 10px;
        gap: 4px;
    }

    .header-brand-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .header-brand-name {
        font-size: 13.5px;
        max-width: 90px;
    }

    .hdr-guest-btns .btn-hdr-ghost {
        padding: 6px 9px;
        font-size: 12px;
        gap: 4px;
    }

    .hdr-guest-btns .btn-hdr-ghost i {
        display: none;
    }

    .hdr-hamburger span {
        width: 20px;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
}

/* TOASTS */
.toast-container {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    width: calc(100vw - 40px);
    pointer-events: none;
}

.vg-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    color: var(--text-dark);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    border-left: 4px solid transparent;
    box-shadow: var(--shadow-md);
    pointer-events: all;
    position: relative;
    overflow: hidden;
    animation: vgToastIn 0.32s cubic-bezier(.34, 1.56, .64, 1);
}

.vg-toast.hiding {
    animation: vgToastOut 0.28s ease forwards;
}

.vg-toast-success {
    border-left-color: var(--success);
}

.vg-toast-error {
    border-left-color: var(--danger);
}

.vg-toast-warning {
    border-left-color: var(--warning);
}

.vg-toast-info {
    border-left-color: var(--secondary);
}

.vg-toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.vg-toast-success .vg-toast-icon {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
}

.vg-toast-error .vg-toast-icon {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}

.vg-toast-warning .vg-toast-icon {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}

.vg-toast-info .vg-toast-icon {
    background: rgba(6, 182, 212, 0.12);
    color: var(--secondary);
}

.vg-toast-body {
    flex: 1;
    min-width: 0;
}

.vg-toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    color: var(--text-dark);
}

.vg-toast-msg {
    font-size: 13.5px;
    color: var(--text-mid);
    line-height: 1.5;
    word-break: break-word;
}

.vg-toast-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 14px;
    transition: var(--transition);
}

.vg-toast-close:hover {
    color: var(--text-dark);
}

.vg-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left;
    animation: vgProgress 4s linear forwards;
}

.vg-toast-success .vg-toast-progress {
    background: var(--success);
}

.vg-toast-error .vg-toast-progress {
    background: var(--danger);
}

.vg-toast-warning .vg-toast-progress {
    background: var(--warning);
}

.vg-toast-info .vg-toast-progress {
    background: var(--secondary);
}

@keyframes vgToastIn {
    from {
        opacity: 0;
        transform: translateX(50px) scale(.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes vgToastOut {
    to {
        opacity: 0;
        transform: translateX(50px);
        max-height: 0;
        margin-bottom: -10px;
        padding-top: 0;
        padding-bottom: 0;
    }
}

@keyframes vgProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@media (max-width: 480px) {
    .toast-container {
        left: 12px;
        right: 12px;
        top: calc(var(--header-h) + 12px);
    }

    .vg-toast {
        padding: 12px 14px;
    }

    .vg-toast-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .vg-toast-title,
    .vg-toast-msg {
        font-size: 13px;
    }
}

/* LOGIN & REGISTRATION MODAL */
.modal-backdrop.show {
    opacity: .55;
    backdrop-filter: blur(4px);
}

.modal-dialog {
    max-width: 440px;
    width: 100%;
}

.vg-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

.vg-modal::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    z-index: 1;
}

.vg-modal::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, .06) 0%, transparent 70%);
    top: -80px;
    right: -60px;
    pointer-events: none;
    z-index: 0;
}

.vg-modal .modal-header {
    padding: 28px 32px 0;
    border: none;
    position: relative;
    z-index: 2;
    align-items: flex-start;
}

.vg-modal-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.vg-modal-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .3);
}

.vg-modal-logo-text {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -.01em;
}

.vg-modal .modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -.02em;
    line-height: 1.2;
}

.vg-modal-subtitle {
    font-size: 13px;
    color: var(--text-mid);
    margin-top: 4px;
    font-weight: 400;
}

.vg-modal .btn-close {
    opacity: .5;
    transition: opacity var(--transition), transform var(--transition);
    margin-top: 2px;
}

.vg-modal .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.vg-modal .modal-body {
    padding: 24px 32px 32px;
    position: relative;
    z-index: 2;
}

.vg-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.vg-divider::before,
.vg-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.vg-social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.vg-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    font-family: inherit;
}

.vg-social-btn:hover {
    background: var(--bg-main);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.vg-social-btn img {
    width: 16px;
    height: 16px;
}

.vg-input-wrap {
    position: relative;
    margin-bottom: 14px;
}

.vg-input {
    width: 100%;
    padding: 12px 44px 12px 44px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-main);
    color: var(--text-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    -webkit-appearance: none;
}

.vg-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.vg-input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}

.vg-input.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
}

.vg-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 14px;
    pointer-events: none;
    transition: color var(--transition);
}

.vg-input-wrap:focus-within .vg-icon {
    color: var(--primary);
}

.vg-eye-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    transition: color var(--transition);
    padding: 4px;
}

.vg-eye-icon:hover {
    color: var(--primary);
}

.vg-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 6px;
    letter-spacing: .02em;
}

.vg-forgot {
    display: block;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-top: -6px;
    margin-bottom: 20px;
    text-decoration: none;
    transition: color var(--transition);
}

.vg-forgot:hover {
    color: var(--primary-dark);
}

.vg-login {
    width: 100%;
    padding: 13px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 14px rgba(79, 70, 229, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: .01em;
}

.vg-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, .4);
}

.vg-login:active {
    transform: translateY(0);
}

.vg-footer-text {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-mid);
}

.vg-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition);
}

.vg-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.vg-terms {
    text-align: center;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 14px;
    line-height: 1.6;
}

.vg-terms a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.vg-strength-bar {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    margin-bottom: 2px;
}

.vg-strength-seg {
    flex: 1;
    height: 3px;
    border-radius: 99px;
    background: var(--border-color);
    transition: background .3s;
}

.vg-strength-label {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 10px;
}

.demo-btns {
    display: flex;
    gap: 12px;
}

.demo-btn {
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform .2s, box-shadow .2s;
}

.demo-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, .35);
}

.demo-btn-outline {
    background: var(--bg-card);
    color: var(--primary);
    border: 1.5px solid var(--border-color);
}

.demo-btn:hover {
    transform: translateY(-2px);
}

/* HERO SECTION */
.hero-section,
.hero-section * {
    font-family: 'DM Sans', sans-serif;
}

.hero-section h1,
.hero-section .hero-stat-num,
.hero-section .hvc-mini-num {
    font-family: 'Bricolage Grotesque', sans-serif;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #050818;
    padding: calc(var(--header-h) + 32px) 0 80px;
}

[data-theme="dark"] .hero-section {
    background: #030610;
}

.hero-bg-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 60% -10%, rgba(79, 70, 229, .32) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 100% 80%, rgba(6, 182, 212, .18) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 0% 100%, rgba(129, 140, 248, .14) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 20% 30%, rgba(6, 182, 212, .10) 0%, transparent 50%);
    animation: meshShift 14s ease-in-out infinite alternate;
}

@keyframes meshShift {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    100% {
        opacity: .85;
        transform: scale(1.04) translateY(-12px);
    }
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 70, 229, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, .06) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
}

.hero-floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .35;
}

.hero-shape-1 {
    width: 520px;
    height: 520px;
    top: -180px;
    right: -100px;
    background: radial-gradient(circle, #4f46e5 0%, #3730a3 60%, transparent 100%);
    animation: floatA 9s ease-in-out infinite;
}

.hero-shape-2 {
    width: 360px;
    height: 360px;
    bottom: -100px;
    left: -80px;
    background: radial-gradient(circle, #06b6d4 0%, #0891b2 60%, transparent 100%);
    animation: floatB 11s ease-in-out infinite;
}

.hero-shape-3 {
    width: 260px;
    height: 260px;
    top: 40%;
    left: 38%;
    background: radial-gradient(circle, #818cf8 0%, transparent 70%);
    animation: floatC 13s ease-in-out infinite;
    opacity: .18;
}

@keyframes floatA {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, 30px) scale(1.06);
    }
}

@keyframes floatB {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -25px) scale(1.05);
    }
}

@keyframes floatC {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-15px, 20px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 28px;
    animation: slideInLeft .8s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 70, 229, .15);
    border: 1px solid rgba(129, 140, 248, .3);
    color: #a5b4fc;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .02em;
    padding: 7px 16px 7px 10px;
    border-radius: 100px;
    width: fit-content;
    backdrop-filter: blur(8px);
}

.hero-badge-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, .25);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(74, 222, 128, .25);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(74, 222, 128, .08);
    }
}

.hero-title {
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
    color: #f1f5f9;
    margin: 0;
    animation: slideInLeft .8s .1s cubic-bezier(.22, 1, .36, 1) both;
}

.gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #06b6d4 55%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

.hero-subtitle {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0;
    max-width: 480px;
    animation: slideInLeft .8s .18s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    animation: slideInLeft .8s .26s cubic-bezier(.22, 1, .36, 1) both;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(129, 140, 248, .4),
        0 8px 24px rgba(79, 70, 229, .4),
        0 2px 6px rgba(79, 70, 229, .3);
    transition: transform .2s cubic-bezier(.34, 1.56, .64, 1),
        box-shadow .2s ease,
        filter .2s ease;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .2s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 0 0 1px rgba(129, 140, 248, .5),
        0 14px 32px rgba(79, 70, 229, .5),
        0 4px 12px rgba(79, 70, 229, .3);
    filter: brightness(1.08);
}

.btn-hero-primary:hover::before {
    opacity: 1;
}

.btn-hero-primary:active {
    transform: translateY(0) scale(.98);
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, .06);
    color: #e2e8f0;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 26px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .12);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background .2s ease,
        border-color .2s ease,
        transform .2s cubic-bezier(.34, 1.56, .64, 1);
}

.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .22);
    transform: translateY(-2px);
    color: #fff;
}

.btn-hero-ghost:active {
    transform: translateY(0);
}

.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 8px;
    animation: slideInLeft .8s .34s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
}

.hero-stat+.hero-stat::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, .1);
}

.hero-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -.02em;
    background: linear-gradient(135deg, #fff 40%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 400;
    letter-spacing: .01em;
}

.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight .8s .12s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-visual-card {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 23, 42, .7);
    border: 1px solid rgba(129, 140, 248, .2);
    border-radius: 24px;
    padding: 24px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .04),
        0 32px 80px rgba(0, 0, 0, .5),
        0 8px 24px rgba(79, 70, 229, .15),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    position: relative;
    z-index: 1;
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-visual-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(129, 140, 248, .05) 0%, transparent 50%);
    pointer-events: none;
}

.hvc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.hvc-dots {
    display: flex;
    gap: 5px;
}

.hvc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.hvc-dot:first-child {
    background: #ef4444;
}

.hvc-dot:nth-child(2) {
    background: #f59e0b;
}

.hvc-dot:nth-child(3) {
    background: #22c55e;
}

.hvc-title {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, .5);
    letter-spacing: .01em;
}

.hvc-course-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.hvc-course-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    padding: 12px 14px;
    transition: background .2s, border-color .2s, transform .2s;
    cursor: default;
}

.hvc-course-item:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(129, 140, 248, .25);
    transform: translateX(3px);
}

.hvc-course-item:nth-child(1) {
    animation: itemIn .6s .5s both;
}

.hvc-course-item:nth-child(2) {
    animation: itemIn .6s .65s both;
}

.hvc-course-item:nth-child(3) {
    animation: itemIn .6s .8s both;
}

@keyframes itemIn {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hvc-course-thumb {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.hvc-course-info {
    overflow: hidden;
    min-width: 0;
}

.hvc-course-name {
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.hvc-course-meta {
    font-size: 11.5px;
    color: #64748b;
}

.hvc-progress-bar {
    width: 56px;
    height: 5px;
    background: rgba(255, 255, 255, .1);
    border-radius: 100px;
    overflow: hidden;
    flex-shrink: 0;
}

.hvc-progress-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    animation: fillBar 1.2s cubic-bezier(.22, 1, .36, 1) both;
    transform-origin: left;
}

.hvc-progress-fill:nth-child(1) {
    animation-delay: .7s;
}

.hvc-progress-fill:nth-child(2) {
    animation-delay: .85s;
}

.hvc-progress-fill:nth-child(3) {
    animation-delay: 1s;
}

@keyframes fillBar {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.hvc-bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding-top: 16px;
}

.hvc-mini-card {
    background: rgba(79, 70, 229, .12);
    border: 1px solid rgba(79, 70, 229, .2);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    transition: background .2s, border-color .2s, transform .2s;
}

.hvc-mini-card:hover {
    background: rgba(79, 70, 229, .2);
    border-color: rgba(79, 70, 229, .35);
    transform: translateY(-2px);
}

.hvc-mini-num {
    font-size: 22px;
    font-weight: 700;
    color: #818cf8;
    letter-spacing: -.02em;
    line-height: 1;
    margin-bottom: 4px;
}

.hvc-mini-label {
    font-size: 10.5px;
    color: #64748b;
    font-weight: 400;
    line-height: 1.3;
}

.hero-float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, .85);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 100px;
    padding: 10px 18px 10px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, .35),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    white-space: nowrap;
    z-index: 3;
}

.hero-float-badge-1 {
    top: -20px;
    left: -32px;
    animation: badgeFloat1 5s ease-in-out infinite;
}

.hero-float-badge-2 {
    bottom: -16px;
    right: -24px;
    animation: badgeFloat2 6s ease-in-out infinite;
}

@keyframes badgeFloat1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(-2deg);
    }

    50% {
        transform: translate(6px, -8px) rotate(1deg);
    }
}

@keyframes badgeFloat2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(1deg);
    }

    50% {
        transform: translate(-6px, -6px) rotate(-2deg);
    }
}

.hero-float-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 56px;
        text-align: center;
    }

    .hero-left {
        align-items: center;
    }

    .hero-subtitle {
        text-align: center;
    }

    .hero-stats-row {
        justify-content: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-right {
        justify-content: center;
    }

    .hero-float-badge-1 {
        left: 0;
    }

    .hero-float-badge-2 {
        right: 0;
    }
}

@media (max-width: 640px) {
    .hero-content {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-stats-row {
        gap: 20px;
    }

    .hero-float-badge {
        display: none;
    }

    .hero-visual-card {
        padding: 18px;
    }

    .hvc-course-item {
        grid-template-columns: 36px 1fr;
    }

    .hvc-progress-bar {
        display: none;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.hero-visual-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(105deg,
            transparent 35%,
            rgba(129, 140, 248, .06) 50%,
            transparent 65%);
    background-size: 200% auto;
    animation: shimmer 6s linear infinite;
    pointer-events: none;
}

.hero-content--centered {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 760px;
}

.hero-content--centered .hero-left {
    align-items: center;
}

.hero-content--centered .hero-subtitle {
    text-align: center;
}

.hero-content--centered .hero-stats-row {
    justify-content: center;
}

.hero-content--centered .hero-cta-group {
    justify-content: center;
}

/* ── CATEGORIES SECTION ── */
.categories-section {
    padding: 72px 5% 88px;
    background: var(--bg-main);
    position: relative;
    overflow: hidden;
}

.categories-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 40% at 90% 0%, rgba(99, 102, 241, .13) 0%, transparent 60%),
        radial-gradient(ellipse 40% 35% at 5% 95%, rgba(6, 182, 212, .09) 0%, transparent 60%);
    pointer-events: none;
}

.section-container {
    max-width: 1240px;
    margin: auto;
    position: relative;
}

.section-head {
    text-align: center;
    margin-bottom: 52px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    padding: 6px 14px;
    background: rgba(99, 102, 241, .10);
    color: var(--primary);
    border-radius: 40px;
    border: 1px solid rgba(99, 102, 241, .22);
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.14;
    margin-bottom: 12px;
    letter-spacing: -.02em;
}

.section-title span {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    max-width: 500px;
    margin: auto;
    color: var(--text-mid);
    font-size: 15px;
    line-height: 1.75;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cat-card {
    text-decoration: none;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1.5px solid rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: column;
    transition:
        transform .30s cubic-bezier(.34, 1.56, .64, 1),
        box-shadow .25s ease,
        border-color .25s ease;
    opacity: 0;
    animation: catRiseIn .55s cubic-bezier(.22, 1, .36, 1) forwards;
}

.cat-card:nth-child(1) {
    animation-delay: .04s
}

.cat-card:nth-child(2) {
    animation-delay: .11s
}

.cat-card:nth-child(3) {
    animation-delay: .18s
}

.cat-card:nth-child(4) {
    animation-delay: .25s
}

.cat-card:nth-child(5) {
    animation-delay: .32s
}

.cat-card:nth-child(6) {
    animation-delay: .39s
}

.cat-card:nth-child(7) {
    animation-delay: .46s
}

.cat-card:nth-child(8) {
    animation-delay: .53s
}

@keyframes catRiseIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 56px rgba(0, 0, 0, .13), 0 6px 18px rgba(0, 0, 0, .07);
    border-color: var(--c-border, rgba(99, 102, 241, .4));
}

.cat-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex-shrink: 0;
}

.cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s cubic-bezier(.25, 1, .5, 1);
}

.cat-card:hover .cat-img-wrap img {
    transform: scale(1.08);
}

.cat-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: var(--icon-bg, rgba(99, 102, 241, .1));
    color: var(--icon-color, #4f46e5);
}

.cat-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent);
    pointer-events: none;
}

.cat-badge {
    position: absolute;
    bottom: 10px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 30px;
    background: var(--badge-bg, rgba(79, 70, 229, .85));
    color: #fff;
    backdrop-filter: blur(6px);
}

.cat-info {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.cat-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent-gradient, linear-gradient(90deg, #6366f1, #818cf8));
    border-radius: 2px;
    opacity: .5;
}

.cat-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.3;
}

.cat-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.cat-count {
    font-size: 11.5px;
    color: var(--text-mid);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cat-count i {
    font-size: 10px;
    color: var(--icon-color, #4f46e5);
}

.cat-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 11px;
    border-top: 1px solid rgba(0, 0, 0, .06);
    margin-top: auto;
}

.cat-cta-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--icon-color, #4f46e5);
}

.cat-arrow {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--icon-bg, rgba(99, 102, 241, .1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--icon-color, #4f46e5);
    transition: background .22s, color .22s, transform .28s cubic-bezier(.34, 1.56, .64, 1);
}

.cat-card:hover .cat-arrow {
    background: var(--icon-color, #4f46e5);
    color: #fff;
    transform: translateX(2px);
}

.cat-card[data-t="indigo"] {
    --icon-bg: rgba(99, 102, 241, .12);
    --icon-color: #4f46e5;
    --badge-bg: rgba(79, 70, 229, .82);
    --c-border: rgba(99, 102, 241, .4);
    --accent-gradient: linear-gradient(90deg, #6366f1, #818cf8)
}

.cat-card[data-t="rose"] {
    --icon-bg: rgba(244, 63, 94, .11);
    --icon-color: #e11d48;
    --badge-bg: rgba(225, 29, 72, .82);
    --c-border: rgba(244, 63, 94, .38);
    --accent-gradient: linear-gradient(90deg, #f43f5e, #fb7185)
}

.cat-card[data-t="amber"] {
    --icon-bg: rgba(245, 158, 11, .12);
    --icon-color: #d97706;
    --badge-bg: rgba(217, 119, 6, .82);
    --c-border: rgba(245, 158, 11, .45);
    --accent-gradient: linear-gradient(90deg, #f59e0b, #fcd34d)
}

.cat-card[data-t="green"] {
    --icon-bg: rgba(34, 197, 94, .11);
    --icon-color: #16a34a;
    --badge-bg: rgba(22, 163, 74, .80);
    --c-border: rgba(34, 197, 94, .4);
    --accent-gradient: linear-gradient(90deg, #22c55e, #86efac)
}

.cat-card[data-t="cyan"] {
    --icon-bg: rgba(6, 182, 212, .11);
    --icon-color: #0891b2;
    --badge-bg: rgba(8, 145, 178, .80);
    --c-border: rgba(6, 182, 212, .4);
    --accent-gradient: linear-gradient(90deg, #06b6d4, #67e8f9)
}

.cat-card[data-t="purple"] {
    --icon-bg: rgba(168, 85, 247, .11);
    --icon-color: #9333ea;
    --badge-bg: rgba(147, 51, 234, .80);
    --c-border: rgba(168, 85, 247, .4);
    --accent-gradient: linear-gradient(90deg, #a855f7, #d8b4fe)
}

.cat-card[data-t="orange"] {
    --icon-bg: rgba(249, 115, 22, .11);
    --icon-color: #ea580c;
    --badge-bg: rgba(234, 88, 12, .80);
    --c-border: rgba(249, 115, 22, .4);
    --accent-gradient: linear-gradient(90deg, #f97316, #fdba74)
}

.cat-card[data-t="teal"] {
    --icon-bg: rgba(20, 184, 166, .11);
    --icon-color: #0d9488;
    --badge-bg: rgba(13, 148, 136, .80);
    --c-border: rgba(20, 184, 166, .4);
    --accent-gradient: linear-gradient(90deg, #14b8a6, #5eead4)
}

@media (max-width: 1060px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-title {
        font-size: 34px;
    }
}

@media (max-width: 720px) {
    .categories-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 460px) {
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .section-title {
        font-size: 24px;
    }
}

/* COURSES SECTION */
.courses-section {
    padding: 72px 0;
    background: var(--bg-main);
    position: relative;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
}

.courses-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(79, 70, 229, .08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.courses-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(6, 182, 212, .07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 16px;
    flex-wrap: wrap;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(79, 70, 229, .1), rgba(129, 140, 248, .1));
    border: 1px solid rgba(79, 70, 229, .2);
    color: var(--primary);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    letter-spacing: .3px;
    margin-bottom: 14px;
}

.section-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
}

.section-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(79, 70, 229, .3);
}

.btn-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, .4);
    color: #fff;
}

.btn-view-all i {
    transition: transform var(--transition);
}

.btn-view-all:hover i {
    transform: translateX(3px);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.filter-tab {
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1.5px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-mid);
    font-family: 'Sora', sans-serif;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
}

.course-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, .2);
    color: inherit;
    text-decoration: none;
}

.course-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.course-thumb img,
.thumb-gradient {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

.thumb-gradient {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.course-card:hover .thumb-gradient,
.course-card:hover .course-thumb img {
    transform: scale(1.06);
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, .7));
    opacity: 0;
    transition: opacity var(--transition);
}

.course-card:hover .thumb-overlay {
    opacity: 1;
}

.level-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    font-family: 'Sora', sans-serif;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.badge-beginner {
    background: rgba(34, 197, 94, .15);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, .3);
}

.badge-intermediate {
    background: rgba(245, 158, 11, .15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, .3);
}

.badge-advanced {
    background: rgba(239, 68, 68, .15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, .3);
}

.badge-free {
    background: rgba(6, 182, 212, .15);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, .3);
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
}

.course-card:hover .wishlist-btn {
    opacity: 1;
}

.wishlist-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.play-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.8);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(79, 70, 229, .4);
}

.course-card:hover .play-btn {
    opacity: 1;
    transform: scale(1);
}

.popular-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    letter-spacing: .5px;
    padding: 5px 12px 5px 16px;
    text-transform: uppercase;
    clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%);
    z-index: 2;
}

.course-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--primary);
    font-family: 'Sora', sans-serif;
}

.course-title {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.instructor-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inst-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    flex-shrink: 0;
}

.inst-name {
    font-size: 12px;
    color: var(--text-mid);
    font-weight: 500;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stars {
    display: flex;
    gap: 1px;
}

.star-filled,
.star-half {
    color: var(--warning);
    font-size: 12px;
}

.rating-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Sora', sans-serif;
}

.rating-count {
    font-size: 12px;
    color: var(--text-light);
}

.meta-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-mid);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 3px 8px;
    font-weight: 500;
}

.card-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.price-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-free {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    background: linear-gradient(135deg, var(--secondary), #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-paid {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    color: var(--text-dark);
}

.price-original {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 4px;
}

.action-btns {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-enroll {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-enroll-free {
    background: linear-gradient(135deg, rgba(6, 182, 212, .1), rgba(6, 182, 212, .15));
    color: #0891b2;
    border: 1.5px solid rgba(6, 182, 212, .3) !important;
}

.btn-enroll-free:hover {
    background: rgba(6, 182, 212, .2);
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, .3);
}

.btn-add-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, .4);
}

.btn-remove-cart {
    background:red;
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, .3);
}

.btn-remove-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, .4);
}

.btn-preview {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-mid);
    cursor: pointer;
    transition: var(--transition);
}

.btn-preview:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, .05);
}

.course-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, .6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.course-modal-overlay.open {
    display: flex;
}

.course-modal-box {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    animation: courseModalSlideUp .25s cubic-bezier(.4, 0, .2, 1);
}

@keyframes courseModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-modal-thumb {
    height: 220px;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.course-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-dark);
    z-index: 2;
}

.course-modal-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.course-modal-body {
    padding: 28px;
}

.modal-cat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.modal-course-title {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text-dark);
}

.modal-course-desc {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 20px;
}

.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.modal-stat-card {
    background: var(--bg-main);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
}

.modal-stat-val {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    color: var(--text-dark);
}

.modal-stat-label {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
    font-weight: 500;
}

.modal-includes-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-family: 'Sora', sans-serif;
}

.modal-includes-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.modal-include-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-mid);
}

.modal-check-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(34, 197, 94, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
    color: var(--success);
}

.modal-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-course-price {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    color: var(--text-dark);
}

.modal-course-price.free {
    background: linear-gradient(135deg, var(--secondary), #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-modal-enroll {
    flex: 1;
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(79, 70, 229, .3);
}

.btn-modal-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, .4);
}

@media (max-width: 768px) {
    .courses-section {
        padding: 48px 0;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .section-head-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 0 16px;
    }

    .course-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .action-btns {
        width: 100%;
        justify-content: flex-end;
    }

    .modal-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .course-modal-body {
        padding: 20px;
    }
}

/* ── STATS SECTION ── */
.stats-section {
    position: relative;
    width: 100%;
    padding: 80px 24px;
    background: var(--bg-main);
    overflow: hidden;
}

.stats-section::before,
.stats-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.stats-section::before {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(79, 70, 229, .13) 0%, transparent 70%);
    top: -120px;
    left: -80px;
}

.stats-section::after {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(6, 182, 212, .11) 0%, transparent 70%);
    bottom: -100px;
    right: -60px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(79, 70, 229, .08);
    border: 1px solid rgba(79, 70, 229, .18);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.section-eyebrow i {
    font-size: 11px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 14px;
    text-align: center;
}

.section-title span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-mid);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.65;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px 24px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    cursor: default;
    animation: countUp .5s cubic-bezier(.4, 0, .2, 1) both;
}

.stat-item:nth-child(1) {
    animation-delay: .08s;
}

.stat-item:nth-child(2) {
    animation-delay: .18s;
}

.stat-item:nth-child(3) {
    animation-delay: .28s;
}

.stat-item:nth-child(4) {
    animation-delay: .38s;
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.stat-item::after {
    content: '';
    position: absolute;
    inset: 60% 10% -20px;
    background: radial-gradient(ellipse at center, rgba(79, 70, 229, .08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, .25);
}

.stat-item:hover::before,
.stat-item:hover::after {
    opacity: 1;
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: relative;
    transition: transform var(--transition);
}

.stat-item:hover .stat-icon {
    transform: scale(1.08);
}

.stat-item:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, rgba(79, 70, 229, .12), rgba(79, 70, 229, .04));
    color: var(--primary);
    box-shadow: 0 0 0 1px rgba(79, 70, 229, .15), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.stat-item:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, rgba(6, 182, 212, .12), rgba(6, 182, 212, .04));
    color: var(--secondary);
    box-shadow: 0 0 0 1px rgba(6, 182, 212, .15), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.stat-item:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, .13), rgba(245, 158, 11, .04));
    color: var(--warning);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, .18), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.stat-item:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, .12), rgba(34, 197, 94, .04));
    color: var(--success);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, .15), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.stat-number {
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -.02em;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.stat-item:nth-child(1) .stat-number {
    color: var(--primary);
}

.stat-item:nth-child(2) .stat-number {
    color: var(--secondary);
}

.stat-item:nth-child(3) .stat-number {
    color: var(--warning);
}

.stat-item:nth-child(4) .stat-number {
    color: var(--success);
}

.stat-number span {
    font-size: 60%;
    font-weight: 700;
    opacity: .7;
}

.stat-divider {
    width: 28px;
    height: 3px;
    border-radius: 99px;
    margin: 12px auto 14px;
    transition: width var(--transition);
}

.stat-item:hover .stat-divider {
    width: 44px;
}

.stat-item:nth-child(1) .stat-divider {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.stat-item:nth-child(2) .stat-divider {
    background: linear-gradient(90deg, var(--secondary), rgba(6, 182, 212, .4));
}

.stat-item:nth-child(3) .stat-divider {
    background: linear-gradient(90deg, var(--warning), rgba(245, 158, 11, .4));
}

.stat-item:nth-child(4) .stat-divider {
    background: linear-gradient(90deg, var(--success), rgba(34, 197, 94, .4));
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-mid);
    letter-spacing: .02em;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .stats-section {
        padding: 60px 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-item {
        padding: 28px 20px 24px;
    }
}

/* ── HOW IT WORKS SECTION ── */
.howitworks-section {
    width: 100%;
    padding: 96px 24px;
    position: relative;
    overflow: hidden;
    background: var(--bg-main);
}

.howitworks-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 15% 40%, rgba(79, 70, 229, .07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 85% 60%, rgba(6, 182, 212, .06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.section-head {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(79, 70, 229, .08);
    border: 1px solid rgba(79, 70, 229, .18);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -.02em;
}

.section-title span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-mid);
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.7;
}

.hiw-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

.hiw-steps::before {
    content: '';
    position: absolute;
    top: 52px;
    left: calc(16.67% + 30px);
    right: calc(16.67% + 30px);
    height: 2px;
    background: linear-gradient(90deg,
            rgba(79, 70, 229, .3) 0%,
            rgba(6, 182, 212, .3) 50%,
            rgba(34, 197, 94, .3) 100%);
    z-index: 0;
}

.hiw-steps::after {
    content: '';
    position: absolute;
    top: 48px;
    left: calc(16.67% + 30px);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(79, 70, 229, .5);
    z-index: 2;
    animation: flowDot 3s ease-in-out infinite;
}

@keyframes flowDot {
    0% {
        left: calc(16.67% + 30px);
        opacity: 1;
        background: var(--primary);
    }

    45% {
        left: calc(50% - 3px);
        opacity: 1;
        background: var(--secondary);
    }

    90% {
        left: calc(83.33% - 30px);
        opacity: 1;
        background: var(--success);
    }

    100% {
        left: calc(83.33% - 30px);
        opacity: 0;
    }
}

.hiw-step {
    position: relative;
    z-index: 1;
    padding: 0 28px;
    text-align: center;
    animation: fadeUp .5s cubic-bezier(.4, 0, .2, 1) both;
}

.hiw-step:nth-child(1) {
    animation-delay: .1s;
}

.hiw-step:nth-child(2) {
    animation-delay: .22s;
}

.hiw-step:nth-child(3) {
    animation-delay: .34s;
}

.hiw-step-num {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--primary);
    background: rgba(79, 70, 229, .08);
    border: 1px solid rgba(79, 70, 229, .2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.hiw-step-icon {
    width: 72px;
    height: 72px;
    margin: 13px auto 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

.hiw-step:hover .hiw-step-icon {
    transform: translateY(-4px) scale(1.06);
}

.hiw-step:nth-child(1) .hiw-step-icon {
    background: linear-gradient(135deg, rgba(79, 70, 229, .15), rgba(79, 70, 229, .05));
    color: var(--primary);
    box-shadow: 0 0 0 8px rgba(79, 70, 229, .06), 0 8px 24px rgba(79, 70, 229, .18);
}

.hiw-step:nth-child(2) .hiw-step-icon {
    background: linear-gradient(135deg, rgba(6, 182, 212, .15), rgba(6, 182, 212, .05));
    color: var(--secondary);
    box-shadow: 0 0 0 8px rgba(6, 182, 212, .06), 0 8px 24px rgba(6, 182, 212, .18);
}

.hiw-step:nth-child(3) .hiw-step-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, .15), rgba(34, 197, 94, .05));
    color: var(--success);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, .06), 0 8px 24px rgba(34, 197, 94, .18);
}

.hiw-step-body {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px 24px 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
}

.hiw-step-body::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    opacity: 0;
    transition: opacity var(--transition);
}

.hiw-step:nth-child(1) .hiw-step-body::before {
    background: linear-gradient(90deg, var(--primary), var(--primary-light, #818cf8));
}

.hiw-step:nth-child(2) .hiw-step-body::before {
    background: linear-gradient(90deg, var(--secondary), rgba(6, 182, 212, .4));
}

.hiw-step:nth-child(3) .hiw-step-body::before {
    background: linear-gradient(90deg, var(--success), rgba(34, 197, 94, .4));
}

.hiw-step:hover .hiw-step-body {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.hiw-step:nth-child(1):hover .hiw-step-body {
    border-color: rgba(79, 70, 229, .25);
}

.hiw-step:nth-child(2):hover .hiw-step-body {
    border-color: rgba(6, 182, 212, .25);
}

.hiw-step:nth-child(3):hover .hiw-step-body {
    border-color: rgba(34, 197, 94, .25);
}

.hiw-step:hover .hiw-step-body::before {
    opacity: 1;
}

.hiw-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.hiw-step:nth-child(1) .hiw-step-pill {
    color: var(--primary);
    background: rgba(79, 70, 229, .08);
}

.hiw-step:nth-child(2) .hiw-step-pill {
    color: var(--secondary);
    background: rgba(6, 182, 212, .08);
}

.hiw-step:nth-child(3) .hiw-step-pill {
    color: var(--success);
    background: rgba(34, 197, 94, .08);
}

.hiw-step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.hiw-step-desc {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.7;
}

.hiw-arrow {
    display: none;
}

.hiw-cta {
    margin-top: 56px;
    text-align: center;
}

.hiw-cta-inner {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 18px 32px;
    box-shadow: var(--shadow-sm);
}

.hiw-cta-text {
    font-size: 15px;
    color: var(--text-mid);
    font-weight: 500;
}

.hiw-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark, #3730a3) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 14px rgba(79, 70, 229, .35);
    font-family: inherit;
    text-decoration: none;
}

.hiw-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, .4);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 860px) {
    .hiw-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hiw-steps::before,
    .hiw-steps::after {
        display: none;
    }

    .hiw-step {
        padding: 0;
    }

    .hiw-cta-inner {
        flex-direction: column;
        gap: 12px;
    }
}

/* ── CTA SECTION ── */
.cta-section {
    width: 100%;
    padding: 80px 24px;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.cta-card {
    position: relative;
    border-radius: 28px;
    padding: 72px 64px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;

    background: linear-gradient(135deg,
            #3730a3 0%,
            #4f46e5 35%,
            #6d5ffa 60%,
            #06b6d4 100%);
    box-shadow:
        0 32px 80px rgba(79, 70, 229, .38),
        0 8px 24px rgba(79, 70, 229, .22),
        inset 0 1px 0 rgba(255, 255, 255, .15);
}

.cta-card::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .1) 0%, transparent 65%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.cta-card::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, .25) 0%, transparent 65%);
    bottom: -120px;
    left: 20%;
    pointer-events: none;
}

.cta-card-grain {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: .4;
    z-index: 0;
}

.cta-badge {
    position: absolute;
    top: 28px;
    left: 40px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    padding: 5px 14px;
    border-radius: 999px;
    z-index: 2;
}

.cta-badge i {
    font-size: 10px;
    color: #fde047;
}

.cta-chips {
    position: absolute;
    top: 24px;
    right: 40px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.cta-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
}

.cta-chip i {
    font-size: 11px;
    color: #86efac;
}

.cta-chip:nth-child(2) i {
    color: #fde047;
}

.cta-content {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
}

.cta-title {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -.025em;
}

.cta-title span {
    position: relative;
    display: inline-block;
}

.cta-title span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .45);
}

.cta-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, .75);
    line-height: 1.72;
    max-width: 420px;
}

.cta-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.cta-avatars {
    display: flex;
}

.cta-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .4);
    background: linear-gradient(135deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
    margin-left: -8px;
    backdrop-filter: blur(4px);
}

.cta-avatars .cta-avatar:first-child {
    margin-left: 0;
}

.cta-trust-text {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, .7);
}

.cta-trust-text strong {
    color: #fff;
    font-weight: 700;
}

.cta-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
}

.btn-cta-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: var(--primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .8);
    white-space: nowrap;
    min-width: 220px;
}

.btn-cta-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .22);
    background: #f8faff;
}

.btn-cta-white i {
    font-size: 14px;
    color: var(--primary);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .25);
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
    backdrop-filter: blur(8px);
    white-space: nowrap;
    min-width: 220px;
}

.btn-cta-outline:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .4);
}

.btn-cta-outline i {
    font-size: 14px;
}

@keyframes ctaFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-card {
    animation: ctaFadeUp .6s cubic-bezier(.4, 0, .2, 1) both;
}

.cta-content {
    animation: ctaFadeUp .6s cubic-bezier(.4, 0, .2, 1) .1s both;
}

.cta-buttons {
    animation: ctaFadeUp .6s cubic-bezier(.4, 0, .2, 1) .22s both;
}

@media (max-width: 860px) {
    .cta-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 56px 36px 48px;
        gap: 36px;
    }

    .cta-buttons {
        width: 100%;
    }

    .btn-cta-white,
    .btn-cta-outline {
        min-width: unset;
        width: 100%;
    }

    .cta-chips {
        display: none;
    }
}

@media (max-width: 500px) {
    .cta-card {
        padding: 64px 24px 36px;
    }

    .cta-badge {
        left: 24px;
    }
}

/* ══ TESTIMONIALS SECTION ══ */
.testimonials-section {
    width: 100%;
    padding: 96px 0 80px;
    position: relative;
    overflow: hidden;
    background: var(--bg-main);
}

.testimonials-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 10% 30%, rgba(79, 70, 229, .07) 0%, transparent 60%),
        radial-gradient(ellipse 45% 55% at 90% 70%, rgba(6, 182, 212, .06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.testimonials-section::after {
    content: '"';
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 320px;
    font-weight: 800;
    line-height: 1;
    color: rgba(79, 70, 229, .04);
    pointer-events: none;
    z-index: 0;
    font-family: Georgia, serif;
    user-select: none;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.section-head {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(79, 70, 229, .08);
    border: 1px solid rgba(79, 70, 229, .18);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -.02em;
}

.section-title span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-mid);
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.7;
}

.testi-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 52px;
    flex-wrap: wrap;
}

.testi-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 8px 18px;
    box-shadow: var(--shadow-sm);
}

.testi-summary-stars {
    display: flex;
    gap: 2px;
    color: #f59e0b;
    font-size: 13px;
}

.testi-summary-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.testi-summary-sub {
    font-size: 12px;
    color: var(--text-mid);
    font-weight: 400;
}

.testimonials-track-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 2;
}

.testimonials-track-wrap::before,
.testimonials-track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 160px;
    z-index: 3;
    pointer-events: none;
}

.testimonials-track-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main) 0%, transparent 100%);
}

.testimonials-track-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main) 0%, transparent 100%);
}

.testimonials-track {
    display: flex;
    gap: 20px;
    padding: 16px 0 24px;
    width: max-content;
    animation: marqueeScroll 38s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testi-card {
    width: 320px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px 26px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.testi-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 3px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.testi-card::after {
    content: '';
    position: absolute;
    inset: 50% 0 -30px;
    background: radial-gradient(ellipse at center, rgba(79, 70, 229, .05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.testi-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, .2);
}

.testi-card:hover::before,
.testi-card:hover::after {
    opacity: 1;
}

.testi-stars {
    display: flex;
    gap: 3px;
    color: #f59e0b;
    font-size: 13px;
    margin-bottom: 14px;
}

.testi-quote-icon {
    position: absolute;
    top: 22px;
    right: 22px;
    font-size: 28px;
    color: rgba(79, 70, 229, .1);
    line-height: 1;
    transition: color var(--transition);
}

.testi-card:hover .testi-quote-icon {
    color: rgba(79, 70, 229, .18);
}

.testi-text {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.72;
    margin-bottom: 22px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.testi-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    position: relative;
}

.testi-card:nth-child(1) .testi-avatar,
.testi-card:nth-child(9) .testi-avatar {
    background: linear-gradient(135deg, #4f46e5, #818cf8);
}

.testi-card:nth-child(2) .testi-avatar,
.testi-card:nth-child(10) .testi-avatar {
    background: linear-gradient(135deg, #06b6d4, #0e7490);
}

.testi-card:nth-child(3) .testi-avatar,
.testi-card:nth-child(11) .testi-avatar {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.testi-card:nth-child(4) .testi-avatar,
.testi-card:nth-child(12) .testi-avatar {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.testi-card:nth-child(5) .testi-avatar,
.testi-card:nth-child(13) .testi-avatar {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.testi-card:nth-child(6) .testi-avatar,
.testi-card:nth-child(14) .testi-avatar {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.testi-card:nth-child(7) .testi-avatar,
.testi-card:nth-child(15) .testi-avatar {
    background: linear-gradient(135deg, #06b6d4, #4f46e5);
}

.testi-card:nth-child(8) .testi-avatar,
.testi-card:nth-child(16) .testi-avatar {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.testi-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.testi-role {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.testi-verified {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
}

.testi-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.testi-bottom-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-mid);
    font-weight: 500;
}

.testi-bottom-item i {
    color: var(--primary);
    font-size: 14px;
}

@media (max-width: 600px) {
    .testi-card {
        width: 270px;
    }

    .testimonials-track-wrap::before,
    .testimonials-track-wrap::after {
        width: 60px;
    }

    .testi-bottom {
        gap: 16px;
    }
}

/* == COURSE LIST PAGE == */
.courses-filter-bar {
    margin: 28px 0 32px;
    position: relative;
}

.courses-filter-bar form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 10px 14px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition);
}

.courses-filter-bar form:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .10), var(--shadow-md);
}

.filter-search-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1 1 200px;
    min-width: 160px;
    background: var(--bg-main);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0 14px;
    height: 42px;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.filter-search-wrap:focus-within {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .10);
}

.filter-search-wrap i {
    color: var(--text-light);
    font-size: 13px;
    flex-shrink: 0;
    transition: color var(--transition);
}

.filter-search-wrap:focus-within i {
    color: var(--primary);
}

.filter-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-dark);
    font-family: 'Sora', sans-serif;
    min-width: 0;
}

.filter-search-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.courses-filter-bar form::before {
    content: '';
    display: none;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    height: 42px;
    padding: 0 36px 0 14px;
    background-color: var(--bg-main);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Sora', sans-serif;
    color: var(--text-mid);
    cursor: pointer;
    transition: border-color var(--transition), background-color var(--transition),
        color var(--transition), box-shadow var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-select:hover {
    border-color: var(--primary-light);
    color: var(--text-dark);
    background-color: var(--bg-card);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    color: var(--text-dark);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .10);
}

.filter-select.is-active {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(79, 70, 229, .06);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.filter-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 16px;
    border-radius: var(--radius-lg);
    background: rgba(239, 68, 68, .08);
    border: 1.5px solid rgba(239, 68, 68, .22);
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background var(--transition), border-color var(--transition),
        transform var(--transition), box-shadow var(--transition);
}

.filter-clear-btn:hover {
    background: rgba(239, 68, 68, .15);
    border-color: var(--danger);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, .18);
}

.filter-clear-btn i {
    font-size: 11px;
}

.filter-select-wrap {
    position: relative;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .courses-filter-bar form {
        gap: 8px;
        padding: 10px 12px;
        border-radius: var(--radius-lg);
    }

    .filter-search-wrap {
        flex: 1 1 100%;
        min-width: 0;
    }

    .filter-select {
        flex: 1 1 calc(33% - 10px);
        min-width: 110px;
    }
}

@media (max-width: 600px) {
    .courses-filter-bar {
        margin: 20px 0 24px;
    }

    .courses-filter-bar form {
        padding: 10px;
        border-radius: var(--radius-md);
        gap: 8px;
    }

    .filter-search-wrap {
        flex: 1 1 100%;
        height: 44px;
    }

    .filter-select {
        flex: 1 1 calc(50% - 8px);
        height: 40px;
        font-size: 12.5px;
        padding: 0 30px 0 11px;
    }

    .filter-clear-btn {
        flex: 1 1 100%;
        justify-content: center;
        height: 40px;
        font-size: 12.5px;
    }
}

@media (max-width: 380px) {
    .filter-select {
        flex: 1 1 100%;
    }
}

[data-theme="dark"] .filter-search-wrap,
[data-theme="dark"] .filter-select {
    background-color: var(--bg-main);
    border-color: var(--border-color);
}

[data-theme="dark"] .filter-search-wrap:focus-within,
[data-theme="dark"] .filter-select:hover,
[data-theme="dark"] .filter-select:focus {
    background-color: var(--bg-card);
}

[data-theme="dark"] .filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="dark"] .filter-select.is-active {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    color: var(--primary-light);
    border-color: var(--primary-light);
    background-color: rgba(129, 140, 248, .10);
}

[data-theme="dark"] .courses-filter-bar form {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .courses-filter-bar form:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, .12), var(--shadow-md);
}

/* == PROFILE PAGE == */
.profile-page {
    min-height: calc(100vh - var(--header-h));
    background: var(--bg-main);
    padding: 48px 20px 80px;
    font-family: 'Sora', sans-serif;
}

.profile-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.profile-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeUp .5s ease both;
}

.profile-heading .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(79, 70, 229, .10);
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, .18);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.profile-hero {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeUp .5s .08s ease both;
    position: relative;
}

.profile-banner {
    height: 140px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #3730a3 0%, #4f46e5 40%, #06b6d4 100%);
}

.profile-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, .08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, .25) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(129, 140, 248, .20) 0%, transparent 40%);
}

.profile-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 15% 25%, rgba(255, 255, 255, .7) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(255, 255, 255, .5) 0%, transparent 100%),
        radial-gradient(2px 2px at 50% 20%, rgba(255, 255, 255, .6) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 70%, rgba(255, 255, 255, .4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 85% 35%, rgba(255, 255, 255, .65) 0%, transparent 100%),
        radial-gradient(1px 1px at 92% 80%, rgba(255, 255, 255, .4) 0%, transparent 100%),
        radial-gradient(2px 2px at 40% 85%, rgba(255, 255, 255, .5) 0%, transparent 100%);
}

.banner-edit-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
}

.banner-edit-btn:hover {
    background: rgba(255, 255, 255, .25);
    transform: translateY(-1px);
}

.profile-avatar-wrap {
    position: absolute;
    bottom: -44px;
    left: 36px;
    z-index: 3;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    object-fit: cover;
    box-shadow: 0 8px 28px rgba(79, 70, 229, .28);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    font-weight: 700;
    overflow: hidden;
}

.avatar-initial {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    box-shadow: 0 8px 28px rgba(79, 70, 229, .28);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: .02em;
    cursor: default;
    transition: transform var(--transition), box-shadow var(--transition);
}

.avatar-initial:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 36px rgba(79, 70, 229, .38);
}

.avatar-upload-overlay {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: rgba(15, 23, 42, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    cursor: pointer;
}

.profile-avatar-wrap:hover .avatar-upload-overlay {
    opacity: 1;
}

.avatar-upload-overlay i {
    color: #fff;
    font-size: 18px;
}

.avatar-status {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    background: var(--success);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
}

.profile-hero-body {
    padding: 56px 36px 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}


.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -.02em;
    line-height: 1.2;
    margin: 0 0 4px;
}

.profile-email-line {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-email-line i {
    font-size: 11px;
}

.profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .02em;
}

.badge-member {
    background: rgba(79, 70, 229, .10);
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, .18);
}

.badge-verified {
    background: rgba(34, 197, 94, .10);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, .20);
}

.profile-hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.btn-edit-profile {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 14px rgba(79, 70, 229, .30);
}

.btn-edit-profile:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, .38);
}

.profile-stats {
    border-top: 1.5px solid var(--border-color);
    margin: 0 36px;
    padding: 20px 0;
    display: flex;
    gap: 0;
}

.profile-stat {
    flex: 1;
    text-align: center;
    padding: 0 12px;
    border-right: 1px solid var(--border-color);
}

.profile-stat:last-child {
    border-right: none;
}

.stat-number {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: -.01em;
}

.stat-label {
    font-size: 11.5px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.profile-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    animation: fadeUp .5s .16s ease both;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px 18px;
    border-bottom: 1.5px solid var(--border-color);
    background: linear-gradient(90deg, rgba(79, 70, 229, .04) 0%, transparent 60%);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -.01em;
}

.card-title-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}

.card-header-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(79, 70, 229, .20);
    background: rgba(79, 70, 229, .06);
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.card-header-action:hover {
    background: rgba(79, 70, 229, .12);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 8px 0;
}

.info-field {
    padding: 20px 28px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    transition: background var(--transition);
    position: relative;
}

.info-field:nth-child(even) {
    border-right: none;
}

.info-field:nth-last-child(-n+2) {
    border-bottom: none;
}

.info-field:hover {
    background: var(--hover-bg);
}

.field-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.field-label i {
    font-size: 11px;
    color: var(--primary-light);
}

.field-value {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -.01em;
    line-height: 1.3;
}

.field-value.empty {
    color: var(--text-light);
    font-weight: 400;
    font-style: italic;
    font-size: 13px;
}

.gender-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.gender-male {
    background: rgba(79, 70, 229, .10);
    color: var(--primary);
}

.gender-female {
    background: rgba(236, 72, 153, .10);
    color: #ec4899;
}

.gender-other {
    background: rgba(6, 182, 212, .10);
    color: var(--secondary);
}

.profile-danger {
    background: var(--bg-card);
    border: 1.5px solid rgba(239, 68, 68, .20);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    animation: fadeUp .5s .24s ease both;
    overflow: hidden;
}

.profile-danger .card-header {
    background: linear-gradient(90deg, rgba(239, 68, 68, .04) 0%, transparent 60%);
    border-bottom-color: rgba(239, 68, 68, .12);
}

.profile-danger .card-title-icon {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
}

.danger-body {
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.danger-desc {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.6;
    max-width: 460px;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    background: rgba(239, 68, 68, .08);
    border: 1.5px solid rgba(239, 68, 68, .25);
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, .15);
    border-color: var(--danger);
    transform: translateY(-1px);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 560px;
    transform: translateY(20px) scale(.97);
    transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease;
    opacity: 0;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.open .modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px 18px;
    border-bottom: 1.5px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -.02em;
}

.modal-close {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.modal-close:hover {
    background: rgba(239, 68, 68, .08);
    border-color: rgba(239, 68, 68, .25);
    color: var(--danger);
}

.modal-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-avatar-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    border: 1.5px dashed var(--border-color);
}

.modal-avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    flex-shrink: 0;
    overflow: hidden;
}

.modal-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-info {
    flex: 1;
}

.avatar-upload-info p {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 3px;
}

.avatar-upload-info span {
    font-size: 11.5px;
    color: var(--text-light);
}

.btn-upload-photo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    border: none;
    cursor: pointer;
    margin-top: 8px;
    transition: background var(--transition);
}

.btn-upload-photo:hover {
    background: var(--primary-dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-mid);
    letter-spacing: .03em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label i {
    color: var(--primary-light);
    font-size: 11px;
}

.form-control {
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-main);
    font-size: 13.5px;
    font-family: 'Sora', sans-serif;
    font-weight: 500;
    color: var(--text-dark);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .10);
}

.form-control::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.modal-footer {
    padding: 20px 28px 24px;
    border-top: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel {
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-mid);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
}

.btn-cancel:hover {
    background: var(--hover-bg);
    border-color: var(--text-light);
}

.btn-save {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 24px;
    border-radius: var(--radius-lg);
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, .30);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-save:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, .38);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .profile-page {
        padding: 28px 14px 60px;
    }

    .profile-banner {
        height: 110px;
    }

    .profile-avatar-wrap {
        bottom: -38px;
        left: 22px;
    }

    .avatar-initial,
    .profile-avatar {
        width: 82px;
        height: 82px;
        font-size: 28px;
    }

    .avatar-status {
        width: 13px;
        height: 13px;
    }

    .profile-hero-body {
        padding: 50px 22px 20px;
    }

    .profile-name {
        font-size: 18px;
    }

    .profile-stats {
        margin: 0 22px;
    }

    .stat-number {
        font-size: 18px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-field {
        border-right: none !important;
    }

    .info-field:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--border-color);
    }

    .info-field:last-child {
        border-bottom: none;
    }

    .card-header {
        padding: 16px 20px;
    }

    .info-field {
        padding: 16px 20px;
    }

    .danger-body {
        padding: 18px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-head,
    .modal-footer {
        padding: 16px 20px;
    }
}

@media (max-width: 420px) {
    .profile-stats {
        flex-direction: column;
        gap: 0;
    }

    .profile-stat {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 12px 16px;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .profile-stat:last-child {
        border-bottom: none;
    }

    .profile-hero-actions {
        width: 100%;
    }

    .btn-edit-profile {
        flex: 1;
        justify-content: center;
    }

    .modal-avatar-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

[data-theme="dark"] .form-control {
    background: var(--bg-main);
}

[data-theme="dark"] .form-control:focus {
    background: var(--bg-card);
}

[data-theme="dark"] .modal-head,
[data-theme="dark"] .modal-box {
    background: var(--bg-card);
}

/* == ADD TO CART PAGE == */
.cart-page {
    min-height: calc(100vh - var(--header-h));
    background: var(--bg-main);
    padding: 44px 20px 80px;
    font-family: 'Sora', sans-serif;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

.cart-wrap {
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.cart-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 12px;
    flex-wrap: wrap;
    animation: cpFadeUp .45s ease both;
}

.cart-page-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -.03em;
    font-family: 'Sora', sans-serif;
    line-height: 1.1;
    margin: 0;
}

.cart-page-title span {
    color: var(--primary);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 30px;
}

.cart-item-tally {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    padding: 5px 14px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 999px;
    white-space: nowrap;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.cart-items-col {
    min-width: 0;
    width: 100%;
}

.cart-items-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: cpFadeUp .45s .06s ease both;
    width: 100%;
    box-sizing: border-box;
}

.cart-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px 16px;
    border-bottom: 1.5px solid var(--border-color);
    background: linear-gradient(90deg, rgba(79, 70, 229, .04) 0%, transparent 70%);
    flex-wrap: wrap;
    gap: 10px;
}

.cart-items-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-dark);
}

.cart-header-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
}

.cart-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(239, 68, 68, .20);
    background: rgba(239, 68, 68, .06);
    color: var(--danger);
    font-size: 11.5px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
    white-space: nowrap;
}

.cart-clear-btn:hover {
    background: rgba(239, 68, 68, .12);
    border-color: var(--danger);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition);
    position: relative;
    width: 100%;
    box-sizing: border-box;
    animation: cpFadeUp .35s ease both;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background: var(--hover-bg);
}

.cart-item:nth-child(1) {
    animation-delay: .00s;
}

.cart-item:nth-child(2) {
    animation-delay: .05s;
}

.cart-item:nth-child(3) {
    animation-delay: .10s;
}

.cart-item:nth-child(4) {
    animation-delay: .15s;
}

.cart-item:nth-child(5) {
    animation-delay: .20s;
}

.cart-item:nth-child(6) {
    animation-delay: .25s;
}

.cart-item-thumb {
    width: 88px;
    height: 64px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 12px rgba(79, 70, 229, .18);
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.cart-item:hover .cart-item-thumb img {
    transform: scale(1.06);
}

.cart-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-thumb-fallback i {
    font-size: 22px;
    color: rgba(255, 255, 255, .7);
}

.cart-type-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-cat {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-item-cat i {
    font-size: 6px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -.02em;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

.cart-item-price-col {
    text-align: right;
    flex-shrink: 0;
    min-width: 70px;
}

.cart-price-paid {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -.03em;
    font-family: 'Cormorant Garamond', serif;
    display: block;
    line-height: 1.1;
}

.cart-price-original {
    font-size: 11px;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 400;
    display: block;
    margin-top: 1px;
}

.cart-price-free {
    font-size: 14px;
    font-weight: 700;
    color: var(--success);
}

.cart-price-save {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--success);
    background: rgba(34, 197, 94, .10);
    border: 1px solid rgba(34, 197, 94, .20);
    border-radius: 999px;
    padding: 2px 6px;
    display: inline-block;
    margin-top: 3px;
    white-space: nowrap;
}

.cart-remove-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition), border-color var(--transition),
        color var(--transition), transform var(--transition);
}

.cart-remove-btn:hover {
    background: rgba(239, 68, 68, .08);
    border-color: rgba(239, 68, 68, .30);
    color: var(--danger);
    transform: scale(1.08);
}

.cart-empty {
    padding: 64px 24px;
    text-align: center;
}

.cart-empty-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(79, 70, 229, .08);
    border: 2px dashed rgba(79, 70, 229, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px;
    color: var(--primary-light);
}

.cart-empty h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px;
}

.cart-empty p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 20px;
}

.btn-browse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-lg);
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(79, 70, 229, .30);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-browse:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(79, 70, 229, .35);
}

.cart-continue-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-mid);
    text-decoration: none;
    padding: 8px 0;
    transition: color var(--transition), gap var(--transition);
}

.cart-continue-link:hover {
    color: var(--primary);
    gap: 10px;
}

.cart-summary-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: calc(var(--header-h) + 20px);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.order-summary-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: cpFadeUp .45s .14s ease both;
    width: 100%;
    box-sizing: border-box;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px 16px;
    border-bottom: 1.5px solid var(--border-color);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    background: linear-gradient(90deg, rgba(79, 70, 229, .05) 0%, transparent 70%);
}

.summary-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
}

.summary-body {
    padding: 20px 22px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 13px;
    color: var(--text-mid);
    gap: 8px;
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-row-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
    min-width: 0;
}

.summary-row-label i {
    color: var(--text-light);
    font-size: 11px;
    flex-shrink: 0;
}

.summary-row-val {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.summary-row-val.discount {
    color: var(--success);
    font-weight: 700;
}

.summary-row-val.free {
    color: var(--success);
    font-weight: 700;
}

.summary-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: linear-gradient(90deg, rgba(79, 70, 229, .06) 0%, rgba(6, 182, 212, .04) 100%);
    border-top: 2px solid var(--border-color);
    gap: 8px;
    flex-wrap: wrap;
}

.total-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    min-width: 0;
}

.total-label span {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 2px;
    white-space: nowrap;
}

.total-amount {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -.04em;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1;
    white-space: nowrap;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 20px;
    margin: 20px 22px 0;
    width: calc(100% - 44px);
    box-sizing: border-box;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(79, 70, 229, .35);
    transition: transform var(--transition), box-shadow var(--transition);
    letter-spacing: -.01em;
    position: relative;
    overflow: hidden;
}

.btn-checkout::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, .10) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .5s ease;
}

.btn-checkout:hover::before {
    transform: translateX(100%);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(79, 70, 229, .42);
    color: #fff;
    text-decoration: none;
}

.btn-checkout:active {
    transform: translateY(0) scale(.98);
}

.btn-checkout i {
    font-size: 13px;
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 14px 22px;
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    text-align: center;
}

.secure-note i {
    color: var(--success);
    font-size: 11px;
}

.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 16px 18px;
    border-top: 1px dashed var(--border-color);
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: .03em;
    text-align: center;
    text-transform: uppercase;
}

.trust-badge i {
    font-size: 16px;
    color: var(--primary-light);
}

@keyframes cpFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    .cart-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cart-summary-col {
        position: static;
        width: 100%;
    }

    .order-summary-card {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .cart-page {
        padding: 20px 12px 60px;
    }

    .cart-page-head {
        margin-bottom: 20px;
        align-items: center;
    }

    .cart-page-title {
        font-size: 20px;
    }

    .cart-page-title span {
        font-size: 22px;
    }

    .cart-item {
        padding: 14px 16px;
        gap: 12px;
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    .cart-item-thumb {
        width: 68px;
        height: 52px;
        flex-shrink: 0;
    }

    .cart-item-info {
        flex: 1;
        min-width: 0;
    }

    .cart-item-cat {
        font-size: 9.5px;
    }

    .cart-item-name {
        font-size: 12.5px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: unset;
    }

    .cart-item-price-col {
        text-align: right;
        flex-shrink: 0;
        min-width: 60px;
    }

    .cart-price-paid {
        font-size: 14px;
    }

    .cart-price-original {
        font-size: 10px;
    }

    .cart-remove-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .cart-items-header {
        padding: 12px 16px;
    }

    .summary-header {
        padding: 14px 16px;
    }

    .summary-body {
        padding: 14px 16px;
    }

    .summary-total-row {
        padding: 14px 16px;
        flex-wrap: nowrap;
    }

    .total-amount {
        font-size: 22px;
    }

    .btn-checkout {
        margin: 14px 16px 0;
        width: calc(100% - 32px);
        padding: 13px 16px;
        font-size: 13px;
    }

    .secure-note {
        padding: 12px 16px;
        font-size: 10.5px;
    }

    .trust-badges {
        padding: 12px 16px 16px;
        gap: 10px;
    }

    .trust-badge {
        font-size: 9px;
    }

    .trust-badge i {
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .cart-page {
        padding: 16px 10px 50px;
    }

    .cart-item {
        padding: 12px;
        gap: 10px;
    }

    .cart-item-thumb {
        width: 60px;
        height: 46px;
    }

    .cart-item-name {
        font-size: 12px;
    }

    .cart-price-paid {
        font-size: 13px;
    }

    .cart-item-cat {
        display: none;
    }

    .cart-type-badge {
        display: none;
    }

    .summary-row {
        font-size: 12px;
    }

    .total-amount {
        font-size: 20px;
    }

    .btn-checkout {
        font-size: 12.5px;
        padding: 12px 12px;
    }

    .trust-badges {
        gap: 8px;
    }

    .trust-badge i {
        font-size: 14px;
    }
}

/* == POLICIES PAGE == */
.policy-container {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px;
}

.policy-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.policy-card:hover {
    box-shadow: var(--shadow-lg);
}

.policy-card h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.policy-card h5 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 10px;
    color: var(--primary);
}

.policy-card p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 10px;
}

.policy-card ul {
    padding-left: 18px;
    margin-bottom: 12px;
}

.policy-card ul li {
    font-size: 14.5px;
    color: var(--text-mid);
    margin-bottom: 6px;
    line-height: 1.6;
}

.policy-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.policy-card a:hover {
    text-decoration: underline;
}

.policy-highlight {
    background: var(--hover-bg);
    padding: 12px 16px;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    margin: 16px 0;
    font-size: 14px;
    color: var(--text-mid);
}

.policy-divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}


@media (max-width: 768px) {

    .policy-container {
        padding: 20px 14px;
    }

    .policy-card {
        padding: 20px;
        border-radius: var(--radius-md);
    }

    .policy-card h1 {
        font-size: 24px;
    }

    .policy-card h5 {
        font-size: 16px;
    }

    .policy-card p,
    .policy-card ul li {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .policy-card {
        padding: 16px;
    }

    .policy-card h1 {
        font-size: 20px;
    }

    .policy-card h5 {
        font-size: 15px;
    }

    .policy-card p,
    .policy-card ul li {
        font-size: 13.5px;
    }
}


[data-theme="dark"] .policy-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .policy-highlight {
    background: var(--hover-bg);
}


.policy-card {
    animation: fadeUp .4s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* == MY COURSES PAGE == */
.my-course-page {
    background: var(--bg-main);
    min-height: 100vh;
    padding: 30px 16px;
}

.mc-container {
    max-width: 1200px;
    margin: auto;
}

.mc-header {
    margin-bottom: 25px;
}

.mc-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.mc-header span {
    color: var(--primary);
}

.mc-header p {
    color: var(--text-mid);
    margin-top: 5px;
}

.mc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mc-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.mc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.mc-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.mc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mc-thumb-fallback {
    width: 100%;
    height: 100%;
    background: var(--hover-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary);
}

.mc-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 20px;
}

.mc-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mc-category {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 5px;
}

.mc-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.mc-desc {
    font-size: 13px;
    color: var(--text-mid);
    margin-bottom: 12px;
}

.mc-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 14px;
}

.mc-btn {
    margin-top: auto;
    background: var(--primary);
    color: #fff;
    padding: 10px;
    text-align: center;
    border-radius: var(--radius-md);
    font-size: 13px;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.mc-btn:hover {
    background: var(--primary-dark);
}

.mc-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

.mc-empty i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 10px;
}

.mc-empty h3 {
    color: var(--text-dark);
}

.mc-empty p {
    color: var(--text-mid);
    margin: 10px 0;
}

.mc-browse {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
}

@media (max-width: 992px) {
    .mc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .mc-grid {
        grid-template-columns: 1fr;
    }

    .mc-header h1 {
        font-size: 22px;
    }
}

/* MY COURSE VIEW PAGE */
.course-view-page {
    background: var(--bg-main);
    padding: 20px;
}

.cv-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.cv-player-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.cv-player {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.cv-audio-wrap {
    padding: 40px;
    text-align: center;
    color: var(--primary);
}

.cv-audio-wrap i {
    font-size: 40px;
    margin-bottom: 15px;
}

.cv-info-card {
    margin-top: 15px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.cv-title {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.cv-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-mid);
    margin-bottom: 10px;
}

.cv-short {
    color: var(--text-mid);
}

.cv-desc-card {
    margin-top: 15px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
}

.cv-desc h3 {
    margin-bottom: 10px;
}

.cv-desc {
    color: var(--text-mid);
    line-height: 1.6;
}

.cv-sidebar {
    position: sticky;
    top: 90px;
}

.cv-side-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.cv-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.cv-side-body {
    padding: 18px;
}

.cv-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.cv-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.cv-btn:hover {
    background: var(--primary-dark);
}

.cv-features {
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-mid);
}

.cv-features div {
    margin-bottom: 8px;
}

@media (max-width: 992px) {
    .cv-container {
        grid-template-columns: 1fr;
    }

    .cv-sidebar {
        position: static;
    }

    .cv-player {
        height: 260px;
    }
}

.cv-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.price-old {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-off {
    font-size: 12px;
    background: var(--success);
    color: #fff;
    padding: 3px 6px;
    border-radius: 6px;
}

.price-free {
    font-size: 18px;
    font-weight: 600;
    color: var(--success);
}