:root {
    /* Legacy Groen accurate neon green accent mapped to modern contrast */
    --primary: #94CC0B;
    /* Hover state green slightly brighter/lighter */
    --primary-hover: #a5e30c;
    /* Legacy yellow register button accent */
    --accent-yellow: #fcffb4;

    /* Deep Space Dark Mode Palette */
    --bg-dark: #0a0f18;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html, body {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Base Ambient Layer Clipping */
.ambient-container {
    position: absolute; /* Using absolute binds it to the body flow properly */
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

/* Subtle glowing background orbs for deep premium aesthetics */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float 10s ease-in-out infinite alternate;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -150px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #2563eb;
    bottom: 50px;
    left: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(60px) scale(1.05); }
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Navigation Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    position: relative; /* Changed from sticky for better mobile scrolling overflow */
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 15, 24, 0.8);
    backdrop-filter: blur(20px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
    cursor: pointer;
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Mobile Navbar adjustments */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 968px) {
    .navbar {
        padding: 1rem 5%;
        flex-direction: row;
        justify-content: center; /* Center logo on mobile */
    }
    .nav-links {
        display: none !important; /* Hide top nav links completely on mobile */
    }
    
    /* Add padding to body to prevent content from hiding behind bottom nav */
    body {
        padding-bottom: 70px;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(10, 15, 24, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--glass-border);
        justify-content: space-around;
        align-items: center;
        padding: 0.5rem 0;
        z-index: 1000;
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.75rem;
        font-weight: 600;
        background: none;
        border: none;
        cursor: pointer;
        transition: color 0.3s ease;
        flex: 1; /* evenly space out items */
    }

    .mobile-bottom-nav .nav-item:hover {
        color: var(--primary);
    }

    .mobile-bottom-nav .nav-item svg {
        width: 24px;
        height: 24px;
        stroke: currentColor;
        stroke-width: 2;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    
    .nav-item-form {
        margin: 0;
        padding: 0;
        display: flex;
        flex: 1;
    }
    
    .nav-item-form .nav-item {
        width: 100%;
    }
}

/* Premium Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    outline: none;
    text-align: center;
    display: inline-block;
    will-change: transform;
}

.btn svg {
    transition: none;
    pointer-events: none;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px rgba(148, 204, 11, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(148, 204, 11, 0.5);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(148, 204, 11, 0.1);
}

.btn-yellow {
    background: transparent;
    color: var(--accent-yellow);
    border: 2px solid var(--accent-yellow);
}

.btn-yellow:hover {
    background: rgba(252, 255, 180, 0.1);
}

/* Main Global Layout Wrapper (Flexbox structure instead of strict Grid) */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 5%;
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Gallery Layout Mapping */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
}

.gallery-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Home Page specific rigid split layout logic */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    width: 100%;
    margin-top: 4rem;
}

@media (max-width: 968px) {
    .home-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 2rem;
        text-align: center;
    }
}

/* Left Side Content (Hero) */
.hero {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 968px) {
    .hero {
        align-items: center;
    }
    .hero h1 {
        font-size: 3rem !important; /* scaling down heavy typography on phone */
    }
    .hero p {
        font-size: 1.05rem !important;
        max-width: 100% !important;
    }
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    padding-bottom: 0.15em; /* Extends clip-box to prevent descender cutoffs */
}

.hero h1 span {
    background: linear-gradient(to right, var(--primary), #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 90%;
}

/* Right Side Sidebar - Upload Box Only */
.upload-box {
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 550px;
    margin-left: auto;
}

@media (max-width: 968px) {
    .upload-box {
        margin: 0 auto;
        padding: 2rem !important; /* Prevent bleed on mobile margins */
    }
}

/* Subtle glowing gradient inside upload box */
.upload-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.6;
}

.upload-box h2 {
    font-size: 1.8rem;
    color: var(--text-main);
}

.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 4rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

@media (max-width: 968px) {
    .drop-zone {
        padding: 2rem 1rem !important;
    }
}

