body {
    font-family: sans-serif;
    padding: 20px;
}

/* Ensure all tiny lines render as visible dots */
svg line {
  stroke-linecap: round;   /* turns 0-length lines into dots */
}

svg {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

/* ---------- Fixed / Themed Buttons ---------- */
#fixed-button-bar {
    position: fixed;
    top: 10px;
    left: 50px;          /* offset so it doesn’t overlap the bell */
    display: flex;
    gap: 10px;
    z-index: 1000;
}

/* ---------- Themed Buttons ---------- */
#fixed-button-bar a {
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-family: sans-serif;
    font-weight: bold;
    height: 20px;
    line-height: 20px;
    display: inline-flex;
    align-items: center;      /* vertically center text */
    transition: all 0.3s ease;
    background-color: var(--submit-bg);
    color: var(--submit-text);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Optional: emoji adjustment */
#fixed-button-bar a::before {
    vertical-align: middle;
    font-size: 0.95em;
}

/* Hover effect */
#home-button:hover,
#hall-of-fame-button:hover,
#my-profile-button:hover,
#following-feed-button:hover,
#upload-button:hover,
#logout-button:hover {
    background-color: var(--submit-bg-hover);
}

input[type="text"],
textarea {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 6px;
}

.label-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------- Search Form ---------- */
.search-form {
    display: flex;
    gap: 8px;
    margin: 1.5rem 0;               /* more breathing room */
    max-width: 600px;               /* prevents it from stretching too wide */
    margin-left: auto;
    margin-right: auto;             /* center it horizontally */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* subtle floating effect */
    border-radius: 8px;
    overflow: hidden;               /* round corners affect children */
}

.search-form input[type="text"],
.search-form input[type="search"] {
    flex: 1;                        /* fill available space */
    padding: 12px 16px;
    border: none;                    /* remove inner border, use parent shadow */
    outline: none;                   /* remove default focus */
    font-size: 1rem;
    background-color: var(--search-bg);
    color: var(--search-text);
}

.search-form input[type="text"]:focus,
.search-form input[type="search"]:focus {
    outline: none;  /* remove native outline */
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.6); /* blue glow */
    border-radius: 9999px 0 0 9999px; /* match the pill shape */
}

.search-form input[type="text"]::placeholder,
.search-form input[type="search"]::placeholder {
    color: var(--search-text);
}

