/* Import Gaming Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: 
        radial-gradient(ellipse at top, rgba(13, 13, 13, 0.8) 0%, rgba(13, 13, 13, 1) 70%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #e0e6ed;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 127, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

/* Additional color utilities */
.text-blue {
    color: #667eea !important;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(15, 15, 23, 0.95);
    min-height: 100vh;
    box-shadow: 
        0 0 50px rgba(0, 255, 255, 0.1),
        inset 0 0 100px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

.app-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #00ffff 25%, 
        #ff00ff 50%, 
        #00ff7f 75%, 
        transparent 100%);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Header */
.header {
    background: 
        linear-gradient(135deg, 
            rgba(13, 13, 13, 0.9) 0%, 
            rgba(26, 26, 46, 0.9) 50%, 
            rgba(22, 33, 62, 0.9) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    color: #ffffff;
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 255, 0.05) 50%, 
        transparent 100%);
    animation: headerSweep 4s ease-in-out infinite;
}

@keyframes headerSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header-content h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ff7f);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.header-content h1 i {
    color: #ff00ff;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
    animation: heartPulse 2s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header-content p {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b0c4de;
    position: relative;
    z-index: 1;
}

/* Navigation */
.nav-tabs {
    display: flex;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    overflow-x: auto;
    position: relative;
}

.nav-tabs::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #00ffff 20%, 
        #ff00ff 40%, 
        #00ff7f 60%, 
        #ffff00 80%, 
        transparent 100%);
    animation: navGlow 5s linear infinite;
}

@keyframes navGlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.nav-btn {
    flex: 1;
    padding: 1.2rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: #8892b0;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 255, 0.1) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background: rgba(0, 255, 255, 0.05);
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.nav-btn.active {
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.2) 0%, 
        rgba(255, 0, 255, 0.2) 100%);
    color: #ffffff;
    border-bottom: 3px solid #00ffff;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.4),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    animation: activeGlow 2s ease-in-out infinite alternate;
}

@keyframes activeGlow {
    0% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.5); }
    100% { box-shadow: 0 0 20px rgba(0, 255, 255, 1); }
}

.nav-btn i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    padding: 2rem 1rem;
    position: relative;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: glitchFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes glitchFadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95);
        filter: blur(5px);
    }
    20% {
        opacity: 0.3;
        transform: translateY(15px) scale(0.97);
        filter: blur(3px);
    }
    40% {
        opacity: 0.6;
        transform: translateY(5px) scale(0.99);
        filter: blur(1px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Dashboard */
.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(0, 255, 255, 0.05) 0%, transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.05) 0%, transparent 70%);
    animation: welcomeFloat 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes welcomeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-10px, -10px) rotate(1deg); }
    66% { transform: translate(10px, 5px) rotate(-1deg); }
}

.welcome-section h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.welcome-section p {
    color: #b0c4de;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: 
        linear-gradient(145deg, 
            rgba(15, 15, 23, 0.9) 0%, 
            rgba(26, 26, 46, 0.9) 100%);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(0, 255, 255, 0.2);
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 255, 0.1) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(0, 255, 255, 0.4),
        0 0 30px rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.4);
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ff7f);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.stat-card h3 {
    font-size: 1.1rem;
    color: #8892b0;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.text-red {
    color: #ff6b6b !important;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.text-green {
    color: #51cf66 !important;
    text-shadow: 0 0 10px rgba(81, 207, 102, 0.5);
}

