:root {
    --bg: #f8f7f4;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-hover: #f0efec;
    --border: #e2e0db;
    --border-light: #eeedea;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;
    --accent: var(--header-accent, #1a56db);
    --accent-hover: #1547b8;
    --accent-light: #e8effc;
    --success: #059669;
    --success-light: #ecfdf5;
    --error: #dc2626;
    --error-light: #fef2f2;
    --warning: #d97706;
    --warning-light: #fffbeb;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --font-display: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    --font-body: var(--font-sans, 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif);
    --header-height: 140px;
    --container-width: 1200px;
    --transition: 0.2s ease;
}

[data-theme="dark"] {
    --bg: #0f1117;
    --bg-alt: #161820;
    --surface: #1c1f2e;
    --surface-hover: #242738;
    --border: #2a2d3e;
    --border-light: #222538;
    --text-primary: #e8e6e3;
    --text-secondary: #a0a0a0;
    --text-muted: #6b6b6b;
    --accent: var(--header-accent, #5b8def);
    --accent-hover: #4a7de0;
    --accent-light: #1a2540;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.container--sm { max-width: 560px; }
.container--md { max-width: 800px; }
.container--inner { display: block; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 22px; border-radius: var(--radius); font-weight: 500; font-size: 0.9rem;
    border: 1px solid transparent; transition: all var(--transition); cursor: pointer;
    position: relative; overflow: hidden; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--text-primary); border-color: var(--border); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--danger { background: var(--error); color: #fff; }
.btn--danger:hover { background: #b91c1c; color: #fff; }
.btn--disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }
.btn--sm { padding: 6px 14px; font-size: 0.82rem; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

.header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header__top { background: var(--accent); color: #fff; font-size: 0.8rem; padding: 6px 0; }
.header__top-inner { display: flex; justify-content: space-between; align-items: center; }
.header__top-nav { display: flex; gap: 16px; }
.header__top-nav a { color: rgba(255,255,255,0.85); font-size: 0.8rem; }
.header__top-nav a:hover { color: #fff; }
.header__main { padding: 14px 0; }
.header__main-inner { display: flex; align-items: center; gap: 24px; }
.header__logo { font-family: var(--font-display); font-size: 1.6rem; color: var(--text-primary); flex-shrink: 0; }
.header__logo strong { color: var(--accent); font-weight: 700; }
.header__search { flex: 1; max-width: 480px; }
.search-form { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color var(--transition); }
.search-form:focus-within { border-color: var(--accent); }
.search-form__input { flex: 1; border: none; padding: 10px 14px; background: transparent; color: var(--text-primary); outline: none; }
.search-form__input::placeholder { color: var(--text-muted); }
.search-form__btn { padding: 10px 14px; color: var(--text-muted); transition: color var(--transition); }
.search-form__btn:hover { color: var(--accent); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { padding: 8px; color: var(--text-secondary); border-radius: var(--radius-sm); transition: all var(--transition); }
.theme-toggle:hover { color: var(--accent); background: var(--surface-hover); }
[data-theme="light"] .theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: none; }
.header__cart { position: relative; padding: 8px; color: var(--text-primary); }
.header__cart-count {
    position: absolute; top: 0; right: 0;
    background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 600;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.header__menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.header__menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s; }

.nav { background: var(--surface); border-bottom: 1px solid var(--border); }
.nav__list { display: flex; gap: 0; }
.nav__item { position: relative; }
.nav__link { display: block; padding: 12px 18px; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: all var(--transition); border-bottom: 2px solid transparent; }
.nav__link:hover, .nav__link.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav__item--has-children:hover .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown { position: absolute; top: 100%; left: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 200px; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.2s ease; z-index: 50; }
.nav__dropdown a { display: block; padding: 8px 16px; color: var(--text-secondary); font-size: 0.85rem; }
.nav__dropdown a:hover { color: var(--accent); background: var(--surface-hover); }

.hero { padding: 40px 0 0; background: var(--bg-alt); border-bottom: 1px solid var(--border); overflow: hidden; }
.hero__layout { display: flex; align-items: center; gap: 48px; }
.hero__content { flex: 1.2; text-align: left; padding-bottom: 40px; }
.hero__badge { display: inline-block; padding: 6px 16px; background: var(--accent-light); color: var(--accent); font-size: 0.8rem; font-weight: 600; border-radius: 20px; margin-bottom: 20px; letter-spacing: 0.02em; }
.hero__title { font-size: 3.2rem; margin-bottom: 16px; line-height: 1.1; }
.hero__subtitle { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.6; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.stat { text-align: left; }
.stat__number { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat__label { font-size: 0.85rem; color: var(--text-muted); }
.hero__image { flex: 1; position: relative; display: flex; align-items: flex-end; }
.hero__image img { width: 100%; height: auto; object-fit: contain; }

@media (max-width: 992px) {
    .hero { padding: 40px 0; }
    .hero__layout { flex-direction: column; text-align: center; }
    .hero__content { text-align: center; padding-bottom: 0; }
    .hero__actions { justify-content: center; }
    .hero__stats { justify-content: center; gap: 24px; }
    .stat { text-align: center; }
    .hero__image { margin-top: 32px; width: 100%; max-width: 450px; }
}

.section { padding: 60px 0; }
.section--alt { background: var(--bg-alt); }
.section__header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.section__title { margin-bottom: 0; }
.section__subtitle { color: var(--text-secondary); margin-top: 8px; }
.section__link { font-size: 0.9rem; font-weight: 500; color: var(--accent); }

.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.category-card { display: flex; flex-direction: column; align-items: center; padding: 28px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: center; transition: all var(--transition); }
.category-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.category-card__icon { width: 56px; height: 56px; background: var(--accent-light); color: var(--accent); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.category-card__name { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); margin-bottom: 4px; }
.category-card__desc { font-size: 0.8rem; color: var(--text-muted); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.products-grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); position: relative; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card__badge { position: absolute; top: 12px; left: 12px; background: var(--error); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 4px; z-index: 2; }
.product-card__image { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--bg); position: relative; }
.product-card__image img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease; }
.product-card:hover .product-card__image img { transform: scale(1.03); }
.product-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.product-card__delivery { position: absolute; bottom: 8px; right: 8px; background: var(--success); color: #fff; font-size: 0.7rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.product-card__body { padding: 16px; }
.product-card__category { font-size: 0.75rem; color: var(--accent); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.product-card__title { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; margin: 6px 0 10px; line-height: 1.4; }
.product-card__title a { color: var(--text-primary); }
.product-card__title a:hover { color: var(--accent); }
.product-card__pricing { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.product-card__price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--accent); }
.product-card__old-price { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; }

.features-layout { display: flex; align-items: center; gap: 48px; }
.features-grid { flex: 1; display: grid; grid-template-columns: 1fr; gap: 20px; }
.features-image { flex: 0 0 380px; position: relative; }
.features-image img { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1)); animation: float 6s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 992px) {
    .features-layout { flex-direction: column-reverse; }
    .features-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .features-image { flex: none; width: 100%; max-width: 300px; }
}

.feature-card { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all var(--transition); display: flex; gap: 20px; align-items: flex-start; }
.feature-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateX(8px); }
.feature-card__icon { color: var(--accent); flex-shrink: 0; background: var(--accent-light); width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); }
.feature-card__content { flex: 1; }
.feature-card__title { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.feature-card__desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-card__image { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--bg); }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card__body { padding: 20px; }
.blog-card__meta { display: flex; gap: 12px; margin-bottom: 8px; font-size: 0.8rem; color: var(--text-muted); }
.blog-card__category { color: var(--accent); font-weight: 500; }
.blog-card__title { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.blog-card__title a { color: var(--text-primary); }
.blog-card__title a:hover { color: var(--accent); }
.blog-card__excerpt { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 12px; }
.blog-card__readmore { font-size: 0.85rem; font-weight: 500; color: var(--accent); }

.page-header { padding: 48px 0; background: var(--bg-alt); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-header__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; position: relative; z-index: 2; }
.page-header__title { font-size: 2rem; margin-bottom: 8px; }
.page-header__subtitle { color: var(--text-secondary); font-size: 1rem; }
.page-header__image { flex: 0 0 160px; display: flex; align-items: center; justify-content: flex-end; }
.page-header__image img { width: 100%; height: auto; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05)); animation: floatHeader 4s ease-in-out infinite; }

@keyframes floatHeader {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

@media (max-width: 768px) {
    .page-header { padding: 32px 0; }
    .page-header__image { flex: 0 0 80px; }
    .page-header__title { font-size: 1.5rem; }
    .page-header__subtitle { font-size: 0.85rem; }
    .page-header__inner { gap: 16px; }
}

.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.shop-sidebar { position: sticky; top: var(--header-height); align-self: start; }
.sidebar-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.sidebar-block__title { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sidebar-categories li { margin-bottom: 2px; }
.sidebar-categories a { display: block; padding: 7px 12px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 0.88rem; transition: all var(--transition); }
.sidebar-categories a:hover, .sidebar-categories a.active { color: var(--accent); background: var(--accent-light); }

.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.account-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px; align-self: start; position: sticky; top: calc(var(--header-height) + 20px); }
.account-nav__link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius); color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: all var(--transition); margin-bottom: 4px; }
.account-nav__link:last-child { margin-bottom: 0; }
.account-nav__link svg { color: var(--text-muted); transition: color var(--transition); }
.account-nav__link:hover { background: var(--surface-hover); color: var(--accent); }
.account-nav__link:hover svg { color: var(--accent); }
.account-nav__link.active { background: var(--accent-light); color: var(--accent); }
.account-nav__link.active svg { color: var(--accent); }

.admin-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.admin-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.admin-card__title { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; margin-bottom: 0; }

.orders-table-wrapper { overflow-x: auto; margin: -24px; margin-top: 0; }
.orders-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.orders-table th { background: var(--bg); padding: 12px 24px; text-align: left; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.orders-table td { padding: 16px 24px; border-bottom: 1px solid var(--border-light); font-size: 0.88rem; vertical-align: middle; }
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: var(--bg); }

.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-lg); }
.auth-card--premium { padding: 0; overflow: hidden; }
.auth-split-layout { display: grid; grid-template-columns: 1.2fr 1fr; }
.auth-form-side { padding: 48px; }
.auth-image-side { background: var(--accent-light); display: flex; align-items: center; justify-content: center; padding: 40px; position: relative; }
.auth-image-side img { width: 100%; max-width: 380px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1)); animation: floatAuth 6s ease-in-out infinite; }