.search-form input[type="submit"] {
    flex: 0 0 100px;                /* fixed width button */
    background-color: var(--submit-bg);
    color: var(--submit-text);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-form input[type="submit"]:hover {
    background-color: var(--submit-bg-hover);
}

.search-form {
    background: var(--search-bg);
    border-radius: 9999px;   /* full pill */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.search-form input[type="submit"] {
    border-radius: 0 9999px 9999px 0; /* pill on right end */
}

html {
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s, color 0.3s;
}

/* ---------- Cursor Trail Effect ---------- */
.cursor-trail {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    pointer-events: none;
    background: var(--cursor-trail-gradient, linear-gradient(45deg, #ff6ec7, #00f5ff));
    opacity: 0.8;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, opacity 0.2s, background 0.3s ease;
    z-index: 10000;
}

/* ---------- Theme Variables ---------- */

:root {
    --card-bg: var(--surface);
    --card-bg-hover: color-mix(in srgb, var(--surface) 90%, var(--accent1) 10%);
    --border-color: var(--border);

    --text-primary: var(--text);
    --text-secondary: color-mix(in srgb, var(--text) 60%, transparent);
}

/* ---------- Dark Theme ---------- */
html.theme-dark {
    --bg: #121212;
    --bg-rgb: 18,18,18;
    --tree-bg: #1a1a1a;
    --text: #eee;
    --text-rgb: 238,238,238;

    --accent1: #4caf50;
    --accent1-rgb: 76,175,80;
    --accent2: #ffc107;
    --accent2-rgb: 255,193,7;
    --accent3: #f44336;
    --accent3-rgb: 244,67,54;

    --surface: #1a1a1a;
    --surface-rgb: 26,26,26;
    --border: #333;
    --border-rgb: 51,51,51;
    --cursor-trail-gradient: linear-gradient(45deg, #ff6ec7, #00f5ff);
    --submit-bg: #333;
    --submit-bg-rgb: 51,51,51;
    --submit-text: #fff;
    --submit-text-rgb: 255,255,255;
    --submit-bg-hover: #555;
    --submit-bg-hover-rgb: 85,85,85;
    --sent-text: #fff;
}

/* ---------- Light Theme ---------- */
html.theme-light {
    --bg: #fefefe;
    --bg-rgb: 254,254,254;
    --tree-bg: #f0f0f0; /* light neutral tree background */
    --text: #111;
    --text-rgb: 17,17,17;
    --accent1: #155724;
    --accent1-rgb: 21,87,36;
    --accent2: #856404;
    --accent2-rgb: 133,100,4;
    --accent3: #721c24;
    --accent3-rgb: 114,28,36;
    --surface: #f5f5f5;
    --surface-rgb: 245,245,245;
    --border: #ddd;
    --border-rgb: 221,221,221;
    --cursor-trail-gradient: linear-gradient(45deg, #ff5f5f, #5fafff);
    --submit-bg: #ddd;
    --submit-bg-rgb: 221,221,221;
    --submit-text: #000;
    --submit-text-rgb: 0,0,0;
    --submit-bg-hover: #bbb;
    --submit-bg-hover-rgb: 187,187,187;
    --sent-text: #fff;
}

html.theme-steven {
    /* copy light theme values */
    --bg: #fefefe;
    --bg-rgb: 254,254,254;
    --tree-bg: url('stevenhere.png') center/cover no-repeat;
    --text: #111;
    --text-rgb: 17,17,17;
    --accent1: #155724;
    --accent1-rgb: 21,87,36;
    --accent2: #856404;
    --accent2-rgb: 133,100,4;
    --accent3: #721c24;
    --accent3-rgb: 114,28,36;
    --surface: #f5f5f5;
    --surface-rgb: 245,245,245;
    --border: #ddd;
    --border-rgb: 221,221,221;
    --cursor-trail-gradient: linear-gradient(45deg, #ff5f5f, #5fafff);
    --submit-bg: #ddd;
    --submit-bg-rgb: 221,221,221;
    --submit-text: #000;
    --submit-text-rgb: 0,0,0;
    --submit-bg-hover: #bbb;
    --submit-bg-hover-rgb: 187,187,187;
    --sent-text: #fff;

    /* custom Steven-specific background */
    background: url('stevenhere.png') center/cover no-repeat fixed;
    color: var(--text);
    transition: background 0.3s, color 0.3s;
}

/* ---------- Green Theme ---------- */
html.theme-green {
    --bg: #aae5a4;
    --bg-rgb: 170,229,164;

    /* Structure */
    --tree-bg: #e3f3de;        /* much lighter than bg */
    --surface: #d1e8cc;        /* slightly darker than tree */
    --surface-rgb: 209,232,204;

    /* Text */
    --text: #0b2e17;           /* deeper, sharper green */
    --text-rgb: 11,46,23;

    /* Accents — intentionally different hues */
    --accent1: #4fa67a;        /* teal-green (primary actions) */
    --accent1-rgb: 79,166,122;

    --accent2: #9fb86b;        /* olive-yellow (secondary UI) */
    --accent2-rgb: 159,184,107;

    --accent3: #d18a9c;        /* muted rose (alerts / highlights) */
    --accent3-rgb: 209,138,156;

    /* Borders actually visible now */
    --border: #6f9f7a;
    --border-rgb: 111,159,122;

    /* Buttons */
    --submit-bg: #4fa67a;
    --submit-bg-rgb: 79,166,122;
    --submit-text: #062012;
    --submit-text-rgb: 6,32,18;

    --submit-bg-hover: #3f8f66;
    --submit-bg-hover-rgb: 63,143,102;

    /* Misc */
    --cursor-trail-gradient: linear-gradient(
        45deg,
        #4fa67a,
        #9fb86b
    );

    --sent-text: #0b2e17;
}

/* ---------- Weed Theme ---------- */
html.theme-weed {
    --bg: #061f06;
    --bg-rgb: 6,31,6;
    --tree-bg: #cdeac7; /* greenish soft background */--tree-bg: #0d2a0d; /* dark forest green */
    --text: #b0e5b0;
    --text-rgb: 176,229,176;
    --accent1: #1bd01b;
    --accent1-rgb: 27,208,27;
    --accent2: #234b23;
    --accent2-rgb: 35,75,35;
    --accent3: #3a1515;
    --accent3-rgb: 58,21,21;
    --surface: #0d2a0d;
    --surface-rgb: 13,42,13;
    --border: #174a17;
    --border-rgb: 23,74,23;
    --glow1: #a8f7a8;
    --glow1-rgb: 168,247,168;
    --glow2: #8edc8e;
    --glow2-rgb: 142,220,142;
    --cursor-trail-gradient: linear-gradient(45deg, #0f3d0f, #88f0a0);
    --submit-bg: #0f3b0f;
    --submit-bg-rgb: 15,59,15;
    --submit-text: #b0e5b0;
    --submit-text-rgb: 176,229,176;
    --submit-bg-hover: #1a5620;
    --submit-bg-hover-rgb: 26,86,32;
    --sent-text: #063f06;
}

/* ---------- Aqua Theme ---------- */
html.theme-aqua {
    --bg: #001f26;
    --bg-rgb: 0,31,38;
    --tree-bg: #072830; /* deep watery background */
    --text: #aeefff;
    --text-rgb: 174,239,255;
    --accent1: #00d9ff;          /* bright cyan for primary actions */
    --accent1-rgb: 0,217,255;
    --accent2: #1a7a8a;          /* deeper teal for secondary */
    --accent2-rgb: 26,122,138;
    --accent3: #ff8fa3;
    --accent3-rgb: 255,143,163;
    --surface: #0a3540;          /* lighter than tree-bg for better separation */
    --surface-rgb: 10,53,64;
    --border: #1a6b7a;           /* more visible borders */
    --border-rgb: 26,107,122;
    --glow1: rgba(0, 217, 255, 0.45);
    --glow2: rgba(255, 143, 163, 0.35);
    --cursor-trail-gradient: linear-gradient(45deg, #00d9ff, #72f0ff);
    --submit-bg: #1a6b7a;        /* stronger contrast with background */
    --submit-bg-rgb: 26,107,122;
    --submit-text: #e0f7ff;      /* brighter text on buttons */
    --submit-text-rgb: 224,247,255;
    --submit-bg-hover: #2a8a9e;  /* clear hover state */
    --submit-bg-hover-rgb: 42,138,158;
    --sent-text: #001f26;
}

/* ---------- Flame Theme ---------- */
html.theme-flame {
    --bg: #1a0a00;            /* dark ember background */
    --bg-rgb: 26,10,0;
    --tree-bg: #331500;       /* deep firewood tone */
    --text: #ffdf9e;
    --text-rgb: 255,223,158;

    --accent1: #ff4500;
    --accent1-rgb: 255,69,0;
    --accent2: #ff7f00;
    --accent2-rgb: 255,127,0;
    --accent3: #ffd700;
    --accent3-rgb: 255,215,0;

    --surface: #331500;
    --surface-rgb: 51,21,0;
    --border: #663300;
    --border-rgb: 102,51,0;
    --glow1: rgba(255, 69, 0, 0.45);
    --glow2: rgba(255, 215, 0, 0.35);
    --cursor-trail-gradient: linear-gradient(45deg, #ff4500, #ffd700);
    --submit-bg: #663300;
    --submit-bg-rgb: 102,51,0;
    --submit-text: #ffd700;
    --submit-text-rgb: 255,215,0;
    --submit-bg-hover: #994d00;
    --submit-bg-hover-rgb: 153,77,0;
    --sent-text: #fff2cc;
}

/* ---------- Reactive Theme ---------- */
html.theme-reactive {
    --bg: #1a1625;
    --bg-rgb: 26,22,37;
    --tree-bg: #2a2438;
    --text: #e8d4ff;
    --text-rgb: 232,212,255;
    --accent1: #a78bfa;
    --accent1-rgb: 167,139,250;
    --accent2: #f472b6;
    --accent2-rgb: 244,114,182;
    --accent3: #60a5fa;
    --accent3-rgb: 96,165,250;
    --surface: #2a2438;
    --surface-rgb: 42,36,56;
    --border: #4c3f5e;
    --border-rgb: 76,63,94;
    --glow1: rgba(167,139,250,0.45);
    --glow2: rgba(244,114,182,0.35);
    --cursor-trail-gradient: linear-gradient(45deg, #a78bfa, #f472b6);
    --submit-bg: #4c3f5e;
    --submit-bg-rgb: 76,63,94;
    --submit-text: #e8d4ff;
    --submit-text-rgb: 232,212,255;
    --submit-bg-hover: #6d5a7e;
    --submit-bg-hover-rgb: 109,90,126;
    --sent-text: #1a1625;
}

/* Reactive ripple effects */
.reactive-ripple {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    animation: ripple-expand 1.2s ease-out forwards;
}

@keyframes ripple-expand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

/* Reactive background pulse effect - now applied to body instead of html */
html.theme-reactive body::before {
    content: '';
    position: fixed;
    top: 60px;  /* Start below the navbar */
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(167,139,250,0.1) 0%, 
                transparent 40%);
    transition: background 0.1s ease;
}

/* Ensure main content stays above the background gradient */
html.theme-reactive .main-content {
    position: relative;
    z-index: 1;
}

/* Reactive hover glow on interactive elements */
html.theme-reactive button:hover,
html.theme-reactive a:hover,
html.theme-reactive .nav-link:hover {
    box-shadow: 0 0 20px rgba(167,139,250,0.4);
    transition: box-shadow 0.3s ease;
}

/* Pulsing elements */
@keyframes reactive-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(167,139,250,0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(244,114,182,0.5);
    }
}

html.theme-reactive .currency-display,
html.theme-reactive .notification-badge {
    animation: reactive-pulse 3s ease-in-out infinite;
}

html.theme-reactive {
    transition: filter 0.5s ease-in-out;
}

html.theme-custom {
    --bg: {{ community.custom_bg_color or 'var(--bg)' }};
    --accent1: {{ community.custom_accent_color or 'var(--accent1)' }};
}

.community-tag {
    background-color: var(--accent2);
    color: var(--text);
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 4px;
    font-size: 0.9em;
}

.community-tag:hover {
    background-color: var(--accent3);
    cursor: default;
}

/* Flame Glow Animation */
@keyframes flameGlow {
  0%, 100% {
    box-shadow: 0 0 12px var(--glow1), 0 0 20px var(--glow2), 0 0 30px rgba(255,106,0,0.25);
  }
  25% {
    box-shadow: 0 0 14px var(--glow1), 0 0 24px var(--glow2), 0 0 35px rgba(255,158,75,0.3);
  }
  50% {
    box-shadow: 0 0 18px var(--glow1), 0 0 28px var(--glow2), 0 0 40px rgba(255,215,0,0.35);
  }
  75% {
    box-shadow: 0 0 14px var(--glow1), 0 0 24px var(--glow2), 0 0 30px rgba(255,158,75,0.3);
  }
}

/* Apply flame glow to cards */
html.theme-flame .video-card,
html.theme-flame .community-card,
html.theme-flame #currency-container,
html.theme-flame .upload-overlay,
html.theme-flame .discussion-board-container {
    animation: flameGlow 3.5s infinite ease-in-out;
}

/* ========== Music Toggle Button ========== */

.music-toggle-button {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--accent1);
  border: none;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(var(--bg-rgb), 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-toggle-button:hover {
  transform: scale(1.1);
  background: var(--accent2);
}

.music-toggle-button svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 480px) {
  .music-toggle-button {
    bottom: 70px;
    right: 15px;
    width: 44px;
    height: 44px;
  }
}

.profile-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 20px; /* space between cards */
}

#currency-container,
.upload-overlay,
.discussion-board-container {
    background-color: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    padding: 10px;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

.comment-pfp {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: fill;
  border: 1px solid var(--border);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#profile-image {
  user-select: none;  /* prevents annoying text selection while dragging */
}

.profile-button {
    display: inline-block;
    padding: 8px 12px;
    margin: 8px 0;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
}

.profile-button:hover {
    background-color: #0056b3;
}

.profile-pic-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: fill;
  margin-right: 8px;
  vertical-align: middle;
}

/* ========== Page Header ========== */

.page-header {
  text-align: center;
  padding: 3rem 1rem 2rem 1rem;
  background: linear-gradient(135deg, rgba(var(--accent2-rgb), 0.1), rgba(var(--accent1-rgb), 0.1));
  border-bottom: 2px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.header-icon {
  width: 48px;
  height: 48px;
  color: var(--accent2);
  filter: drop-shadow(0 2px 4px rgba(var(--bg-rgb), 0.3));
}

.page-title {
  margin: 0;
  font-size: 2.5rem;
  color: var(--text);
  font-weight: 700;
}

.page-subtitle {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(var(--text-rgb), 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== Hall of Fame Cards ========== */

.hall-of-fame-card {
  position: relative;
  background: linear-gradient(135deg, var(--surface), rgba(var(--accent2-rgb), 0.05));
  border: 2px solid var(--accent2);
  box-shadow: 0 4px 12px rgba(var(--accent2-rgb), 0.2);
}

.hall-of-fame-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(var(--accent2-rgb), 0.3);
  border-color: var(--accent2);
}

.hof-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  padding: 0.5rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-badge 2s ease-in-out infinite;
}

.hof-badge-icon {
  width: 24px;
  height: 24px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.6);
  }
}

/* ========== Responsive Design ========== */

@media (max-width: 768px) {
  .page-header {
    padding: 2rem 1rem 1.5rem 1rem;
  }

  .header-content {
    flex-direction: column;
    gap: 0.75rem;
  }

  .header-icon {
    width: 40px;
    height: 40px;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .hof-badge {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.375rem;
  }

  .hof-badge-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 1.5rem 1rem;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .page-subtitle {
    font-size: 0.95rem;
  }
}

/* ========== Error & Announcement Banners ========== */

.error-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  margin: 1rem;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
  color: var(--text);
}

.error-icon {
  width: 24px;
  height: 24px;
  color: rgba(220, 38, 38, 0.9);
  flex-shrink: 0;
}

.announcement-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  margin: 1rem;
  background: var(--accent2);
  border-radius: 12px;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(var(--bg-rgb), 0.2);
  flex-wrap: wrap;
}

.banner-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.announcement-banner span {
  font-weight: 500;
}

.banner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--submit-bg);
  color: var(--submit-text);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.1s ease;
}

.banner-link:hover {
  background: var(--submit-bg-hover);
  transform: translateY(-1px);
}

.link-icon {
  width: 20px;
  height: 20px;
}

/* ========== Page Navigation ========== */

.page-navigation {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem;
  margin: 1.5rem 1rem 0 1rem;
  border-bottom: 2px solid var(--border);
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  color: rgba(var(--text-rgb), 0.7);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--text);
  border-bottom-color: rgba(var(--accent2-rgb), 0.5);
}

.nav-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent2);
}

.nav-icon {
  width: 20px;
  height: 20px;
}

/* ========== Search Container ========== */

.search-container {
  max-width: 800px;
  margin: 2rem auto 2rem auto;
  padding: 0 1rem;
}

.search-form-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form-modern:focus-within {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(var(--accent2-rgb), 0.2);
}

.search-icon {
  width: 22px;
  height: 22px;
  color: rgba(var(--text-rgb), 0.5);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  padding: 0.5rem;
  outline: none;
}

.search-input::placeholder {
  color: rgba(var(--text-rgb), 0.5);
}

.search-button {
  padding: 0.625rem 1.5rem;
  background: var(--submit-bg);
  color: var(--submit-text);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.search-button:hover {
  background: var(--submit-bg-hover);
  transform: translateY(-1px);
}

.search-button:active {
  transform: translateY(0);
}

/* ========== Content Wrapper ========== */

.content-wrapper {
  max-width: 1600px;
  margin: 0 auto;
}

/* ========== Video Grid (reuse from video_card_styles) ========== */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(var(--bg-rgb), 0.3);
}

.video-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: fill;
  display: block;
  background: rgba(var(--border-rgb), 0.2);
}

