/* ===== CSS Reset & Variables ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Premium Gold & Dark Theme */
    --gold: #D4AF37;
    --gold-light: #F5E6C8;
    --gold-lighter: #FFF8E7;
    --gold-dark: #B8860B;
    --gold-glow: rgba(212, 175, 55, 0.4);

    --maroon: #8B0000;
    --maroon-light: #A52A2A;

    --dark: #0a0a0a;
    --dark-card: #111111;
    --dark-elevated: #1a1a1a;
    --dark-border: #2a2a2a;

    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --text-gold: #D4AF37;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F5E6C8 50%, #D4AF37 100%);
    --gradient-gold-text: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-dark: linear-gradient(180deg, #0f0f0f 0%, #000000 100%);
    --gradient-card: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(10, 10, 10, 0.98));

    /* Shadows */
    --shadow-gold: 0 0 60px rgba(212, 175, 55, 0.15);
    --shadow-card: 0 25px 50px rgba(0, 0, 0, 0.5);
    --shadow-button: 0 10px 40px rgba(212, 175, 55, 0.3);
}

/* ===== Base Styles ===== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Background Pattern ===== */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 0, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Background Orbs ===== */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: float 25s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--gold);
    top: -200px;
    right: -150px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--maroon);
    bottom: 10%;
    left: -200px;
    animation-delay: -8s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--gold-dark);
    bottom: -100px;
    right: 15%;
    animation-delay: -16s;
}

.orb-4 {
    width: 200px;
    height: 200px;
    background: var(--gold);
    top: 40%;
    left: 10%;
    animation-delay: -12s;
    opacity: 0.15;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-40px) scale(1.05);
    }
}

/* ===== Container ===== */
.container {
    position: relative;
    z-index: 1;
    max-width: 950px;
    margin: 0 auto;
    padding: 50px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Header ===== */
.header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Hero Images Gallery */
.hero-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.hero-image-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.hero-image-wrapper:hover {
    transform: scale(1.1) rotate(-3deg);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.4), inset 0 0 30px rgba(0, 0, 0, 0.3);
    animation: pulse 3s ease-in-out infinite;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.logo-ring.main-logo {
    width: 140px;
    height: 140px;
}

.deity-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 50px rgba(212, 175, 55, 0.4), inset 0 0 30px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 70px rgba(212, 175, 55, 0.6), inset 0 0 30px rgba(0, 0, 0, 0.3);
    }
}

.om {
    font-size: 3.5rem;
    color: var(--dark);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.brand {
    text-align: center;
}

/* BIS Badge */
.bis-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.3);
}

.brand-name {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 600;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.brand-divider {
    width: 100px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 15px auto;
    border-radius: 3px;
}

.tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.location {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ===== Event Banner ===== */
.event-banner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(139, 0, 0, 0.15) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 35px;
    animation: fadeInUp 1s ease-out 0.1s backwards;
}

.event-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.event-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.event-icon svg {
    width: 30px;
    height: 30px;
    color: var(--dark);
}

.event-text {
    text-align: left;
}

.event-text h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 5px;
}

.event-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ===== Main Section ===== */
.main {
    flex: 1;
}

/* ===== Search Section ===== */
.search-section {
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.search-card {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
}

.search-title {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-gold);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.search-title svg {
    width: 28px;
    height: 28px;
}

.search-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    text-align: center;
}

.search-wrapper {
    display: flex;
    gap: 12px;
    max-width: 650px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: var(--gold);
    opacity: 0.7;
}

#searchInput {
    width: 100%;
    padding: 20px 55px 20px 60px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border: 2px solid var(--dark-border);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-primary);
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#searchInput::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

#searchInput:focus {
    border-color: var(--gold);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1), var(--shadow-gold);
}

#searchInput.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-8px);
    }

    40%,
    80% {
        transform: translateX(8px);
    }
}

.clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-btn svg {
    width: 16px;
    height: 16px;
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.search-btn {
    padding: 20px 32px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 16px;
    background: var(--gradient-gold);
    color: var(--dark);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-button);
    white-space: nowrap;
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.4);
}

.search-btn:active {
    transform: translateY(-1px);
}

.search-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 20px;
    text-align: center;
}

.search-hint kbd {
    display: inline-block;
    padding: 4px 10px;
    font-family: inherit;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    color: var(--text-secondary);
    margin: 0 3px;
}

/* ===== Results Section ===== */
.results-section {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.results-container {
    min-height: 200px;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon svg {
    width: 50px;
    height: 50px;
    color: var(--gold);
    opacity: 0.5;
}

.empty-state h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.record-count {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.85rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 30px;
    color: var(--gold);
}

/* ===== Results Header ===== */
.results-header {
    margin-bottom: 25px;
}

.results-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 30px;
    color: #27AE60;
    font-size: 0.95rem;
}

.results-badge svg {
    width: 20px;
    height: 20px;
}

.results-badge strong {
    font-weight: 700;
}

/* ===== Customer Card ===== */
.customer-card {
    position: relative;
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: 24px;
    margin-bottom: 25px;
    overflow: hidden;
    animation: cardSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.customer-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-8px);
    box-shadow: var(--shadow-card), var(--shadow-gold);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
}