@keyframes floatAuth {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@media (max-width: 992px) {
    .auth-split-layout { grid-template-columns: 1fr; }
    .auth-image-side { display: none; }
    .auth-form-side { padding: 32px; }
}

.auth-header { margin-bottom: 32px; }
.auth-header__badge { display: inline-block; padding: 6px 16px; background: var(--accent-light); color: var(--accent); font-size: 0.8rem; font-weight: 600; border-radius: 20px; margin-bottom: 12px; }
.auth-header__title { font-size: 2.2rem; margin-bottom: 8px; }
.auth-header__subtitle { color: var(--text-secondary); font-size: 1rem; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.product-detail__image { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 1; }
.product-detail__image img { width: 100%; height: 100%; object-fit: contain; }
.product-detail__title { font-size: 1.8rem; margin: 8px 0 12px; }
.product-detail__pricing { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.product-detail__price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--accent); }
.product-detail__old-price { font-size: 1.1rem; color: var(--text-muted); text-decoration: line-through; }
.product-detail__meta { display: grid; gap: 10px; margin-bottom: 24px; padding: 16px; background: var(--bg); border-radius: var(--radius); }
.meta-item { display: flex; justify-content: space-between; font-size: 0.88rem; }
.meta-item__label { color: var(--text-muted); }
.meta-item__value { font-weight: 500; }

.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto auto auto; gap: 16px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 12px; }
.cart-item__image { width: 80px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__title { font-size: 0.95rem; font-weight: 500; }
.cart-item__total { font-weight: 600; font-size: 0.95rem; min-width: 80px; text-align: right; }
.cart-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: calc(var(--header-height) + 20px); }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.form-input { 
    width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius); 
    background: var(--surface); color: var(--text-primary); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); outline: none; 
}
.form-input:hover { border-color: var(--accent-hover); }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-light); }
.form-textarea { resize: vertical; min-height: 120px; }

