:root {
    --twitch-primary: #F1C40F;
    --twitch-hover: #F39C12;
    --twitch-active: #D4AC0D;
    --twitch-dark: #B9770E;
    
    --bg-main: #0a0a0c;
    --bg-secondary: #121418;
    --bg-tertiary: #1a1c23;
    --text-main: #ffffff;
    --text-secondary: #a0aab2;
    
    --glass-bg: rgba(25, 27, 33, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --sidebar-width: 280px;
}

body.light-mode {
    --bg-main: #f4f6f8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f2f5;
    --text-main: #1a1c20;
    --text-secondary: #5e6673;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.twitch-dashboard {
    display: flex;
}

/* Twitch homepage specific */
body.twitch-home {
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(241, 196, 15, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(241, 196, 15, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    display: block; /* Override default display:flex for dashboard */
}

/* Navbar */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky; top: 0; z-index: 100;
}

body.light-mode nav { background: rgba(255, 255, 255, 0.8); }

.nav-logo { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--text-main); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-logo i { color: var(--twitch-primary); }

.btn-twitch {
    background: linear-gradient(135deg, var(--twitch-primary), var(--twitch-dark));
    color: white; padding: 10px 24px; border-radius: 50px; text-decoration: none;
    font-weight: 600; font-family: 'Outfit', sans-serif; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3); border: 1px solid rgba(255,255,255,0.1);
}
.btn-twitch:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(241, 196, 15, 0.5); background: linear-gradient(135deg, var(--twitch-hover), var(--twitch-primary)); }

.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

.hero { text-align: center; margin-bottom: 60px; animation: fadeIn 1s ease-out; }
.hero h1 { font-family: 'Outfit', sans-serif; font-size: 4rem; font-weight: 900; margin-bottom: 15px; background: linear-gradient(135deg, var(--text-main) 0%, var(--text-secondary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 .highlight { background: linear-gradient(135deg, var(--twitch-primary), #d9b3ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

body.light-mode .hero h1 .highlight { background: linear-gradient(135deg, var(--twitch-dark), var(--twitch-primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hero-stats { display: flex; justify-content: center; gap: 30px; margin-top: 30px; }
.hero-badge { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 8px 20px; border-radius: 50px; font-size: 0.95rem; font-weight: 500; display: flex; align-items: center; gap: 8px; backdrop-filter: blur(10px); color: var(--text-secondary); box-shadow: var(--glass-shadow); }
.hero-badge i { color: var(--twitch-primary); }
.hero-badge strong { color: var(--text-main); }

.section-title { font-family: 'Outfit', sans-serif; font-size: 2rem; margin-bottom: 25px; display: flex; align-items: center; gap: 12px; }
.section-title i { color: var(--twitch-primary); font-size: 1.5rem; }

.carousel-wrapper { position: relative; margin-bottom: 80px; -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); }
.carousel { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; padding: 10px 0 30px 0; -ms-overflow-style: none; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.stream-card { height: 100%; min-width: 300px; width: 300px; display: flex; flex-direction: column; background: var(--glass-bg); border-radius: 20px; border: 1px solid var(--glass-border); overflow: hidden; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); backdrop-filter: blur(10px); box-shadow: var(--glass-shadow); }
.stream-card:hover { transform: translateY(-10px); border-color: rgba(241, 196, 15, 0.4); box-shadow: 0 15px 35px rgba(241, 196, 15, 0.15); }
.stream-thumb { width: 100%; aspect-ratio: 16/9; background: #202225; position: relative; overflow: hidden; }
.stream-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.stream-card:hover .stream-thumb img { transform: scale(1.05); }

.live-badge { position: absolute; top: 10px; left: 10px; background: #eb0400; color: white; padding: 3px 8px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; animation: pulse 2s infinite; }
.viewer-count { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.7); padding: 3px 8px; border-radius: 6px; font-size: 0.8rem; display: flex; align-items: center; gap: 5px; color: white; }
.stream-info { padding: 15px; display: flex; flex-direction: column; flex: 1; }
.stream-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 5px; color: var(--text-main); }
.stream-title { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; padding-bottom: 10px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 80px; }
.feature-card { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 30px 25px; border-radius: 20px; backdrop-filter: blur(10px); transition: all 0.3s ease; display: flex; flex-direction: column; gap: 15px; box-shadow: var(--glass-shadow); }
.feature-card:hover { border-color: rgba(241, 196, 15, 0.4); transform: translateY(-5px); box-shadow: 0 15px 35px rgba(241, 196, 15, 0.1); }
.feature-icon { width: 50px; height: 50px; border-radius: 14px; background: rgba(241, 196, 15, 0.1); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--twitch-primary); }
.feature-card h3 { font-family: 'Outfit', sans-serif; font-size: 1.2rem; color: var(--text-main); }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }

.realtime-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 60px; }
.stat-box { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; padding: 30px; text-align: center; backdrop-filter: blur(10px); position: relative; overflow: hidden; box-shadow: var(--glass-shadow); }
.stat-box::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--twitch-primary), transparent); opacity: 0.5; }
.stat-value { font-family: 'Outfit', sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--text-main); margin-bottom: 5px; }
.stat-label { font-size: 0.9rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.empty-carousel { width: 100%; padding: 40px; text-align: center; background: var(--glass-bg); border: 1px dashed var(--glass-border); border-radius: 20px; color: var(--text-secondary); }

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(241, 196, 15, 0.2);
    border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(241, 196, 15, 0.4);
}

