/* ============================================================
   PINTA SHOP — Premium Dark UI
   Violet accent · Gradient mesh · Glow effects · Glassmorphism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* === Design Tokens === */
:root {
    /* Backgrounds */
    --bg-root: #050507;
    --bg-card: rgba(15, 15, 20, 0.6);
    --bg-card-solid: #0f0f14;
    --bg-elevated: rgba(20, 20, 30, 0.8);
    --bg-input: rgba(15, 15, 20, 0.9);

    /* Foreground */
    --fg: #eeeef0;
    --fg-muted: #7a7a8c;
    --fg-subtle: #55556a;

    /* Accent (violet) */
    --accent: #8b5cf6;
    --accent-hover: #a78bfa;
    --accent-muted: rgba(139, 92, 246, 0.15);
    --accent-glow: rgba(139, 92, 246, 0.4);
    --accent-border: rgba(139, 92, 246, 0.25);

    /* Secondary accent (cyan) */
    --cyan: #06b6d4;
    --cyan-muted: rgba(6, 182, 212, 0.15);

    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(139, 92, 246, 0.3);

    /* Status */
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Typography */
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Radius */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;
    --r-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.15);
    --shadow-glow-lg: 0 0 60px rgba(139, 92, 246, 0.2);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--fg);
    background: var(--bg-root);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle noise overlay on body */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 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: 0;
}

a { color: var(--fg); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: rgba(139, 92, 246, 0.3); color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* === Layout === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container-sm { max-width: 440px; }
.container-md { max-width: 720px; }
main { position: relative; z-index: 1; }

/* === Navigation === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 7, 0.6);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo:hover { opacity: 0.85; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
    color: var(--fg-muted);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: var(--r-md);
    transition: all 0.2s;
    position: relative;
}
.main-nav a:hover {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.04);
}
.main-nav a.active {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.06);
}

.cart-link { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.cart-badge {
    background: var(--accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-full);
    line-height: 1;
}

.admin-link {
    color: var(--accent) !important;
    font-weight: 600 !important;
}
.admin-link:hover {
    background: var(--accent-muted) !important;
    color: var(--accent-hover) !important;
}

/* Nav CTA button (Register) */
.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 7px 16px !important;
}
.nav-cta:hover {
    background: var(--accent-hover) !important;
    box-shadow: var(--shadow-glow);
}

/* === Hero === */
.hero {
    position: relative;
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
}
/* Gradient orbs */
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
    animation: heroOrb 12s ease-in-out infinite alternate;
}
@keyframes heroOrb {
    0% { transform: translateX(-50%) scale(1) rotate(0deg); }
    100% { transform: translateX(-50%) scale(1.1) rotate(3deg); }
}
/* Grid pattern */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.05;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.hero-title-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.1rem;
    color: var(--fg-muted);
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; position: relative; z-index: 1; }

/* Trust badges */
.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 56px;
    position: relative;
    z-index: 1;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fg-subtle);
    font-size: 0.8rem;
    font-weight: 500;
}
.trust-icon {
    width: 18px;
    height: 18px;
    border-radius: var(--r-sm);
    background: var(--accent-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.7rem;
}

/* === Feature Cards (homepage) === */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.feature-card:hover::before { opacity: 1; }
.feature-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    background: var(--accent-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
}
.feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; color: var(--fg); }
.feature-card p { font-size: 0.82rem; color: var(--fg-muted); line-height: 1.6; }

/* === Sections === */
.section { padding: 56px 0; position: relative; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.section-subtitle { color: var(--fg-muted); font-size: 0.875rem; margin-top: 4px; }
.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    font-family: inherit;
    line-height: 1.4;
    white-space: nowrap;
    position: relative;
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--fg);
    border-color: var(--border);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    color: var(--fg);
}

.btn-outline {
    background: transparent;
    color: var(--fg-muted);
    border-color: var(--border);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
    color: var(--fg);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--fg-muted);
    border-color: transparent;
    padding: 10px 14px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); color: var(--fg); }

.btn-sm { padding: 6px 12px; font-size: 0.75rem; border-radius: var(--r-sm); }
.btn-lg { padding: 14px 32px; font-size: 0.9rem; }
.btn-full { width: 100%; }

