/* ==========================================================================
   RayyLabs Giveaway System — Modern Clean & Glassmorphic UI
   Pure AMOLED Dark / Crisp Light Mode, Brand Accents & Poppins Typography
   ========================================================================== */

:root,
[data-theme="light"] {
    --theme-mode: 'light';

    /* Light Theme Surfaces */
    --black-pure: #fafafa;
    --black7: #f5f5f5;
    --black6: #ffffff;
    --black5: #fafafa;
    --black4: #e5e5e5;
    --black3: #d4d4d4;
    --black2: #a3a3a3;
    --black1: #737373;
    --black0: #525252;

    /* Text Palette - High Contrast & Crisp */
    --white0: #111;
    --white1: #171717;
    --white2: #404040;
    --white3: #555;
    --white4: #666;
    --white5: #888;
    --white6: #a3a3a3;

    /* Glassmorphic Navbar Tokens (Light) */
    --nav-bg: rgba(250, 250, 250, 0.82);
    --nav-bg-scrolled: rgba(250, 250, 250, 0.95);
    --nav-border: #e5e5e5;
    --nav-border-scrolled: #d4d4d4;
    --nav-shadow: none;

    /* Brand Orange Accents */
    --primary: #e8590c;
    --primary-hover: #d14b08;
    --primary-light: #f97316;
    --primary-glow: transparent;
    --primary-subtle: rgba(232, 89, 12, 0.06);
    --primary-border: rgba(232, 89, 12, 0.2);

    --secondary: #d97706;
    --secondary-subtle: rgba(217, 119, 6, 0.08);

    /* Telegram Accent */
    --telegram-color: #0369a1;
    --telegram-bg: rgba(3, 105, 161, 0.08);
    --telegram-border: rgba(3, 105, 161, 0.25);
    --telegram-hover-bg: rgba(3, 105, 161, 0.15);

    /* Statuses */
    --status-live-bg: rgba(22, 163, 74, 0.1);
    --status-live-text: #15803d;
    --status-live-border: rgba(22, 163, 74, 0.3);

    --status-dev-bg: rgba(217, 119, 6, 0.1);
    --status-dev-text: #b45309;
    --status-dev-border: rgba(217, 119, 6, 0.3);

    /* Radii */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Fonts */
    --font-primary: 'Inter', sans-serif;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    /* Shadows & Transitions */
    --transition-fast: 0.18s ease;
    --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-card: none;
    --shadow-hover: none;
}

/* AMOLED Dark Theme Variables */
[data-theme="dark"] {
    --theme-mode: 'dark';

    /* AMOLED Dark Palette */
    --black-pure: #0a0a0a;
    --black7: #0f0f0f;
    --black6: #141414;
    --black5: #1a1a1a;
    --black4: #222;
    --black3: #333;
    --black2: #444;
    --black1: #555;
    --black0: #666;

    /* Text Palette */
    --white0: #ececec;
    --white1: #e0e0e0;
    --white2: #bbb;
    --white3: #999;
    --white4: #888;
    --white5: #777;
    --white6: #666;

    /* Glassmorphic Navbar Tokens */
    --nav-bg: rgba(10, 10, 10, 0.82);
    --nav-bg-scrolled: rgba(10, 10, 10, 0.95);
    --nav-border: #222;
    --nav-border-scrolled: #333;
    --nav-shadow: none;

    /* Brand Orange Accents */
    --primary: #f97316;
    --primary-hover: #fb923c;
    --primary-light: #fb923c;
    --primary-glow: transparent;
    --primary-subtle: rgba(249, 115, 22, 0.08);
    --primary-border: rgba(249, 115, 22, 0.25);

    --secondary: #fbbf24;
    --secondary-subtle: rgba(251, 191, 36, 0.1);

    /* Telegram Accent */
    --telegram-color: #229ed9;
    --telegram-bg: rgba(34, 158, 217, 0.12);
    --telegram-border: rgba(34, 158, 217, 0.3);
    --telegram-hover-bg: rgba(34, 158, 217, 0.22);

    /* Statuses */
    --status-live-bg: rgba(249, 115, 22, 0.12);
    --status-live-text: #fb923c;
    --status-live-border: rgba(249, 115, 22, 0.35);

    --status-dev-bg: rgba(251, 191, 36, 0.12);
    --status-dev-text: #fcd34d;
    --status-dev-border: rgba(251, 191, 36, 0.3);

    /* Shadows & Transitions */
    --shadow-card: none;
    --shadow-hover: none;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--black-pure);
}

