/* ============================================
   FRME Theme — DeskAura Laravel
   Dark Cyberpunk Glassmorphism Design System
   100% faithful to FRME original template
   ============================================ */

:root {
    --bg-color: #030303;
    --card-bg: rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(0, 0, 0, 0.2);
    --glass-border: rgba(255, 255, 255, 0.06);
    --primary-glow: #00f2ff;
    --secondary-glow: #facc15;
    --accent-purple: rgba(168, 85, 247, 0.1);
    --text-primary: #f1f5f9;
    --text-secondary: #708090;
    --accent-blue: #00d2ff;
    --accent-gold: #fbbf24;
    --neon-blue: 0 0 15px rgba(0, 242, 255, 0.4), 0 0 30px rgba(0, 242, 255, 0.1);
    --neon-gold: 0 0 15px rgba(250, 204, 21, 0.4), 0 0 30px rgba(250, 204, 21, 0.1);
}

[lang="ar"] {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Cairo', 'Outfit', 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ── Background & Atmosphere ── */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 10, 30, 0.8) 0%, rgba(3, 3, 3, 1) 70%);
    z-index: -3;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    z-index: -2;
    animation: pulseBg 15s infinite alternate ease-in-out;
}

@keyframes pulseBg {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Animated Grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(0, 242, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    animation: gridFlow 20s linear infinite, gridPulse 10s ease-in-out infinite alternate;
}

@keyframes gridFlow {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 50px 50px;
    }
}

@keyframes gridPulse {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
    background-size: 100% 4px;
    z-index: 2000;
    pointer-events: none;
    opacity: 0.1;
}

/* ── Custom Cursor ── */
.cursor-aura {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out;
    mix-blend-mode: screen;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-glow);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--primary-glow);
    transition: width 0.3s, height 0.3s, transform 0.15s;
}

/* ── Navigation ── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(3, 3, 3, 0.85);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    flex-direction: row-reverse;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

#logo-img {
    height: 55px;
    filter: none;
    transition: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav ul li a:hover,
nav ul li a.active-nav-link {
    color: var(--primary-glow);
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-link {
    position: relative;
    text-decoration: none;
    cursor: none;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--secondary-glow);
    color: var(--bg-color);
    font-size: 0.7rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary-glow);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 5px var(--secondary-glow);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 15px var(--secondary-glow);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 5px var(--secondary-glow);
    }
}

/* ── Hero ── */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.5), rgba(2, 6, 23, 0.95));
    background-attachment: fixed;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    z-index: 1;
}

.hero>* {
    position: relative;
    z-index: 2;
}

/* Glitch Hero Title */
.hero h1 {
    font-size: clamp(2.5rem, 10vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
    position: relative;
    line-height: 1.1;
    animation: neural-jitter 4s infinite;
}

.hero h1.glitch::before,
.hero h1.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0.6;
    pointer-events: none;
}

.hero h1.glitch::before {
    color: #ff00c1;
    z-index: -1;
    animation: glitch-shift-red 2s infinite linear;
}

.hero h1.glitch::after {
    color: #00fff9;
    z-index: -2;
    animation: glitch-shift-blue 2.5s infinite linear;
}

@keyframes neural-jitter {

    0%,
    95%,
    100% {
        transform: none;
        filter: none;
    }

    96% {
        transform: translate(-2px, 1px) skewX(2deg);
        filter: brightness(1.2) contrast(1.1);
    }

    97% {
        transform: translate(2px, -1px) skewX(-2deg);
    }

    98% {
        transform: translate(-1px, 2px);
        filter: hue-rotate(90deg);
    }

    99% {
        transform: translate(1px, -2px);
    }
}

@keyframes glitch-shift-red {

    0%,
    92%,
    100% {
        transform: none;
        opacity: 0;
    }

    93% {
        transform: translate(-4px, 2px);
        opacity: 0.6;
    }

    94% {
        transform: translate(4px, -2px);
        opacity: 0.8;
    }

    95% {
        transform: translate(-4px, 0);
        opacity: 0.4;
    }
}

@keyframes glitch-shift-blue {

    0%,
    91%,
    100% {
        transform: none;
        opacity: 0;
    }

    92% {
        transform: translate(4px, -2px);
        opacity: 0.6;
    }

    93% {
        transform: translate(-4px, 2px);
        opacity: 0.8;
    }

    94% {
        transform: translate(4px, 0);
        opacity: 0.4;
    }
}

.hero h1 span {
    color: var(--accent-gold);
    text-shadow: var(--neon-gold);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

/* ── CTA / Buttons ── */
.cta-button {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--primary-glow);
    color: var(--primary-glow);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: none;
    position: relative;
    transition: 0.3s;
    box-shadow: var(--neon-blue);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: var(--primary-glow);
    color: var(--bg-color);
    box-shadow: 0 0 30px var(--primary-glow);
}

.buy-btn {
    padding: 10px 22px;
    background: var(--accent-blue);
    color: var(--bg-color);
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    cursor: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    font-size: 0.85rem;
    font-family: inherit;
}

.buy-btn:hover {
    background: var(--primary-glow);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 25px var(--primary-glow), 0 0 50px rgba(0, 242, 255, 0.2);
    color: #000;
}

.buy-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    transition: 0s;
}

