/* Design System Tokens */
:root {
    --bg-dark: #090714; /* Deep gothic night purple */
    --bg-card: rgba(20, 16, 38, 0.55);
    --bg-card-hover: rgba(30, 24, 58, 0.7);
    --border-color: rgba(255, 121, 198, 0.15); /* Pink tint border */
    --border-color-hover: rgba(255, 121, 198, 0.55);
    
    --text-primary: #fff0f5; /* Lavender blush white */
    --text-secondary: #e2d9f3;
    --text-muted: #8c82a6;
    
    --accent-primary: #ff79c6; /* Cosplay Hot Pink */
    --accent-primary-glow: rgba(255, 121, 198, 0.35);
    --accent-secondary: #8be9fd; /* Magical Cyan */
    --accent-secondary-glow: rgba(139, 233, 253, 0.35);
    --accent-gold: #ffb86c; /* Star Gold */
    
    --success: #50fa7b;
    --success-glow: rgba(80, 250, 123, 0.2);
    --error: #ff5555;
    
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    --blur-strength: 20px;
    --transition-speed: 0.35s;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23ff79c6'><path d='M12 2l2.4 4.9 5.4.8-3.9 3.8.9 5.4-4.8-2.5-4.8 2.5.9-5.4-3.9-3.8 5.4-.8z'/></svg>") 12 12, auto;
}

/* Background Gradients & Mesh */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 121, 198, 0.25) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 233, 253, 0.25) 0px, transparent 50%);
    z-index: -2;
    pointer-events: none;
    animation: rotate-gradient 30s infinite linear;
}

@keyframes rotate-gradient {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.55;
    pointer-events: none;
}

.orb-1 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: -10%;
    right: 5%;
    animation: orb-float-1 12s infinite alternate ease-in-out;
}

.orb-2 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    bottom: -10%;
    left: 5%;
    animation: orb-float-2 10s infinite alternate ease-in-out;
}

@keyframes orb-float-1 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(12vw, 15vh) scale(1.15); }
    100% { transform: translate(-5vw, 25vh) scale(0.9) rotate(45deg); }
}

@keyframes orb-float-2 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(-12vw, -15vh) scale(0.9); }
    100% { transform: translate(5vw, 10vh) scale(1.15) rotate(-45deg); }
}

/* Layout Utilities */
.hidden {
    display: none !important;
}

html.no-scroll, body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Glassmorphism Card base */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

input[type="text"],
input[type="password"],
input[type="url"],
select,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-speed);
}

.input-wrapper input {
    padding-left: 48px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px var(--accent-primary-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #c084fc);
    color: white;
    box-shadow: 0 4px 14px 0 var(--accent-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(168, 85, 247, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--text-secondary);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.btn-danger:hover {
    background: var(--error);
    color: white;
}

.btn-danger-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    padding: 0 !important; /* Reset inherited horizontal padding from .btn */
}

.btn-danger-icon:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5px;
    display: inline-block;
}

.btn-danger-icon svg {
    width: 20px;
    height: 20px;
    stroke: #ff5555 !important; /* Force red color for danger/logout */
    stroke-width: 2.5px !important;
    display: inline-block !important;
}

.btn-block {
    width: 100%;
}

.flex-spacer {
    flex-grow: 1;
}

/* Public Landing Page & Grid Layout */
.auth-wrapper {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    width: 100%;
}

.auth-wrapper.active {
    display: flex;
}

/* Landing Container & Hero */
.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1700px;
    gap: 32px;
}

.landing-hero {
    text-align: center;
    margin-bottom: 8px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff0f5 30%, var(--accent-primary) 70%, var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    animation: fade-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1), connection-pulse 3s infinite alternate ease-in-out;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-secondary);
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto;
    animation: fade-slide-up 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fade-slide-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes connection-pulse {
    0% {
        filter: drop-shadow(0 2px 8px rgba(255, 121, 198, 0.25)) drop-shadow(0 0 2px rgba(139, 233, 253, 0.15));
        opacity: 0.95;
    }
    100% {
        filter: drop-shadow(0 2px 20px rgba(255, 121, 198, 0.7)) drop-shadow(0 0 8px rgba(139, 233, 253, 0.45));
        opacity: 1;
    }
}

