/* ============================================
   KAFE - Premium Dark Theme Design System
   ============================================ */

/* === CSS Variables === */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    --color-amber: #d4a574;
    --color-amber-light: #e8c9a0;
    --color-amber-dark: #b8834a;
    --color-gold: #f5c842;
    --color-green: #4ade80;
    --color-red: #f87171;
    --color-blue: #60a5fa;
+
+    /* New accent colors */
+    --accent-primary: var(--color-amber);
+    --accent-secondary: var(--color-blue);

    --text-primary: #f0e6db;
    --text-secondary: rgba(240, 230, 219, 0.6);
    --text-muted: rgba(240, 230, 219, 0.35);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --font-family: 'Outfit', sans-serif;
    --font-cursive: 'Dancing Script', cursive;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(184, 131, 74, 0.05) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

/* === Screen Management === */
.screen {
    display: none;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

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

/* === Welcome Screen === */
.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 40px 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    text-align: center;
    gap: 32px;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.brand-logo-text {
    font-family: var(--font-family);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-amber);
    text-shadow: 0 4px 15px rgba(212, 165, 116, 0.2);
    margin-bottom: 5px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.new-logo-left {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-coffee-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.new-logo-line {
    width: 4px;
    height: 75px;
    background-color: #ffffff;
    border-radius: 2px;
}

.new-logo-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.new-logo-text1, .new-logo-text2 {
    color: #ffffff;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 2px;
}

.brand-tagline {
    font-size: 1.2rem;
    font-family: var(--font-family);
    color: var(--color-amber-light);
    letter-spacing: 2px;
    font-weight: 400;
    text-transform: uppercase;
}

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

.welcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 320px;
}

.admin-link-wrapper {
    margin-top: 8px;
    text-align: center;
}

.admin-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.admin-link:hover {
    color: var(--color-amber);
}

/* Demo Badge */
.demo-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: var(--color-green);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-green);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* === Buttons === */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
    color: #0a0a0f;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.35);
}

.btn-glow {
    box-shadow: 0 0 30px rgba(212, 165, 116, 0.2);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.btn-admin {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.btn-danger {
    background: rgba(248, 113, 113, 0.15);
    color: var(--color-red);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.btn-danger:hover {
    background: rgba(248, 113, 113, 0.25);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    font-size: 1.2rem;
}

.icon-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--bg-card-hover);
    color: var(--color-red);
}

/* === Glass Cards === */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
}

.glass-card-mini {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    backdrop-filter: blur(15px);
}

/* === Form Styles === */
.form-container {
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 36px 28px;
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.form-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-cursive);
    color: var(--color-amber);
    margin-bottom: 6px;
    text-shadow: 0 2px 15px rgba(212, 165, 116, 0.2);
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.input-group input:focus {
    border-color: var(--color-amber);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-hint {
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--color-amber);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

.error-msg {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: var(--radius-sm);
    color: var(--color-red);
    font-size: 0.85rem;
    text-align: center;
}

.result-msg {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    text-align: center;
}

.result-msg.success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: var(--color-green);
}

.result-msg.error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: var(--color-red);
}

.result-msg.warning {
    background: rgba(245, 200, 66, 0.1);
    border: 1px solid rgba(245, 200, 66, 0.2);
    color: var(--color-gold);
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 16px;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--color-amber);
}

/* === Register Success === */
.success-card {
    text-align: center;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.code-display {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--color-amber);
    background: rgba(212, 165, 116, 0.1);
    border: 2px dashed rgba(212, 165, 116, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0;
    font-family: 'Courier New', monospace;
}

.code-warning {
    color: var(--color-gold);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

/* === Dashboard === */
.dashboard-container {
    width: 100%;
    max-width: 480px;
    padding: 20px 16px 100px;
    margin: 0 auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0 20px;
}

.greeting-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.user-name {
    font-size: 1.3rem;
    font-weight: 700;
}

/* User Code Badge */
.user-code-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 14px 20px;
}

.badge-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-code {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--color-amber);
    letter-spacing: 2px;
}

/* === Loyalty Card === */
.loyalty-section {
    margin-bottom: 20px;
}

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

.loyalty-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.stamp-counter {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-amber);
}

.loyalty-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.cup-slot {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition);
    position: relative;
}

.cup-slot.filled {
    background: rgba(212, 165, 116, 0.12);
    border: 2px solid rgba(212, 165, 116, 0.3);
    animation: stampIn 0.5s ease;
}

.cup-slot.free-slot {
    background: linear-gradient(135deg, rgba(245, 200, 66, 0.15), rgba(212, 165, 116, 0.15));
    border: 2px solid rgba(245, 200, 66, 0.4);
}

.cup-slot.free-slot.filled {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(245, 200, 66, 0.15));
    border: 2px solid rgba(74, 222, 128, 0.4);
}

.cup-number {
    position: absolute;
    bottom: 2px;
    right: 6px;
    font-size: 0.55rem;
    color: var(--text-muted);
    font-weight: 600;
}

@keyframes stampIn {
    0% { transform: scale(0) rotate(-20deg); }
    60% { transform: scale(1.15) rotate(5deg); }
    100% { transform: scale(1) rotate(0); }
}

.loyalty-progress {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-amber-dark), var(--color-amber), var(--color-gold));
    border-radius: 100px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loyalty-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Free Coffee Banner */
.free-coffee-banner {
    margin-bottom: 20px;
    text-align: center;
    padding: 32px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(245, 200, 66, 0.1));
    border-color: rgba(74, 222, 128, 0.3);
}

.free-coffee-content {
    position: relative;
    z-index: 2;
}

.trophy-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 8px;
    animation: bounceIn 0.6s ease;
}

.free-coffee-banner h3 {
    font-size: 1.3rem;
    color: var(--color-green);
    margin-bottom: 4px;
}