.video-card-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.video-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.video-card-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.video-card-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  object-fit: fill;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.video-card-avatar:hover {
  opacity: 0.8;
}

.video-card-owner {
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.video-card-owner:hover {
  opacity: 0.8;
}

.video-card-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: rgba(var(--text-rgb), 0.7);
}

.stat-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.stat-muted {
  color: rgba(var(--text-rgb), 0.5);
  font-style: italic;
}

.video-card-description {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(var(--text-rgb), 0.7);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.video-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: auto;
}

.video-card-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(var(--accent2-rgb), 0.2);
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.video-card-tag:hover {
  background: rgba(var(--accent2-rgb), 0.35);
}

/* ========== Loading Sentinel ========== */

.loading-sentinel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(var(--border-rgb), 0.3);
  border-top-color: var(--accent2);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== Responsive Design ========== */

@media (max-width: 768px) {
  .announcement-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .page-navigation {
    gap: 0.25rem;
    padding: 0 0.5rem;
    margin: 1rem 0.5rem 0 0.5rem;
  }

  .nav-tab {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .search-container {
    margin: 1.5rem auto;
  }

  .search-form-modern {
    padding: 0.375rem 0.5rem;
  }

  .search-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
  }

  .video-card-info {
    padding: 0.75rem;
  }

  .video-card-title {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .announcement-banner span {
    font-size: 0.9rem;
  }

  .nav-tab {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }

  .nav-icon {
    width: 18px;
    height: 18px;
  }

  .search-form-modern {
    flex-wrap: wrap;
  }

  .search-input {
    min-width: 100%;
    order: -1;
  }

  .search-button {
    flex: 1;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}

.video-card-title,
.video-card-description {
    max-height: calc(1.4em * 1);  /* line-height * number of lines */
}

.uploader-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reply-form textarea {
  width: 100%;
  min-height: 30px;
  resize: none;          /* prevent manual resize handle */
  overflow: hidden;      /* hide scrollbars */
  padding: 6px;
  font-family: inherit;
  font-size: 1em;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

#currency-container {
    position: fixed;
    top: 60px;
    right: 15px;
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 999;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* UI */
.fixed-ui {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  font-family: sans-serif;
  text-align: center;
  transition: color 0.3s;
}

/* Search / submit buttons */
input[type="submit"] {
  background-color: var(--border);
  color: var(--text);
}
input[type="submit"]:hover {
  background-color: #86c386; /* can also be a variable if needed */
}

@keyframes aquaGlow {
  0%, 100% {
    box-shadow: 0 0 12px var(--glow1), 0 0 20px var(--glow2);
  }
  50% {
    box-shadow: 0 0 14px var(--glow1), 0 0 26px var(--glow2);
  }
}

html.theme-aqua .video-card {
  animation: aquaGlow 3.5s infinite ease-in-out;
}

/* ========== Upload Page Styles ========== */

.upload-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.upload-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.upload-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  color: var(--text);
}

.upload-subtitle {
  color: rgba(var(--text-rgb), 0.7);
  font-size: 1rem;
  margin: 0;
}

.upload-wrapper {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(var(--bg-rgb), 0.1);
}

/* ========== Overlay Styles ========== */

.upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.locked-overlay {
  background: rgba(var(--bg-rgb), 0.95);
}

.limit-overlay {
  background: rgba(var(--bg-rgb), 0.95);
}

.overlay-content {
  text-align: center;
  padding: 2rem;
  max-width: 400px;
}

.overlay-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--text);
  opacity: 0.8;
}

