@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

:root {
    /* Light Mode (Default) */
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-tertiary: #e4e6eb;
    --bg-hover: #f2f2f2;

    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --text-inverse: #ffffff;

    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-hover: #5a67d8;
    --accent-glow: rgba(102, 126, 234, 0.3);

    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --overlay-bg: rgba(0, 0, 0, 0.8);
    --card-overlay-color: rgba(255, 255, 255, 0.6);

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --nav-height: 70px;
    --border-radius: 12px;

    /* Additional variables from styles.css */
    --id-colour: #ff0000;
    --played-background: #f0f4ff;
    --played-border: #d1d9ff;
}

[data-theme="dark"] {
    /* Dark Mode */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-card: #333333;
    --bg-tertiary: #404040;
    --bg-hover: #3a3a3a;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #666666;
    --text-inverse: #1a1a1a;

    --accent-primary: #8b5cf6;
    --accent-secondary: #a855f7;
    --accent-hover: #9333ea;
    --accent-glow: rgba(139, 92, 246, 0.3);

    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --overlay-bg: rgba(0, 0, 0, 0.4);
    --card-overlay-color: rgba(0, 0, 0, 0.3);

    /* Dark mode additional variables */
    --played-background: #2a2a3a;
    --played-border: #9898a2;
}

/* --- LIGHT THEMES --- */

[data-theme="forest"] {
    --bg-primary: #f1f8e9;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-tertiary: #dcedc8;
    --bg-hover: #e8f5e9;
    --text-primary: #2e7d32;
    --text-secondary: #558b2f;
    --text-tertiary: #8bc34a;
    --text-inverse: #ffffff;
    --accent-primary: #4caf50;
    --accent-secondary: #81c784;
    --accent-hover: #388e3c;
    --accent-glow: rgba(76, 175, 80, 0.3);
    --border-color: #c5e1a5;
    --shadow-color: rgba(46, 125, 50, 0.1);
    --overlay-bg: rgba(27, 94, 32, 0.4);
    --card-overlay-color: rgba(255, 255, 255, 0.6);
    --played-background: #f9fbe7;
    --played-border: #dce775;
    --bg-image: url('../assets/skins/forest_magic.png');
}

[data-theme="ocean"] {
    --bg-primary: #e1f5fe;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-tertiary: #b3e5fc;
    --bg-hover: #e0f7fa;
    --text-primary: #0277bd;
    --text-secondary: #0288d1;
    --text-tertiary: #03a9f4;
    --text-inverse: #ffffff;
    --accent-primary: #039be5;
    --accent-secondary: #4fc3f7;
    --accent-hover: #0288d1;
    --accent-glow: rgba(3, 155, 229, 0.3);
    --border-color: #81d4fa;
    --shadow-color: rgba(2, 119, 189, 0.1);
    --overlay-bg: rgba(1, 87, 155, 0.4);
    --card-overlay-color: rgba(255, 255, 255, 0.6);
    --played-background: #e0f2f1;
    --played-border: #80cbc4;
    --bg-image: url('../assets/skins/underwater_world.png');
}

[data-theme="desert"] {
    --bg-primary: #fff3e0;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-tertiary: #ffe0b2;
    --bg-hover: #fff8e1;
    --text-primary: #e65100;
    --text-secondary: #ef6c00;
    --text-tertiary: #f57c00;
    --text-inverse: #ffffff;
    --accent-primary: #ff9800;
    --accent-secondary: #ffb74d;
    --accent-hover: #f57c00;
    --accent-glow: rgba(255, 152, 0, 0.3);
    --border-color: #ffcc80;
    --shadow-color: rgba(230, 81, 0, 0.1);
    --overlay-bg: rgba(191, 54, 12, 0.4);
    --card-overlay-color: rgba(255, 255, 255, 0.6);
    --played-background: #fffde7;
    --played-border: #fff59d;
    --bg-image: url('../assets/skins/desert_mirage.png');
}