.sidebar-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 0 25px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.nav-item {
    margin: 4px 15px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    background: transparent;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 4px solid transparent;
}
.nav-item i { width: 20px; text-align: center; font-size: 1.1rem; }

.nav-item:hover:not([style*="not-allowed"]) {
    color: var(--text-main);
    background: rgba(241, 196, 15, 0.1);
    transform: translateX(5px);
}

.nav-item.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent);
    border-left-color: var(--twitch-primary);
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px 25px;
    border-top: 1px solid var(--glass-border);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
    background-image: radial-gradient(circle at top right, rgba(241, 196, 15, 0.05), transparent 40%);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
}
.topbar-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}
.btn-icon {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-icon:hover { color: var(--text-main); border-color: rgba(241, 196, 15, 0.4); }

.user-profile {
    display: flex; align-items: center; gap: 12px;
    background: var(--glass-bg); padding: 5px 15px 5px 5px;
    border-radius: 50px; border: 1px solid var(--glass-border);
}
.user-profile img { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; }
.user-profile span { font-weight: 600; font-size: 0.95rem; }

/* Settings Card Layout */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}
.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
.card-icon {
    width: 45px; height: 45px;
    border-radius: 12px;
    background: rgba(241, 196, 15, 0.1);
    color: var(--twitch-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.card-title h3 { font-family: 'Outfit', sans-serif; font-size: 1.2rem; margin-bottom: 3px; }
.card-title p { color: var(--text-secondary); font-size: 0.85rem; }

/* Form elements */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.toggle-switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-tertiary); border: 1px solid var(--glass-border); transition: .3s; border-radius: 34px;
}
.slider:before {
    position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
    background-color: var(--text-secondary); transition: .3s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--twitch-primary); border-color: var(--twitch-primary); }
input:checked + .slider:before { transform: translateX(24px); background-color: white; }

.setting-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--glass-border); flex-wrap: wrap; gap: 15px; }
.setting-row:last-child { border-bottom: none; padding-bottom: 0; }
.setting-info { flex: 1; min-width: 250px; }
.setting-info h4 { font-weight: 600; margin-bottom: 4px; }
.setting-info p { color: var(--text-secondary); font-size: 0.85rem; }

.btn-primary {
    background: linear-gradient(135deg, var(--twitch-primary), var(--twitch-dark));
    color: white; border: none;
    padding: 10px 20px; border-radius: 8px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--twitch-hover), var(--twitch-primary));
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main); border: 1px solid var(--glass-border);
    padding: 10px 20px; border-radius: 8px; font-weight: 600;
    cursor: pointer; transition: all 0.2s ease;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}
.btn-secondary:active:not(:disabled) {
    transform: translateY(1px);
}
.btn-secondary:disabled {
    opacity: 0.4; cursor: not-allowed;
}

/* Form Controls (Inputs, Selects, Textareas) */
.form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.form-control:focus {
    outline: none;
    border-color: var(--twitch-primary);
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.2);
    background: var(--bg-secondary);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0aab2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 40px;
}
select.form-control option {
    background: var(--bg-secondary);
    color: var(--text-main);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(241, 196, 15, 0.5);
}

