@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #0f1115;
    --panel-bg: rgba(25, 28, 35, 0.6);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --twitch: #9146FF;
    --twitch-hover: #772ce8;
    --shadow-glow: rgba(99, 102, 241, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,0.2) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,0.1) 0, transparent 50%),
        url('../img/bg.png');
    background-size: auto, auto, auto, cover;
    background-position: bottom center;
    background-attachment: fixed;
    background-blend-mode: overlay;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 900px;
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: 24px 24px 48px 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px var(--shadow-glow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden {
    display: none !important;
}

.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    width: 240px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.dashboard-logo {
    margin-bottom: 0;
    width: 180px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px 12px 24px 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-twitch {
    background-color: var(--twitch);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(145, 70, 255, 0.39);
}

.btn-twitch:hover {
    background-color: var(--twitch-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(145, 70, 255, 0.5);
}

.icon {
    width: 24px;
    height: 24px;
}

/* Dashboard Specifics */
.user-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--panel-border);
}

#user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px var(--shadow-glow);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-group label {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-main);
}

.setting-group .hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

input[type="number"],
input[type="text"],
select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.875rem 1rem;
    border-radius: 10px 10px 20px 10px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

select option {
    background: var(--bg-dark);
    color: white;
}

.url-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px 16px 32px 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.url-box {
    display: flex;
    gap: 1rem;
}

.url-box input {
    flex: 1;
    color: #a5b4fc;
    font-family: monospace;
    font-size: 1.1rem;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 10px 10px 20px 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    animation: purple-pulse 2s infinite;
}

@keyframes purple-pulse {
    0% { background-color: rgba(147, 51, 234, 0.5); box-shadow: 0 0 0px rgba(147, 51, 234, 0.1); }
    50% { background-color: rgba(168, 85, 247, 0.8); box-shadow: 0 0 15px rgba(168, 85, 247, 0.6); }
    100% { background-color: rgba(147, 51, 234, 0.5); box-shadow: 0 0 0px rgba(147, 51, 234, 0.1); }
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

@media (max-width: 768px) {
    .glass-panel {
        padding: 2rem;
    }
    .url-box {
        flex-direction: column;
    }
    .btn-copy {
        padding: 1rem;
    }
}

.title-icon {
    height: 1.2em;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.btn-paypal {
    background-color: #0070ba;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0, 112, 186, 0.39);
}

.btn-paypal:hover {
    background-color: #005ea6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