.card-content {
    padding: 35px;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.coupon-badge {
    display: flex;
    align-items: center;
    gap: 15px;
}

.coupon-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-gold);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.coupon-icon svg {
    width: 28px;
    height: 28px;
    color: var(--dark);
}

.coupon-info {
    display: flex;
    flex-direction: column;
}

.coupon-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.coupon-number {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gold);
}

.bill-badge {
    text-align: right;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
}

.bill-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.bill-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Customer Name Section */
.customer-name-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 16px;
    margin-bottom: 25px;
}

.avatar {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar svg {
    width: 30px;
    height: 30px;
    color: var(--gold);
}

.customer-name {
    display: flex;
    flex-direction: column;
}

.name-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.name-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Info Cards Grid */
.card-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--dark-border);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 175, 55, 0.2);
}

.info-icon {
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 22px;
    height: 22px;
    color: var(--gold);
}

.info-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.info-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== No Results ===== */
.no-results {
    text-align: center;
    padding: 80px 20px;
    animation: fadeIn 0.5s ease-out;
}

.no-results-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    background: rgba(255, 100, 100, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-results-icon svg {
    width: 60px;
    height: 60px;
    color: #FF6464;
    opacity: 0.7;
}

.no-results h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.no-results p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.no-results strong {
    color: var(--text-secondary);
}

.no-results .hint {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ===== Loading State ===== */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--dark-border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding-top: 50px;
    margin-top: auto;
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.footer-content {
    padding: 35px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--dark-border);
    border-radius: 24px;
}

.footer-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.footer-deity-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-brand {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 8px;
}

.footer-badge {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #2ECC71;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.address {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* ===== Copyright Section ===== */
.copyright-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--dark-border);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.made-by {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.developer-link {
    display: inline-block;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.developer-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.developer-link:hover {
    background: var(--gradient-gold);
    color: var(--dark);
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.developer-link:hover::before {
    left: 100%;
}

.developer-link:active {
    transform: scale(0.98);
}

/* ===== Enhanced Touch Effects ===== */
.search-btn:active,
.login-btn:active,
.clear-btn:active {
    transform: scale(0.95);
}

.customer-card:active {
    transform: scale(0.98);
}

.hero-image-wrapper:active {
    transform: scale(0.95);
}

.info-card:active {
    transform: scale(0.97);
    background: rgba(212, 175, 55, 0.1);
}

/* Ripple effect for buttons */
.search-btn,
.login-btn {
    position: relative;
    overflow: hidden;
}

.search-btn::after,
.login-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.search-btn:active::after,
.login-btn:active::after {
    width: 300px;
    height: 300px;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .container {
        padding: 30px 16px;
    }

    .logo-ring {
        width: 80px;
        height: 80px;
    }

    .om {
        font-size: 2.8rem;
    }

    .brand-name {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .tagline {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .search-card {
        padding: 25px 20px;
    }

    .search-title {
        font-size: 1.3rem;
    }

    .search-wrapper {
        flex-direction: column;
    }

    .search-btn {
        justify-content: center;
        padding: 16px 24px;
    }

    #searchInput {
        padding: 18px 50px 18px 55px;
        font-size: 1rem;
    }

    .card-content {
        padding: 25px 20px;
    }

    .card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .bill-badge {
        text-align: left;
    }

    .customer-name-section {
        padding: 20px;
    }

    .name-value {
        font-size: 1.3rem;
    }

    .card-body {
        grid-template-columns: 1fr;
    }

    .orb-1,
    .orb-2 {
        width: 250px;
        height: 250px;
    }

    .orb-3,
    .orb-4 {
        display: none;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.5rem;
    }

    .hero-images {
        gap: 15px;
    }

    .hero-image-wrapper {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }

    .logo-ring.main-logo {
        width: 90px;
        height: 90px;
    }

    .bis-badge {
        font-size: 0.7rem;
        padding: 6px 15px;
    }

    .event-banner {
        padding: 20px;
    }

    .event-content {
        flex-direction: column;
        text-align: center;
    }

    .event-text {
        text-align: center;
    }

    .event-icon {
        width: 50px;
        height: 50px;
    }

    .event-icon svg {
        width: 24px;
        height: 24px;
    }

    .customer-name-section {
        flex-direction: column;
        text-align: center;
    }

    .info-card {
        padding: 15px;
    }
}

/* ===== LOGIN SCREEN ===== */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.8s ease-out;
}

.login-card {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-card), var(--shadow-gold);
    position: relative;
    z-index: 10;
}

.login-header {
    text-align: center;
    padding: 40px 30px 30px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%);
    border-bottom: 1px solid var(--dark-border);
}

.login-logo {
    width: 100px;
    height: 100px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
    animation: pulse 3s ease-in-out infinite;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.login-deity-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-logo .om {
    font-size: 2.5rem;
}

.login-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-body {
    padding: 40px 35px;
    text-align: center;
}

.login-icon {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.login-icon svg {
    width: 35px;
    height: 35px;
    color: var(--gold);
}

.login-body h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.login-body>p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.password-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

#passwordInput {
    width: 100%;
    padding: 18px 55px 18px 20px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    border: 2px solid var(--dark-border);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 2px;
    cursor: text;
    position: relative;
    z-index: 10;
}

#passwordInput::placeholder {
    color: var(--text-muted);
    letter-spacing: 0;
}

#passwordInput:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

#passwordInput.error {
    border-color: #FF6464;
    animation: shake 0.5s ease-in-out;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    z-index: 20;
}

.toggle-password:hover {
    color: var(--gold);
}

.toggle-password svg {
    width: 22px;
    height: 22px;
}

.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 10px;
    margin-bottom: 20px;
    color: #FF6464;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease-out;
}