[data-theme="sunset"] {
    --bg-primary: #fce4ec;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-tertiary: #f8bbd0;
    --bg-hover: #fdf2f2;
    --text-primary: #c2185b;
    --text-secondary: #d81b60;
    --text-tertiary: #e91e63;
    --text-inverse: #ffffff;
    --accent-primary: #f06292;
    --accent-secondary: #f48fb1;
    --accent-hover: #ec407a;
    --accent-glow: rgba(240, 98, 146, 0.3);
    --border-color: #f48fb1;
    --shadow-color: rgba(194, 24, 91, 0.1);
    --overlay-bg: rgba(136, 14, 79, 0.4);
    --card-overlay-color: rgba(255, 255, 255, 0.6);
    --played-background: #fff0f0;
    --played-border: #ffcdd2;
    --bg-image: url('../assets/skins/sunset_drive.png');
}

[data-theme="skylight"] {
    --bg-primary: #f3e5f5;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-tertiary: #e1bee7;
    --bg-hover: #f8f0fb;
    --text-primary: #7b1fa2;
    --text-secondary: #8e24aa;
    --text-tertiary: #9c27b0;
    --text-inverse: #ffffff;
    --accent-primary: #ba68c8;
    --accent-secondary: #ce93d8;
    --accent-hover: #ab47bc;
    --accent-glow: rgba(186, 104, 200, 0.3);
    --border-color: #ce93d8;
    --shadow-color: rgba(123, 31, 162, 0.1);
    --overlay-bg: rgba(74, 20, 140, 0.4);
    --card-overlay-color: rgba(255, 255, 255, 0.6);
    --played-background: #f3e5f5;
    --played-border: #e1bee7;
    --bg-image: url('../assets/skins/pastel_dream.png');
}

[data-theme="zen"] {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-tertiary: #f5f5f5;
    --bg-hover: #eeeeee;
    --text-primary: #424242;
    --text-secondary: #616161;
    --text-tertiary: #757575;
    --text-inverse: #ffffff;
    --accent-primary: #9e9e9e;
    --accent-secondary: #bdbdbd;
    --accent-hover: #757575;
    --accent-glow: rgba(158, 158, 158, 0.3);
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --overlay-bg: rgba(33, 33, 33, 0.4);
    --card-overlay-color: rgba(255, 255, 255, 0.6);
    --played-background: #f5f5f5;
    --played-border: #eeeeee;
    --bg-image: url('../assets/skins/zen_garden.png');
}

/* --- DARK THEMES --- */

[data-theme="fire"] {
    --bg-primary: #1a0a0a;
    --bg-secondary: #2d1414;
    --bg-card: rgba(51, 26, 26, 0.8);
    --bg-tertiary: #401a1a;
    --bg-hover: #3a1818;
    --text-primary: #ffccbc;
    --text-secondary: #ffab91;
    --text-tertiary: #ff8a65;
    --text-inverse: #1a0a0a;
    --accent-primary: #ff5722;
    --accent-secondary: #ff7043;
    --accent-hover: #f4511e;
    --accent-glow: rgba(255, 87, 34, 0.3);
    --border-color: #401a1a;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --overlay-bg: rgba(38, 13, 13, 0.4);
    --card-overlay-color: rgba(0, 0, 0, 0.3);
    --played-background: #3a1a1a;
    --played-border: #ff5722;
    --bg-image: url('../assets/skins/gothic_horror.png');
}

[data-theme="neon"] {
    --bg-primary: #0a0a1a;
    --bg-secondary: #14142d;
    --bg-card: rgba(26, 26, 51, 0.8);
    --bg-tertiary: #1a1a40;
    --bg-hover: #18183a;
    --text-primary: #e0f2f1;
    --text-secondary: #b2dfdb;
    --text-tertiary: #80cbc4;
    --text-inverse: #0a0a1a;
    --accent-primary: #00e5ff;
    --accent-secondary: #18ffff;
    --accent-hover: #00b8d4;
    --accent-glow: rgba(0, 229, 255, 0.3);
    --border-color: #1a1a40;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --overlay-bg: rgba(13, 13, 38, 0.4);
    --card-overlay-color: rgba(0, 0, 0, 0.3);
    --played-background: #1a1a3a;
    --played-border: #00e5ff;
    --bg-image: url('../assets/skins/cyberpunk_city.png');
}