.overlay-content h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  color: var(--text);
}

.overlay-content p {
  margin: 0 0 1.5rem 0;
  color: rgba(var(--text-rgb), 0.8);
  line-height: 1.6;
}

.unlock-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--submit-bg);
  color: var(--submit-text);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.1s ease;
}

.unlock-btn:hover {
  background: var(--submit-bg-hover);
  transform: translateY(-1px);
}

/* ========== Form Styles ========== */

.upload-form {
  position: relative;
}

.upload-form.disabled {
  pointer-events: none;
  opacity: 0.3;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

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

.form-group input[type="text"],
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(var(--accent2-rgb), 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.helper-text {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: rgba(var(--text-rgb), 0.6);
}

/* ========== Locked Feature ========== */

.locked-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(var(--border-rgb), 0.2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: rgba(var(--text-rgb), 0.8);
}

.lock-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text);
}

.locked-feature a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
}

.locked-feature a:hover {
  color: var(--accent2);
}

/* ========== Multiselect Dropdown ========== */

.multiselect {
  position: relative;
  width: 100%;
}

.selectBox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.selectBox:hover {
  border-color: var(--accent2);
}

.selectBox:focus-within {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(var(--accent2-rgb), 0.2);
}

.dropdown-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.checkboxes {
  display: none;
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 0.5rem;
  z-index: 100;
  max-height: 250px;
  overflow-y: auto;
  width: 100%;
  box-shadow: 0 4px 12px rgba(var(--bg-rgb), 0.3);
}

