:root {
    /* Color Palette */
    --bg-dark: #0a0a0a;
    --bg-panel: #141414;
    --bg-card: #1c1c1c;
    --bg-hover: #2a2a2a;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    --accent-gold: #d4af37;
    --accent-gold-hover: #e5c358;
    --accent-purple: #5c2e91;
    --accent-purple-light: #7b40c4;
    
    --border-color: #333333;
    --border-light: rgba(255, 255, 255, 0.1);
    
    /* Layout */
    --sidebar-width: 260px;
    --top-nav-height: 80px;
    --right-col-width: 320px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    /* Typography */
    --font-family: 'Outfit', sans-serif;
}

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

html, body {
    overflow-x: hidden;
    /* Firefox Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) var(--bg-dark);
}

/* Custom WebKit Scrollbar (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-left: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-hover);
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.text-gold { color: var(--accent-gold); }
.premium-text { color: var(--accent-purple-light); }
.right-align { float: right; margin-top: 10px; }
.full-width { width: 100%; }

.btn {
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-gold {
    background-color: var(--accent-gold);
    color: #000;
}

.btn-gold:hover {
    background-color: var(--accent-gold-hover);
}

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

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

.btn-outline-gold {
    background-color: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline-gold:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.btn-outline-small {
    padding: 8px 16px;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    background: transparent;
}
.btn-outline-small:hover {
    background-color: rgba(212, 175, 55, 0.1);
}


.badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.premium-badge {
    background-color: var(--accent-purple);
    color: white;
    margin-left: 8px;
}

.new-badge {
    background-color: var(--accent-purple-light);
    color: white;
    margin-left: 8px;
}

.premium-badge-small {
    background-color: var(--accent-purple);
    color: white;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 2px;
}

/* Layout Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-panel);
    border-right: 1px solid var(--border-light);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-track {
    background-color: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background-color: #000000;
    border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #222222;
}
/* Firefox */
.sidebar {
    scrollbar-color: #000000 transparent;
    scrollbar-width: thin;
}

.logo {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-logo {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    text-align: left;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 2px;
    line-height: 1;
}

.logo p {
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--text-secondary);
}

.nav-menu ul {
    margin-bottom: 20px;
}

.nav-menu li {
    margin-bottom: 4px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--text-secondary);
    border-radius: var(--border-radius-md);
    font-weight: 500;
}

.nav-menu a i {
    width: 24px;
    font-size: 16px;
    margin-right: 10px;
}

.nav-menu li.active a, .nav-menu a:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
}

.nav-menu li.active a i {
    color: var(--accent-gold);
}

.nav-menu hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 10px 0 20px 0;
}

/* Premium CTA in Sidebar */
.premium-cta {
    background: linear-gradient(145deg, #1f1a0e, #141414);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.premium-cta i.fa-crown {
    color: var(--accent-gold);
    font-size: 24px;
    margin-bottom: 10px;
}

.premium-cta h3 {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--accent-gold);
}

.premium-cta p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.premium-cta ul {
    text-align: left;
    margin-bottom: 15px;
}