.drop-zone:hover {
    border-color: var(--primary);
    background: rgba(148, 204, 11, 0.05);
}

.drop-icon {
    width: 56px;
    height: 56px;
    color: var(--primary);
}

.drop-text {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.drop-text span {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.full-width {
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 2rem 5%;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(6, 9, 14, 0.7);
    color: var(--text-muted);
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.footer-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

@media (max-width: 968px) {
    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.stats span {
    color: var(--primary);
    font-weight: 600;
}

/* Entrance Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Login Page Specific Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    flex-grow: 1;
    min-height: 70vh;
}

.login-box {
    width: 100%;
    max-width: 480px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
}

.form-group label {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 600;
}

.form-group input {
    padding: 0.9rem 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary);
    background: rgba(148, 204, 11, 0.05);
    box-shadow: 0 0 10px rgba(148, 204, 11, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--glass-border);
}

.divider::before {
    margin-right: 1em;
}

.divider::after {
    margin-left: 1em;
}

.social-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-google {
    background: white;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
}

.btn-google:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.btn-magic {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
}

.btn-magic:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Helper Links */
.register-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s;
}

.register-link:hover {
    opacity: 0.8;
}

/* ============================================================
   Utility Helpers
   ============================================================ */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-left { text-align: left; }

.mt-sm  { margin-top: 0.5rem; }
.mt-md  { margin-top: 1rem; }
.mt-lg  { margin-top: 1.5rem; }
.mt-xl  { margin-top: 2rem; }
.mb-sm  { margin-bottom: 0.5rem; }
.mb-md  { margin-bottom: 1rem; }
.mb-lg  { margin-bottom: 1.5rem; }
.mb-xl  { margin-bottom: 2rem; }

/* ============================================================
   Page-level Layout
   ============================================================ */
.page-section {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 4rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.page-section--narrow {
    max-width: 800px;
    margin-top: 4rem;
}

/* ============================================================
   Content Pages (privacy, terms, contact)
   ============================================================ */
.content-card {
    max-width: 100%;
    text-align: left;
    padding: 4rem;
}

/* Glowing top-border accent shared by many glass cards */
.glass-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.7;
}

.glass-glow--thin {
    height: 2px;
    opacity: 0.6;
}

.glass-glow--danger {
    height: 2px;
    background: linear-gradient(90deg, transparent, #ef4444, transparent);
    opacity: 0.4;
}

.content-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.content-intro {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.content-heading {
    color: var(--text-main);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.content-body {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.content-list {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
}

/* ============================================================
   Auth Pages (login, register, OTP)
   ============================================================ */
.auth-header {
    margin-bottom: 0.5rem;
}

.auth-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer-text {
    font-size: 0.95rem;
}

.error-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    color: #ef4444;
    text-align: left;
    font-size: 0.95rem;
}

.form-actions-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.form-actions-row label {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.form-actions-row input[type="checkbox"] {
    accent-color: var(--primary);
    cursor: pointer;
}

.form-group--spaced {
    margin-bottom: 1.5rem;
}

.form-group--narrow {
    max-width: 400px;
}

.btn-submit-lg {
    padding: 1rem;
    font-size: 1.1rem;
}

.btn-submit-flex {
    padding: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* OTP code input */
.otp-label {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.otp-input {
    text-align: center;
    font-size: 2rem;
    letter-spacing: 0.5rem;
    padding: 1rem;
}

/* ============================================================
   Media Display Page
   ============================================================ */
.media-frame {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: rgba(0, 0, 0, 0.4);
}

.media-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.media-info {
    flex: 1;
    min-width: 300px;
}

.media-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

/* Owner edit: inline name input */
.media-name-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
}

.media-name-input {
    width: 100%;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.6rem;
    margin-bottom: 0.5rem;
}

.media-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

/* Badge row (date, format, etc.) */
.meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.meta-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.meta-badge--accent {
    background: rgba(148, 204, 11, 0.1);
    color: var(--primary);
    font-weight: 600;
}

/* Description textarea */
.media-description-input {
    width: 100%;
    max-width: 500px;
    font-size: 0.95rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.6rem;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 1rem;
}

.media-description-actions {
    width: 100%;
    max-width: 500px;
}

.media-description-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

/* Share panel */
.share-panel {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 320px;
    flex: 1;
    max-width: 500px;
}

.share-title {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.share-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.share-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.share-label {
    min-width: 130px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.share-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: monospace;
    font-size: 0.75rem;
    outline: none;
    width: 100%;
}

.section-divider {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Delete button (media display + my_images) */
.btn-danger {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Report details */
.report-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.report-select {
    width: 100%;
    font-size: 0.9rem;
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.5rem;
    outline: none;
    appearance: none;
}

.report-textarea {
    width: 100%;
    font-size: 0.9rem;
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.5rem;
    resize: vertical;
    outline: none;
}

.report-summary {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
    outline: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    user-select: none;
}

/* Share/copy button (full width, flex centered) */
.btn-share {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

/* ============================================================
   Profile / Settings Page
   ============================================================ */
.profile-section {
    max-width: 800px;
    margin-top: 2rem;
    margin-bottom: 4rem;
    align-items: flex-start;
}

.profile-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-header {
    text-align: left;
    margin-bottom: 0.5rem;
}

.settings-card {
    padding: 2.5rem;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.section-title {
    color: var(--text-main);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.section-title--sm {
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 2.5rem;
    color: #fff;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    max-width: 600px;
}

.linked-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 1rem;
}

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

.linked-account-name {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
}

.status-connected {
    color: #34d399;
    font-size: 0.9rem;
    margin-top: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.status-disconnected {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-subtle {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.3s;
    padding: 0.6rem 1.5rem;
}

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

.btn-link-account {
    background: var(--primary);
    color: #000;
    font-weight: 600;
    border: none;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
}

/* Danger zone card variant */
.glass--danger {
    border-color: rgba(239, 68, 68, 0.2);
    position: relative;
    overflow: hidden;
}

.danger-title {
    color: #ef4444;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.danger-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.btn-danger-action {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-weight: 600;
}

.btn-danger-action:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* ============================================================
   My Images Gallery
   ============================================================ */
.my-images-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.my-images-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.my-images-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

.gallery-card-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.gallery-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.gallery-card-format {
    background: rgba(148, 204, 11, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.gallery-card-title {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 70%;
}

.gallery-card-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-view {
    flex: 1;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.btn-icon-danger {
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 0.9rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Upload button with icon */
.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    border-style: dashed;
    border-width: 2px;
}

.empty-state-icon {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-state-title {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto 2rem;
}

/* ============================================================
   Error Pages (404 / 500)
   ============================================================ */
.error-page {
    width: 100%;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.error-card {
    max-width: 500px;
    text-align: center;
    padding: 4rem 2rem;
}

.error-card--500 {
    border-top: 4px solid #ef4444;
}

.error-icon {
    margin-bottom: 2rem;
}

.error-code {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-code--500 {
    background: linear-gradient(135deg, var(--text-main), #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-heading {
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    align-items: stretch;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

/* ============================================================
   Toast Messages
   ============================================================ */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    align-items: center;
}

.toast-msg {
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-weight: 600;
    font-size: 0.95rem;
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-20px);
}

.toast-msg--success {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.toast-msg--error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Form textarea (contact page) */
.form-textarea {
    padding: 0.9rem 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    resize: vertical;
    width: 100%;
}

.form-textarea:focus {
    border-color: var(--primary);
    background: rgba(148, 204, 11, 0.05);
    box-shadow: 0 0 10px rgba(148, 204, 11, 0.2);
}

/* Progress bar container (home upload) */
.progress-container {
    display: none;
    margin-top: 1rem;
    width: 100%;
}

.progress-text {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 100%;
    height: 10px;
    overflow: hidden;
}

.progress-bar {
    background: var(--primary);
    height: 100%;
    width: 0%;
    transition: width 0.2s;
}

/* Drop zone supplementary text */
.drop-subtext {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: -0.5rem;
}
