:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Outfit', sans-serif;
}

body {
    background: var(--bg-darker);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.15), transparent 25%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Layout */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* Header */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin-bottom: 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
}

.logo i {
    font-size: 2rem;
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

.logo .highlight {
    color: var(--primary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.icon-wrapper.green { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.icon-wrapper.blue { background: rgba(59, 130, 246, 0.2); color: var(--primary); }
.icon-wrapper.gold { background: rgba(245, 158, 11, 0.2); color: var(--warning); }

.stat-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

/* Forms */
.action-section {
    display: flex;
    justify-content: center;
}

.form-card {
    width: 100%;
    max-width: 600px;
    padding: 2.5rem;
}

.section-title {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

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

.input-group {
    margin-bottom: 1.5rem;
}

.row {
    display: flex;
    gap: 1rem;
}

.row .input-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-whatsapp {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1e40af);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    margin-top: 1rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    margin-top: 1rem;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

.btn-whatsapp {
    background: #25D366;
    margin-top: 0.5rem;
}
.btn-whatsapp:hover {
    background: #128C7E;
}

/* Result Box */
.result-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    animation: fadeIn 0.5s ease;
}

.success-badge {
    color: var(--success);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.expiry-text {
    margin-bottom: 1rem;
    color: #e2e8f0;
}

textarea {
    width: 100%;
    height: 100px;
    background: #020617;
    border: 1px solid var(--glass-border);
    color: var(--success);
    padding: 1rem;
    border-radius: 8px;
    resize: none;
    font-family: monospace;
    font-size: 1rem;
    margin-bottom: 1rem;
    direction: ltr;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Login Page Specifics */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    text-align: center;
}

.login-card .logo {
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.error-msg {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
