/* ============================================
   MARINERIG SUPPLIES - Premium Mobile App CSS
   Theme: Black, Yellow (#FFD700), White
   ============================================ */

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

/* ---- CSS VARIABLES ---- */
:root {
    --black: #000000;
    --black-light: #0a0a0a;
    --black-card: #111111;
    --black-surface: #1a1a1a;
    --black-elevated: #222222;
    --yellow: #FFD700;
    --yellow-hover: #FFC000;
    --yellow-dim: #B8980050;
    --yellow-glow: rgba(255, 215, 0, 0.15);
    --yellow-border: rgba(255, 215, 0, 0.25);
    --white: #FFFFFF;
    --white-dim: rgba(255, 255, 255, 0.6);
    --white-muted: rgba(255, 255, 255, 0.35);
    --danger: #ff4444;
    --success: #00c853;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 100px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(255, 215, 0, 0.1);
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- MOBILE FRAME (on desktop show mobile container) ---- */
.app-wrapper {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    background: var(--black);
    overflow-x: hidden;
}

@media (min-width: 431px) {
    body {
        background: #050505;
    }
    .app-wrapper {
        border-left: 1px solid var(--yellow-border);
        border-right: 1px solid var(--yellow-border);
        box-shadow: 0 0 80px rgba(255, 215, 0, 0.05);
    }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--yellow-dim); border-radius: 10px; }

/* ---- STATUS BAR ---- */
.status-bar {
    height: env(safe-area-inset-top, 10px);
    background: var(--black);
}

/* ---- HEADER ---- */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 16px;
    border-bottom: 1px solid var(--yellow-border);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logo in header */
.header-logo {
    height: 36px;
    width: auto;
    cursor: pointer;
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.2));
}

.header-logo:active {
    transform: scale(0.95);
}

/* Hamburger menu button */
.menu-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--black-surface);
    border: 1px solid var(--yellow-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: var(--transition);
    padding: 10px;
}

.menu-btn:active {
    transform: scale(0.92);
    background: var(--yellow-glow);
}

.menu-line {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--yellow);
    border-radius: 2px;
    transition: var(--transition);
}

.header-actions {
    display: flex;
    gap: 8px;
}

.header-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--black-surface);
    border: 1px solid var(--yellow-border);
    color: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-size: 18px;
}

.header-btn:active {
    transform: scale(0.92);
    background: var(--yellow-glow);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--black);
}

.cart-badge.hidden { display: none; }

/* ---- SEARCH BAR ---- */
.search-container {
    position: relative;
}

.search-bar {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border-radius: var(--radius-full);
    border: 1px solid var(--yellow-border);
    background: var(--black-surface);
    color: var(--white);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.search-bar::placeholder {
    color: var(--white-muted);
}

.search-bar:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--yellow);
    font-size: 16px;
    pointer-events: none;
}

/* ---- CATEGORIES ---- */
.categories-section {
    padding: 16px 16px 8px;
}

.categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar { display: none; }

.category-chip {
    flex-shrink: 0;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--yellow-border);
    background: transparent;
    color: var(--white-dim);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    scroll-snap-align: start;
    white-space: nowrap;
}

.category-chip.active,
.category-chip:active {
    background: var(--yellow);
    color: var(--black);
    border-color: var(--yellow);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* ---- HERO BANNER ---- */
.hero-banner {
    margin: 8px 16px 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--yellow-border);
}

.hero-banner-inner {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 16px;
}

.hero-logo {
    width: 90px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.hero-text h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--yellow);
    margin-bottom: 4px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 12px;
    color: var(--white-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.hero-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--yellow);
    color: var(--black);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: var(--font);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-btn:active {
    transform: scale(0.95);
    background: var(--yellow-hover);
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ---- PROMO BANNER (legacy) ---- */
.promo-banner {
    margin: 8px 16px 16px;
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--yellow) 0%, #FFA000 100%);
    position: relative;
    overflow: hidden;
}

.promo-banner::after {
    content: '⚙';
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 100px;
    opacity: 0.15;
}

.promo-banner h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 4px;
}

.promo-banner p {
    font-size: 13px;
    color: rgba(0,0,0,0.65);
    margin-bottom: 14px;
}

.promo-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--black);
    color: var(--yellow);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: var(--font);
    transition: var(--transition);
}

