:root {
    --primary-color: #ee6cb3;
    --secondary-color: #89bdbd;
    --bg-color: #000000;
    --card-color: #111111;
    --surface-color: #161616;
    --muted: #d1d5db;
    --text-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.16);
    --shadow: 0 12px 50px rgba(0, 0, 0, 0.6);
    --header-bg: rgba(0, 0, 0, 0.9);
    --footer-bg: #000000;
    --input-bg: #0d0d0d;
    --menu-bg: #0a0a0a;
    --menu-hover: rgba(255, 255, 255, 0.08);
    --menu-border: rgba(255, 255, 255, 0.2);
    --control-bg: #101010;
    --control-text: #ffffff;
}

body[data-theme="light"] {
    --bg-color: #ffffff;
    --card-color: #ffffff;
    --surface-color: #f5f5f5;
    --muted: #4b5563;
    --text-color: #0b0b0b;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    --header-bg: rgba(255, 255, 255, 0.92);
    --footer-bg: #ffffff;
    --input-bg: #ffffff;
    --menu-bg: #ffffff;
    --menu-hover: rgba(0, 0, 0, 0.05);
    --menu-border: rgba(0, 0, 0, 0.12);
    --control-bg: #ffffff;
    --control-text: #0b0b0b;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    letter-spacing: 0.02em;
}

html, body {
    overflow-x: hidden;
}

body.mobile-menu-open {
    overflow: hidden;
}

a {
    color: inherit;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

main {
    flex: 1;
    width: 100%;
    padding: 0 0 3rem;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin: 0;
    letter-spacing: 0.01em;
}

p {
    color: var(--muted);
    line-height: 1.7;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-quick-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.navbar-logo {
    height: 56px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.55rem;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-color);
}

.navbar-toggle__bar {
    width: 22px;
    height: 2px;
    background: currentColor;
    display: block;
}

.nav-action {
    display: inline-flex;
    align-items: center;
}

.icon-button {
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-color);
    border-radius: 12px;
    padding: 0.55rem 0.65rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-1px);
}

.theme-toggle-button {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-link-icon {
    font-size: 1rem;
    line-height: 1;
}

.nav-link-text {
    display: inline-block;
}

.nav-links a:hover {
    color: var(--text-color);
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.03);
}

.nav-user {
    position: relative;
    padding-left: 0.5rem;
}

.user-menu {
    position: relative;
}

.user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--border-color);
    background: var(--control-bg);
    color: var(--control-text);
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.user-toggle:hover,
.user-toggle:focus-visible {
    border-color: rgba(238, 108, 179, 0.35);
    background: rgba(238, 108, 179, 0.08);
    transform: translateY(-1px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(238, 108, 179, 0.35), rgba(137, 189, 189, 0.35));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.user-name {
    font-weight: 700;
    color: var(--text-color);
}

.user-caret {
    font-size: 0.85rem;
    color: var(--muted);
}

.user-dropdown {
    position: absolute;
    right: 0;
    margin-top: 0.6rem;
    min-width: 200px;
    background: var(--menu-bg);
    border: 1px solid var(--menu-border);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    padding: 0.75rem;
    display: none;
    flex-direction: column;
    gap: 0.35rem;
}

.user-dropdown--open {
    display: flex;
}

.user-dropdown a {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.user-dropdown a:hover,
.user-dropdown a:focus-visible {
    background: var(--menu-hover);
    color: var(--text-color);
}

.search-hub {
    max-width: 1200px;
    margin: 0 auto 1.25rem;
    padding: 0 2rem 1rem;
    display: block;
}

.search-hub[hidden] {
    display: none;
}

.search-hub--open {
    animation: slideDown 0.25s ease;
}

.search-hub__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.search-hub__header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.search-close {
    border: 1px solid var(--border-color);
    background: var(--control-bg);
    color: var(--text-color);
    border-radius: 12px;
    padding: 0.4rem 0.65rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.search-close:hover,
.search-close:focus-visible {
    border-color: rgba(238, 108, 179, 0.35);
    background: rgba(238, 108, 179, 0.08);
    transform: translateY(-1px);
}

.search-bar {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1rem;
    background: var(--surface-color);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--input-bg);
}

.search-input-shell input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 1rem;
}

.search-icon {
    opacity: 0.8;
}

.search-clear {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    padding: 0.35rem 0.75rem;
    cursor: pointer;
}

.search-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.search-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chip {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.chip-muted {
    color: var(--muted);
}

.search-results {
    margin-top: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1rem;
    background: var(--surface-color);
    box-shadow: var(--shadow);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results-list {
    display: grid;
    gap: 0.65rem;
}

.search-result-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border 0.2s ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
    border-color: rgba(238, 108, 179, 0.4);
}

.search-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(238, 108, 179, 0.12), rgba(137, 189, 189, 0.12));
}