body {
    font-family: var(--font-primary);
    background-color: var(--black-pure);
    color: var(--white1);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

::selection {
    background: var(--primary);
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--black-pure);
}

::-webkit-scrollbar-thumb {
    background: var(--black3);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Ambient Backdrop Glow */
.ambient-glow { display: none; }

[data-theme="dark"] .ambient-glow { display: none; }

/* ==========================================================================
   Navigation Bar (Glassmorphic Pinned Design)
   ========================================================================== */

.main_area {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    -webkit-
    border-bottom: 1px solid var(--nav-border);
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.main_area.scrolled {
    background: var(--nav-bg-scrolled);
    border-bottom-color: var(--nav-border-scrolled);
    
}

nav {
    height: 56px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img.brand-logo {
    height: 34px;
    width: auto;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.brand-link:hover img.brand-logo {
    transform: scale(1.08);
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--white0);
    font-family: var(--font-primary);
    display: inline-block;
    transition: color var(--transition-fast), filter var(--transition-smooth);
}

.brand-link:hover .brand-name,
.brand-name:hover {
    background: linear-gradient(90deg, #ea580c 0%, #f97316 20%, #fbbf24 50%, #f97316 80%, #ea580c 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGradientFlow 2.5s linear infinite;
}

@keyframes logoGradientFlow {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-left: 20px;
}

.nav-links li a {
    position: relative;
    color: var(--white2);
    font-size: 0.94rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, box-shadow 0.25s ease;
    opacity: 0;
}

.nav-links li a:hover {
    color: var(--primary);
}

.nav-links li a:hover::after {
    width: 100%;
    opacity: 1;
}

.nav-links li a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links li a.active::after {
    width: 60%;
    opacity: 0.85;
}

.nav-links li a.active:hover::after {
    width: 100%;
    opacity: 1;
}

.nav-links li a.nav-giveaway-link {
    color: var(--primary);
    font-weight: 600;
}

.nav-links li a.nav-giveaway-link:hover {
    color: var(--primary-light);
}

.nav-links li a.nav-giveaway-link::after {
    display: none !important;
}

.nav-icon {
    font-size: 0.9rem;
}

.top_button {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--black4);
    border: 1px solid var(--black3);
    color: var(--white2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.theme-toggle-btn .icon-sun {
    display: inline-block;
}

.theme-toggle-btn .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle-btn .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle-btn .icon-moon {
    display: inline-block;
}

.playstore-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--black4);
    border: 1px solid var(--black3);
    color: var(--white0);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.playstore-top-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================================================
   Header Section (Clean & Minimal)
   ========================================================================== */

.giveaway-header-section {
    margin-top: 72px;
    padding: 36px 20px 20px;
    text-align: center;
    width: 100%;
}

.giveaway-main-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white0);
    margin: 0 auto 6px;
    font-family: var(--font-primary);
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

.giveaway-header-subtitle {
    font-size: 0.88rem;
    color: var(--white4);
    font-weight: 400;
    max-width: 520px;
    margin: 0 auto;
}

/* ==========================================================================
   Main Content & Giveaway Card (Clean & Minimal Redesign)
   ========================================================================== */

.main-content {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px 48px;
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.giveaway-page-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.giveaway-hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.giveaway-card-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.giveaway-card {
    background-color: var(--black6);
    border: 1px solid var(--black4);
    border-radius: 12px;
    padding: 36px 32px 30px;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.giveaway-card:hover {
    border-color: var(--black3);
}

/* Already Claimed Notice */
.main-card-claimed-alert {
    width: 100%;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.25);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    color: var(--white0);
}

.claimed-alert-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00e676;
}

.view-my-code-link {
    background: transparent;
    border: none;
    color: #00e676;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
}

/* App & Watch Showcase Stage */
.app-showcase-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
    position: relative;
    width: 100%;
}

.app-frame {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-showcase-icon {
    width: 130px;
    height: 130px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--black3);
    background: var(--black5);
    transition: transform var(--transition-smooth);
}

.giveaway-card:hover .app-showcase-icon {
    transform: scale(1.04);
}

/* App Title & Category */
.giveaway-app-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white0);
    margin-bottom: 4px;
    letter-spacing: -0.2px;
    font-family: var(--font-primary);
    line-height: 1.3;
}