.promo-btn:active {
    transform: scale(0.95);
}

/* ---- CATEGORY CARDS ---- */
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px 16px;
}

.category-card {
    background: var(--black-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.category-card:active {
    transform: scale(0.96);
    border-color: var(--yellow-border);
    background: rgba(255, 215, 0, 0.04);
}

.category-card .cat-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.category-card .cat-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
}

.category-card .cat-count {
    font-size: 11px;
    color: var(--white-muted);
    margin-top: 2px;
}

/* ---- SECTION HEADERS ---- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.section-header a {
    font-size: 13px;
    color: var(--yellow);
    text-decoration: none;
    font-weight: 500;
}

/* ---- PRODUCT GRID ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px 16px;
}

/* ---- PRODUCT CARD ---- */
.product-card {
    background: var(--black-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.product-card:active {
    transform: scale(0.97);
}

.product-card:hover {
    border-color: var(--yellow-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(255, 215, 0, 0.05);
}

.product-card.featured::before {
    content: '★ Featured';
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: var(--yellow);
    color: var(--black);
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-image-wrap {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: var(--black-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:active .product-image-wrap img {
    transform: scale(1.05);
}

/* Product image placeholder */
.product-image-wrap .img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--black-surface) 0%, var(--black-elevated) 100%);
    color: var(--yellow-dim);
    font-size: 40px;
}

.product-info {
    padding: 10px;
}

.product-info .product-category {
    font-size: 10px;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-info h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--yellow);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--white-muted);
}

.product-rating .star {
    color: var(--yellow);
    font-size: 11px;
}

.add-cart-btn {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--yellow);
    color: var(--black);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-cart-btn:active {
    transform: scale(0.95);
    background: var(--yellow-hover);
}

.add-cart-btn:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.add-cart-btn.added {
    background: var(--success);
    color: var(--white);
}

/* ---- PRODUCT LIST VIEW (for category pages) ---- */
.product-list {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-list-item {
    display: flex;
    gap: 12px;
    background: var(--black-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.product-list-item:active {
    transform: scale(0.98);
}

.product-list-item .list-img {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    object-fit: cover;
    background: var(--black-surface);
}

.product-list-item .list-info {
    padding: 12px 12px 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.product-list-item .list-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-list-item .list-info .list-cat {
    font-size: 10px;
    color: var(--white-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.product-list-item .list-info .list-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--yellow);
}

/* ---- PRODUCT DETAIL PAGE ---- */
.detail-page {
    padding-bottom: 100px;
}

.detail-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    color: var(--yellow);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font);
}

.detail-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: var(--black-surface);
}

.detail-body {
    padding: 20px 16px;
}

.detail-category {
    font-size: 11px;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 8px;
}

.detail-body h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.detail-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--yellow);
    margin-bottom: 16px;
}

.detail-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}

.detail-stars {
    color: var(--yellow);
    font-size: 14px;
}

.detail-stock {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.detail-stock.in-stock {
    background: rgba(0, 200, 83, 0.15);
    color: var(--success);
}

.detail-stock.out-stock {
    background: rgba(255, 68, 68, 0.15);
    color: var(--danger);
}

.detail-desc-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.detail-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--white-dim);
    margin-bottom: 20px;
}

.detail-qty {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.detail-qty label {
    font-size: 14px;
    font-weight: 600;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--yellow-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: var(--black-surface);
    border: none;
    color: var(--yellow);
    font-size: 18px;
    cursor: pointer;
    font-family: var(--font);
    transition: var(--transition);
}

.qty-btn:active {
    background: var(--yellow-glow);
}

.qty-value {
    width: 50px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    background: transparent;
    border: none;
    color: var(--white);
    border-left: 1px solid var(--yellow-border);
    border-right: 1px solid var(--yellow-border);
    height: 40px;
    font-family: var(--font);
}

.detail-add-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--yellow);
    color: var(--black);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-add-btn:active {
    transform: scale(0.97);
    background: var(--yellow-hover);
}

/* Specs Table */
.specs-table {
    background: var(--black-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.specs-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.specs-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 13px;
    color: var(--white-muted);
}

.spec-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--yellow);
    text-align: right;
}