.badge-pro {
    background: linear-gradient(135deg, #FFD700, #FDB931);
    color: #000; padding: 2px 8px; border-radius: 4px;
    font-size: 0.7rem; font-weight: 800; margin-left: 10px;
}

.tab-content {
    animation: fadeIn 0.3s ease;
}
.leaderboard-container { width: 100%; max-width: 900px; padding: 40px 20px; margin: 0 auto; }
.page-header { text-align: center; margin-bottom: 50px; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.broadcaster-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.page-header h1 { font-size: 2.5rem; margin: 0; background: linear-gradient(135deg, #fff, var(--twitch-primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.page-header p { color: var(--text-secondary); margin: 0; font-size: 1.1rem; }
.podium-container { display: flex; justify-content: center; align-items: flex-end; gap: 20px; margin-bottom: 50px; height: 300px; }
.podium-spot { display: flex; flex-direction: column; align-items: center; width: 180px; }
.podium-avatar-wrapper { position: relative; margin-bottom: -20px; z-index: 2; }
.podium-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid; background: var(--bg-secondary); }
.rank-1 .podium-avatar { border-color: #FFD700; width: 100px; height: 100px; }
.rank-2 .podium-avatar { border-color: #C0C0C0; }
.rank-3 .podium-avatar { border-color: #cd7f32; }
.podium-crown { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); font-size: 2rem; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.rank-1 .podium-crown { color: #FFD700; font-size: 2.5rem; top: -35px; }
.rank-2 .podium-crown { color: #C0C0C0; }
.rank-3 .podium-crown { color: #cd7f32; }
.podium-base { width: 100%; background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(26,26,36,0) 100%); border-top: 4px solid; border-radius: 12px 12px 0 0; display: flex; flex-direction: column; align-items: center; padding-top: 30px; padding-bottom: 20px; box-shadow: inset 0 10px 30px rgba(0,0,0,0.3); }
.rank-1 .podium-base { height: 180px; border-color: #FFD700; background: linear-gradient(180deg, rgba(255,215,0,0.15) 0%, rgba(26,26,36,0) 100%); }
.rank-2 .podium-base { height: 140px; border-color: #C0C0C0; background: linear-gradient(180deg, rgba(192,192,192,0.15) 0%, rgba(26,26,36,0) 100%); }
.rank-3 .podium-base { height: 120px; border-color: #cd7f32; background: linear-gradient(180deg, rgba(205,127,50,0.15) 0%, rgba(26,26,36,0) 100%); }
.podium-username { font-weight: 700; font-size: 1.1rem; margin-bottom: 5px; text-align: center; width: 100%; overflow: hidden; text-overflow: ellipsis; }
.podium-level { color: var(--twitch-primary); font-weight: 800; font-size: 1.2rem; }
.podium-xp { font-size: 0.85rem; color: var(--text-secondary); margin-top: 5px; }
.list { background: var(--bg-secondary); border-radius: 16px; padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.05); }
.row { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.02); transition: background 0.3s ease; border-radius: 8px; }
.row:hover { background: rgba(241, 196, 15, 0.1); }
.row:last-child { border-bottom: none; }
.rank-number { font-size: 1.2rem; font-weight: 800; width: 40px; color: var(--text-secondary); }
.user-info { flex: 1; display: flex; align-items: center; gap: 15px; }
.user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #2a2a35; }
.username { font-weight: 600; font-size: 1.1rem; }
.stats { text-align: right; }
.level { font-size: 1.1rem; font-weight: 700; color: var(--twitch-primary); }
.xp { font-size: 0.9rem; color: var(--text-secondary); }
@media (max-width: 768px) {
    .podium-container { gap: 10px; }
    .podium-spot { width: 30%; }
    .rank-1 .podium-avatar { width: 70px; height: 70px; }
    .rank-2 .podium-avatar, .rank-3 .podium-avatar { width: 60px; height: 60px; }
}

/* Status CSS */
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; }
.stat-card { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 25px; border-radius: 20px; text-align: center; backdrop-filter: blur(10px); transition: transform 0.3s ease; }
.stat-card:hover { transform: translateY(-5px); border-color: rgba(241, 196, 15, 0.3); box-shadow: 0 10px 30px rgba(241, 196, 15, 0.1); }
.stat-card i { font-size: 2rem; color: var(--twitch-primary); margin-bottom: 15px; }
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); gap: 20px; }
.chart-container { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; padding: 25px; backdrop-filter: blur(10px); }
.chart-container.full-width { grid-column: 1 / -1; }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.chart-title { font-family: 'Outfit', sans-serif; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; font-weight: 600;}
.chart-title i { color: var(--twitch-primary); }
.chart-wrapper { height: 250px; width: 100%; position: relative; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@media (max-width: 768px) { .charts-grid { grid-template-columns: 1fr; } }

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-container {
    background: var(--bg-secondary);
    padding: 35px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    animation: fadeIn 0.3s ease;
}

.modal-container h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-container label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}

.modal-input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--bg-tertiary);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.modal-input:focus {
    border-color: var(--twitch-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.2);
}

.modal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.modal-list::-webkit-scrollbar {
    width: 6px;
}
.modal-list::-webkit-scrollbar-track {
    background: transparent;
}
.modal-list::-webkit-scrollbar-thumb {
    background: rgba(241, 196, 15, 0.2);
    border-radius: 10px;
}

.modal-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.modal-list-item:hover {
    border-color: rgba(241, 196, 15, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.modal-list-item span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 500;
}

.modal-list-item i {
    color: var(--twitch-primary);
    font-size: 1.2rem;
}

.btn-danger {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(231, 76, 60, 0.3);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--twitch-primary), var(--twitch-dark));
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--twitch-hover), var(--twitch-primary));
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}