.text-blue {
    color: #00ffff !important;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Recent Expenses */
.recent-expenses h3 {
    margin-bottom: 1rem;
    color: #333;
}

.expense-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.expense-item {
    padding: 1rem;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.expense-item:hover {
    background: #f8f9fa;
}

.expense-item:last-child {
    border-bottom: none;
}

.expense-info h4 {
    margin-bottom: 0.25rem;
    color: #333;
}

.expense-info p {
    color: #6c757d;
    font-size: 0.9rem;
}

.expense-amount {
    font-weight: 600;
    font-size: 1.1rem;
    color: #667eea;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: 
        linear-gradient(145deg, 
            rgba(15, 15, 23, 0.95) 0%, 
            rgba(26, 26, 46, 0.95) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #00ffff 25%, 
        #ff00ff 50%, 
        #00ff7f 75%, 
        transparent 100%);
    animation: formScanline 3s linear infinite;
}

@keyframes formScanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.form-container h2 {
    margin-bottom: 2rem;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #e0e6ed;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(136, 146, 176, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    background: rgba(0, 0, 0, 0.3);
    color: #e0e6ed;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8892b0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.05);
    box-shadow: 
        0 0 0 3px rgba(0, 255, 255, 0.1),
        0 0 20px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Rajdhani', sans-serif;
}

/* Split Members */
.split-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.member-checkbox {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.member-checkbox:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.member-checkbox.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.member-checkbox input {
    margin-right: 0.5rem;
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(15, 15, 23, 0.9), rgba(26, 26, 46, 0.9));
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    border-color: #00ffff;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.btn-primary:hover {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
    border-color: #ff00ff;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 255, 255, 0.3),
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

.btn-secondary {
    border-color: #8892b0;
    color: #8892b0;
}

.btn-secondary:hover {
    background: linear-gradient(145deg, rgba(136, 146, 176, 0.2), rgba(136, 146, 176, 0.1));
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(136, 146, 176, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-danger {
    border-color: #ff6b6b;
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.btn-danger:hover {
    background: linear-gradient(145deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
    border-color: #ff5252;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(255, 107, 107, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.8);
}

.btn-success {
    border-color: #51cf66;
    color: #51cf66;
    text-shadow: 0 0 10px rgba(81, 207, 102, 0.5);
}

.btn-success:hover {
    background: linear-gradient(145deg, rgba(81, 207, 102, 0.2), rgba(81, 207, 102, 0.1));
    border-color: #40c057;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(81, 207, 102, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 15px rgba(81, 207, 102, 0.8);
}

/* Groups */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.group-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

.group-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.group-header h3 {
    color: #333;
    margin: 0;
}

.group-members {
    margin-bottom: 1rem;
}

.group-members h4 {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.member-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.member-tag {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

/* Balances */
.balances-container {
    max-width: 800px;
    margin: 0 auto;
}

.balance-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.balance-amount {
    font-size: 1.2rem;
    font-weight: 600;
}

.balance-positive {
    color: #28a745;
}

.balance-negative {
    color: #dc3545;
}

.balance-details {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0.25rem;
}

.modal-close:hover {
    color: #333;
}

.modal form {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1001;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Donation Platform Specific Styles */

/* Quick Actions */
.quick-actions {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.quick-actions::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(0, 255, 255, 0.03) 0%, transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.03) 0%, transparent 70%);
    animation: quickActionFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes quickActionFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-5px, -5px) rotate(0.5deg); }
    66% { transform: translate(5px, 2px) rotate(-0.5deg); }
}

.quick-actions h3 {
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.action-buttons .btn {
    flex: 1;
    min-width: 180px;
}

/* Donate Container */
.donate-container {
    max-width: 600px;
    margin: 0 auto;
}

.donate-header {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.streamer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.streamer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
}

.streamer-details h2 {
    margin-bottom: 0.5rem;
    color: #333;
}

.streamer-details p {
    color: #6c757d;
    margin: 0;
}

/* Donation Form */
.donation-form-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.amount-btn {
    padding: 1rem;
    border: 2px solid rgba(0, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    color: #e0e6ed;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.amount-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.2) 50%, transparent 100%);
    transition: left 0.5s ease;
}

.amount-btn:hover::before {
    left: 100%;
}

.amount-btn:hover,
.amount-btn.selected {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 255, 255, 0.2),
        0 0 20px rgba(0, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.amount-btn.selected {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
    border-color: #ff00ff;
    animation: selectedPulse 2s ease-in-out infinite;
}

@keyframes selectedPulse {
    0%, 100% { 
        box-shadow: 
            0 8px 25px rgba(0, 255, 255, 0.2),
            0 0 20px rgba(0, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 8px 25px rgba(255, 0, 255, 0.3),
            0 0 30px rgba(255, 0, 255, 0.2);
    }
}

.payment-methods {
    margin: 1.5rem 0;
}

.payment-methods h3 {
    margin-bottom: 1rem;
    color: #333;
}

.payment-options {
    display: flex;
    gap: 1rem;
}

.payment-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.payment-btn:hover,
.payment-btn.active {
    border-color: #667eea;
    background: #f8f9ff;
}

.payment-btn i {
    font-size: 1.5rem;
    color: #667eea;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
}

.char-count {
    display: block;
    text-align: right;
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Donation List Styles */
.donation-list,
.donations-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.donation-item,
.donation-entry {
    padding: 1rem;
    border-bottom: 1px solid #f1f3f4;
    transition: background 0.2s ease;
}

.donation-item:hover,
.donation-entry:hover {
    background: #f8f9fa;
}

.donation-item:last-child,
.donation-entry:last-child {
    border-bottom: none;
}

.donation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.donor-name {
    font-weight: 600;
    color: #333;
}

.donation-amount {
    font-weight: 600;
    font-size: 1.1rem;
    color: #667eea;
}

.donation-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.donation-message {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 6px;
    font-style: italic;
    margin: 0.5rem 0;
    border-left: 3px solid #667eea;
}

.donation-status {
    text-align: right;
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.approved {
    background: #d4edda;
    color: #155724;
}

.status.pending {
    background: #fff3cd;
    color: #856404;
}

/* Profile Preview */
.profile-preview {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.preview-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.preview-info h4 {
    margin-bottom: 0.25rem;
    color: #333;
}

.preview-info p {
    color: #6c757d;
    margin: 0;
}

/* Overlay Styles */
.overlay-container {
    max-width: 800px;
    margin: 0 auto;
}

.overlay-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.overlay-section h3 {
    margin-bottom: 1rem;
    color: #333;
}

.url-box {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.url-box input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    font-family: monospace;
}

.overlay-instructions ol {
    padding-left: 1.5rem;
}

.overlay-instructions li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.widget-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 2px dashed #dee2e6;
}

.donation-widget {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 10px;
    padding: 15px;
    font-family: Arial, sans-serif;
}

.donation-widget h4 {
    margin-bottom: 1rem;
    text-align: center;
    color: #667eea;
}

.donation-widget .donation-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.donation-widget .donor {
    font-weight: bold;
    color: #667eea;
}

.donation-widget .amount {
    color: #4CAF50;
    font-weight: bold;
    float: right;
}

.donation-widget .message {
    font-style: italic;
    margin-top: 5px;
    clear: both;
}

/* Donations Management */
.donations-container {
    max-width: 1000px;
    margin: 0 auto;
}

.filter-options select {
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
}

.donations-stats {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-label {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

/* Modal Enhancements */
.success-content {
    padding: 2rem;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-donation {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: left;
}

.success-donation p {
    margin-bottom: 0.5rem;
}

.message-content {
    padding: 1.5rem;
}

.donation-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.message-text {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .nav-btn {
        font-size: 0.8rem;
        padding: 0.75rem 0.5rem;
        min-width: 100px;
    }
    
    .nav-btn i {
        display: block;
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .groups-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .modal-actions {
        flex-direction: column;
    }

    /* Donation platform mobile styles */
    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        min-width: auto;
    }

    .amount-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .payment-options {
        flex-direction: column;
    }

    .streamer-info {
        flex-direction: column;
        text-align: center;
    }

    .url-box {
        flex-direction: column;
    }

    .url-box input {
        margin-bottom: 0.5rem;
    }

    .stat-row {
        grid-template-columns: 1fr;
    }

    .donation-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Help Section Styles */
.help-container {
    max-width: 900px;
    margin: 0 auto;
}

.help-container h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.help-sections {
    display: grid;
    gap: 2rem;
}

.help-section {
    background: 
        linear-gradient(145deg, 
            rgba(15, 15, 23, 0.9) 0%, 
            rgba(26, 26, 46, 0.9) 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.1);
    position: relative;
}

.help-section h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ffff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.help-section h3 i {
    font-size: 1.2rem;
}

.help-content {
    color: #e0e6ed;
    line-height: 1.7;
}

.help-content p {
    margin-bottom: 1rem;
}

.help-content ol,
.help-content ul {
    margin: 1rem 0 1rem 1.5rem;
}

.help-content ol li,
.help-content ul li {
    margin-bottom: 0.75rem;
    color: #b0c4de;
}

.help-content strong {
    color: #ffffff;
    font-weight: 600;
}

.tip {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tip i {
    color: #00ffff;
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.warning i {
    color: #ffc107;
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.faq-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #00ffff;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item strong {
    display: block;
    color: #00ffff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: #b0c4de;
    margin: 0;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.support-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.support-link:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.2);
}

.support-link i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .help-container h2 {
        font-size: 2rem;
    }
    
    .help-section {
        padding: 1.5rem;
    }
    
    .help-section h3 {
        font-size: 1.3rem;
    }
    
    .support-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1rem;
        margin: 0;
        border-radius: 0;
    }
    
    .split-members {
        grid-template-columns: 1fr;
    }
    
    .member-list {
        flex-direction: column;
    }
    
    .member-tag {
        text-align: center;
    }

    /* Small screen donation platform styles */
    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .donate-header,
    .donation-form-container,
    .overlay-section {
        margin: 0 0 1rem 0;
        border-radius: 8px;
    }

    .btn-large {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}