/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --gold-primary: #D4AF37;
    --gold-light: #FFD27F;
    --gold-dark: #B8860B;
    --dark-bg: #0F0F0F;
    --bg-main: #F7F8FA;
    --bg-surface: #ffffff;
    --text-main: #1A1A2E;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --blue: #3B82F6;
    --green: #10B981;
    --purple: #8B5CF6;
    --red: #EF4444;
    --nav-height: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; }

/* ====================================
   NAVIGATION
==================================== */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    border-bottom: 1px solid rgba(212,175,55,0.15);
}

.nav-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-icon { color: var(--gold-primary); font-size: 0.9rem; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-link {
    color: #bbb;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.nav-link:hover { color: var(--gold-light); background: rgba(255,210,127,0.07); }

.nav-link.nav-admin {
    border: 1px solid rgba(212,175,55,0.3);
    color: var(--gold-primary);
}

.nav-link.nav-admin:hover { background: var(--gold-primary); color: var(--dark-bg); }

.nav-cart-btn {
    position: relative;
    background: none;
    border: 1px solid rgba(255,255,255,0.18);
    color: #bbb;
    width: 40px; height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}

.nav-cart-btn:hover { border-color: var(--gold-primary); color: var(--gold-primary); }

.cart-badge {
    position: absolute;
    top: -7px; right: -7px;
    background: var(--gold-primary);
    color: var(--dark-bg);
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Outfit', sans-serif;
}

/* ====================================
   HERO / HEADER
==================================== */
header {
    margin-top: var(--nav-height);
    background: var(--dark-bg);
    color: var(--gold-light);
    text-align: center;
    padding: 160px 20px 200px;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--gold-primary);
}

/* Grid pattern overlay */
header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212,175,55,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,175,55,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212,175,55,0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(212,175,55,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.3);
    color: var(--gold-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 28px;
}

header h1 {
    font-size: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.1;
}

header p {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: #aaa;
    margin-bottom: 45px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold-primary);
    color: var(--dark-bg);
    text-decoration: none;
    padding: 15px 34px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.hero-btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212,175,55,0.3);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    padding: 15px 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.25);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    padding: 20px 40px;
    border-radius: 16px;
}

.hero-stat { text-align: center; }

.hero-stat-number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.72rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.12);
}

/* ====================================
   MAIN LAYOUT
==================================== */
main {
    max-width: 1200px;
    margin: -80px auto 0;
    padding: 0 20px 80px;
    position: relative;
    z-index: 10;
}

/* ====================================
   SECTION HEADERS
==================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

section h2 {
    font-size: 2.4rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--text-main);
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gold-primary);
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-subheading {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ====================================
   CATALOG GRID
==================================== */
#catalog {
    padding-top: 120px;
    margin-bottom: 80px;
}

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

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-primary);
}

.item-image-wrapper {
    width: 100%;
    height: 280px;
    background: #F0EDE4;
    position: relative;
    overflow: hidden;
}

.rental-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover .rental-img { transform: scale(1.06); }

.img-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #C8B99A;
    z-index: 0;
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--gold-primary);
    color: var(--dark-bg);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 50px;
    z-index: 1;
}