.buy-btn:hover::after {
    left: 130%;
    transition: 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.buy-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-gold {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: transparent;
    box-shadow: var(--neon-gold);
}

.btn-gold:hover {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 30px var(--accent-gold);
}

/* Checkout button (in product cards) */
.checkout-btn {
    padding: 10px 20px;
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    border-radius: 8px;
    font-weight: 800;
    cursor: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.checkout-btn.active {
    display: flex;
}

.checkout-btn:hover {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
    transform: translateY(-3px) scale(1.05);
}

/* ── Section Divider ── */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 242, 255, 0.05) 25%,
            rgba(0, 242, 255, 0.2) 50%,
            rgba(0, 242, 255, 0.05) 75%,
            transparent 100%);
    position: relative;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.section-divider::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 2px;
    background: var(--primary-glow);
    box-shadow: 0 0 25px 2px var(--primary-glow);
    filter: blur(1px);
    border-radius: 50%;
}

/* ── Products ── */
.products-section {
    padding: 80px 8%;
    position: relative;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: 0.4s;
}

.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-glow);
    box-shadow: 0 0 15px var(--primary-glow);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    z-index: 10;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.15), 0 20px 40px rgba(0, 0, 0, 0.6);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover::after {
    width: 50%;
    opacity: 1;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
    opacity: 0.85;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
    opacity: 1;
}

.product-image i {
    font-size: 4rem;
    color: var(--accent-blue);
    filter: drop-shadow(0 0 15px var(--accent-blue));
}

.stock-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-glow);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.stock-badge.out {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.admin-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: white;
}

.product-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-actions {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    justify-content: flex-end;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    white-space: nowrap;
}

.compare-price {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.edit-product-btn {
    background: var(--primary-glow);
    color: var(--bg-color);
}

.delete-product-btn {
    background: #ef4444;
    color: white;
}

.edit-product-btn:hover,
.delete-product-btn:hover {
    transform: scale(1.1);
}

/* ── Forms & Inputs ── */
input,
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
    font-size: 0.95rem;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-secondary);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-glow);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.12);
}

select option {
    background: #0f172a;
    color: white;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

/* ── Cart ── */
.cart-container {
    max-width: 1200px;
    margin: 120px auto 60px;
    padding: 0 5%;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 15px;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.cart-item-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.quantity-controls,
.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--primary-glow);
    border-radius: 6px;
    cursor: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1rem;
    transition: 0.3s;
}

.qty-btn:hover {
    background: var(--primary-glow);
    color: #000;
}

/* ── Checkout ── */
.checkout-container {
    max-width: 1100px;
    margin: 120px auto 60px;
    padding: 40px 20px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.checkout-form-card,
.checkout-summary-card {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 35px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row:last-child {
    border-bottom: none;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.summary-details {
    flex: 1;
}

/* ── Modals ── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2500;
}

.modal-content {
    background: #020617;
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
}

/* ── Toast Notification ── */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    transition: opacity 0.5s;
}

.toast {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--primary-glow);
    color: white;
    padding: 14px 22px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 255, 0.2);
    font-family: 'Cairo', sans-serif;
}

.toast i {
    color: var(--primary-glow);
    font-size: 1.1rem;
}

/* ── Admin Panel ── */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(30px);
    border-left: 1px solid var(--glass-border);
    padding: 30px 0;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.admin-content {
    margin-right: 260px;
    padding: 30px;
    min-height: 100vh;
    width: calc(100% - 260px);
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 25px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
    font-weight: 600;
    border-right: 3px solid transparent;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    color: var(--primary-glow);
    background: rgba(0, 242, 255, 0.05);
    border-right-color: var(--primary-glow);
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.06), transparent 70%);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    padding: 12px 16px;
    text-align: right;
    color: var(--primary-glow);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ── Status Badges ── */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid;
}

.badge-pending {
    color: #facc15;
    border-color: #facc15;
    background: rgba(250, 204, 21, 0.1);
}

.badge-accepted {
    color: #00f2ff;
    border-color: #00f2ff;
    background: rgba(0, 242, 255, 0.1);
}

.badge-processing {
    color: #60a5fa;
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.badge-shipped {
    color: #a78bfa;
    border-color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
}

.badge-delivered {
    color: #34d399;
    border-color: #34d399;
    background: rgba(52, 211, 153, 0.1);
}

.badge-cancelled {
    color: #f87171;
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

/* ── Tracking ── */
.tracking-container {
    max-width: 900px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    position: relative;
}

.timeline-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: 0.4s;
    z-index: 2;
}

.timeline-step.done .timeline-icon {
    border-color: var(--primary-glow);
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-glow);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.timeline-step.current .timeline-icon {
    border-color: var(--accent-gold);
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-gold);
    animation: badgePulse 2s infinite;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── Footer ── */
footer {
    padding: 60px 8% 30px;
    border-top: 1px solid rgba(0, 242, 255, 0.08);
    margin-top: 80px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 0.9rem;
}

.footer-links h4,
.footer-newsletter h4 {
    color: var(--primary-glow);
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    display: block;
    padding: 4px 0;
}

.footer-links ul li a:hover {
    color: var(--primary-glow);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    border-radius: 10px;
    flex: 1;
}

.newsletter-form button {
    padding: 12px 18px;
    background: var(--primary-glow);
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: none;
    font-weight: 700;
    transition: 0.3s;
    flex-shrink: 0;
}

.newsletter-form button:hover {
    background: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.pagination a:hover,
.pagination span.active,
.pagination span[aria-current="page"] {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--primary-glow);
    color: var(--primary-glow);
}

/* ── Carousel (Product Images) ── */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    animation: fadeIn 0.5s ease;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: var(--primary-glow);
    color: var(--bg-color);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary-glow);
    box-shadow: 0 0 10px var(--primary-glow);
    width: 50px;
}

/* ── Promo Code Input ── */
.promo-group {
    display: flex;
    gap: 10px;
}

.promo-group input {
    flex: 1;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    nav {
        padding: 1rem 5%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }

    .admin-sidebar {
        display: none;
    }

    .admin-content {
        margin-right: 0;
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}