/* ---- CART PAGE ---- */
.cart-page {
    padding-bottom: 180px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.cart-empty h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-empty p {
    color: var(--white-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.cart-empty button {
    padding: 14px 32px;
    border: 1px solid var(--yellow);
    background: transparent;
    color: var(--yellow);
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cart-items {
    padding: 0 16px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--black-surface);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-info .cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: 8px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--yellow-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}

.cart-item-qty button {
    width: 32px;
    height: 32px;
    background: var(--black-surface);
    border: none;
    color: var(--yellow);
    font-size: 16px;
    cursor: pointer;
    font-family: var(--font);
}

.cart-item-qty span {
    width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border-left: 1px solid var(--yellow-border);
    border-right: 1px solid var(--yellow-border);
    line-height: 32px;
}

.cart-item-remove {
    position: absolute;
    top: 14px;
    right: 0;
    background: none;
    border: none;
    color: var(--danger);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

/* Cart Summary */
.cart-summary {
    position: fixed;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px)); /* Lift above bottom nav */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--yellow-border);
    padding: 16px;
    z-index: 90;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cart-total-row span {
    font-size: 14px;
    color: var(--white-dim);
}

.cart-total-row .total-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--yellow);
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--yellow);
    color: var(--black);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-btn:active {
    transform: scale(0.97);
}

/* ---- PAYMENT REQUEST PAGE ---- */
.payment-page {
    padding: 0 16px 120px;
}

.payment-page h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 20px 0 8px;
}

.payment-page p.subtitle {
    color: var(--white-muted);
    font-size: 13px;
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--white-dim);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--yellow-border);
    background: var(--black-surface);
    color: var(--white);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--white-muted);
}

.order-summary-box {
    background: var(--black-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--yellow-border);
    padding: 16px;
    margin-bottom: 20px;
}

.order-summary-box h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--yellow);
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.order-summary-item:last-child {
    border-bottom: none;
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--yellow-border);
    color: var(--yellow);
}

.submit-payment-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--yellow);
    color: var(--black);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

.submit-payment-btn:active {
    transform: scale(0.97);
}

/* ---- MESSAGES / CHAT PAGE ---- */
.messages-page {
    padding-bottom: 80px;
}

.messages-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.messages-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.messages-header .order-tag {
    font-size: 12px;
    color: var(--yellow);
    font-weight: 500;
}

.chat-messages {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 50vh;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

.chat-bubble.buyer {
    align-self: flex-end;
    background: var(--yellow);
    color: var(--black);
    border-bottom-right-radius: 4px;
}

.chat-bubble.admin {
    align-self: flex-start;
    background: var(--black-elevated);
    color: var(--white);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255,255,255,0.08);
}

.chat-bubble .chat-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
}

.chat-input-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--yellow-border);
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    z-index: 90;
}

.chat-input-bar input {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--yellow-border);
    background: var(--black-surface);
    color: var(--white);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
}

.chat-input-bar button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--yellow);
    border: none;
    color: var(--black);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-input-bar button:active {
    transform: scale(0.9);
}

/* ---- ORDER TRACKING ---- */
.track-page {
    padding: 20px 16px 100px;
}

.track-page h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.track-form {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.track-form input {
    flex: 1;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--yellow-border);
    background: var(--black-surface);
    color: var(--white);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
}

.track-form button {
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--yellow);
    color: var(--black);
    font-family: var(--font);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.order-card {
    background: var(--black-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--yellow-border);
    padding: 20px;
    margin-bottom: 16px;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.order-ref {
    font-size: 16px;
    font-weight: 700;
    color: var(--yellow);
}

.order-status {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.pending { background: rgba(255,165,0,0.15); color: orange; }
.order-status.processing { background: rgba(0,150,255,0.15); color: #0096ff; }
.order-status.approved { background: rgba(0,200,83,0.15); color: var(--success); }
.order-status.completed { background: rgba(0,200,83,0.15); color: var(--success); }
.order-status.cancelled { background: rgba(255,68,68,0.15); color: var(--danger); }

.order-card-items {
    font-size: 13px;
    color: var(--white-dim);
    margin-bottom: 12px;
}

.order-card-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: 12px;
}

.order-card-date {
    font-size: 12px;
    color: var(--white-muted);
}

.order-chat-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--yellow);
    background: transparent;
    color: var(--yellow);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: var(--transition);
}