.premium-cta ul li {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.premium-cta ul li i {
    color: var(--accent-gold);
    margin-right: 8px;
    font-size: 10px;
}

.premium-cta .btn {
    width: 100%;
    font-size: 12px;
    padding: 8px;
}

/* User Profile Mini & Sub Status */
.user-profile-mini {
    display: flex;
    align-items: center;
    padding: 15px 0;
    margin-top: 20px;
    border-top: 1px solid var(--border-light);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid var(--accent-purple);
}

.user-info h4 {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-info h4 i {
    font-size: 10px;
    color: var(--text-secondary);
}

.user-info .status {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.subscription-status {
    background-color: rgba(212, 175, 55, 0.05);
    border-radius: var(--border-radius-md);
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.subscription-status p {
    font-size: 12px;
}
.subscription-status .sub-text {
    color: var(--text-secondary);
    font-size: 11px;
    margin-bottom: 10px;
}
.subscription-status .btn {
    width: 100%;
    font-size: 11px;
    padding: 6px;
}

/* Main Wrapper */
.main-wrapper {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

/* Top Header */
.top-header {
    height: var(--top-nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 1px solid var(--border-light);
    background-color: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 10;
}

.top-nav-links {
    display: flex;
    gap: 30px;
}

.top-nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-nav-links a:hover, .top-nav-links a.active {
    color: var(--accent-gold);
}

.top-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    color: var(--text-primary);
    font-size: 18px;
    position: relative;
}
.icon-btn:hover {
    color: var(--accent-gold);
}

.notification-btn .notification-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-gold);
    color: #000;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--accent-purple);
}

.user-info-top {
    display: flex;
    flex-direction: column;
}

.user-info-top .name {
    font-size: 13px;
    font-weight: 500;
}
.user-info-top .name i {
    font-size: 10px;
    color: var(--text-secondary);
    margin-left: 4px;
}

/* Content Container Grid */
.content-container {
    display: grid;
    grid-template-columns: 1fr var(--right-col-width);
    gap: 40px;
    padding: 30px 40px;
    flex: 1;
}

/* Main Column Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.section-header .view-all {
    font-size: 13px;
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    display: flex;
    background: linear-gradient(to right, #1a1a1a, transparent);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
    border: 1px solid var(--border-light);
}

.hero-slide {
    display: flex !important;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

.hero-content {
    flex: 1;
    padding: 50px 40px;
    z-index: 2;
}

.hero-tag {
    color: var(--accent-gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-title {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-title span {
    font-weight: 700;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

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

.dot.active {
    background-color: var(--accent-gold);
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
}
.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #1a1a1a 0%, transparent 50%);
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ad & Info Row */
.ad-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.ad-banner {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.ad-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Slider additions */
.slider-container .slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider-container .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slider-container .slide.active {
    opacity: 1;
}

.ad-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 40%);
    z-index: 2;
    pointer-events: none;
}

.ad-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.ad-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.small-ad {
    height: 160px;
}
.small-ad h2 {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 5px;
}
.small-ad p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.info-box {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: 20px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-box i {
    font-size: 24px;
    margin-bottom: 10px;
}

.info-box h4 {
    font-size: 13px;
    margin-bottom: 5px;
}

.info-box p {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Featured Categories */
.featured-categories {
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 15px;
}

.right-sidebar-picks .cards-grid {
    grid-template-columns: 1fr;
    gap: 15px;
}

.category-item {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-item:hover {
    border-color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.05);
}

.category-item i {
    font-size: 24px;
    color: var(--accent-gold);
}

.category-item span {
    font-size: 12px;
    font-weight: 500;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    background-color: var(--bg-panel);
    padding: 4px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-light);
}

.tab {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab.active {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.trending-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
}

.tabs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Card Grids General */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.card {
    background-color: var(--bg-panel);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 9px;
    z-index: 2;
}
.video-badge { background-color: var(--accent-purple-light); }
.podcast-badge { background-color: #218c74; }

.duration {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background-color: rgba(0,0,0,0.7);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    z-index: 2;
}

.card-info {
    padding: 12px;
}

.card-info h3 {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
}

.card-info p {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Series Cards */
.series-card .card-img-wrapper {
    aspect-ratio: 1; /* Square */
}
.series-card .card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 1;
}
.icon-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    color: var(--accent-gold);
    z-index: 2;
}
.series-info-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
}
.series-info-overlay h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}
.series-info-overlay p {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Exclusive Content */
.premium-heading span.badge {
    vertical-align: middle;
    margin-left: 10px;
}

.exclusive-card .card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
    z-index: 1;
}

.exclusive-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 2;
}

.exclusive-overlay .premium-badge-small {
    margin-bottom: 8px;
    display: inline-block;
}

.exclusive-overlay h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.exclusive-overlay p {
    font-size: 11px;
    color: var(--text-secondary);
}

.exclusive-overlay p.episodes {
    margin-top: 5px;
    color: var(--accent-gold);
}

/* Editor's Picks */
.editors-picks .card-img-wrapper {
    aspect-ratio: 16/9;
}

/* Bottom Features */
.bottom-features {
    display: flex;
    justify-content: space-between;
    padding: 30px;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.feature-item i {
    font-size: 20px;
    margin-top: 2px;
}

.feature-item h4 {
    font-size: 12px;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Bottom CTA */
.bottom-cta {
    background: linear-gradient(to right, #1f1433, #0a0a0a);
    border: 1px solid var(--accent-purple);
    border-radius: var(--border-radius-lg);
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.cta-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Right Column Styles */
.top-right-ad {
    height: 300px;
    margin-bottom: 20px;
}

.ad-dots {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 3;
}
.ad-dots .dot {
    width: 6px;
    height: 6px;
    background-color: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}
.ad-dots .dot.active {
    background-color: var(--accent-gold);
}

.vertical-ad {
    height: 400px;
    margin-bottom: 30px;
}
.vertical-ad h2 {
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.top-picks-section {
    margin-bottom: 30px;
}

.top-picks-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.pick-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
    cursor: pointer;
}

.pick-item:hover .pick-info h4 {
    color: var(--accent-gold);
}

.pick-img {
    width: 100px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    position: relative;
}

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

.play-icon-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    background: rgba(0,0,0,0.5);
    padding: 6px;
    border-radius: 50%;
}

.pick-info h4 {
    font-size: 13px;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.pick-info p {
    font-size: 11px;
    color: var(--text-secondary);
}

.create-impact-box {
    background-color: var(--bg-panel);
    border: 1px solid var(--accent-gold);
    border-radius: var(--border-radius-md);
    padding: 25px 20px;
}

.create-impact-box h3 {
    font-size: 16px;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.create-impact-box .subtitle {
    font-size: 13px;
    margin-bottom: 15px;
}

.create-impact-box ul {
    margin-bottom: 20px;
}

.create-impact-box ul li {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Mobile Responsiveness --- */

/* Desktop defaults for mobile elements */
.mobile-menu-btn {
    display: none;
    font-size: 20px;
    color: var(--text-primary);
    margin-right: 15px;
}

.mobile-header-logo {
    display: none;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99;
}
.sidebar-overlay.active {
    display: block;
}

/* Tablet & Smaller Desktops (Max 1200px) */
@media (max-width: 1200px) {
    .content-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .right-column {
        width: 100%;
        position: static;
        border-left: none;
        padding: 0;
        margin-top: 40px;
    }
    
    .right-sidebar-picks .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .ad-info-row {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .bottom-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 20px;
    }

    .bottom-cta {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .tabs {
        flex-wrap: wrap;
    }
}

/* Mobile Devices (Max 768px) */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 250px;
        --top-nav-height: 60px;
    }

    /* Sidebar transforms into off-canvas menu */
    .sidebar {
        transform: translateX(-100%);
        z-index: 100;
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
        padding: 0;
    }

    .content-container {
        padding: 20px 15px;
    }

    .top-header {
        left: 0;
        width: 100%;
        padding: 0 15px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-header-logo {
        display: block;
        height: 25px;
    }

    .top-nav-links {
        display: none; /* Hide standard nav links on mobile header */
    }

    .user-profile-top .name, 
    .user-profile-top .premium-badge-small {
        display: none; /* Hide text, just show avatar */
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-content {
        padding: 30px 20px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .category-item span {
        font-size: 10px;
    }

    .bottom-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 20px 10px;
    }

    .ad-banner.top-right-ad {
        height: 200px;
    }

    .ad-banner.vertical-ad {
        height: auto;
    }
}

/* --- Authentication & Subscription Flow Styles --- */

/* Auth Pages Background & Layout */
.auth-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #111 100%);
    padding: 20px;
}

.auth-card {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.auth-card .logo-img {
    height: 50px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.auth-card h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.auth-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: var(--text-secondary);
}

.auth-input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.3s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.auth-card .btn {
    margin-top: 10px;
}

.auth-footer {
    margin-top: 25px;
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-gold);
    font-weight: 500;
}

/* Subscription Dialog Modal */
.subscription-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.subscription-modal-wrapper.show {
    opacity: 1;
    pointer-events: auto;
}

.subscription-modal {
    background: var(--bg-panel);
    border: 1px solid var(--accent-gold);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.subscription-modal-wrapper.show .subscription-modal {
    transform: translateY(0) scale(1);
}

.subscription-modal .icon-crown {
    font-size: 50px;
    color: var(--accent-gold);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.subscription-modal h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

.subscription-modal p.subtitle {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.modal-benefits {
    text-align: left;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: var(--border-radius-md);
}

.modal-benefits li {
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-benefits li i {
    color: var(--accent-gold);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
}

.close-modal-btn:hover {
    color: var(--text-primary);
}

/* Locked Podcast Overlay */
.card-img-wrapper .locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.locked-overlay i {
    font-size: 24px;
    color: var(--accent-gold);
}

/* Dynamic Hidden Sections */
.hide-before-sub {
    display: none;
}



/* =========================================
   Pricing Page Styles
   ========================================= */

.pricing-page {
    background-color: var(--bg-dark);
}

.pricing-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.pricing-main .pricing-title {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 5px;
}

.pricing-main .pricing-subtitle {
    color: var(--accent-gold);
    font-size: 24px;
    margin-bottom: 15px;
}

.pricing-main .pricing-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

/* Pricing Table */
.pricing-table {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    margin-top: 20px; /* Space for the badge */
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border-light);
}

.table-row:last-child {
    border-bottom: none;
}

.header-row {
    background-color: rgba(0, 0, 0, 0.2);
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
}

.col-features {
    padding: 20px 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-right: 1px solid var(--border-light);
}

.col-features h4 {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
}

.col-features p {
    font-size: 12px;
    color: var(--text-secondary);
}

.col-plan {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-light);
    position: relative;
}

.col-plan:last-child {
    border-right: none;
}

.col-plan h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.col-plan p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.col-plan h2 {
    font-size: 28px;
    font-weight: 600;
}

.col-plan h2 span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
}

.highlighted-col {
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.1), transparent);
    border: 1px solid var(--accent-gold);
}

.most-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Pricing Sidebar */
.pricing-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-block {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    padding: 25px;
}

.sidebar-block h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 500;
}

.sidebar-block .desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.steps-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.step-num {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    flex-shrink: 0;
    font-size: 12px;
}

.steps-list h4 {
    font-size: 13px;
    margin-bottom: 4px;
}

.steps-list p {
    font-size: 12px;
    color: var(--text-secondary);
}

.why-premium-block ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.why-premium-block li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.trial-block {
    background: linear-gradient(to right, #1f1433, #0a0a0a);
    border-color: var(--accent-purple);
}

/* Stats Row */
.pricing-stats-row {
    display: flex;
    justify-content: space-around;
    padding: 40px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin: 0 40px 60px 40px;
}

.stat-item {
    display: flex;
    align-items: center;
}

.stat-item h4 {
    font-size: 24px;
    font-weight: 600;
}

.stat-item p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Responsive Pricing Page */
@media (max-width: 1200px) {
    .pricing-container {
        grid-template-columns: 1fr;
    }
    
    .table-row {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .table-row {
        grid-template-columns: 1fr;
    }
    .col-features {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    .pricing-stats-row {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        padding: 20px;
        margin: 0 20px 40px 20px;
    }
}

/* =========================================
   Profile Dropdown
   ========================================= */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    min-width: 220px;
    padding: 10px 0;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.profile-dropdown.show {
    display: flex;
}

.profile-dropdown a {
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color var(--transition-speed);
}

.profile-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-light);
    margin: 5px 0;
}