.form-textarea { resize: vertical; min-height: 120px; }

.newsletter-group {
    display: flex; border: 1.5px solid var(--border); border-radius: 50px; overflow: hidden; 
    background: var(--surface); transition: all var(--transition); max-width: 320px;
}
.newsletter-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-light); }
.newsletter-input { flex: 1; border: none; padding: 12px 20px; background: transparent; outline: none; color: var(--text-primary); font-size: 0.88rem; }
.newsletter-btn {
    width: 48px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; 
    transition: all var(--transition); margin: 3px; border-radius: 50%;
}
.newsletter-btn:hover { background: var(--accent-hover); transform: scale(1.05); }

.empty-state {
    text-align: center; padding: 80px 40px; background: var(--surface); 
    border: 1px solid var(--border); border-radius: var(--radius-lg); 
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.empty-state svg { color: var(--text-muted); opacity: 0.5; margin-bottom: 10px; }
.empty-state h3 { font-size: 1.5rem; color: var(--text-primary); }
.empty-state p { color: var(--text-secondary); max-width: 400px; margin: 0 auto; }

.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 48px 0 0; margin-top: 80px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 32px; margin-bottom: 32px; }
.footer__logo { font-family: var(--font-display); font-size: 1.4rem; color: var(--text-primary); display: block; margin-bottom: 12px; }
.footer__logo strong { color: var(--accent); }
.footer__desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.footer__title { font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer__links a { font-size: 0.85rem; color: var(--text-muted); }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-muted); }
.footer__payment-img { 
    max-height: 28px; 
    transition: all 0.3s ease; 
}
[data-theme="light"] .footer__payment-img { 
    filter: none; 
    mix-blend-mode: normal;
    opacity: 1; 
}
[data-theme="dark"] .footer__payment-img { 
    filter: invert(1) hue-rotate(180deg); 
    mix-blend-mode: screen; 
    opacity: 0.9; 
}