.search-info h4 {
    margin: 0 0 0.2rem;
    color: var(--text-color);
}

.search-info p {
    margin: 0;
    color: var(--muted);
}

.search-price {
    font-weight: 800;
    color: var(--primary-color);
}

.cart-icon {
    color: var(--secondary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #0c0f16;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(238, 108, 179, 0.4);
}

.cart-badge--muted {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    box-shadow: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 2rem 3.5rem;
    background:
        linear-gradient(135deg, rgba(16, 22, 35, 0.9), rgba(16, 22, 35, 0.85)),
        linear-gradient(135deg, rgba(238, 108, 179, 0.35), rgba(137, 189, 189, 0.28)),
        url('/bg.jpg') center/cover no-repeat;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 40%, rgba(255,255,255,0.08), transparent 35%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.hero-content--centered {
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.05rem;
    color: #f3f5fb;
    max-width: 560px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #c34b87);
    box-shadow: 0 10px 30px rgba(238, 108, 179, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 15px 40px rgba(238, 108, 179, 0.45);
}

.btn-sm {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    min-width: 80px;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #6fa7a7);
    box-shadow: 0 10px 30px rgba(137, 189, 189, 0.35);
}

.btn-secondary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 15px 40px rgba(137, 189, 189, 0.45);
}

.btn-admin-cta {
    padding: 0.65rem 1rem;
    font-weight: 600;
}

.btn-admin-cta:hover {
    transform: translateY(-2px);
}

.btn-danger {
    background: #d3455b;
    color: #fff;
}

/* Products Grid */
.product-section header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: radial-gradient(circle at 20% 20%, rgba(238, 108, 179, 0.08), transparent 45%),
                radial-gradient(circle at 80% 0%, rgba(137, 189, 189, 0.07), transparent 35%),
                var(--card-color);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(238, 108, 179, 0.3);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f39ac5, #7ee0a3);
    color: #0b0c10;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(238, 108, 179, 0.12), rgba(137, 189, 189, 0.12));
}

.product-info {
    padding: 1.2rem 1.2rem 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.4rem;
}

.product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0.2rem 0 0.5rem;
}

.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.25rem;
}

.qty-selector button {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s;
}

.qty-selector button:hover {
    background: var(--primary-color);
    color: #fff;
}