.giveaway-app-category {
    font-size: 0.82rem;
    color: var(--white4);
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Unified Live Stock Badge */
.giveaway-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin-bottom: 22px;
    transition: all var(--transition-fast);
}

.giveaway-stock-badge.in-stock {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.28);
    color: #00e676;
}

[data-theme="light"] .giveaway-stock-badge.in-stock {
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.3);
    color: #15803d;
}

.giveaway-stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #ef4444;
}

[data-theme="light"] .giveaway-stock-badge.out-of-stock {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #dc2626;
}

.giveaway-stock-badge.claimed {
    background: var(--primary-subtle);
    border: 1px solid var(--primary-border);
    color: var(--primary);
}

[data-theme="light"] .giveaway-stock-badge.claimed {
    background: rgba(234, 88, 12, 0.1);
    border: 1px solid rgba(234, 88, 12, 0.3);
    color: #ea580c;
}

.stock-count-num {
    font-family: var(--font-mono);
    font-weight: 700;
}

.stock-total-num {
    font-family: var(--font-mono);
    opacity: 0.8;
}

/* Form Container */
.form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#coupon-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.claim-action-block,
.soldout-action-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Sold out state styling */
.soldout-desc {
    font-size: 0.9rem;
    color: var(--white2);
    margin-bottom: 18px;
    line-height: 1.5;
}

.card-btn-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* General Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
    border: 1px solid var(--black4);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.82rem;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-secondary {
    background: var(--black6);
    border: 1px solid var(--black4);
    color: var(--white1);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--black5);
}

/* Primary Claim Button */
.btn-claim {
    width: 100%;
    padding: 13px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    font-size: 0.92rem;
    letter-spacing: 0.2px;
}

.btn-claim:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: var(--black4);
    border-color: var(--black3);
    color: var(--white4);
}

/* Telegram Buttons */
.btn-telegram {
    background: var(--telegram-bg);
    border-color: var(--telegram-border);
    color: var(--telegram-color);
}

.btn-telegram:hover {
    background: var(--telegram-hover-bg);
    border-color: var(--telegram-color);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(34, 158, 217, 0.35);
}

.card-telegram-cta-wrap {
    margin-top: 14px;
    width: 100%;
}

.card-telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--telegram-bg);
    border: 1px solid var(--telegram-border);
    color: var(--telegram-color);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.card-telegram-btn:hover {
    background: var(--telegram-hover-bg);
    border-color: var(--telegram-color);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(34, 158, 217, 0.25);
}

.card-sublinks-row {
    margin-top: 2px;
}

.playstore-sublink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--white5);
    transition: color var(--transition-fast);
}

.playstore-sublink:hover {
    color: var(--primary);
}

/* Captcha Checkbox Box */
.form-captcha {
    margin: 0 auto 16px auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.captcha-checkbox-card {
    width: 100%;
    background: var(--black6);
    border: 1px solid var(--black4);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition-fast);
    user-select: none;
    box-sizing: border-box;
}

.captcha-checkbox-card:hover {
    border-color: var(--black3);
    background: var(--black5);
}

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

.captcha-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--black6);
    border: 2px solid var(--black2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.captcha-checkbox.checked {
    background: #00e676;
    border-color: #00e676;
}

[data-theme="light"] .captcha-checkbox.checked {
    background: #16a34a;
    border-color: #16a34a;
}

.captcha-check-icon {
    color: #121316;
    font-size: 0.75rem;
    font-weight: 900;
    display: none;
}

.captcha-checkbox.checked .captcha-check-icon {
    display: block;
}

[data-theme="light"] .captcha-checkbox.checked .captcha-check-icon {
    color: #ffffff;
}

.captcha-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid var(--black2);
    border-top-color: #00e676;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

[data-theme="light"] .captcha-spinner {
    border-top-color: #16a34a;
}

.captcha-checkbox.loading .captcha-spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.captcha-label {
    font-size: 0.86rem;
    color: var(--white0);
    font-weight: 500;
}

.captcha-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.captcha-logo-icon {
    color: #00e676;
    font-size: 0.9rem;
}

[data-theme="light"] .captcha-logo-icon {
    color: #16a34a;
}

.captcha-brand-text {
    font-size: 0.65rem;
    color: var(--white3);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}

/* Processing State */
.processing {
    padding: 24px 0;
}

.processing-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--black3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px auto;
}

.processing-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white0);
    margin-bottom: 4px;
}

.processing-subtext {
    font-size: 0.82rem;
    color: var(--white3);
}