/* === Cards === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s;
}
.card:hover { border-color: var(--border-hover); }
.card h2 { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.card h3 { font-size: 0.9rem; margin: 16px 0 8px; font-weight: 600; }

/* === Product Grid === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.product-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--r-lg);
    padding: 1px;
    background: linear-gradient(135deg, transparent, var(--accent-border), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.product-card:hover::before { opacity: 1; }
.product-card a { color: inherit; text-decoration: none; display: block; }
.product-card-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #0d0d12, #151520);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-card-image img { transform: scale(1.06); }
.product-card-info { padding: 18px; }
.product-card-title {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    line-height: 1.4;
    color: var(--fg);
}
.product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
}
.price-current { font-weight: 700; color: var(--fg); font-size: 0.95rem; }
.price-old { text-decoration: line-through; color: var(--fg-subtle); font-size: 0.8rem; }
.price-large { font-size: 1.75rem; letter-spacing: -0.02em; }

/* === Categories === */
.categories-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.category-card {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--fg-muted);
    transition: all 0.2s;
}
.category-card:hover {
    border-color: var(--accent-border);
    background: var(--accent-muted);
    color: var(--accent-hover);
}
.category-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }

/* === Product Detail === */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.product-main-image {
    border-radius: var(--r-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #0d0d12, #151520);
    border: 1px solid var(--border);
}
.product-main-image img { width: 100%; display: block; }
.product-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.product-thumbs .thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--r-sm);
    cursor: pointer;
    border: 2px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
    opacity: 0.7;
}
.product-thumbs .thumb:hover { border-color: var(--accent); opacity: 1; box-shadow: 0 0 10px rgba(139, 92, 246, 0.2); }
.product-info h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.product-sku { color: var(--fg-subtle); font-size: 0.8rem; margin-bottom: 16px; }
.product-price-block { margin-bottom: 24px; }
.stock-info { margin-bottom: 16px; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
.stock-in { color: var(--success); }
.stock-in::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--success); margin-right: 4px; }
.stock-out { color: var(--danger); }
.stock-out::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); margin-right: 4px; }
.add-to-cart-form { margin-bottom: 24px; }
.quantity-input { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.quantity-input input {
    width: 72px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    text-align: center;
    background: var(--bg-input);
    color: var(--fg);
    font-weight: 600;
}
.product-description { margin-top: 28px; line-height: 1.8; color: var(--fg-muted); }
.product-description h3 { margin-bottom: 10px; color: var(--fg); font-weight: 700; }

/* === Toolbar === */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.search-form { display: flex; gap: 6px; }
.search-form input[type="text"] {
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    width: 280px;
    background: var(--bg-input);
    color: var(--fg);
    font-size: 0.82rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-form input:focus { border-color: var(--accent-border); box-shadow: 0 0 0 3px var(--accent-muted); outline: none; }
.search-form input::placeholder { color: var(--fg-subtle); }
.sort-select {
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg-input);
    color: var(--fg);
    font-size: 0.82rem;
}

/* === Cart === */
.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.cart-table th, .cart-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.cart-table th {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-subtle);
}
.cart-table tr:last-child td { border-bottom: none; }
.cart-table tfoot td { border-top: 1px solid var(--border); }
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: var(--r-sm); }
.qty-input {
    width: 56px;
    padding: 7px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg-input);
    color: var(--fg);
    font-weight: 600;
}
.cart-qty-form { display: flex; gap: 6px; align-items: center; }
.cart-actions { display: flex; justify-content: space-between; margin-top: 24px; }

/* === Checkout === */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; }
.checkout-form h2 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 28px 0 14px;
}
.checkout-form h2:first-of-type { margin-top: 0; }
.summary-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--fg-muted);
}
.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.15rem;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--fg);
}
.checkout-summary {
    position: sticky;
    top: 90px;
    align-self: start;
}