.checkboxes label {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s ease;
}

.checkboxes label:hover {
  background: var(--submit-bg-hover);
}

.checkboxes label:not(:last-child) {
  border-bottom: 1px solid rgba(var(--border-rgb), 0.5);
}

.checkboxes input[type="checkbox"] {
  margin-right: 0.75rem;
  width: 18px;
  height: 18px;
  accent-color: var(--accent2);
  cursor: pointer;
}

.checkbox-label {
  flex: 1;
}

.no-communities {
  padding: 1rem;
  background: rgba(var(--border-rgb), 0.2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: rgba(var(--text-rgb), 0.6);
  text-align: center;
  margin: 0;
}

/* ========== File Input Styles ========== */

.file-input-wrapper {
  position: relative;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.file-input-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 2px dashed var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.file-input-wrapper:hover .file-input-display {
  border-color: var(--accent2);
  background: rgba(var(--accent2-rgb), 0.05);
}

.file-icon {
  width: 24px;
  height: 24px;
  color: rgba(var(--text-rgb), 0.6);
  flex-shrink: 0;
}

.file-text {
  color: rgba(var(--text-rgb), 0.7);
  font-size: 0.95rem;
}

/* ========== Form Actions ========== */

.form-actions {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--submit-bg);
  color: var(--submit-text);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.submit-btn:hover {
  background: var(--submit-bg-hover);
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

/* ========== Responsive Design ========== */

@media (max-width: 768px) {
  .upload-container {
    padding: 1rem;
  }

  .upload-wrapper {
    padding: 1.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .upload-header h1 {
    font-size: 1.5rem;
  }

  .overlay-content {
    padding: 1.5rem;
  }

  .overlay-icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .upload-wrapper {
    padding: 1rem;
  }

  .form-actions {
    justify-content: stretch;
  }

  .submit-btn {
    width: 100%;
    justify-content: center;
  }
}

.tag-input-wrapper {
  position: relative;
  display: inline-block;
}

.tag-locked {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px;
  font-size: 0.9em;
  border-radius: 4px;
}

/* Form disabled state */
form.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Base discussion board styling */
.discussion-board-container {
    position: absolute;
    top: 100px;
    right: 20px;
    width: 300px;
    max-height: 80vh;
    border: 1px solid;
    border-radius: 8px;
    padding: 10px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Comments inside the board */
.discussion-board .comment {
    padding: 6px 8px;
    border-bottom: 1px solid;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.discussion-board .comment:last-child {
    border-bottom: none;
}

/* Comment form */
.comment-form textarea {
    width: 100%;
    min-height: 60px;
    max-height: 300px; /* prevents it from growing off the page */
    margin-bottom: 6px;
    padding: 6px;
    border-radius: 4px;
    border: 1px solid;
    resize: none; /* disable manual resize */
    overflow-y: auto; /* show scrollbar if text exceeds max height */
    box-sizing: border-box;
}

.comment-form button {
    width: 100%;
    padding: 6px;
    border-radius: 4px;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid var(--border);
    font-weight: bold;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
}

#visit-count {
    display: flex;
    gap: 4px;
    font-size: 3em;
    color: red;
    font-weight: bold;
    text-shadow:
        0 0 5px #f00,
        0 0 10px #f00,
        0 0 20px #f00;
    letter-spacing: 2px;
}

/* Wrapper centered vertically + horizontally */
.visit-counter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    font-family: 'Courier New', monospace;
}

/* Label above display */
.visit-counter-label {
    font-size: 1.5em;
    color: var(--text, #0f3d0f); /* theme text color */
    margin-bottom: 10px;
    font-weight: bold;
}

/* Individual digit */
.digit {
  position: relative;
  width: 40px;
  height: 70px;
}

/* Segment styles */
.segment {
    position: absolute;
    background-color: rgba(var(--accent1-rgb), 0.1); /* off state, darker */
    transition: background-color 0.2s, box-shadow 0.2s;
    border-radius: 2px;
}

.segment.on {
    background-color: var(--text); /* on state */
    box-shadow: 0 0 5px var(--text), 0 0 10px var(--text);
}

/* 7 segments: a, b, c, d, e, f, g */
.segment.a { top: 0; left: 5px; width: 30px; height: 5px; }
.segment.b { top: 5px; right: 0; width: 5px; height: 30px; }
.segment.c { bottom: 5px; right: 0; width: 5px; height: 30px; }
.segment.d { bottom: 0; left: 5px; width: 30px; height: 5px; }
.segment.e { bottom: 5px; left: 0; width: 5px; height: 30px; }
.segment.f { top: 5px; left: 0; width: 5px; height: 30px; }
.segment.g { top: 32px; left: 5px; width: 30px; height: 5px; }

.googly-container {
    position: relative;
    display: inline-block;
}

.googly-eye {
    position: absolute;
    background: white;
    border-radius: 50%;
    border: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 20 !important;
}

.googly-pupil {
    width: 40%;
    height: 40%;
    background: black;
    border-radius: 50%;
    transition: transform 0.1s ease-out;
}

.left-eye {
    top: 40px;
    left: 35px;
}

.right-eye {
    top: 40px;
    right: 35px;
}

/* Wreath styling */
.wreath-container {
    position: relative;
    display: inline-block;
    overflow: visible !important; /* Allow wreaths to extend outside */
}

/* Ensure wreath container works inside buttons */
button .wreath-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

button .wreath-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Keep images circular */
}

/* Ensure wreath container works with googly-container */
.wreath-container .googly-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wreath-container .googly-container img {
    border-radius: 50%; /* Keep images circular even with googly eyes */
}

.profile-wreath-overlay {
    position: absolute;
    pointer-events: none;
    z-index: 5; /* Below googly eyes (z-index: 20) */
}

.profile-wreath-overlay svg {
    animation: wreathGlow 3s ease-in-out infinite;
}

@keyframes wreathGlow {
    0%, 100% {
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
    }
    50% {
        filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)) drop-shadow(0 0 12px rgba(255, 215, 0, 0.5));
    }
}

/* Make sure wreaths layer properly with googly eyes */
.googly-eye {
    z-index: 20 !important;
}

/* Allow profile button to show wreaths outside its bounds */
.profile-btn,
.profile-menu {
    overflow: visible !important;
}

/* Ensure profile images stay circular */
.profile-avatar,
.profile-pic {
    border-radius: 50% !important;
}

#top-banner {
    width: 100%;
    background-color: #5865F2; /* Discord blue */
    color: white;
    text-align: center;
    padding: 10px 0;
    font-weight: bold;
    font-size: 16px;
    position: fixed;  /* keep it at the top */
    bottom: 0;
    left: 0;
    z-index: 1100;    /* higher than the button bar */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#top-banner a {
    color: #FFD700;
    text-decoration: underline;
}

.error-message {
    position: fixed;        /* stay on screen */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ff4d4d; /* strong red */
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    padding: 20px 30px;
    border-radius: 10px;
    border: 2px solid #cc0000;
    z-index: 9999;          /* on top of everything */
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    max-width: 90%;
    word-wrap: break-word;
}

.subpage-switcher {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    padding: 10px 0;
    border-bottom: 1px solid #444;
}

.subpage-btn {
    font-weight: bold;
    color: #bbb;
}

.subpage-btn.active {
    color: white;
    border-bottom: 2px solid white;
    padding-bottom: 3px;
}

/* ========== Modern Navigation Bar ========== */

.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(var(--bg-rgb), 0.1);
}