.order-chat-btn:active {
    background: var(--yellow-glow);
}

/* ---- BOTTOM NAV ---- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--yellow-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    background: none;
    border: none;
    color: var(--white-muted);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    position: relative;
}

.nav-item.active {
    color: var(--yellow);
}

.nav-item .nav-icon {
    font-size: 22px;
    line-height: 1;
}

.nav-item .nav-label {
    font-size: 10px;
    font-weight: 600;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--yellow);
    border-radius: 0 0 4px 4px;
}

.nav-cart-badge {
    position: absolute;
    top: 0;
    right: 4px;
    width: 16px;
    height: 16px;
    background: var(--danger);
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-cart-badge.hidden { display: none; }

/* ---- PAGE CONTENT SPACER ---- */
.page-content {
    padding-bottom: 80px;
}

/* ---- LOADING / SKELETON ---- */
.skeleton {
    background: linear-gradient(90deg, var(--black-surface) 25%, var(--black-elevated) 50%, var(--black-surface) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- TOAST / NOTIFICATION ---- */
.toast {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    max-width: 380px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    background: var(--yellow);
    color: var(--black);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    z-index: 200;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: var(--danger);
    color: white;
}

.toast.success {
    background: var(--success);
    color: white;
}

/* ---- SUCCESS PAGE ---- */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 40px 20px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 200, 83, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 24px;
    animation: pulse-success 2s infinite;
}

@keyframes pulse-success {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,200,83,0.3); }
    50% { box-shadow: 0 0 0 20px rgba(0,200,83,0); }
}

.success-page h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.success-page p {
    color: var(--white-dim);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.success-page .order-ref-display {
    font-size: 20px;
    font-weight: 800;
    color: var(--yellow);
    margin: 16px 0 24px;
    padding: 12px 24px;
    background: var(--yellow-glow);
    border: 1px dashed var(--yellow);
    border-radius: var(--radius-md);
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
}

.success-actions button {
    padding: 14px;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.success-actions .primary-btn {
    background: var(--yellow);
    color: var(--black);
    border: none;
}

.success-actions .secondary-btn {
    background: transparent;
    color: var(--yellow);
    border: 1px solid var(--yellow);
}

/* ---- OVERLAY / MODAL ---- */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-in {
    animation: fadeInUp 0.4s ease forwards;
}

/* ---- UTILITIES ---- */
.text-yellow { color: var(--yellow); }
.text-muted { color: var(--white-muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none !important; }

/* ---- MENU SIDEBAR ---- */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: var(--black-light);
    z-index: 200;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--yellow-border);
    overflow-y: auto;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    padding: 32px 20px 20px;
    border-bottom: 1px solid var(--yellow-border);
    background: linear-gradient(135deg, rgba(255,215,0,0.08) 0%, transparent 100%);
    text-align: center;
}

.sidebar-logo {
    width: 120px;
    height: auto;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.25));
}

.sidebar-header h2 {
    font-size: 18px;
    color: var(--yellow);
    font-weight: 700;
}

.sidebar-header p {
    font-size: 12px;
    color: var(--white-muted);
    margin-top: 4px;
}

.sidebar-close {
    position: absolute;
    top: 20px;
    right: 16px;
    background: none;
    border: none;
    color: var(--white-muted);
    font-size: 24px;
    cursor: pointer;
}

.sidebar-links {
    padding: 16px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font);
}

.sidebar-link:active {
    background: var(--yellow-glow);
    color: var(--yellow);
}

.sidebar-link .link-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 8px 0;
}

/* ---- TRUST BADGES ---- */
.trust-section {
    padding: 8px 16px 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.trust-section::-webkit-scrollbar { display: none; }

.trust-badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--black-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    font-size: 11px;
    color: var(--white-dim);
    font-weight: 500;
    white-space: nowrap;
}

.trust-badge .trust-icon {
    font-size: 16px;
}

/* ---- RECEIPT CARD ---- */
.receipt-card {
    margin: 0 16px;
    background: var(--black-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--yellow-border);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}
/* ---- SPLASH SCREEN ---- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    animation: splash-appear 0.8s ease-out;
}

.splash-logo-large {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.3));
}

.splash-loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--yellow-dim);
    border-top: 3px solid var(--yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes splash-appear {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