/* === Forms === */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.82rem;
    color: var(--fg);
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="datetime-local"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--bg-input);
    color: var(--fg);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-border);
    box-shadow: 0 0 0 3px var(--accent-muted);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--fg-subtle); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group small { display: block; color: var(--fg-subtle); margin-top: 6px; font-size: 0.75rem; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

/* === Auth Pages === */
.auth-page {
    min-height: calc(100vh - 64px - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 24px;
    position: relative;
}
/* Gradient behind auth card */
.auth-page::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}
.auth-card { width: 100%; max-width: 420px; position: relative; z-index: 1; }
.auth-card .card {
    padding: 36px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-header p { color: var(--fg-muted); font-size: 0.85rem; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.82rem; color: var(--fg-subtle); }
.auth-footer a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.auth-footer a:hover { color: var(--accent-hover); text-decoration: underline; }

/* === Captcha === */
.captcha-group { display: flex; align-items: center; gap: 12px; }
.captcha-image { border: 1px solid var(--border); border-radius: var(--r-sm); height: 48px; }

/* === Alerts === */
.alert {
    padding: 14px 18px;
    border-radius: var(--r-md);
    margin-bottom: 18px;
    font-size: 0.85rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: alertSlideIn 0.3s ease-out;
}
@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.alert-success {
    background: rgba(34, 197, 94, 0.08);
    color: var(--success);
    border-color: rgba(34, 197, 94, 0.15);
}
.alert-error {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.15);
}

/* === Badges === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--r-full);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 1px solid transparent;
}
.badge-active, .badge-paid, .badge-delivered, .badge-customer {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border-color: rgba(34, 197, 94, 0.15);
}
.badge-draft, .badge-pending, .badge-waiting_payment {
    background: rgba(234, 179, 8, 0.1);
    color: var(--warning);
    border-color: rgba(234, 179, 8, 0.15);
}
.badge-archived, .badge-cancelled {
    background: rgba(255, 255, 255, 0.03);
    color: var(--fg-subtle);
    border-color: var(--border);
}
.badge-processing, .badge-shipped {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border-color: rgba(59, 130, 246, 0.15);
}
.badge-admin {
    background: var(--accent-muted);
    color: var(--accent);
    border-color: var(--accent-border);
}
.badge-out {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.15);
}

/* === Tables === */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.table th {
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-subtle);
}
.table tr:last-child td { border-bottom: none; }
.table a { color: var(--accent); }
.table a:hover { color: var(--accent-hover); }

/* === Breadcrumb === */
.breadcrumb {
    font-size: 0.8rem;
    color: var(--fg-subtle);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.breadcrumb a { color: var(--fg-subtle); }
.breadcrumb a:hover { color: var(--accent); }

/* === Pagination === */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: 0.8rem;
    color: var(--fg-muted);
    transition: all 0.2s;
}
.pagination a:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--border-hover); color: var(--fg); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* === Account / Order === */
.account-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 80px 0;
}
.empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}
.empty-state p { margin-bottom: 24px; color: var(--fg-muted); font-size: 1rem; }

/* === Delivery Info === */
.delivery-info-card {
    border-left: 3px solid var(--success);
    background: rgba(34, 197, 94, 0.04);
}
.delivery-info-card h2 { color: var(--success); }
.delivery-item {
    margin: 16px 0;
    padding: 18px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--r-md);
    border: 1px solid rgba(34, 197, 94, 0.15);
}
.delivery-item h3 { font-size: 0.85rem; margin-bottom: 8px; color: var(--fg); }
.delivery-content {
    font-family: var(--mono);
    font-size: 0.78rem;
    white-space: pre-wrap;
    word-break: break-all;
    background: var(--bg-root);
    padding: 14px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    color: var(--success);
}

/* === Footer === */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: 64px;
    position: relative;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-copy { color: var(--fg-subtle); font-size: 0.78rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--fg-subtle); font-size: 0.78rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* === Utilities === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--fg-muted); }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 32px; }
.mb-1 { margin-bottom: 12px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 32px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }

/* Divider */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero { padding: 60px 0 48px; }
    .hero-trust { flex-direction: column; gap: 12px; }
    .features-grid { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; gap: 24px; }
    .checkout-layout { grid-template-columns: 1fr; }
    .account-grid { grid-template-columns: 1fr; }
    .order-detail-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .main-nav { gap: 2px; }
    .main-nav a { padding: 6px 8px; font-size: 0.78rem; }
    .form-row { flex-direction: column; gap: 0; }
    .search-form input[type="text"] { width: 180px; }
    .cart-table { font-size: 0.8rem; }
    .cart-table th, .cart-table td { padding: 10px 12px; }
    .container { padding: 0 16px; }
    .auth-page { padding: 24px 16px; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 480px) {
    .main-nav { gap: 0; }
    .main-nav a { padding: 6px 6px; font-size: 0.72rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-actions { flex-direction: column; align-items: center; }
}
