:root {
    --primary-gold: #D4AF37;
    --primary-dark: #2C3E50;
    --accent-gold: #F1C40F;
    --bg-light: #F8F9FA;
    --text-dark: #333333;
    --text-muted: #6C757D;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --transition: all 0.2s ease;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.4;
}

/* Premium Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-dark);
}

.text-gold {
    color: var(--primary-gold);
}

/* Auth Page Styling */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.auth-card:hover {
    transform: translateY(-5px);
}

/* Dashboard & Welcome */
.welcome-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.brand-logo {
    max-width: 180px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.btn-premium {
    background: linear-gradient(45deg, var(--primary-dark), #4b6584);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.btn-premium:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #fff;
}

.btn-scan {
    background: linear-gradient(45deg, var(--primary-gold), var(--accent-gold));
    color: var(--primary-dark);
}

/* Product Details Layout */
.detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
}

.detail-section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--primary-gold);
    display: inline-block;
    padding-bottom: 3px;
    margin-bottom: 0.75rem;
}

.info-row {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-bottom: 1px solid #f8f9fa;
    transition: var(--transition);
    border-radius: 8px;
}

.info-label {
    font-weight: 600;
    color: var(--text-muted);
}

.info-value {
    font-weight: 500;
    color: var(--text-dark);
}

/* Scanner Viewport */
#reader {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 5px solid white !important;
}

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

.animate-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Enhanced Hero Section (Light Theme for Visibility) */
.product-hero {
    background: #ffffff;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 10px rgba(0,0,0,0.02);
}

.hero-code {
    background: #fff9e6;
    color: var(--primary-gold);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.25rem;
    border: 1px solid var(--primary-gold);
}

/* Premium Icon Styles */
.icon-box {
    width: 28px;
    height: 28px;
    background: var(--bg-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    margin-right: 10px;
    font-size: 0.8rem;
}

/* Detail Row Enhancement */
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #f8f9fa;
    transition: var(--transition);
    border-radius: 8px;
    width: 100%;
}

.info-row:hover {
    background-color: #fcfcfc;
}

.info-label-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 15px;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.info-value {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.9rem;
    text-align: right;
    word-break: break-word;
}

/* Premium Total Card */
.total-card {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #b8860b 100%);
    color: var(--primary-dark);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
    border: none;
    position: relative;
    overflow: hidden;
}

.total-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
}

.total-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    opacity: 0.8;
}

.total-amount {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
}

/* Responsive Grid for Details */
@media (min-width: 992px) {
    .details-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* User Profile in Header */
.user-profile {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: var(--primary-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