.card-details {
    padding: 28px 26px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card h3 {
    font-size: 1.18rem;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.price {
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.price i { font-size: 0.9rem; }

.price-unit {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.stock {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.stock i { color: var(--gold-primary); font-size: 0.8rem; }

.stock-count { font-weight: 600; color: var(--text-main); }

.out-of-stock { color: var(--red) !important; }

.add-btn {
    margin-top: auto;
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    border: 2px solid var(--dark-bg);
    background: transparent;
    color: var(--dark-bg);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-btn:hover:not(:disabled) {
    background: var(--dark-bg);
    color: var(--gold-light);
}

.add-btn:active:not(:disabled) { transform: scale(0.97); }

.add-btn:disabled {
    border-color: var(--border-color);
    color: #bbb;
    background: #F9FAFB;
    cursor: not-allowed;
}

/* ====================================
   CHECKOUT / BOOKING FORM
==================================== */
#checkout { padding-top: 40px; }

#rental-form {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    max-width: 680px;
    margin: 0 auto;
    padding: 50px 48px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group { margin-bottom: 22px; }

#rental-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

#rental-form label i { color: var(--gold-primary); font-size: 0.78rem; }

#rental-form input {
    width: 100%;
    padding: 13px 18px;
    background: var(--bg-main);
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

#rental-form input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.12);
    background: var(--bg-surface);
}

.order-summary {
    background: var(--bg-main);
    border-radius: 14px;
    padding: 22px;
    margin: 8px 0 28px;
    border: 1.5px solid var(--border-color);
}

.order-summary-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-summary-title i { color: var(--gold-primary); }

.summary-badge {
    margin-left: auto;
    background: var(--gold-primary);
    color: var(--dark-bg);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#cart-items {
    list-style: none;
    margin-bottom: 15px;
    padding: 0;
}

#cart-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.92rem;
}

#cart-items li:last-child { border-bottom: none; }

.cart-item-name { color: var(--text-main); font-weight: 500; }

.cart-item-qty {
    color: var(--gold-primary);
    font-weight: 700;
    margin-right: 8px;
    font-size: 0.88rem;
}

.remove-btn {
    background: rgba(239,68,68,0.08);
    color: var(--red);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.remove-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

.total-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 14px;
    padding-top: 12px;
    border-top: 2px solid var(--border-color);
}

#item-count {
    color: var(--gold-primary);
    font-size: 1.4rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--dark-bg);
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(212,175,55,0.25);
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212,175,55,0.4);
}

.submit-btn:disabled {
    background: var(--border-color);
    color: #bbb;
    cursor: not-allowed;
    box-shadow: none;
}

/* ====================================
   FOOTER
==================================== */
.site-footer {
    background: var(--dark-bg);
    border-top: 1px solid rgba(212,175,55,0.15);
    padding: 50px 40px 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-wrap: wrap;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.footer-brand p { color: #555; font-size: 0.88rem; }

.footer-links { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; }

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--gold-primary); }

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    text-align: center;
    color: #444;
    font-size: 0.82rem;
}

/* ====================================
   ADMIN — LOGIN OVERLAY
==================================== */
.admin-login-overlay {
    position: fixed;
    inset: 0;
    background: #060606;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background-image:
        linear-gradient(rgba(212,175,55,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,175,55,0.025) 1px, transparent 1px);
    background-size: 70px 70px;
}

.admin-login-card {
    background: #141414;
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: 20px;
    padding: 50px 44px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.login-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 28px;
}

.admin-login-card h2 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.admin-login-card > p { color: #555; font-size: 0.88rem; margin-bottom: 30px; }

.login-form-group { text-align: left; margin-bottom: 18px; }

.login-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.login-form-group input {
    width: 100%;
    padding: 13px 18px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.93rem;
    transition: var(--transition);
}

.login-form-group input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.1);
}

.login-form-group input.input-error { border-color: var(--red); }

.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--red);
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--dark-bg);
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 10px;
}

.login-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,175,55,0.3); }

/* ====================================
   ADMIN — LAYOUT
==================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 255px;
    background: #111;
    color: var(--gold-light);
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid rgba(212,175,55,0.08);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: width 0.3s ease;
}

.admin-sidebar.collapsed { width: 68px; }

.admin-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 8px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-icon { font-size: 1.1rem; flex-shrink: 0; }

.admin-nav-section { margin-bottom: 22px; }

.nav-section-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #383838;
    padding: 0 10px;
    margin-bottom: 6px;
}

.admin-nav { list-style: none; }
.admin-nav li { margin-bottom: 3px; }

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    color: #777;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
}

.admin-nav a i { width: 18px; text-align: center; flex-shrink: 0; font-size: 0.88rem; }

.admin-nav a.active, .admin-nav a:hover {
    background: rgba(212,175,55,0.1);
    color: var(--gold-light);
}

.admin-nav a.active { color: var(--gold-primary); }

.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 13px;
    background: none;
    border: 1px solid rgba(239,68,68,0.2);
    color: #c07070;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.87rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-logout-btn:hover { background: rgba(239,68,68,0.1); color: var(--red); border-color: var(--red); }

/* ====================================
   ADMIN — MAIN CONTENT
==================================== */
.admin-main {
    flex: 1;
    background: var(--bg-main);
    overflow-y: auto;
    padding: 0;
}

/* ====================================
   ADMIN — TOPBAR
==================================== */
.admin-topbar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0 36px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px; height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}

.menu-toggle:hover { background: var(--bg-main); color: var(--text-main); }

.topbar-greeting {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}

.topbar-date { font-size: 0.75rem; color: var(--text-muted); }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.topbar-refresh-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.topbar-refresh-btn:hover { background: var(--bg-main); color: var(--text-main); border-color: var(--gold-primary); }