.landing-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 1.3fr 1fr 1fr;
    gap: 24px;
    width: 100%;
    max-width: 1700px;
    height: 720px;
    align-items: stretch;
}

/* Window Cards (Sleek Browser-like mockups) */
.window-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.window-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
}

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.window-controls {
    display: flex;
    gap: 6px;
}

.window-controls .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-controls .dot.red { background-color: #ff5555; }
.window-controls .dot.yellow { background-color: #ffb86c; }
.window-controls .dot.green { background-color: #50fa7b; }

.window-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.window-icon.text-pink {
    color: var(--accent-primary);
}

.window-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.window-content.auth-form-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scrollable-feed {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.scrollable-feed::-webkit-scrollbar {
    width: 6px;
}

.scrollable-feed::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

/* Cosplay Profile / Gallery Banner */
.profile-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.avatar-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary-glow);
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    width: 16px;
    height: 16px;
    color: var(--accent-secondary);
    fill: var(--accent-secondary-glow);
}

.profile-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 12px 10px 8px 10px;
    color: white;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

/* Gank / Socials Widget */
.gank-card {
    background: rgba(255, 121, 198, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.gank-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.gank-badge {
    display: inline-block;
    background: var(--accent-primary);
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 6px;
}

.verified-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff0f5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified-badge-small {
    width: 14px;
    height: 14px;
    color: var(--accent-secondary);
    fill: var(--accent-secondary-glow);
}

.gank-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.myr-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-label {
    position: absolute;
    left: 16px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-primary);
}

.myr-input-group input {
    padding-left: 60px !important;
    font-weight: 600;
}

.gank-submit-btn {
    background: linear-gradient(135deg, #a11f59, #c01e68) !important;
    border-color: rgba(255, 121, 198, 0.3) !important;
    box-shadow: 0 4px 12px 0 rgba(161, 31, 89, 0.3) !important;
}

.gank-submit-btn:hover {
    background: linear-gradient(135deg, #be2267, #db2477) !important;
    box-shadow: 0 6px 16px 0 rgba(161, 31, 89, 0.5) !important;
    transform: translateY(-2px);
}

.donation-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amount-buttons {
    display: flex;
    gap: 8px;
}

.amount-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
}

.amount-btn:hover,
.amount-btn.active {
    background: var(--accent-primary);
    color: var(--bg-dark);
    border-color: var(--accent-primary);
}

/* Social links list */
.social-links-list h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 10px;
    transition: all var(--transition-speed);
}

.social-link-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-secondary);
    transform: translateX(4px);
}

.social-link-item .arrow {
    margin-left: auto;
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: transform var(--transition-speed);
}

.social-link-item:hover .arrow {
    transform: translate(2px, -2px);
    color: var(--accent-secondary);
}

/* Auth Card header inside window */
.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.logo-wrapper {
    background: rgba(255, 121, 198, 0.05);
    border: 1px solid var(--border-color);
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
}

.auth-header h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive grid for Landing Page */
@media (max-width: 1024px) {
    .landing-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: 24px;
    }
    .window-card {
        height: 500px;
    }
    .window-card.auth-card {
        height: auto;
        padding-bottom: 24px;
    }
}


.error-message {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--error);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.brand:hover .brand-logo {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px 0 var(--accent-primary-glow);
    background: rgba(168, 85, 247, 0.05);
}

.brand h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.brand .subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.search-box input {
    padding-left: 48px;
}

.category-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: var(--text-secondary);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(6, 182, 212, 0.15));
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px 0 rgba(168, 85, 247, 0.1);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    flex-grow: 1;
    align-content: flex-start;
}

.project-card {
    position: relative;
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 220px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-primary-glow), transparent);
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-hover);
    box-shadow: 0 12px 30px 0 rgba(168, 85, 247, 0.15);
}

.project-card:hover::before {
    opacity: 0.1;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.card-icon-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.project-card:hover .card-icon-wrapper {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--accent-primary);
}