.free-coffee-banner p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.free-badge {
    display: inline-block;
    padding: 6px 20px;
    background: linear-gradient(135deg, var(--color-green), #22c55e);
    color: #0a0a0f;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

/* Confetti */
.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: confettiFall 3s ease-in-out forwards;
    z-index: 1;
}

@keyframes confettiFall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(200px) rotate(720deg); opacity: 0; }
}

/* === Menu Grid === */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.menu-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.menu-card:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.menu-card:active {
    transform: scale(0.98);
}

.menu-card-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 165, 116, 0.1);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.menu-card-content {
    flex: 1;
}

.menu-card-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.menu-card-content p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.menu-arrow {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.menu-card:hover .menu-arrow {
    color: var(--color-amber);
    transform: translateX(4px);
}

/* === Bottom Navigation === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: space-around;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 8px 0 env(safe-area-inset-bottom, 8px);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-family);
    font-size: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

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

.nav-item:hover {
    color: var(--color-amber-light);
}

/* === Detail Pages === */
.detail-container {
    width: 100%;
    max-width: 480px;
    padding: 20px 16px 40px;
    margin: 0 auto;
}

.detail-header {
    margin-bottom: 24px;
}

.detail-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

/* Loyalty Detail */
.loyalty-detail-card {
    margin-bottom: 20px;
}

.detail-stamp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.detail-stat {
    text-align: center;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-amber);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Detail Info */
.detail-info {
    padding: 24px;
}

.detail-info h4 {
    font-size: 1rem;
    margin-bottom: 18px;
    color: var(--color-amber);
}

.info-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-step {
    display: flex;
    align-items: center;
    gap: 14px;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.15);
    color: var(--color-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.info-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* === History List === */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.history-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-icon {
    font-size: 1.3rem;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 165, 116, 0.1);
    border-radius: var(--radius-sm);
}

.history-icon.free {
    background: rgba(74, 222, 128, 0.1);
}

.history-text h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.history-text p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.history-stamp {
    font-size: 0.75rem;
    color: var(--color-amber);
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 100px;
}

.history-stamp.free {
    color: var(--color-green);
    background: rgba(74, 222, 128, 0.1);
}

/* === Rewards === */
.reward-card {
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.reward-icon {
    font-size: 2rem;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.12), rgba(245, 200, 66, 0.12));
    border-radius: var(--radius-sm);
}

.reward-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.reward-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.reward-status {
    margin-left: auto;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reward-status.available {
    background: rgba(74, 222, 128, 0.15);
    color: var(--color-green);
}

.reward-status.used {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* === Profile === */
.profile-card {
    text-align: center;
    padding: 36px 28px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
    color: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 14px;
}

.profile-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.profile-code,
.profile-phone,
.profile-date {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
}

.code-label {
    color: var(--text-muted);
}

.code-value {
    color: var(--color-amber);
    font-weight: 600;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* === Admin Theme === */
.admin-theme {
    border-color: rgba(99, 102, 241, 0.2);
}

.admin-theme .form-icon {
    background: rgba(99, 102, 241, 0.1);
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* === Admin Panel === */
.admin-container {
    width: 100%;
    max-width: 600px;
    padding: 20px 16px 40px;
    margin: 0 auto;
}

.admin-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0 24px;
}

.admin-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-title h2 {
    font-size: 1.3rem;
    font-weight: 700;
}

.admin-icon {
    font-size: 1.4rem;
}

/* Admin Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 18px 10px;
}

.stat-card-icon {
    font-size: 1.5rem;
}

.stat-card-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-amber);
}

.stat-card-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Admin Sections */
.admin-section {
    margin-bottom: 16px;
    padding: 24px;
}

.admin-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 18px;
}

/* Looked-up User Card */
.looked-up-user {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
}

.lookup-user-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.lookup-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
    color: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.lookup-info {
    flex: 1;
}

.lookup-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.lookup-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.lookup-stamps {
    text-align: center;
}

.lookup-stamps span:first-child {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-amber);
}

.lookup-stamps-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lookup-rewards-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: var(--color-green);
}

.reward-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.2);
    font-weight: 700;
    font-size: 0.85rem;
}

.lookup-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-free-coffee {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.btn-free-coffee:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.35);
}

/* User List */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.user-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.user-list-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.user-list-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-list-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-amber), var(--color-amber-dark));
    color: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.user-list-info h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-list-info p {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.user-list-stamps {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-amber);
}

/* === Toast === */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    z-index: 1000;
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

/* === Utility === */
.hidden {
    display: none !important;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
}

/* === Responsive === */
@media (max-width: 420px) {
    .brand-name {
        font-size: 2.8rem;
        letter-spacing: 8px;
    }

    .loyalty-grid {
        gap: 8px;
    }

    .cup-slot {
        font-size: 1.4rem;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .form-container {
        margin-top: 60px;
    }
}

/* === Campaign System === */
.campaign-target {
    margin-bottom: 20px;
}

.campaign-target label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    position: relative;
    transition: var(--transition);
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--color-amber);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-amber);
}

.btn-campaign {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: white;
}

.btn-campaign:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.textarea-input {
    width: 100%;
    background: rgba(10, 10, 15, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--text-main);
    font-size: 0.95rem;
    resize: vertical;
    transition: var(--transition);
    font-family: inherit;
}

.textarea-input:focus {
    outline: none;
    border-color: var(--color-amber);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}

/* Campaign History */
.campaign-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.campaign-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    animation: fadeIn 0.4s ease;
}

.campaign-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.campaign-item-title {
    font-weight: 600;
    color: var(--color-amber);
}

.campaign-item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.campaign-item-msg {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.campaign-item-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.campaign-target-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 100px;
}