.admin-body { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background: var(--surface); border-right: 1px solid var(--border); padding: 20px 0; position: fixed; height: 100vh; overflow-y: auto; z-index: 50; }
.admin-sidebar__header { padding: 0 20px 20px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.admin-sidebar__logo { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-primary); }
.admin-sidebar__logo strong { color: var(--accent); }
.admin-sidebar__nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--text-secondary); font-size: 0.88rem; transition: all var(--transition); }
.admin-sidebar__nav a:hover, .admin-sidebar__nav a.active { color: var(--accent); background: var(--accent-light); }
.admin-main { flex: 1; margin-left: 250px; min-height: 100vh; }
.admin-header { display: flex; align-items: center; padding: 16px 24px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.admin-header__title { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; flex: 1; }
.admin-content { padding: 24px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.admin-table th { font-weight: 600; color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--bg); }

.admin-header__toggle { display: none; }

@media (max-width: 992px) {
    .account-layout { grid-template-columns: 1fr; }
    .account-nav { position: static; margin-bottom: 24px; }
    .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; max-width: 100vw; overflow-x: hidden; }
    .admin-header__toggle { display: flex; align-items: center; justify-content: center; margin-right: 15px; color: var(--text-primary); cursor: pointer; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
    .admin-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-table th, .admin-table td { white-space: nowrap; padding: 10px 12px; }
}

/* Demo Mode Bar */
.demo-mode-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #ef4444;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.has-demo-mode .admin-sidebar {
    top: 40px !important;
    height: calc(100vh - 40px) !important;
}

.has-demo-mode .admin-header {
    top: 40px !important;
}

.has-demo-mode .admin-main {
    margin-top: 40px;
}

@media (max-width: 992px) {
    .has-demo-mode .admin-sidebar {
        top: 40px !important;
    }
}


.whatsapp-btn { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); z-index: 90; transition: all var(--transition); }
.whatsapp-btn:hover { transform: scale(1.08); color: #fff; }

.status-badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 0.78rem; font-weight: 600; text-transform: capitalize; }
.status-badge--pending { background: var(--warning-light); color: var(--warning); }
.status-badge--processing { background: var(--accent-light); color: var(--accent); }
.status-badge--completed { background: var(--success-light); color: var(--success); }
.status-badge--cancelled { background: var(--error-light); color: var(--error); }

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 400px;
    background: var(--header-bg, #ffffff);
    border: 1px solid var(--header-border, #e5e7eb);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

[data-theme="dark"] .toast {
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    background: rgba(30, 41, 59, 0.9);
}

.toast--success { border-left: 4px solid #22c55e; }
.toast--error { border-left: 4px solid #ef4444; }
.toast--info { border-left: 4px solid var(--header-accent, #2563eb); }

.toast__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast--success .toast__icon { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.toast--error .toast__icon { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.toast--info .toast__icon { background: rgba(37, 99, 235, 0.1); color: var(--header-accent, #2563eb); }

.toast__content {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--header-text, #1a1a2e);
    line-height: 1.4;
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
    to { transform: translateX(100%); opacity: 0; }
}

body::after {
    content: '';
    position: fixed; inset: 0;
    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.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}