.main-content {
  margin-top: 60px;
  min-height: calc(100vh - 60px);
}

/* ========== Navbar Sections ========== */

.navbar-left,
.navbar-center,
.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-center {
  flex: 1;
  justify-content: center;
  max-width: 600px;
}

.navbar-right {
  gap: 0.75rem;
}

/* ========== Logo ========== */

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  transition: opacity 0.2s ease;
}

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

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--accent2);
}

.logo-text {
  font-family: 'Arial', sans-serif;
}

/* ========== Navigation Links ========== */

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: rgba(var(--text-rgb), 0.7);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  background: rgba(var(--border-rgb), 0.3);
  color: var(--text);
}

.nav-link-icon {
  width: 20px;
  height: 20px;
}

.nav-link-text {
  font-size: 0.95rem;
}

.nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Locked feature styles */
.nav-link-locked {
    position: relative;
    cursor: pointer;
    pointer-events: all;
}

.locked-feature {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-lock-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.nav-lock-hint {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-link-locked:hover .nav-lock-hint {
    opacity: 1;
}

/* ========== Currency Display ========== */

.currency-display {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  background: rgba(var(--accent2-rgb), 0.15);
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
}

.currency-icon {
  width: 18px;
  height: 18px;
  color: var(--accent2);
}

/* ========== Action Buttons ========== */

.upload-btn,
.notifications-btn,
.theme-toggle-btn,
.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(var(--text-rgb), 0.7);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}

.upload-btn:hover,
.notifications-btn:hover,
.theme-toggle-btn:hover {
  background: rgba(var(--border-rgb), 0.3);
  color: var(--text);
}

.upload-btn {
  background: var(--submit-bg);
  color: var(--submit-text);
}

.upload-btn:hover {
  background: var(--submit-bg-hover);
}

.upload-btn svg,
.notifications-btn svg,
.theme-toggle-btn svg {
  width: 22px;
  height: 22px;
}

.login-btn {
  width: auto;
  padding: 0 1rem;
  gap: 0.5rem;
  background: var(--submit-bg);
  color: var(--submit-text);
  font-weight: 600;
}

.login-btn svg {
  width: 20px;
  height: 20px;
}

.login-btn:hover {
  background: var(--submit-bg-hover);
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

/* ========== Profile Menu ========== */

.profile-menu {
  position: relative;
}

.profile-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.profile-btn:hover {
  border-color: var(--accent2);
  transform: scale(1.05);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(var(--bg-rgb), 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
}

.profile-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}

.dropdown-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: fill;
  border: 2px solid var(--border);
}

.dropdown-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.dropdown-username {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-email {
  font-size: 0.85rem;
  color: rgba(var(--text-rgb), 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease;
  cursor: pointer;
}

.dropdown-item:hover {
  background: rgba(var(--border-rgb), 0.3);
}

.dropdown-item:first-of-type {
  border-radius: 12px 12px 0 0;
}

.dropdown-item:last-of-type {
  border-radius: 0 0 12px 12px;
}

.dropdown-item svg {
  width: 20px;
  height: 20px;
  color: rgba(var(--text-rgb), 0.7);
}

.logout-item {
  color: #ef4444;
}

.logout-item svg {
  color: #ef4444;
}

/* ========== Theme Dropdown ========== */

#theme-list {
  position: fixed;
  top: 68px;
  right: 16px;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(var(--bg-rgb), 0.3);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
  max-height: 400px;
  overflow-y: auto;
}

#theme-list.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-option {
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.theme-option:hover {
  background: rgba(var(--border-rgb), 0.3);
}

.theme-shop-link {
  display: block;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease;
  border-radius: 8px;
}

.theme-shop-link:hover {
  background: rgba(var(--border-rgb), 0.3);
}

/* ========== Responsive Design ========== */

@media (max-width: 768px) {
  .top-navbar {
    padding: 0 0.5rem;
  }

  .navbar-left,
  .navbar-right {
    gap: 0.5rem;
  }

  .navbar-center {
    display: none;
  }

  .logo-text {
    display: none;
  }

  .nav-link-text {
    display: none;
  }

  .currency-display {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
  }

  .upload-btn,
  .notifications-btn,
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }

  .profile-btn {
    width: 36px;
    height: 36px;
  }

  .profile-dropdown {
    right: -8px;
    min-width: 220px;
  }
}

@media (max-width: 480px) {
  .currency-display {
    display: none;
  }

  .navbar-left {
    flex: 1;
  }

  #theme-list {
    right: 8px;
    left: 8px;
    min-width: auto;
  }
}