.card-icon {
    width: 24px;
    height: 24px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.status-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.status-badge.online {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}
.status-badge.online .dot {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-badge.offline {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--error);
}
.status-badge.offline .dot {
    background-color: var(--error);
}

.card-body {
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-secondary);
    background: rgba(6, 182, 212, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
}

.edit-project-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all var(--transition-speed);
}

.edit-project-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

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

.modal-card {
    width: 100%;
    max-width: 500px;
    padding: 30px;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-speed);
}

.modal-close:hover {
    color: white;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .col {
    flex: 1;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    align-items: center;
}

/* Loader Styles */
.loader {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dashboard-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 40px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .dashboard-wrapper {
        padding: 24px 16px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Magical Cursor Sparkle Particles */
.sparkle-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px var(--accent-primary);
    transform: translate(-50%, -50%);
    animation: sparkle-fade 0.8s forwards ease-out;
}

@keyframes sparkle-fade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -100%) scale(0) rotate(180deg);
    }
}

/* Video Gallery Item & Overlay Controls */
.video-item {
    position: relative;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(9, 7, 20, 0.9));
    padding: 16px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-speed);
    z-index: 2;
}

.video-overlay:hover {
    background: linear-gradient(transparent, rgba(9, 7, 20, 1));
}

.video-overlay .volume-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 4px var(--accent-primary-glow));
}

/* Tabbed Interface styles */
.tab-headers {
    display: flex;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-speed);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: rgba(255, 121, 198, 0.04);
}

.tab-btn svg {
    width: 16px;
    height: 16px;
}

.tab-pane {
    display: none;
    height: 100%;
    flex-direction: column;
    overflow-y: auto;
}

.tab-pane.active {
    display: flex;
}

/* Video Responsive Container */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: black;
    border-bottom: 1px solid var(--border-color);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Past Streams Section */
.past-streams-section {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.past-streams-section h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.past-streams-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex: 1;
    padding: 4px 8px 4px 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.past-stream-card {
    display: flex;
    gap: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.past-stream-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.past-stream-thumb {
    width: 100px;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.past-stream-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.past-stream-thumb::after {
    content: '\25B6'; /* Play icon */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    background: rgba(0, 0, 0, 0.7);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.past-stream-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.past-stream-info h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.past-stream-info span {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Universe Loader Styles */
#universe-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #090714;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
    overflow: hidden;
}

#universe-loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 500px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-orb {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.6;
    position: absolute;
    top: -60px;
    z-index: -1;
    animation: orb-pulse 2.5s infinite alternate ease-in-out;
}

@keyframes orb-pulse {
    0% { transform: scale(0.9); opacity: 0.45; }
    100% { transform: scale(1.15); opacity: 0.75; }
}

.loader-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff0f5 30%, var(--accent-primary) 70%, var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: connection-pulse 2s infinite alternate ease-in-out;
}

.loader-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(255, 121, 198, 0.1);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 12px var(--accent-primary);
    border-radius: 3px;
}

.loader-status {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Guestbook Custom Styles */
.guestbook-window {
    border-color: rgba(80, 250, 123, 0.2) !important;
}

.guestbook-window:hover {
    border-color: rgba(80, 250, 123, 0.6) !important;
    box-shadow: 0 8px 32px 0 rgba(80, 250, 123, 0.15) !important;
}

.comment-bubble {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 12px;
    transition: all var(--transition-speed);
}

.comment-bubble:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-color);
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 11px;
}

.comment-author {
    font-weight: 700;
    color: var(--accent-secondary);
    font-family: var(--font-heading);
}

.comment-time {
    color: var(--text-muted);
    font-size: 9px;
}

.comment-body {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-primary);
    word-break: break-word;
}

.comment-quote {
    background: rgba(0, 0, 0, 0.2);
    border-left: 2px solid var(--accent-primary);
    border-radius: 4px;
    padding: 6px 10px;
    margin-bottom: 8px;
    font-size: 10px;
    color: var(--text-muted);
}

.comment-quote strong {
    color: var(--accent-secondary);
}

.comment-action-reply {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comment-action-reply:hover {
    color: var(--accent-primary);
    background: rgba(255, 121, 198, 0.1);
}


