@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* DUK Premium Tech Palette */
    --bg-main: #09090b; /* Zinc 950 */
    --surface: #18181b; /* Zinc 900 */
    --surface-hover: #27272a;
    --border-light: rgba(255, 255, 255, 0.08);
    --border-focus: #06b6d4; /* Cyan 500 */
    
    /* Gradients for a "Digital" feel */
    --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --brand-gradient-hover: linear-gradient(135deg, #4338ca 0%, #0891b2 100%);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

/* FORCEFULLY HIDE VISUAL SCROLLBARS GLOBALLY */
html, body {
    /* Prevents horizontal layout breaking entirely */
    max-width: 100%;
    overflow-x: hidden; 
    
    /* Hides standard scrollbar track in modern desktop browsers */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer/Edge */
}

/* Hides scrollbar track completely for all WebKit browsers (Chrome, Safari, Opera) */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex; flex-direction: column;
}

/* Base Layout Containers */
.app-container {
    width: 100%; max-width: 480px; margin: 0 auto; padding: 0 20px;
    flex-grow: 1; display: flex; flex-direction: column; justify-content: center;
}

/* Premium Form Elements */
.form-wrapper {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-group { margin-bottom: 20px; text-align: left; }
.form-label { display: block; color: var(--text-muted); font-size: 13px; font-weight: 500; margin-bottom: 8px; }

/* Custom Inputs & Selects */
.premium-input, .premium-select {
    width: 100%; padding: 14px 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-light);
    border-radius: 12px; color: var(--text-main);
    font-size: 15px; outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.premium-input:focus, .premium-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
    background: rgba(0,0,0,0.5);
}
.premium-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.premium-select option { background: var(--surface); color: var(--text-main); }

/* Premium Buttons */
.btn-premium {
    width: 100%; background: var(--brand-gradient); color: #fff;
    border: none; padding: 16px; border-radius: 14px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; gap: 8px;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}
.btn-premium:hover { transform: translateY(-2px); box-shadow: 0 15px 25px rgba(79, 70, 229, 0.3); background: var(--brand-gradient-hover); }
.btn-premium:active { transform: translateY(0); }
.btn-premium:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary { background: rgba(255,255,255,0.05); color: var(--text-main); box-shadow: none; border: 1px solid var(--border-light); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); box-shadow: none; }

.modal-overlay {
    /* 1. Make it cover the entire screen */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Premium dark blurred backdrop */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    
    /* 2. THE FLEXBOX CENTERING MAGIC */
    display: flex;
    align-items: center;      /* Centers vertically */
    justify-content: center;  /* Centers horizontally */
    
    /* 3. Smooth fade-in behavior */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* This class triggers the modal to appear */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Custom Toast Notifications (Replaces Alerts) */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.duk-toast {
    background: var(--surface); border-left: 4px solid var(--brand-accent);
    color: #fff; padding: 16px 20px; border-radius: 12px; font-size: 14px; font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid var(--border-light);
    display: flex; align-items: center; gap: 12px;
    transform: translateX(120%); opacity: 0; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.duk-toast.show { transform: translateX(0); opacity: 1; }
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--error); }

/* Animated Loading Spinner */
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: #fff; animation: spin 1s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pass UI Styling */
.coupon-wrapper { background: #18181b; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; padding: 32px; text-align: center; position: relative; overflow: hidden; margin-bottom: 24px; }
.coupon-header h2 { font-weight: 800; font-size: 20px; letter-spacing: -0.5px; background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 4px; }
.diet-badge { display: inline-block; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-top: 12px; }
.diet-veg { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.diet-nonveg { background: rgba(239, 68, 68, 0.1); color: var(--error); border: 1px solid rgba(239, 68, 68, 0.2); }