/* Results State */
.results {
    padding: 6px 0 0;
    width: 100%;
}

.success-claimed-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 230, 118, 0.12);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 10px;
}

[data-theme="light"] .success-claimed-pill {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.3);
}

.already-claimed-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 10px;
}

[data-theme="light"] .already-claimed-pill {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
    border-color: rgba(217, 119, 6, 0.3);
}

.results-subtext {
    font-size: 0.84rem;
    color: var(--white3);
    margin: 0 auto 16px auto;
    line-height: 1.4;
    text-align: center;
}

.coupon-field-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    width: 100%;
}

.coupon {
    flex: 1;
    background: var(--black5);
    border: 1px solid rgba(0, 230, 118, 0.35);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    color: #00e676;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
}

[data-theme="light"] .coupon {
    background: #f1f5f9;
    border: 1px solid rgba(22, 163, 74, 0.35);
    color: #15803d;
    font-weight: 700;
}

.btn-copy {
    background: var(--black4);
    border: 1px solid var(--black3);
    color: var(--white0);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.btn-copy:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.direct-redeem-container {
    margin-bottom: 14px;
    width: 100%;
}

.btn-redeem {
    width: 100%;
    background: #00e676;
    border: 1px solid #00e676;
    color: #0c0d10;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-redeem:hover {
    background: #3bf79a;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
}

[data-theme="light"] .btn-redeem {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}

[data-theme="light"] .btn-redeem:hover {
    background: #15803d;
    border-color: #15803d;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(22, 163, 74, 0.3);
}

.howtoredeem {
    margin-top: 14px;
    margin-bottom: 14px;
}

.how-to-toggle-btn {
    background: transparent;
    border: none;
    color: var(--white2);
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
}

.how-to-toggle-btn:hover {
    color: var(--primary);
}

.redeem-guide-box {
    background: var(--black5);
    border: 1px solid var(--black4);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 18px;
    text-align: left;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--white1);
}

.guide-step strong {
    color: var(--white0);
    font-weight: 600;
}

.step-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.results-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--black4);
    padding-top: 16px;
    margin-top: 6px;
    width: 100%;
}

.btn-back-link {
    background: transparent;
    border: none;
    color: var(--white3);
    font-family: var(--font-primary);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
}

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

/* Inactive State Card */
.inactive-giveaway-card {
    padding: 40px 32px 36px;
}

.inactive-icon-stage {
    margin-bottom: 18px;
}

.inactive-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-subtle);
    border: 1px solid var(--primary-border);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto;
}

.giveaway-status-subtext {
    font-size: 0.86rem;
    color: var(--white2);
    line-height: 1.6;
    max-width: 340px;
    margin: 0 auto 24px;
}

.inactive-description {
    font-size: 0.92rem;
    color: var(--white2);
    line-height: 1.6;
    margin-bottom: 28px;
}

.inactive-secondary-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

/* ==========================================================================
   Footer (Matching Main Page)
   ========================================================================== */

.carousal_header {
    border-top: 1px solid var(--black4);
    background: var(--black7);
    padding: 40px 0 60px;
    margin-top: 60px;
}

.header_lb {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.footer-social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--black6);
    border: 1px solid var(--black4);
    color: var(--white2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all var(--transition-fast);
}

.footer-social-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--black5);
}