[data-theme="earthtones"] {
    --bg-primary: #1b1a17;
    --bg-secondary: #2a2823;
    --bg-card: rgba(45, 42, 38, 0.8);
    --bg-tertiary: #3a3630;
    --bg-hover: #35322c;
    --text-primary: #d7ccc8;
    --text-secondary: #bcaaa4;
    --text-tertiary: #a1887f;
    --text-inverse: #1b1a17;
    --accent-primary: #8d6e63;
    --accent-secondary: #a1887f;
    --accent-hover: #795548;
    --accent-glow: rgba(141, 110, 99, 0.3);
    --border-color: #3a3630;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --overlay-bg: rgba(33, 30, 26, 0.4);
    --card-overlay-color: rgba(0, 0, 0, 0.3);
    --played-background: #2d2a26;
    --played-border: #8d6e63;
    --bg-image: url('../assets/skins/dark_academia.png');
}

[data-theme="moonlight"] {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: rgba(22, 27, 34, 0.8);
    --bg-tertiary: #21262d;
    --bg-hover: #30363d;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --text-tertiary: #6e7681;
    --text-inverse: #0d1117;
    --accent-primary: #58a6ff;
    --accent-secondary: #1f6feb;
    --accent-hover: #388bfd;
    --accent-glow: rgba(88, 166, 255, 0.3);
    --border-color: #30363d;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --overlay-bg: rgba(1, 4, 9, 0.4);
    --card-overlay-color: rgba(0, 0, 0, 0.3);
    --played-background: #161b22;
    --played-border: #58a6ff;
    --bg-image: url('../assets/skins/midnight_noir.png');
}

[data-theme="space"] {
    --bg-primary: #050505;
    --bg-secondary: #121212;
    --bg-card: rgba(30, 30, 30, 0.8);
    --bg-tertiary: #252525;
    --bg-hover: #2a2a2a;
    --text-primary: #e1e1e1;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;
    --text-inverse: #050505;
    --accent-primary: #7c4dff;
    --accent-secondary: #b388ff;
    --accent-hover: #651fff;
    --accent-glow: rgba(124, 77, 255, 0.3);
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.7);
    --overlay-bg: rgba(0, 0, 0, 0.4);
    --card-overlay-color: rgba(0, 0, 0, 0.3);
    --played-background: #1a1a1a;
    --played-border: #7c4dff;
    --bg-image: url('../assets/skins/space_odyssey.png');
}

[data-theme="steampunk"] {
    --bg-primary: #2b1d10;
    --bg-secondary: #3d2b19;
    --bg-card: rgba(61, 43, 25, 0.8);
    --bg-tertiary: #4d3620;
    --bg-hover: #45301c;
    --text-primary: #d4a373;
    --text-secondary: #bc8a5f;
    --text-tertiary: #a67c52;
    --text-inverse: #2b1d10;
    --accent-primary: #b87333;
    --accent-secondary: #cd7f32;
    --accent-hover: #a0522d;
    --accent-glow: rgba(184, 115, 51, 0.3);
    --border-color: #4d3620;
    --shadow-color: rgba(0, 0, 0, 0.6);
    --overlay-bg: rgba(26, 18, 10, 0.4);
    --card-overlay-color: rgba(0, 0, 0, 0.3);
    --played-background: #3d2b19;
    --played-border: #b87333;
    --bg-image: url('../assets/skins/steampunk.png');
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    transition: background-image 0.5s ease;
    max-width: 100%;
    overflow-x: hidden;
}

[data-theme="light"] body::before,
[data-theme="dark"] body::before {
    background-image: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


*, *::before, *::after {
  box-sizing: border-box;
}



body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: var(--nav-height);
}

/* Utility Classes */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Navigation Bar - Global Styles */
.navbar {
    position: fixed;
    margin: o auto;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    
}

.nav-brand {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}

/* Brand Link Styles */
.nav-brand-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.2s ease;
}

