/* PREMIUM ADAPTIVE UI BUNDLE 
   Features: Glassmorphism, Auto-Dark Mode, Micro-interactions
   Dependencies: Line Awesome for Icons
*/

:root {
    /* --- COLOR SYSTEM (Change --base-h to change theme color) --- */
    --base-h: 220; 
    --base-s: 90%;
    --base-l: 52%;
    --base: var(--base-h), var(--base-s), var(--base-l);

    /* --- LIGHT MODE VARIABLES --- */
    --bg-body: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.82);
    --bg-input: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.07);
    --popup-bg: rgba(15, 23, 42, 0.96);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-deep: 0 20px 40px rgba(0, 0, 0, 0.1);
    --btn-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* --- DARK MODE VARIABLES --- */
        --bg-body: #0b0f1a;
        --bg-card: rgba(23, 32, 53, 0.75);
        --bg-input: #172035;
        --text-main: #f1f5f9;
        --text-muted: #94a3b8;
        --border-color: rgba(255, 255, 255, 0.08);
        --popup-bg: rgba(2, 6, 23, 0.98);
        --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.2);
        --shadow-deep: 0 20px 50px rgba(0, 0, 0, 0.4);
    }
}

/* --- BASE STYLES --- */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: background 0.3s ease;
}

.base-color { color: hsl(var(--base)) !important; }

/* --- PREMIUM BUTTONS --- */
.btn-premium {
    background: linear-gradient(135deg, hsl(var(--base)), hsl(var(--base-h), 80%, 40%));
    color: var(--btn-text);
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px hsla(var(--base), 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px hsla(var(--base), 0.4);
    filter: brightness(1.1);
}

.btn-premium:active { transform: scale(0.96); }

.btn-glass {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: var(--border-color);
    border-color: hsl(var(--base));
}

/* --- COPY ANIMATION (FLOATING STYLE) --- */
.copied::after {
    position: absolute;
    top: -50px; right: 0;
    content: "📋 Copied!";
    font-size: 12px; font-weight: 700;
    padding: 8px 16px;
    color: #fff; background: #000;
    border-radius: 12px;
    box-shadow: var(--shadow-deep);
    opacity: 0;
    animation: premiumPopUp 1.8s ease-in-out;
}

@keyframes premiumPopUp {
    0% { opacity: 0; transform: translateY(15px) scale(0.8); }
    20% { opacity: 1; transform: translateY(0) scale(1.05); }
    30% { transform: scale(1); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* --- GLASS COOKIES CARD --- */
.cookies-card {
    width: 420px;
    padding: 30px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-deep);
    position: fixed; bottom: 30px; left: 30px;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- PAYMENT LIST (INTERACTIVE) --- */
.payment-item {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-item:hover {
    background: hsla(var(--base), 0.05);
    border-color: hsl(var(--base));
    transform: translateX(5px);
}

.payment-item:has(input:checked) {
    background: hsla(var(--base), 0.08);
    border-color: hsl(var(--base));
    box-shadow: 0 0 0 1px hsl(var(--base));
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    border: 2px solid var(--bg-body);
}
::-webkit-scrollbar-thumb:hover { background: hsl(var(--base)); }