/* Birthday Banner */
.birthday-banner {
    background: linear-gradient(135deg, rgba(var(--accent3-rgb), 0.2), rgba(var(--accent1-rgb), 0.15));
    border: 2px solid var(--accent3);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    animation: birthday-pulse 2s ease-in-out infinite;
}

.birthday-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.birthday-emoji {
    font-size: 3rem;
    animation: birthday-bounce 1s ease-in-out infinite;
}

.birthday-text {
    text-align: center;
}

.birthday-text h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    color: var(--text);
    font-weight: 700;
}

.birthday-text p {
    margin: 0;
    font-size: 1.1rem;
    color: rgba(var(--text-rgb), 0.8);
}

@keyframes birthday-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(var(--accent3-rgb), 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(var(--accent3-rgb), 0.5);
    }
}

@keyframes birthday-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .birthday-banner {
        padding: 1rem;
    }
    
    .birthday-banner-content {
        gap: 1rem;
    }
    
    .birthday-emoji {
        font-size: 2rem;
    }
    
    .birthday-text h2 {
        font-size: 1.25rem;
    }
    
    .birthday-text p {
        font-size: 0.95rem;
    }
}

/* Currency Display Styles */
.currency-displays {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.currency-group {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Unified shimmer effect for the entire currency group */
.currency-group::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.paid-currency {
    background: linear-gradient(135deg, var(--accent1)22, var(--accent2)22);
    border: 2px solid var(--accent1)66;
    border-right: 1px solid var(--accent1)44;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    border-radius: 8px 0 0 8px;
}

.paid-currency:hover {
    border-color: var(--accent1);
}

.currency-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.free-currency {
    background: var(--bg-secondary);
}

.premium-icon {
    color: var(--accent1);
    filter: drop-shadow(0 0 4px var(--accent1)66);
}

.currency-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.paid-currency .currency-value {
    color: var(--accent1);
    font-weight: 700;
}

/* Donate Plus Button - Integrated with Currency Display */
.donate-plus-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.625rem;
    background: linear-gradient(135deg, var(--accent1)33, var(--accent2)33);
    border: 2px solid var(--accent1)66;
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
}

.donate-plus-btn svg {
    width: 18px;
    height: 18px;
    color: var(--accent1);
    filter: drop-shadow(0 0 4px var(--accent1)66);
    position: relative;
    z-index: 2;
}

.donate-plus-btn:hover {
    background: linear-gradient(135deg, var(--accent1)44, var(--accent2)44);
    border-color: var(--accent1);
}

.annoying-cursor {
    position: fixed;
    width: 32px;  /* Adjust based on your cursor PNG size */
    height: 32px; /* Adjust based on your cursor PNG size */
    pointer-events: none;
    z-index: 999999;
    transition: transform 0.1s ease;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.annoying-cursor img {
    display: block;
    image-rendering: crisp-edges; /* Keeps cursor sharp */
}

.click-effect {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 3px solid #ff4444;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    animation: clickRipple 0.5s ease-out forwards;
}

@keyframes clickRipple {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

#notification-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification-toast {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

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

/* Special styling for Fibonacci milestones */
.notification-toast.toast-fibonacci {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Regular follower notifications */
.notification-toast.toast-follower {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.toast-content strong {
    font-weight: 600;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
}

/* Comment notifications */
.notification-toast.toast-comment {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.comment-preview {
    font-style: italic;
    opacity: 0.9;
    font-size: 13px;
}

/* Pinned comment notifications */
.notification-toast.toast-pinned {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Upload reward notifications */
.notification-toast.toast-upload {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Badge notifications */
.notification-toast.toast-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.notification-toast.toast-badge-common {
    background: linear-gradient(135deg, #c8c8c8 0%, #999999 100%);
}

.notification-toast.toast-badge-rare {
    background: linear-gradient(135deg, #0096ff 0%, #0070cc 100%);
}

.notification-toast.toast-badge-epic {
    background: linear-gradient(135deg, #a335ee 0%, #8020cc 100%);
}

.notification-toast.toast-badge-legendary {
    background: linear-gradient(135deg, #ff8000 0%, #ff6600 100%);
    box-shadow: 0 4px 20px rgba(255, 128, 0, 0.4);
}

.badge-name-toast {
    font-weight: 600;
    font-size: 1.05em;
    display: block;
    margin: 0.25rem 0;
}

.badge-desc-toast {
    font-style: italic;
    opacity: 0.9;
    font-size: 0.9em;
}

/* STREAK POPUP */
.streak-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.streak-popup-container {
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.streak-popup-card {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 90vw;
    box-shadow: 0 20px 60px rgba(255, 107, 0, 0.3);
    border: 2px solid rgba(255, 107, 0, 0.3);
    overflow: hidden;
}

.streak-flames {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
}

.flame {
    position: absolute;
    bottom: -50px;
    width: 100px;
    height: 200px;
    background: linear-gradient(to top, #ff6b00, #ff8c00, transparent);
    border-radius: 50% 50% 0 0;
    animation: flicker 2s infinite;
}

.flame:nth-child(1) { left: 10%; animation-delay: 0s; }
.flame:nth-child(2) { left: 45%; animation-delay: 0.5s; }
.flame:nth-child(3) { right: 10%; animation-delay: 1s; }

@keyframes flicker {
    0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.8; }
    50% { transform: translateY(-20px) scaleY(1.1); opacity: 1; }
}

.streak-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.streak-icon {
    font-size: 80px;
    animation: bounce 1s infinite;
    filter: drop-shadow(0 0 20px rgba(255, 107, 0, 0.8));
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.streak-number-container {
    margin: 20px 0;
}

.streak-number {
    font-size: 72px;
    font-weight: 900;
    background: linear-gradient(135deg, #ff6b00, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 107, 0, 0.5);
    animation: glow 2s infinite;
}

.streak-label {
    font-size: 24px;
    color: #fff;
    font-weight: 600;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.streak-saved-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(52, 211, 153, 0.2);
    border: 2px solid #34d399;
    border-radius: 20px;
    padding: 8px 20px;
    margin: 16px 0;
    animation: pulse 2s infinite;
}

.saved-icon {
    font-size: 20px;
}

.saved-text {
    color: #34d399;
    font-weight: 700;
    font-size: 14px;
}

.currency-reward {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
    font-size: 36px;
    font-weight: 800;
    color: #ffd700;
    animation: slideInUp 0.6s ease-out 0.3s both;
}

.streak-currency-icon {
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.currency-reward::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
}

.streak-saver-section {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.saver-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.saver-icon {
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.saver-icon.available {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
}

.saver-icon.used {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.saver-text {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.saver-progress {
    animation: slideInUp 0.6s ease-out 0.4s both;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label {
    color: #a0a0a0;
    font-size: 13px;
    font-weight: 600;
}

.progress-count {
    color: #ff6b00;
    font-weight: 800;
    font-size: 14px;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b00, #ffa500);
    border-radius: 12px;
    transition: width 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.6);
}

.progress-description {
    color: #a0a0a0;
    font-size: 11px;
    text-align: center;
    margin-top: 4px;
}

.streak-close-btn {
    margin-top: 32px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b00, #ffa500);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.streak-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 25px rgba(255, 107, 0, 0.8)); }
}

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