.topbar-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--dark-bg);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
}

/* ====================================
   ADMIN — SECTION TITLES & STATS
==================================== */
.dashboard-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 28px 36px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-section-title i { color: var(--gold-primary); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 0 36px 6px;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 22px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    cursor: default;
}

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-blue .stat-icon  { background: rgba(59,130,246,0.1); color: var(--blue); }
.stat-gold .stat-icon  { background: rgba(212,175,55,0.1); color: var(--gold-primary); }
.stat-green .stat-icon { background: rgba(16,185,129,0.1); color: var(--green); }
.stat-purple .stat-icon{ background: rgba(139,92,246,0.1); color: var(--purple); }

.stat-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.stat-title {
    color: var(--text-muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    white-space: nowrap;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

/* ====================================
   ADMIN — TABLE TOOLBAR
==================================== */
.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 36px 14px;
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 360px;
}

.search-icon {
    position: absolute;
    left: 13px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.82rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 9px 16px 9px 36px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.88rem;
    transition: var(--transition);
}

.search-input:focus { outline: none; border-color: var(--gold-primary); box-shadow: 0 0 0 3px rgba(212,175,55,0.1); }

.order-count-label { font-size: 0.83rem; color: var(--text-muted); font-weight: 500; }

.export-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.export-btn:hover { background: var(--bg-main); border-color: var(--green); color: var(--green); }

/* ====================================
   ADMIN — TABLE
==================================== */
.table-container {
    background: var(--bg-surface);
    border-radius: 16px;
    margin: 0 36px 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

table { width: 100%; border-collapse: collapse; }

th {
    background: var(--bg-main);
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    vertical-align: middle;
    font-size: 0.88rem;
}

tbody tr { transition: background 0.15s; }
tbody tr:hover { background: #FAFAFA; }
tbody tr:last-child td { border-bottom: none; }

.order-id {
    display: inline-block;
    background: var(--bg-main);
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.82rem;
    font-family: 'Outfit', sans-serif;
}

.customer-cell { display: flex; align-items: center; gap: 10px; }

.customer-avatar {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--dark-bg);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.order-items-cell { font-size: 0.83rem; line-height: 1.9; }

.item-badge {
    display: inline-block;
    background: rgba(212,175,55,0.08);
    color: var(--gold-dark);
    border: 1px solid rgba(212,175,55,0.22);
    padding: 3px 10px;
    border-radius: 6px;
    margin-right: 4px;
    margin-bottom: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

.item-badge-error {
    background: rgba(239,68,68,0.08);
    color: var(--red);
    border-color: rgba(239,68,68,0.2);
}

/* ====================================
   TOAST NOTIFICATIONS
==================================== */
#toast-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-surface);
    border-left: 4px solid var(--gold-primary);
    color: var(--text-main);
    padding: 16px 22px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.14);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-width: 320px;
}

.toast.show { transform: translateX(0); }
.toast.error { border-left-color: var(--red); }
.toast-icon { font-size: 1rem; color: var(--gold-primary); }
.toast.error .toast-icon { color: var(--red); }

/* ====================================
   RESPONSIVE
==================================== */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        width: 100% !important;
        height: auto;
        position: static;
        padding: 14px 16px;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    .admin-logo { margin-bottom: 0; font-size: 0.9rem; }
    .admin-nav-section { display: none; }
    .sidebar-footer { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 0 20px 8px; }
    .admin-topbar { padding: 0 20px; }
    .dashboard-section-title { padding: 20px 20px 8px; }
    .table-toolbar { padding: 0 20px 12px; }
    .table-container { margin: 0 20px 30px; }
}

@media (max-width: 768px) {
    .site-nav { padding: 0 20px; }
    .nav-actions .nav-link:not(.nav-admin) { display: none; }
    header { padding: 130px 20px 160px; }
    header h1 { font-size: 2.8rem; letter-spacing: 2px; }
    .hero-stats { flex-direction: column; gap: 14px; padding: 18px 28px; }
    .hero-stat-divider { width: 60px; height: 1px; }
    main { margin-top: -40px; }
    .form-row { grid-template-columns: 1fr; }
    #rental-form { padding: 32px 24px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

@media (max-width: 560px) {
    header h1 { font-size: 2rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-btn-primary, .hero-btn-secondary { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-value { font-size: 1.5rem; }
    .site-footer { padding: 40px 20px 24px; }
}