.nav-brand-link:hover {
    opacity: 0.8;
}

.nav-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--text-primary);
}

.nav-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background: var(--accent-primary);
    color: white;
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--bg-card);
    min-width: 180px;
    box-shadow: 0 8px 16px var(--shadow-color);
    z-index: 1001;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-top: 10px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown-menu a {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.dropdown-menu a:hover {
    background-color: var(--bg-hover);
    color: var(--accent-primary);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

/* Dropdown Divider */
.dropdown-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5em;
    cursor: pointer;
    z-index: 1100;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 15px;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: 0 -5px 20px var(--shadow-color);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu.active {
    display: flex;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Section Headers */
.mobile-menu-section {
    opacity: 0.7;
    font-size: 0.9em;
    text-transform: uppercase;
    margin-top: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Mobile Menu Links */
.mobile-menu .nav-link {
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 1.1em;
    font-weight: 500;
}

.mobile-menu .nav-link:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
    transform: translateX(5px);
}

.mobile-menu .nav-link:active {
    background: var(--bg-tertiary);
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Buttons */
.btn-primary {
    margin:0 auto;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.btn-secondary {
    padding: 10px 24px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Mobile Profile Section */
#mobileProfileSection {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-theme-toggle {
    margin-top: 10px;
    align-self: center;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-content {
    max-width: 800px;
    color: white;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.carousel-content h2 {
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: 700;
}

.carousel-content p {
    font-size: 1.2em;
    margin-bottom: 25px;
    line-height: 1.6;
}

.carousel-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
}

.carousel-btn:hover {
    background: var(--accent-primary);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-indicators {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* CTA Footer */
.cta-footer {
    text-align: center;
    padding: 60px 20px;
    margin-top: 60px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* Existing Components */
header {
    text-align: center;
    padding: 30px 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    display: none;
}

h1 {
    font-size: 2.5em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: auto;
}

.category-select {
    padding: 12px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 2h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
    min-width: 180px;
}

.category-select:hover, .category-select:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.category-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 8px;
}

.filter-buttons {
    display: flex;
    gap: 15px;
}

.create-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 2px solid #10b981;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.create-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.filter-btn {
    padding: 12px 30px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Search Container */
.search-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

#searchBar {
    width: 100%;
    max-width: 500px;
    padding: 15px 25px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#searchBar::placeholder {
    color: var(--text-secondary);
}

#searchBar:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
}

/* Stories Grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 150px;
}

.story-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: var(--accent-primary);
    border-width: 1px;
}

.story-card.played {
    border-color: var(--played-border);
    background: var(--played-background);
}

.story-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.story-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.stars {
    color: #fbbf24;
    display: flex;
    gap: 2px;
}

.vote-pill {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2px 8px;
    gap: 6px;
}

.vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 2px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    font-size: 0.9em;
}

.vote-btn:hover {
    color: var(--accent-primary);
}

.vote-btn.upvote:hover {
    color: #10b981;
}

.vote-btn.downvote:hover {
    color: #ef4444;
}

.vote-score {
    font-weight: 600;
    min-width: 15px;
    text-align: center;
    font-size: 0.9em;
    color: var(--text-primary);
}

.comment-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.story-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.story-title {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 10px;
}

.story-id {
    color: var(--id-colour);
    font-weight: 400;
    margin-left: 8px;
    font-size: 0.7em;
}

.story-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.85em;
    width: fit-content;
    color: #fff;
    border: 1px solid var(--accent-primary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.story-description {
    display: flex;
    flex-grow: 1;
    font-size: 0.85em;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.story-author-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 5px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    flex-wrap: wrap;
}

.story-author-section:hover {
    background: var(--bg-secondary);
}

.story-author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

.story-author-avatar.followed {
    border-color: #10b981;
}

.story-author-name {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-primary);
}

.author-stats-summary {
    font-size: 0.7em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-stats-summary i {
    color: var(--accent-primary);
}

.story-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 15px;
    position: sticky;
    width: 100%;
    align-items: center;
    justify-content: center;
    bottom: 0;
    left: 0;
    padding: 15px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.action-btn:hover {
    background: var(--bg-card);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px var(--shadow-color);
    border-color: var(--accent-primary);
}

.action-btn.active {
    background: var(--bg-card);
    color: #ef4444;
    border-color: #ef4444;
}

.action-btn.disabled {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.action-btn.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color);
}

.play-action-btn {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.8em;
}

.play-action-btn:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.flag-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    transform: scale(1.1);
}

.flag-btn.flagged {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* Flag Modal Styles */
.flag-modal {
    max-width: 500px;
    width: 95%;
}

.flag-modal-body {
    padding: 20px;
}

.flag-reason {
    margin-bottom: 15px;
}

.flag-message {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
}

.flag-message:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.flag-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Player Bar */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    padding: 20px;
    box-shadow: 0 -5px 30px var(--shadow-color);
    z-index: 1000;
    border-top: 1px solid var(--border-color);
}

.player-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-info {
    flex: 1;
}

.player-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.player-category {
    font-size: 0.9em;
    opacity: 0.7;
    color: var(--text-secondary);
}

.player-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px var(--accent-primary);
}

.control-btn.active {
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.control-btn.large {
    width: 80px;
    height: 80px;
    font-size: 2em;
}

.control-btn.secondary {
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.control-btn.secondary:hover {
    background: var(--accent-primary);
    color: white;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin-top: 15px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.85em;
    opacity: 0.7;
    color: var(--text-secondary);
}

/* Fullscreen Overlay */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fullscreen-overlay.active {
    display: flex;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.fullscreen-info {
    text-align: center;
    margin-top: 30px;
    padding: 0 20px;
}

.fullscreen-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.fullscreen-controls {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.close-fullscreen {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-fullscreen:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: rotate(90deg);
}

.playlist-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: var(--accent-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: #fff;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.date-tab {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    min-width: 35px;
}

.date-tab .day {
    font-size: 1.1em;
    font-weight: 700;
}

.date-tab .month-year {
    font-size: 0.8em;
    opacity: 0.9;
    text-transform: uppercase;
}

/* Sort Controls */
.sort-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

.sort-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.sort-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Story Stats */
.story-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    margin-top: auto;
    font-size: 0.9em;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.stat-item.clickable {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.stat-item.clickable:hover {
    transform: scale(1.1);
}

.stat-item.liked {
    color: #ef4444;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.7;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.6em;
    font-weight: 700;
}

.close-modal {
    background: #ef4444;
    border: none;
    font-size: 1.4em;
    cursor: pointer;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.close-modal:hover {
    background: #dc2626;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95em;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Author Modal Styles */
.author-modal {
    max-width: 500px;
}

.author-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-primary);
    box-shadow: 0 5px 20px var(--shadow-color);
}

.author-avatar.followed {
    border-color: #10b981;
}

.author-name {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.author-followers {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin: 0;
}

.author-actions-modal {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.author-action-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 25px;
    border: 2px solid var(--accent-primary);
    background: var(--bg-card);
    color: var(--accent-primary);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.author-action-btn:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.follow-btn.following {
    background: var(--accent-primary);
    color: #fff;
}

/* Story Modal Styles */
.story-modal {
    max-width: 800px;
    width: 95%;
}

.story-modal-content {
    display: flex;
    gap: 30px;
}

.story-modal-image-container {
    flex: 1;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.story-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.story-modal-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2em;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid white;
}

.story-modal-play-btn:hover {
    background: var(--accent-primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.story-modal-info {
    flex: 1.5;
    display: flex;
    flex-direction: column;
}

.story-modal-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.story-modal-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 25px;
    flex-grow: 1;
}

.story-modal-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.story-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

/* Modal Author Section */
.story-modal-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: background 0.2s;
}

.story-modal-author:hover {
    background: var(--bg-secondary);
}

.modal-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

.modal-author-info {
    flex: 1;
}

.modal-author-name {
    font-weight: 600;
    font-size: 1.1em;
    color: var(--text-primary);
}

.modal-author-followers {
    font-size: 0.85em;
    color: var(--text-secondary);
}

/* Extended Author Stats in Modal */
.modal-author-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(138, 86, 172, 0.1), rgba(155, 107, 192, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(138, 86, 172, 0.2);
}

.modal-author-stat {
    text-align: center;
    padding: 8px 4px;
    background: var(--bg-card);
    border-radius: 8px;
}

.modal-author-stat-value {
    display: block;
    font-weight: 700;
    font-size: 1em;
    color: var(--accent-primary);
    margin-bottom: 2px;
}

.modal-author-stat-label {
    font-size: 0.7em;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vote-author-btn:hover {
    background: #10b981;
    border-color: #10b981;
}

.vote-author-btn:disabled {
    background: #6b7280;
    border-color: #6b7280;
    cursor: not-allowed;
    transform: none;
}

/* User Profile Page Styles */
.user-profile-header {
    background: var(--bg-card);
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.profile-cover {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    width: 100%;
}

.profile-content {
    padding: 0 40px 40px 40px;
    position: relative;
}

.profile-main {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.avatar-container {
    margin-top: -60px;
    position: relative;
    flex-shrink: 0;
}

.edit-avatar-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    border: 2px solid var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.edit-avatar-btn:hover {
    transform: scale(1.1);
}

.user-info {
    flex: 1;
    padding-top: 20px;
}

.user-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

.edit-profile-btn, .share-profile-btn {
    padding: 8px 20px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-profile-btn {
    padding: 8px 15px;
}

.profile-bio {
    margin-top: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 800px;
}

.user-stats-bar {
    display: flex;
    gap: 40px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.user-stat {
    text-align: center;
}

.stat-value {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-secondary);
}

/* Avatar Selection Styles */
.avatar-selection-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.current-avatar-preview {
    flex-shrink: 0;
}

.avatar-preview-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
}

.avatar-options {
    flex: 1;
}

.avatar-upload-btn {
    margin-bottom: 15px;
}

.avatar-grid-label {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
}

.avatar-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.avatar-option:hover {
    transform: scale(1.1);
}

.avatar-option.selected {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--accent-primary);
}

/* AI Feature Styles */
.ai-enhancement-section {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.ai-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ai-controls {
    margin-top: 15px;
    animation: slideDown 0.3s ease-out;
}

.ai-instruction {
    min-height: 80px !important;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.ai-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credit-cost {
    font-size: 0.9em;
    color: var(--accent-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ai-generation-area {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.image-options-row {
    display: flex;
    gap: 10px;
}

.image-options-row .tab-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-bottom: 2px solid transparent;
}

.image-options-row .tab-btn.active {
    border-bottom-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Social Media Fields Styles */
.social-media-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.social-media-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.social-icon i {
    font-size: 1.2em;
    color: var(--accent-primary);
}

/* Profile Social Media Display */
.profile-social-media {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.profile-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--bg-card);
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.profile-social-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.profile-social-link i {
    font-size: 1.2em;
}

.profile-social-text {
    font-size: 0.9em;
    font-weight: 600;
}

/* Follow Button Styles */
.follow-btn {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.follow-btn.following {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--accent-primary);
}

.follow-btn.following:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Poem Subscription Styles */
.poem-subscription {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.poem-subscription::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.poem-content {
    position: relative;
    z-index: 2;
}

.poem-content h3 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.poem-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.poem-author {
    font-size: 0.9em;
    font-style: italic;
    opacity: 0.8;
}

.poem-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* CTA Component Styles */
.cta-component {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    color: white;
    margin: 30px 0;
    border:1px solid rgba(240, 237, 237, 0.8);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-component:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.cta-component::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.cta-component::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: float-reverse 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

.cta-component h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.cta-component p {
    font-size: 1.1em;
    margin-bottom: 25px;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.cta-component .btn-primary {
    background: white;
    color: var(--accent-primary);
    font-weight: 700;
    padding: 15px 40px;
    font-size: 1.1em;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-component .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    background: #f8f9fa;
}

.cta-component .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin-left: 15px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.cta-component .btn-secondary:hover {
    background: white;
    color: var(--accent-primary);
    border-color: white;
}

/* Category Treeview Styles */
.category-tree {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category-item {
    border-bottom: 1px solid var(--border-color);
}

.category-item:last-child {
    border-bottom: none;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 8px;
}

.category-header:hover {
    background: var(--bg-secondary);
}

.toggle-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 0.8em;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.category-name {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.category-count {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.subcategory-list {
    padding-left: 30px;
    padding-bottom: 10px;
}

.subcategory-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.subcategory-item:hover {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    padding-left: 15px;
}

.subcategory-name {
    flex: 1;
    font-size: 0.95em;
}

.subcategory-count {
    font-size: 0.8em;
    opacity: 0.7;
}

/* Controls Section Styles */
.controls-section {
    margin-bottom: 30px;
    position: relative;
    z-index: 100;
}

.controls-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    padding: 10px 15px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px var(--shadow-color);
    backdrop-filter: blur(10px);
}

.category-select-btn {
    flex: 1;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
}

.category-select-btn i {
    color: var(--accent-primary);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.icon-btn:hover, .icon-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.icon-btn.has-active-filters::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.controls-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.controls-drawer.active {
    max-height: 500px;
    opacity: 1;
    margin-top: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.controls-drawer .search-container {
    margin-bottom: 20px;
    position: relative;
}

.controls-drawer .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.controls-drawer #searchBar {
    padding-left: 45px;
    width: 100%;
    max-width: 100%;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-options .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-options .sort-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sort-label {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.sort-select {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
}

/* Dashboard Redesign Styles */
.dashboard-stats-bar {
    display: flex;
    justify-content: space-around;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow-color);
}

.dashboard-stat-item {
    text-align: center;
}

.dashboard-stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-primary);
    display: block;
}

.dashboard-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Create Studio Grid */
.create-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.create-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 8px;
}

.create-card:hover:not(.locked) {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.create-card-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.create-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    aspect-ratio: 16 / 9;
    display: block;
}

.create-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.create-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.create-card.locked {
    opacity: 0.7;
    cursor: not-allowed;
    background: var(--bg-secondary);
    border-style: dashed;
}

.create-card.locked .create-card-icon,
.create-card.locked h3,
.create-card.locked p {
    filter: blur(2px);
}

.create-card.locked::after {
    content: '\f023';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--text-primary);
    opacity: 0.8;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.tier-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Feedback Split View */
.feedback-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    height: 600px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.feedback-list {
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
}

.feedback-list-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-log-card {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.feedback-log-card:hover {
    background: rgba(0,0,0,0.02);
}

.feedback-log-card.active {
    background: var(--bg-card);
    border-left: 4px solid var(--accent-primary);
}

.log-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    display: block;
}

.log-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: block;
}

.log-status {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-resolved { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }

.feedback-detail {
    padding: 30px;
    overflow-y: auto;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
}

.feedback-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    text-align: center;
}

.feedback-form-container {
    display: none;
}

.feedback-form-container.active {
    display: block;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: var(--accent-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 3px 3px 0 0;
}

/* Theme Modal Styles */
.theme-modal {
    max-width: 600px;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-option:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.theme-option.active {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}

.theme-preview {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.theme-preview-bg { width: 60%; height: 100%; }
.theme-preview-accent { width: 40%; height: 100%; }

.theme-name {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: capitalize;
}

.theme-section-title {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .container {
        padding: 15px;
    }

    .carousel-container {
        height: 300px;
    }

    .carousel-content h2 {
        font-size: 2em;
    }

    .carousel-content p {
        font-size: 1em;
        display: -webkit-box;
        display: -moz-box;
        display: box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        box-orient: vertical;
        overflow: hidden;
    }

    .filter-bar {
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar > * {
        width: 100%;
    }

    .category-select {
        width: 100%;
        margin-bottom: 5px;
        min-width: auto;
    }

    .filter-buttons {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-btn, .create-btn {
        flex: 1;
        min-width: calc(33.333% - 6px);
        padding: 10px 12px;
        font-size: 13px;
        text-align: center;
    }

    .sort-controls {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }

    .sort-btn {
        flex: 1;
        text-align: center;
    }

    .filter-bar.compact {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }

    .filter-bar.compact .category-select {
        flex: 1;
        min-width: 150px;
        margin-bottom: 0;
    }

    .filter-bar.compact .filter-buttons {
        flex: 2;
        min-width: 200px;
        margin-bottom: 0;
    }

    .filter-bar.compact .sort-controls {
        flex: 1;
        min-width: 120px;
        margin-top: 0;
    }

    .filter-bar.compact .filter-btn {
        min-width: auto;
        padding: 8px 12px;
        font-size: 12px;
    }

    .story-card {
        margin-bottom: 10px;
    }

    .story-image {
        height: 180px;
    }

    .story-content {
        padding: 15px;
    }

    .story-actions {
        flex-wrap: nowrap;
        gap: 4px;
        padding: 10px 5px;
        justify-content: space-around;
    }

    .action-btn {
        min-height: 32px;
        min-width: 32px;
        font-size: 1em;
        padding: 4px;
    }

    .story-stats {
        font-size: 0.85em;
        padding: 8px 0;
    }

    .modal {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        margin: 10px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-body {
        padding: 20px;
    }

    .author-avatar {
        width: 100px;
        height: 100px;
    }

    .author-name {
        font-size: 1.5em;
    }

    .author-actions-modal {
        flex-direction: column;
        gap: 10px;
    }

    .author-action-btn {
        width: 100%;
        padding: 14px;
    }

    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }

    .control-btn.large {
        width: 64px;
        height: 64px;
        font-size: 1.6em;
    }

    .time-display {
        font-size: 0.8em;
    }

    .story-modal-content {
        flex-direction: column;
    }

    .story-modal-image-container {
        height: 200px;
        min-height: auto;
    }

    .modal-author-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .avatar-container {
        margin-top: -75px;
    }

    .profile-content {
        padding: 0 20px 30px 20px;
    }

    .user-title-row {
        flex-direction: column;
        gap: 15px;
    }

    .user-stats-bar {
        justify-content: center;
        gap: 20px;
    }

    .avatar-selection-container {
        flex-direction: column;
        align-items: center;
    }

    .social-media-fields {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .profile-social-media {
        flex-direction: column;
        gap: 10px;
    }

    .profile-social-link {
        width: 100%;
        justify-content: center;
    }

    .poem-subscription {
        margin: 20px 0;
        padding: 20px;
    }

    .poem-content h3 {
        font-size: 1.5em;
    }

    .poem-content p {
        font-size: 1em;
        margin-bottom: 15px;
    }

    .poem-actions {
        flex-direction: column;
        gap: 10px;
    }

    .poem-actions .btn-primary,
    .poem-actions .btn-secondary {
        width: 100%;
    }

    .cta-component {
        padding: 30px 20px;
        margin: 40px 15px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
        background: linear-gradient(135deg, var(--accent-primary) 0%, #4c1d95 100%);
    }

    .cta-component::before, .cta-component::after {
        opacity: 0.4;
    }

    .cta-component h2 {
        font-size: 1.8em;
    }

    .cta-component p {
        font-size: 1.05em;
        margin-bottom: 25px;
    }

    .cta-component .btn-primary,
    .cta-component .btn-secondary {
        display: block;
        width: 100%;
        margin: 12px 0;
        padding: 14px;
    }

    .controls-toolbar {
        padding: 8px 12px;
    }

    .filter-options .filter-buttons {
        justify-content: space-between;
    }

    .filter-options .filter-btn {
        flex: 1;
        min-width: calc(33% - 7px);
        font-size: 0.85em;
        padding: 8px;
    }

    .feedback-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .feedback-list {
        height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .dashboard-stats-bar {
        flex-wrap: wrap;
        gap: 20px;
    }

    .dashboard-stat-item {
        flex: 1 1 40%;
    }

    .stories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .player-content {
        flex-direction: column;
        gap: 15px;
        padding-bottom: 10px;
    }

    h1 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 10px 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: 0;
        padding-left: 20px;
        display: none;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .follow-btn {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}