.qty-display {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.btn-add-cart {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* Categories */
.pill {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pill:hover {
    transform: translateY(-2px);
    border-color: rgba(238, 108, 179, 0.4);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* Forms */
.form-group {
    margin-bottom: 1.2rem;
}

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

.form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-color);
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: rgba(238, 108, 179, 0.4);
    box-shadow: 0 0 0 4px rgba(238, 108, 179, 0.15);
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(211, 69, 91, 0.08);
    color: #f1b3bd;
}

.alert-danger {
    background: rgba(211, 69, 91, 0.12);
    border-color: rgba(211, 69, 91, 0.35);
}

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

.footer-inner {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    align-items: flex-start;
}

.footer-brand-block {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer-logo {
    height: 64px;
    width: auto;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border: 1px solid var(--border-color);
}

.footer-hours {
    font-size: 0.95rem;
    color: var(--muted);
}

.footer-status {
    font-size: 1.1rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.3rem 0;
}

.status-dot { font-size: 1.5rem; }

.footer-hours__today {
    margin-top: 0.4rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.footer-map .map-frame {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.footer-map iframe {
    width: 100%;
    height: 180px;
    border: 0;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
}

.footer-credit__link {
    color: var(--text-color);
    font-weight: 700;
    text-decoration: none;
}

.footer-credit__logo {
    height: 26px;
    width: auto;
    vertical-align: middle;
}

.status-open {
    color: #7ee0a3;
    font-weight: 800;
}

.status-closed {
    color: #f88c8c;
    font-weight: 800;
}

/* Utility */
.section-title {
    margin: 2.5rem 0 1rem;
    font-size: 1.3rem;
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
}

.section-title::before {
    content: '';
    width: 38px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 999px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    justify-content: center;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
    justify-content: center;
}

.home-highlight {
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.muted-label {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0 0 0.35rem;
}

.highlight-time {
    color: #f3f5fb;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.selling-points {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: var(--shadow);
}

.ideas-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin: 2.5rem 0;
}

.idea-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.7rem;
}

/* Auth pages */
.auth-section {
    padding: 3rem 0 4rem;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: center;
}

.auth-intro h1 {
    margin: 0.5rem 0 1rem;
    font-size: clamp(1.9rem, 3vw, 2.4rem);
}

.auth-intro .lead {
    margin: 0 0 1.5rem;
    color: #dbe2f7;
    max-width: 540px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.auth-perks {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.perk {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: start;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.perk-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(238, 108, 179, 0.12);
    font-size: 1.2rem;
}

.perk-title {
    margin: 0;
    color: var(--text-color);
    font-weight: 700;
}

.perk-desc {
    margin: 0.25rem 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.auth-card {
    background: radial-gradient(circle at 20% 20%, rgba(238, 108, 179, 0.08), transparent 40%),
                radial-gradient(circle at 80% 0%, rgba(137, 189, 189, 0.09), transparent 35%),
                rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.8rem;
    box-shadow: var(--shadow);
}

.auth-card__header h2 {
    margin: 0.2rem 0;
}

.auth-card__header .muted {
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.input-shell {
    position: relative;
}

.input-shell .form-control {
    padding-left: 2.8rem;
}

.input-shell textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.input-icon {
    position: absolute;
    inset: 50% auto auto 1rem;
    transform: translateY(-50%);
    color: var(--muted);
    font-weight: 700;
    pointer-events: none;
}

.textarea-shell .input-icon {
    top: 1.1rem;
    transform: none;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.btn.full {
    width: 100%;
}

.auth-switch {
    margin-top: 1.2rem;
    color: var(--muted);
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: 700;
}

.idea-list li {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.idea-cta {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.2rem;
    background: radial-gradient(circle at 10% 20%, rgba(238, 108, 179, 0.12), transparent 40%),
                radial-gradient(circle at 80% 0%, rgba(137, 189, 189, 0.12), transparent 40%),
                rgba(255, 255, 255, 0.02);
    box-shadow: var(--shadow);
}

.category-overview {
    margin: 2.5rem 0;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.featured-products {
    margin: 2.5rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2.5rem 0;
}

.step-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.step-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 10%, rgba(238, 108, 179, 0.12), transparent 40%);
    pointer-events: none;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(238, 108, 179, 0.18);
    color: #f6d1e5;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.cta-banner {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(238, 108, 179, 0.12), rgba(137, 189, 189, 0.12));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.floating-actions {
    position: fixed;
    bottom: 1.2rem;
    right: 1.2rem;
    display: flex;
    gap: 0.7rem;
    align-items: center;
    z-index: 11;
}

.theme-toggle {
    width: 88px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.45);
}

.theme-toggle__track {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(238, 108, 179, 0.18), rgba(137, 189, 189, 0.18));
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.65rem;
    gap: 0.5rem;
    overflow: hidden;
}

.theme-toggle__thumb {
    position: absolute;
    top: 50%;
    left: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    transform: translateY(-50%);
    transition: transform 0.22s ease, left 0.22s ease, right 0.22s ease;
}

body[data-theme="dark"] .theme-toggle__thumb {
    right: auto;
    transform: translateY(-50%);
}

body[data-theme="light"] .theme-toggle__thumb {
    left: auto;
    right: 8px;
    transform: translateY(-50%);
}

.theme-toggle__icon {
    font-size: 1.1rem;
    opacity: 0.7;
}

body[data-theme="light"] .theme-toggle__icon--sun,
body[data-theme="dark"] .theme-toggle__icon--moon {
    opacity: 1;
}

.cart-fab {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(238, 108, 179, 0.16), rgba(137, 189, 189, 0.16));
    color: #fff;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cart-fab:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0,0,0,0.45);
}

.cart-fab .cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
}

.cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9;
}

.cart-backdrop--visible {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    width: 380px;
    max-width: calc(100% - 2.4rem);
    max-height: calc(100vh - 2.4rem);
    background: rgba(18, 24, 38, 0.96);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.2rem;
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
    z-index: 10;
}

.cart-drawer--open {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-drawer__footer {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    padding-top: 0.25rem;
    border-top: 1px solid var(--border-color);
}

.cart-drawer__title {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.cart-close {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.4rem;
    cursor: pointer;
}

.cart-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.cart-line {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.cart-line__media {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.cart-line__thumb {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.cart-line__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-line__details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-line__title {
    font-weight: 700;
    color: var(--text-color);
}

.cart-line__meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.cart-line__total {
    font-weight: 800;
    color: var(--primary-color);
}

.cart-line__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}

.cart-line__controls {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.qty-form {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.qty-btn {
    background: rgba(255,255,255,0.06);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cart-qty {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
    color: var(--text-color);
}

.cart-remove {
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.cart-remove:hover {
    color: #ff859f;
}

.cart-empty {
    color: var(--muted);
    text-align: center;
    margin: 0;
}

.cart-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.2rem;
}

.cart-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
}

/* Checkout */
.checkout-shell {
    max-width: 1200px;
    margin: 2rem auto 3rem;
    padding: 1rem;
    color: var(--text-color);
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 18px;
    background: var(--card-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.checkout-header .subtitle {
    color: var(--muted);
}

.checkout-steps {
    display: inline-flex;
    gap: 0.4rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.75rem;
    border-radius: 12px;
}

.checkout-steps .step {
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    font-weight: 700;
    color: var(--muted);
}

.checkout-steps .step.active {
    background: rgba(238, 108, 179, 0.18);
    color: var(--text-color);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.checkout-panel, .checkout-summary {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.checkout-section + .checkout-section { margin-top: 1.5rem; }

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

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group--wide { grid-column: 1 / -1; }

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.delivery-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 12px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.delivery-card input { margin-top: 0.2rem; }
.delivery-title { font-weight: 800; color: var(--text-color); }
.delivery-sub { margin: 0; color: var(--muted); }
.delivery-price { font-weight: 700; color: var(--primary-color); margin-top: 0.35rem; }
.delivery-note { color: var(--secondary-color); margin: 0; }

.checkout-tabs { display: flex; gap: 0.5rem; padding: 0; margin: 1rem 0; list-style: none; }
.checkout-tab {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.65rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
}
.checkout-tab.active {
    background: rgba(238, 108, 179, 0.18);
    border-color: rgba(238, 108, 179, 0.5);
    color: var(--text-color);
}

.payment-form .btn.full { width: 100%; margin-top: 0.5rem; padding: 0.85rem; }
.muted { color: var(--muted); }
.error { color: #fca5a5; margin-top: 0.5rem; }

.checkout-summary .summary-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 14px;
}
.summary-list { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: 0.65rem; }
.summary-list li { display: flex; justify-content: space-between; color: var(--text-color); }
.coupon-box { margin: 1rem 0; display: flex; flex-direction: column; gap: 0.4rem; }
.coupon-inline { display: flex; gap: 0.5rem; }
.summary-line { display: flex; justify-content: space-between; margin: 0.4rem 0; }
.summary-total { display: flex; justify-content: space-between; margin-top: 0.8rem; font-size: 1.2rem; font-weight: 800; }

@media (max-width: 960px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-header { flex-direction: column; }
    .checkout-steps { align-self: flex-start; }
}

/* Cart page */
.cart-page {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cart-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
}

.cart-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.cart-step {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--muted);
    font-weight: 700;
}

.cart-step--active {
    background: rgba(238, 108, 179, 0.14);
    color: #ffb9dc;
    border-color: rgba(238, 108, 179, 0.4);
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: flex-start;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: var(--shadow);
}

.cart-card__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}

.cart-summary {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow);
}

.cart-summary__hint {
    color: var(--muted);
    margin: 0;
    text-align: center;
}

.cart-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.cart-empty-state {
    text-align: center;
    padding: 2rem;
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    display: grid;
    gap: 0.6rem;
}

@media (max-width: 960px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

/* Account */
.account-wrapper {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.account-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: radial-gradient(circle at 20% 20%, rgba(238, 108, 179, 0.05), transparent 40%),
                radial-gradient(circle at 80% 0%, rgba(137, 189, 189, 0.07), transparent 35%),
                #101623;
    box-shadow: var(--shadow);
}

.account-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0 0 0.35rem 0;
}

.account-subtitle {
    max-width: 560px;
    color: var(--muted);
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    min-width: 280px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stat-label {
    color: var(--muted);
    font-weight: 700;
    margin: 0 0 0.35rem 0;
}

.stat-value {
    font-size: 1.8rem;
    margin: 0;
}

.stat-helper {
    margin: 0.25rem 0 0;
    color: var(--muted);
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.account-panel {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: var(--shadow);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0 0 0.35rem 0;
}

.panel-description {
    color: var(--muted);
    margin: 0.4rem 0 0;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
}

.order-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.order-title {
    margin: 0;
    font-weight: 700;
}

.order-date {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    color: var(--muted);
}

.order-items-preview {
    margin: 0.5rem 0 0.75rem;
    border: 1px dashed var(--border-color);
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.order-item-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
    color: var(--text-color);
    font-weight: 600;
}

.order-empty {
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    font-weight: 700;
    border: 1px solid var(--border-color);
}

.status-warning {
    background: rgba(238, 188, 108, 0.12);
    color: #f7c266;
    border-color: rgba(238, 188, 108, 0.4);
}

.status-success {
    background: rgba(144, 238, 144, 0.12);
    color: #86f3c0;
    border-color: rgba(144, 238, 144, 0.35);
}

.status-info {
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.4);
}

.status-danger {
    background: rgba(211, 69, 91, 0.12);
    color: #f1b3bd;
    border-color: rgba(211, 69, 91, 0.35);
}

/* Light theme overrides */
body[data-theme="light"] .hero {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.88)),
        url('/bg.jpg') center/cover no-repeat;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .hero p {
    color: #334155;
}

/* Admin dashboard */
.admin-dashboard { max-width: 1200px; margin: 2rem auto; padding: 0 1rem; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.header-actions { display: flex; gap: 0.5rem; }

.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.12));
    border: 1px solid rgba(255,255,255,0.04);
    padding: 1rem;
    border-radius: 14px;
    color: #0f172a;
}
.stat-label { margin: 0; color: #475569; font-weight: 700; }
.stat-value { margin: 0.2rem 0; font-size: 1.6rem; font-weight: 800; }
.stat-chip { background: #0f172a; color: #e2e8f0; padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 0.85rem; }

.chart-kicker { margin: 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: #94a3b8; }

.table-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
}

.table-card__body {
    padding: 1rem 1.25rem 1.25rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-color);
}

.data-table thead {
    background: var(--surface-color);
}

.data-table th,
.data-table td {
    padding: 0.85rem 1rem;
    text-align: left;
}

.data-table th {
    font-weight: 700;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
}

.data-table--dense th,
.data-table--dense td {
    padding: 0.75rem 0.85rem;
}

.table-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

body[data-theme="dark"] .data-table,
body[data-theme="dark"] .table {
    background: #050505;
    color: #f1f5f9;
}

body[data-theme="dark"] .data-table th,
body[data-theme="dark"] .table th,
body[data-theme="dark"] .data-table td,
body[data-theme="dark"] .table td {
    border-color: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .data-table thead,
body[data-theme="dark"] .table thead {
    background: #0f0f0f;
}

body[data-theme="light"] .data-table thead,
body[data-theme="light"] .table thead {
    background: #f8fafc;
}

body[data-theme="light"] .data-table,
body[data-theme="light"] .table {
    background: #ffffff;
    color: #0f172a;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    font-weight: 700;
    font-size: 0.9rem;
    gap: 0.35rem;
}

.status-pill--success { background: rgba(34, 197, 94, 0.18); color: #22c55e; border-color: rgba(34, 197, 94, 0.35); }
.status-pill--warning { background: rgba(234, 179, 8, 0.18); color: #eab308; border-color: rgba(234, 179, 8, 0.35); }
.status-pill--danger { background: rgba(239, 68, 68, 0.18); color: #ef4444; border-color: rgba(239, 68, 68, 0.35); }
.status-pill--info { background: rgba(59, 130, 246, 0.18); color: #3b82f6; border-color: rgba(59, 130, 246, 0.35); }

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.admin-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.client-name {
    font-weight: 700;
}

.client-contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}

.client-highlight {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.order-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.order-meta-strong {
    font-size: 1.25rem;
    margin: 0.15rem 0 0;
    font-weight: 700;
}

.order-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    padding-top: 0.5rem;
}

.order-form {
    padding: 1rem;
}

.empty-state {
    padding: 1.5rem;
    text-align: center;
    border: 1px dashed var(--border-color);
    background: var(--card-color);
    border-radius: 12px;
}

.btn-admin-cta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.btn-admin-cta__icon { font-size: 1.4rem; }
.btn-admin-cta h3 { margin: 0; }
.btn-admin-cta p { margin: 0; color: #475569; }

body[data-theme="light"] .btn-admin-cta {
    background: #ffffff;
    color: #0f172a;
}

body[data-theme="dark"] .btn-admin-cta {
    background: #0a0a0a;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.backup-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.92));
    color: #e2e8f0;
}
.backup-import { background: rgba(255,255,255,0.06); padding: 1rem; border-radius: 12px; }

body[data-theme="light"] .product-card {
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

body[data-theme="light"] .cart-drawer {
    background: #ffffff;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.15);
}

body[data-theme="light"] .cart-line {
    background: #f8fafc;
}

body[data-theme="light"] .pill,
body[data-theme="light"] .chip {
    background: #f8fafc;
}

body[data-theme="light"] .form-control {
    background: #ffffff;
    color: #0f172a;
    border-color: var(--border-color);
}

body[data-theme="light"] .search-bar,
body[data-theme="light"] .search-results {
    background: #ffffff;
}

body[data-theme="light"] .theme-toggle {
    color: #0f172a;
}

body[data-theme="light"] .theme-toggle__track {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

body[data-theme="light"] .theme-toggle__thumb {
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
}

body[data-theme="light"] .cart-fab {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    color: #0f172a;
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.25rem;
        gap: 0.5rem;
    }

    .nav-links {
        gap: 0.35rem;
        font-size: 0.9rem;
    }

    .user-name {
        display: none;
    }

    .account-hero {
        padding: 1.25rem;
    }

    .nav-quick-actions {
        background: transparent;
        padding: 0;
        border: none;
    }
}

@media (max-width: 900px) {
    .navbar {
        position: relative;
        align-items: flex-start;
    }

    .navbar-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-left {
        width: 100%;
        justify-content: space-between;
    }

    .nav-quick-actions {
        margin-left: auto;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 1rem;
        left: 1rem;
        flex-direction: column;
        align-items: flex-start;
        background: var(--menu-bg);
        border: 1px solid var(--menu-border);
        border-radius: 16px;
        padding: 0.75rem;
        box-shadow: 0 20px 40px rgba(0,0,0,0.35);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
        z-index: 20;
    }

    .nav-links--open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links li,
    .nav-links .nav-action {
        width: 100%;
    }

    .nav-links a,
    .nav-links button {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-user {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .ideas-grid {
        grid-template-columns: 1fr;
    }

    .cart-drawer {
        width: calc(100% - 2.4rem);
    }
}