.footertext {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-disclaimer,
.footer-copyright {
    font-size: 0.85rem;
    color: var(--white3);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   Admin Modal (Dark AMOLED & Clean Light Mode)
   ========================================================================== */

.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

[data-theme="light"] .admin-modal-overlay {
    background: rgba(15, 23, 42, 0.65);
}

.admin-modal-container {
    background: var(--black6);
    border: 1px solid var(--black3);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    /*box-shadow*/: 0 20px 50px rgba(0, 0, 0, 0.9);
}

[data-theme="light"] .admin-modal-container {
    /*box-shadow*/: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.admin-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--white3);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.admin-close-btn:hover {
    color: #ef4444;
}

.admin-auth-card {
    text-align: center;
    padding: 20px 0;
    max-width: 400px;
    margin: 0 auto;
}

.admin-auth-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.admin-auth-card h2 {
    font-size: 1.4rem;
    color: var(--white0);
    margin-bottom: 6px;
}

.admin-auth-card p {
    font-size: 0.88rem;
    color: var(--white3);
    margin-bottom: 24px;
}

.admin-input-group {
    position: relative;
    margin-bottom: 16px;
}

.admin-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    color: var(--white3);
}

.admin-input-group input {
    width: 100%;
    background: var(--black5);
    border: 1px solid var(--black4);
    border-radius: var(--radius-sm);
    padding: 12px 14px 12px 42px;
    color: var(--white0);
    font-family: var(--font-primary);
    font-size: 0.95rem;
}

.admin-input-group input:focus {
    outline: none;
    border-color: var(--black3);
}

.admin-error-msg {
    color: #ef4444;
    font-size: 0.82rem;
    margin-top: 10px;
    display: block;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--black4);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.admin-badge {
    background: var(--status-live-bg);
    color: var(--status-live-text);
    border: 1px solid var(--status-live-border);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
}

.admin-simple-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-simple-card {
    background: var(--black5);
    border: 1px solid var(--black4);
    border-radius: var(--radius-md);
    padding: 20px;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.admin-section-header h3 {
    font-size: 1rem;
    color: var(--white0);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    font-size: 0.8rem;
    color: var(--white2);
    font-weight: 600;
    margin-bottom: 6px;
}

.form-field select,
.form-field input,
.admin-textarea {
    width: 100%;
    background: var(--black6);
    border: 1px solid var(--black4);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--white0);
    font-family: var(--font-primary);
    font-size: 0.88rem;
}

.form-field select:focus,
.form-field input:focus,
.admin-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.inventory-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--black6);
    border: 1px solid var(--black4);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white0);
    font-family: var(--font-mono);
}

.stat-title {
    font-size: 0.74rem;
    color: var(--white3);
    font-weight: 600;
    text-transform: uppercase;
}

.admin-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.btn-admin-danger {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-admin-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ffffff;
}

/* App Presets Grid */
.app-presets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.preset-card-btn {
    background: var(--black6);
    border: 1px solid var(--black4);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    width: 100%;
}

.preset-card-btn:hover {
    border-color: var(--primary);
    background: var(--black5);
}

.preset-card-btn.active {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.preset-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.preset-card-left img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--black5);
    border: 1px solid var(--black3);
}

.preset-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.preset-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white0);
    line-height: 1.2;
}

.preset-stock {
    font-size: 0.74rem;
    color: var(--white3);
    font-family: var(--font-mono);
}

.preset-status-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    background: var(--black5);
    color: var(--white2);
    border: 1px solid var(--black4);
    white-space: nowrap;
}

.preset-card-btn.active .preset-status-tag {
    background: var(--primary-subtle);
    color: var(--primary);
    border-color: var(--primary-border);
}

/* Sync Status Box */
.sync-status-box {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--primary-subtle);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--white1);
}

.sync-status-icon {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Admin Promo Codes Table */
.admin-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 14px;
    border: 1px solid var(--black4);
    border-radius: var(--radius-sm);
    background: var(--black6);
    max-height: 360px;
    overflow-y: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    text-align: left;
}

.admin-table thead {
    background: var(--black5);
    position: sticky;
    top: 0;
    z-index: 1;
}

.admin-table th {
    padding: 10px 12px;
    color: var(--white2);
    font-weight: 600;
    border-bottom: 1px solid var(--black4);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--black4);
    color: var(--white1);
}

.admin-table tbody tr:hover {
    background: var(--black5);
}

.admin-table code {
    font-family: var(--font-mono);
    color: var(--white0);
    background: var(--black5);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--black4);
}

.badge-available {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #00e676;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.25);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 600;
}

[data-theme="light"] .badge-available {
    color: #15803d;
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.3);
}

.badge-claimed {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 600;
}

[data-theme="light"] .badge-claimed {
    color: #b45309;
    background: rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.3);
}

/* Toast */
.toast-notice {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--black6);
    border: 1px solid var(--primary);
    color: var(--white0);
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
}

.toast-notice.show {
    opacity: 1;
}

/* Admin trigger styles removed (Access via Ctrl+Shift+A or 5 taps on Logo) */

/* Utility */
.d-none { display: none !important; }

/* Responsive */
@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .mn_header {
        padding-top: 20px;
    }

    .giveaway-card {
        padding: 28px 18px;
    }

    .app-presets-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 480px) {
    nav {
        padding: 0 16px;
    }

    .playstore-top-btn span {
        display: none;
    }

    .playstore-top-btn {
        padding: 8px 12px;
        font-size: 1rem;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .giveaway-card {
        padding: 24px 16px;
        border-radius: 22px;
    }
}