.error-message svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.login-btn {
    width: 100%;
    padding: 18px 30px;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    background: var(--gradient-gold);
    color: var(--dark);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow-button);
}

.login-btn svg {
    width: 22px;
    height: 22px;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.5);
}

.login-btn:active {
    transform: translateY(-1px);
}

.login-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--dark-border);
    background: rgba(0, 0, 0, 0.2);
}

.login-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Logout Button ===== */
.logout-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
}

.logout-btn svg {
    width: 18px;
    height: 18px;
}

.logout-btn:hover {
    border-color: var(--maroon);
    background: rgba(139, 0, 0, 0.2);
    color: #FF6464;
}

/* Login responsive */
@media (max-width: 480px) {
    .login-header {
        padding: 30px 20px 25px;
    }

    .login-logo {
        width: 70px;
        height: 70px;
    }

    .login-logo .om {
        font-size: 2rem;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-body {
        padding: 30px 25px;
    }

    .logout-btn {
        top: 10px;
        right: 10px;
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .logout-btn span {
        display: none;
    }
}

/* ===== Two Column Layout ===== */
.main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 100px);
}

/* ===== Winners Panel (Left Side) ===== */
.winners-panel {
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 20px;
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.winners-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--dark-border);
}

.winners-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.winners-title svg {
    width: 22px;
    height: 22px;
}

.winners-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 12px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 20px;
}

.winners-count span {
    color: var(--gold);
    font-weight: 700;
}

.winners-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.clear-winners-btn,
.export-winners-btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    background: rgba(26, 26, 26, 0.8);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.clear-winners-btn svg,
.export-winners-btn svg {
    width: 16px;
    height: 16px;
}

.clear-winners-btn:hover {
    border-color: var(--maroon);
    background: rgba(139, 0, 0, 0.2);
    color: #FF6464;
}

.export-winners-btn:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}

.winners-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.winners-list::-webkit-scrollbar {
    width: 6px;
}

.winners-list::-webkit-scrollbar-track {
    background: var(--dark-elevated);
    border-radius: 3px;
}

.winners-list::-webkit-scrollbar-thumb {
    background: var(--dark-border);
    border-radius: 3px;
}

.winners-list::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

.empty-winners {
    text-align: center;
    padding: 40px 15px;
    color: var(--text-muted);
}

.empty-winners svg {
    width: 50px;
    height: 50px;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: 15px;
}

.empty-winners p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.empty-winners span {
    font-size: 0.8rem;
}

/* Winner Item */
.winner-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.winner-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.05);
}

.winner-rank {
    width: 36px;
    height: 36px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark);
    flex-shrink: 0;
}

.winner-rank.top-3 {
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.winner-details {
    flex: 1;
    min-width: 0;
}

.winner-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.winner-coupon {
    font-size: 0.75rem;
    color: var(--gold);
}

/* ===== Prize Input Section ===== */
.prize-input-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
}

.prize-input-section label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.prize-input-wrapper {
    display: flex;
    align-items: center;
}

#prizeNumberInput {
    width: 70px;
    padding: 10px 12px;
    font-size: 1.2rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--dark-border);
    border-radius: 10px 0 0 10px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--gold);
    outline: none;
    transition: all 0.3s ease;
}

#prizeNumberInput:focus {
    border-color: var(--gold);
    background: rgba(0, 0, 0, 0.6);
}

#prizeNumberInput::-webkit-inner-spin-button,
#prizeNumberInput::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.prize-ordinal {
    padding: 10px 14px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--gradient-gold);
    color: var(--dark);
    border-radius: 0 10px 10px 0;
}

.prize-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== Add Winner Button ===== */
.add-winner-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    padding: 16px 24px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.add-winner-btn svg {
    width: 20px;
    height: 20px;
}

.add-winner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(39, 174, 96, 0.4);
}

.add-winner-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== Main Content (Right Side) ===== */
.main-content {
    display: flex;
    flex-direction: column;
}

/* ===== Responsive Design for Two Column Layout ===== */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 280px 1fr;
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .winners-panel {
        position: relative;
        top: 0;
        max-height: 350px;
        order: -1;
    }
}

@media (max-width: 600px) {
    .prize-input-section {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .winners-actions {
        flex-direction: column;
    }
}