/* ========================================
   MELON AUDIO NOVELAS - DESIGN SYSTEM
   Standard Visual: Minimal Dark
   ======================================== */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- DESIGN TOKENS --- */
:root {
    /* --- COLORS: BASE --- */
    --bg-app: #0a0a0c;
    /* Fondo principal más oscuro */
    --bg-surface: #18181b;
    /* Tarjetas / Elementos UI */
    --bg-surface-hover: #27272a;
    /* Hover state */
    --bg-surface-active: #3f3f46;

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --border-light: rgba(255, 255, 255, 0.2);

    /* --- COLORS: TEXT --- */
    --text-primary: #fafafa;
    /* Título / Importante */
    --text-secondary: #a1a1aa;
    /* Cuerpo / Secundario */
    --text-muted: #71717a;
    /* Meta / Deshabilitado */
    --text-inverted: #000000;

    /* --- COLORS: ACCENTS (Unified Palette - Indigo/Blurple) --- */
    --accent-primary: #6366f1;
    /* Indigo (Morado tirando a Azul) */
    --accent-secondary: #4f46e5;
    /* Darker Indigo */
    --accent-success: #10b981;
    /* Green (Historial/Status) */
    --accent-warning: #f59e0b;
    /* Orange (Alerts) */
    --accent-danger: #f43f5e;
    /* Red/Pink (Heart/Action) */
    --accent-pink: #818cf8;
    /* Soft Indigo (Replacing Pink) */

    /* Specific Hex for consistency */
    --color-cyan-glow: #6366f1;
    /* Indigo Glow */
    --color-pink-glow: #4338ca;
    /* Deep Indigo Glow */

    /* --- TYPOGRAPHY --- */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Scale */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 2rem;
    /* 32px */
    --text-4xl: 2.5rem;
    /* 40px */

    /* Weights */
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* --- SPACING & LAYOUT --- */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-8: 48px;

    --container-max: 1200px;
    /* Updated for 1200px standardized width */
    --header-height: 70px;

    /* --- RADIUS --- */
    --radius-sm: 6px;
    --radius-btn: 8px;
    /* Curve preferred by user */
    --radius-md: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- BASE STYLES --- */
body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-app);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- TYPOGRAPHY UTILITY CLASSES --- */
.page-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
    line-height: 1.2;
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0 0 var(--space-4) 0;
    line-height: 1.3;
}

.card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
    line-height: 1.3;
}

.body-text {
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    color: var(--text-secondary);
    line-height: 1.5;
}

.small-text {
    font-size: var(--text-sm);
    font-weight: var(--font-regular);
    color: var(--text-muted);
    line-height: 1.4;
}

.tiny-text {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--text-muted);
}

/* --- CONTAINER --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* --- MAIN CONTAINER --- */
.web-novelas-container {
    min-height: 100vh;
    background: var(--bg-app);
    padding: 0 0 80px;
}

/* --- TOP BAR --- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 4px 0;
}

.top-bar .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* --- HEADER --- */
.page-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

/* Logo */
.anime-logo {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    /* Rounded corners instead of circular */
    object-fit: cover;
    border: 1px solid var(--border);
    margin-top: var(--space-4);
}

/* Main Title */
.page-header h1 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin: var(--space-6) 0 var(--space-2) 0;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Subtitle */
.page-header p,
.profile-subtitle {
    font-size: var(--text-base) !important;
    color: var(--text-muted) !important;
    margin: 0 0 var(--space-4) 0 !important;
    font-weight: var(--font-regular) !important;
    letter-spacing: 0.02em;
}

/* Stats Count */
.stat-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e4e4e7;
    letter-spacing: 0.02em;
}

/* --- NAVIGATION --- */
.page-nav {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-nav .nav-menu {
    display: flex;
    justify-content: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 12px 0;
}

.page-nav .nav-link {
    color: #a1a1aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    background: transparent;
    transition: color 0.2s ease;
    position: relative;
    letter-spacing: 0.01em;
}

.page-nav .nav-link:hover {
    color: #ffffff;
}

.page-nav .nav-link.active {
    color: #ffffff;
}

.page-nav .nav-link.active::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ec4899, #f472b6);
    border-radius: 2px;
}

/* Mobile Nav */
@media (max-width: 768px) {
    .page-nav .nav-menu {
        justify-content: flex-start;
        padding: 12px 16px;
        gap: 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }

    .page-nav .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .page-nav .nav-link {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

/* --- SECTION TITLES --- */
.section-title-pastel {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #f4f4f5 !important;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Smaller titles on mobile */
@media (max-width: 480px) {
    .section-title-pastel {
        font-size: 1.2rem !important;
        margin-bottom: 16px;
    }
}

.section-title-pastel i {
    font-size: 0.8em;
    opacity: 0.5;
}

/* Unified Section Title - All sections use this */
.section-title-unified {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 20px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    line-height: 1.2 !important;
}

.section-title-unified i {
    color: #f97316 !important;
    font-size: 1em !important;
}

.section-title-unified.small {
    font-size: 1rem !important;
}

.section-title-unified.small i {
    font-size: 0.9em !important;
}

/* --- CARDS (Novel Cards) --- */
.novel-card {
    background: #18181b;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.novel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(157, 78, 221, 0.3);
}

.novel-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.novel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.novel-info {
    padding: 16px;
}

.novel-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #fff;
    line-height: 1.4;
}

.novel-info p {
    color: #71717a;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Novel Status Badge */
.novel-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- GUEST BUTTONS --- */
.guest-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

.btn-guest-login,
.btn-guest-register {
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.btn-guest-login {
    background: transparent;
    color: #e4e4e7;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-guest-login:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-guest-register {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: white;
    border: none;
}

.btn-guest-register:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* --- GRIDS --- */
.novels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    padding: 0 16px;
}

/* --- SCROLLBARS (Global) --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #18181b;
}

::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

/* --- MISC UTILITIES --- */
.hidden {
    display: none !important;
}

/* Text Selection */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: #fff;
}

/* Link Reset */
a {
    color: inherit;
    text-decoration: none;
}

/* Focus Outline */
:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

/* Removed: Collection-specific styles moved to colecciones.blade.css */

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .novels-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .guest-nav {
        flex-direction: column;
        gap: 10px;
    }

    .btn-guest-login,
    .btn-guest-register {
        width: 100%;
        text-align: center;
    }
}

/* --- TEXT UTILITIES --- */
.text-accent-primary {
    color: var(--accent-primary) !important;
}

.text-accent-secondary {
    color: var(--accent-secondary) !important;
}

.text-accent-pink {
    color: var(--accent-pink) !important;
}

.text-accent-success {
    color: var(--accent-success) !important;
}

.text-accent-danger {
    color: var(--accent-danger) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* --- BORDER UTILITIES --- */
.border-accent-primary {
    border-color: var(--accent-primary) !important;
}

.border-accent-secondary {
    border-color: var(--accent-secondary) !important;
}

.border-accent-pink {
    border-color: var(--accent-pink) !important;
}

.border-accent-success {
    border-color: var(--accent-success) !important;
}

/* --- UTILITY: PRETTY CURVES --- */
.rounded-btn {
    border-radius: var(--radius-btn) !important;
}

.style-curve {
    border-radius: var(--radius-btn) !important;
}

/* --- DONATION CARD --- */
.donation-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    /* Purple Border */
    border-radius: 16px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 800px;
    margin: 24px auto 0;
}

.donation-left {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.donation-title {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #a78bfa;
    /* Light Purple Text */
    display: flex;
    align-items: center;
}

.donation-title i {
    margin-right: 8px;
}

.donation-subtitle {
    margin: 0;
    color: #94a3b8;
    font-size: 0.95rem;
}

.donation-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.donation-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: #a78bfa;
    /* Light Purple Amount */
    text-shadow: none;
}

.donation-btn {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    /* Blue Gradient */
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
    border: 1px solid rgba(99, 102, 241, 0.3);
    /* Subtle Indigo Border */
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.donation-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    /* Indigo Shadow on hover */
}

/* --- MOBILE HEADER FIXES --- */
@media (max-width: 768px) {
    .header-banner {
        height: 120px;
        /* Taller banner on mobile */
    }

    .header-profile-info {
        margin-top: -40px;
        /* Less negative margin */
        padding-top: 0;
        text-align: center;
    }

    .profile-avatar-wrapper {
        justify-content: center;
        margin-bottom: 10px;
    }

    .category-icon {
        width: 100px;
        height: 100px;
        margin: 0 auto;
        border: 4px solid var(--bg-app);
        /* Mask overlap */
    }

    .page-header h1 {
        font-size: 1.8rem;
        margin-top: 10px;
    }

    .donation-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}

/* ========================================
   FREE EDITION THEME OVERRIDES
   ======================================== */
.app-edition-free .page-nav .nav-link.active::after {
    background: #8b5cf6;
    /* Purple */
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

.app-edition-free .page-nav .nav-link {
    /* Neutralize specific colored links if needed, e.g. recommendations */
    color: #a1a1aa;
    /* return to neutral if they had specific inline styles or classes */
}

/* Ensure Recommendations link is neutral in Free edition if it had a specific color */
.app-edition-free .page-nav .nav-link[href*="recommendations"] {
    color: #a1a1aa !important;
}

.app-edition-free .page-nav .nav-link[href*="recommendations"]:hover,
.app-edition-free .page-nav .nav-link.active[href*="recommendations"] {
    color: #fff !important;
}

/* Register page accent overrides for Free Edition */
.app-edition-free .login-btn,
.app-edition-free .btn-guest-register {
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%) !important;
    border: 1px solid #7c3aed !important;
    color: #ffffff !important;
    font-weight: 800 !important;
}

.app-edition-free .login-btn:hover,
.app-edition-free .btn-guest-register:hover {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
}

.app-edition-free .input-field:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2) !important;
}

.app-edition-free .login-link {
    color: #8b5cf6;
}

/* Hide or recolor other pink elements if necessary */
.app-edition-free .stat-count {
    border-color: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

/* ========================================
   GLOBAL LAYOUT STYLES (Extracted from head.blade.php)
   ======================================== */
:root {
    --nav-active-color: #38bdf8;
    /* Sky Blue */
    --bg-deep: #0f172a;
    /* Deep Slate */
    --bg-card: #1e293b;
    /* Slate 800 */
    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #ec4899 100%);
    --header-border: linear-gradient(90deg, #3b82f6, #ec4899);
}

/* body bg uses --bg-app from design tokens (near-black #0a0a0c) */

.header-banner,
.banner-overlay {
    display: none !important;
}

.header-profile-info {
    padding: 15px 0 !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    background: transparent !important;
    align-items: center !important;
}

.profile-text-content h1 {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif !important;
    /* Futurist Font */
    text-transform: uppercase;
    font-size: 2.2rem !important;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    margin-bottom: 0 !important;
}

.profile-subtitle {
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
    opacity: 0.8;
}

/* Navigation */
.nav-menu {
    background: rgba(30, 41, 59, 0.5) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 5px 10px !important;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-bottom: none !important;
    /* Reset default */
}

.nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-link.active {
    color: #fff !important;
    background: var(--accent-gradient);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
    border-bottom: none !important;
}

/* Mobile adjustments */
.mobile-user-bar.active {
    border-top: 2px solid #3b82f6;
}

/* ========================================
   MELON AUDIO NOVELAS - DESIGN SYSTEM
   Standard Visual: Minimal Dark
   ======================================== */

@supports not ((hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none)) {
    @font-face {
        font-display: fallback;
        font-family: "ABC Oracle Plus Variable";
        font-style: oblique 0deg 20deg;
        font-weight: 1 999;
        src:
            url("https://c13.patreon.com/fonts/oracle/PatreonOraclePlusVariable-Regular.woff2") format("woff2"),
            url("https://c13.patreon.com/fonts/oracle/PatreonOraclePlusVariable-Regular.woff") format("woff");
    }
}

@supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none) {
    @font-face {
        font-display: fallback;
        font-family: "ABC Oracle Plus Variable";
        font-weight: 1 999;
        src:
            url("https://c13.patreon.com/fonts/oracle/PatreonOraclePlusVariable-Regular.woff2") format("woff2"),
            url("https://c13.patreon.com/fonts/oracle/PatreonOraclePlusVariable-Regular.woff") format("woff");
    }
}

/* --- DESIGN TOKENS --- */
:root {
    /* Colors */
    --bg-primary: #0a0a0c;
    --bg-secondary: #18181b;
    --bg-tertiary: #27272a;

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent: #a855f7;
    --accent-secondary: #3b82f6;

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* --- ALERT --- */
.alert {
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.alert-success {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.05);
}

/* --- RANK BADGES (Minimal) --- */
.rank-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Rank Colors - Neon Pastel Style */
.rank-3 {
    background: rgba(76, 201, 240, 0.1);
    border-color: rgba(76, 201, 240, 0.3);
    color: #4cc9f0;
    text-shadow: 0 0 5px rgba(76, 201, 240, 0.5);
}

.rank-5 {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: #a855f7;
    text-shadow: 0 0 5px rgba(168, 85, 247, 0.5);
}

.rank-7 {
    background: rgba(247, 37, 133, 0.1);
    border-color: rgba(247, 37, 133, 0.3);
    color: #f472b6;
    text-shadow: 0 0 5px rgba(247, 37, 133, 0.5);
}

.rank-moderator {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: #818cf8;
    text-shadow: 0 0 5px rgba(129, 140, 248, 0.5);
}

.rank-admin {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    text-shadow: 0 0 5px rgba(251, 191, 36, 0.5);
}

.rank-colaborador {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}

.rank-donador {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
}

.rank-member {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.rank-free {
    color: #5eead4;
    /* Verde aqua claro pastel */
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: inherit;
    /* Mismo tamaño que el título H1 */
    text-shadow: 0 0 10px rgba(94, 234, 212, 0.4);
    background: transparent;
    border: none;
    padding: 0;
    margin-right: 12px;
}

/* --- MOBILE PROFILE SHEET --- */
.mobile-profile-sheet-container {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

/* --- MOBILE ANIMATIONS --- */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mobile-profile-sheet-container.active {
    display: block;
}

.sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.sheet-content {
    position: fixed;
    bottom: 90px;
    /* Floating above the nav dock */
    left: 16px;
    right: 16px;
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    /* Fully rounded */
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    /* Premium depth */
    z-index: 10000;

    /* Animation */
    animation: slideUpFade 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transform-origin: bottom center;
}

.sheet-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 16px;
}

.sheet-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sheet-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    /* softer corners */
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.sheet-item:active {
    transform: scale(0.98);
}

.sheet-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.05);
}

/* Icon styling inside sheet */
.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    /* Soft glows for icons */
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.sheet-item .chevron {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* --- HEADER BANNER --- */
/* Remove top padding from container to eliminate black bar */
.web-novelas-container {
    padding-top: 0 !important;
}

/* Make page-header break out of container */
.page-header.patreon-header {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.header-banner {
    position: relative;
    height: 360px;
    /* Increased by 10px */
    overflow: hidden;
    border-radius: 0;
    border: none;
    background: #1e1b2e;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* No brightness filter - show full image */
}

.banner-overlay {
    display: none;
    /* Removed the gradient overlay */
}

/* --- PROFILE INFO --- */
.header-profile-info {
    padding: 0 var(--space-5);
    margin-top: -60px;
    position: relative;
}

.profile-avatar-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.profile-text-content {
    text-align: center;
}

.profile-text-content h1 {
    font-size: 2.8rem;
    /* Slightly larger for thin font */
    font-weight: 300;
    /* Modern Thin */
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    /* Soft glow, no heavy drop shadow */
}

.profile-stats {
    margin-top: var(--space-3);
}

/* --- RESPONSIVE --- */
/* Floating Widget - Desktop Default */
.floating-user-widget {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {

    /* Enable Floating Widget on Mobile - Top Right Position */
    .floating-user-widget {
        display: flex !important;
        left: auto !important;
        right: 16px !important;
        top: 16px !important;
        width: auto !important;
        transform: none !important;
        flex-direction: column;
        align-items: flex-end;
    }

    /* Standard Trigger on Mobile (No inversion) */
    .dropdown-trigger {
        padding: 8px 12px !important;
        /* Slightly more compact than desktop but same style */
        width: auto !important;
        min-width: 0;
    }

    .trigger-avatar img {
        width: 36px !important;
        height: 36px !important;
    }

    /* Menu should also behave like desktop but positioned better */
    .dropdown-menu-custom {
        width: 240px !important;
        /* Standard width */
        left: auto !important;
        right: 0 !important;
        margin-top: 8px !important;
        position: absolute !important;
    }

    /* Restore normal menu look */
    .user-dropdown.active .dropdown-menu-custom {
        display: block !important;
        animation: slideUpFadeMobile 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    @keyframes slideUpFadeMobile {
        from {
            opacity: 0;
            transform: translateY(10px) scale(0.95);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .header-banner {
        height: 80px;
    }

    .header-profile-info {
        padding: 0 var(--space-4);
        margin-top: -40px;
    }

    /* Force Free label to its own line on mobile to keep title unified */
    .rank-free {
        display: block;
        margin-bottom: 5px;
        margin-right: 0 !important;
    }
}

@media (min-width: 769px) {

    .mobile-user-bar,
    .mobile-profile-sheet-container {
        display: none !important;
    }
}

/* Pin Button Styles */
.menu-item-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.menu-item-wrapper .menu-item {
    flex: 1;
    margin-bottom: 0;
    /* Override default margin */
}

.pin-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
}

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

.pin-btn.pinned {
    color: var(--accent);
    /* Default accent */
    background: rgba(168, 85, 247, 0.1);
}

/* Specific pin colors matching icons if desired, generic for now */

/* --- MINI PLAYER FLOATING --- */
.mini-player-float {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.15);
    max-width: 360px;
    width: calc(100% - 40px);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.mini-player-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
}

.mini-player-cover {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.mini-player-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mini-player-title {
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-chapter {
    color: #64748b;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border: none;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mini-player-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.mini-player-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #64748b;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.mini-player-close:hover {
    background: rgba(244, 63, 94, 0.2);
    color: #f87171;
}

/* Móvil: mantener igual */
@media (max-width: 640px) {
    .mini-player-float {
        padding: 10px 15px;
    }
}

/* --- AVATAR OVERLAP (Profile Style) --- */
.category-icon {
    width: 140px;
    /* Larger to clear details */
    height: 140px;
    border-radius: 28px;
    border: none;
    /* Minimal separation */
    padding: 0 !important;
    /* Force no padding */
    background: transparent;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    /* Softer shadow */
    margin: 0 auto;
    transition: transform 0.3s ease;
    /* Removed flex to ensure block fill */
}

.category-icon:hover {
    transform: scale(1.02) translateY(-2px);
}

.anime-logo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    min-width: 100%;
    min-height: 100%;
    border-radius: 0 !important;
    /* Prevent double rounding gaps */
    margin: 0 !important;
    padding: 0 !important;
}

/* ================================================
   GUEST NAV - Botones estilo Jupiter Audio Books
   ================================================ */

/* Light background section for profile info */
.header-profile-info {
    background: transparent;
    padding: 20px var(--space-5) 40px;
    margin-top: -60px;
    position: relative;
    font-family: "ABC Oracle Plus Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.profile-text-content h1 {
    color: #ffffff !important;
    font-family: "ABC Oracle Plus Variable", "Inter", sans-serif;
    letter-spacing: normal;
    /* Removed tight spacing to look "wider" */
    font-weight: 700;
    /* Bold, "no tan delgado" */
    font-size: 28px;
    /* "un px menor" (assuming it was ~30-32px) */
    margin-bottom: 4px;
}

.profile-subtitle {
    color: #a1a1aa !important;
    font-family: "ABC Oracle Plus Variable", "Inter", sans-serif;
}

.profile-stats .stat-count {
    background: transparent;
    border: none;
    color: #71717a;
    font-size: 0.85rem;
    font-weight: 400;
    font-family: "ABC Oracle Plus Variable", "Inter", sans-serif;
}

.profile-stats .stat-separator {
    color: #71717a;
    font-size: 0.85rem;
    margin: 0 6px;
}

.guest-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    align-items: center;
    max-width: 280px;
    /* Reduced to 280px */
    margin-left: auto;
    margin-right: auto;
}

.btn-guest-primary,
.btn-guest-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 24px;
    font-size: 14px;
    /* Patreon MD size */
    font-weight: 550;
    /* Patreon Bold weight */
    border-radius: 8px;
    /* Base radius, overridden later but good default */
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: var(--patreon-font-stack, "ABC Oracle Plus Variable", sans-serif);
    letter-spacing: -0.01em;
    min-height: 40px;
    white-space: nowrap;
    /* "que no haga un salto de linea" */
}

/* Primary Button - Súmate gratis (Solid Dark Magenta) */
.btn-guest-primary {
    background: #a21caf;
    /* Solid dark magenta/fuchsia */
    color: white;
    border: none;
    border-radius: 8px;
    /* Boxy with rounded corners */
    box-shadow: 0 4px 6px -1px rgba(162, 28, 175, 0.4);
}

.btn-guest-primary:hover {
    background: #86198f;
    /* Darker magenta on hover */
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(162, 28, 175, 0.5);
    filter: none;
}

/* Secondary Button - Ver opciones (Solid Dark Grey) */
.btn-guest-secondary {
    background: #2b252b;
    /* Solid dark grey */
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 8px;
    /* Matching primary */
}

.btn-guest-secondary:hover {
    background: #18181b;
    /* Darker grey on hover (was lighter, but usually darker is better for solid blocks, or lighter depending on taste. User said 'se oscuresca' for primary. I will simply tint it.) */
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 500px) {
    .guest-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
    }

    .btn-guest-primary,
    .btn-guest-secondary {
        justify-content: center;
    }
}

/* ================================================
   SUBSCRIPTION MODAL - Popup de suscripciones
   ================================================ */
.subscription-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.subscription-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.subscription-modal {
    background: #000000;
    /* Fondo negro profundo requested */
    border-radius: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    overflow-y: auto;
    padding: 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: none;
    box-shadow: none;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}

.subscription-modal-overlay.active .subscription-modal {
    transform: none;
}

.modal-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-close-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.modal-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 50px;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Tier Cards Grid in Modal */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.modal-tiers-grid {
    gap: 40px;
}

/* Tier Card Styles */
.tier-card {
    background: #09090b;
    border-radius: 24px;
    overflow: visible;
    /* Changed to visible so badge can stick out */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Only border transition, no transform */
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    /* For absolute positioned badge */
}

/* Hover effect restored */

.tier-btn:hover {
    transform: none !important;
}

.tier-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.tier-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover effect removed */

.tier-content {
    padding: 20px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tier-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.tier-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
}

.tier-rank-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-price {
    font-size: 2rem;
    /* Reduced size */
    font-weight: 300;
    /* Light/Thin font */
    color: #fff;
    margin: 5px 0 20px;
    /* Consistent margin */
    font-variant-numeric: tabular-nums;
    /* To ensure buttons align, Header+Price should take space or push button */
    text-align: right;
    /* Aligned right for all tiers */
}

.tier-price span {
    font-size: 1rem;
    color: #a1a1aa;
    font-weight: 500;
}

.btn-block {
    display: block;
    width: 100%;
    text-decoration: none;
    margin-top: 0;
}

.tier-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    /* Patreon style - squared with rounded corners */
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.tier-btn:hover {
    filter: brightness(0.8);
    /* Darken on hover */
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.feature-list li {
    font-size: 0.9rem;
    color: #d4d4d8;
    /* Zinc-300 */
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Tier Specific Styles */

/* DIAMANT - BLUE */
.tier-diamant {
    border: 1px solid rgba(59, 130, 246, 0.2);
    /* Subtle blue */
    transition: all 0.3s ease;
}

.tier-diamant:hover {
    transform: scale(1.01);
    /* Small pop */
    border-color: rgba(59, 130, 246, 0.4);
}

.tier-diamant .tier-btn {
    background: #2563eb;
}

.tier-diamant .feature-list i {
    color: #2563eb;
}

/* OBSIDEAN - MAGENTA (Podría Gustarte) */
.tier-obsidean {
    border: 3px solid #d946ef;
    /* Magenta Border Strong */
    box-shadow: 0 0 30px rgba(217, 70, 239, 0.15);
    background: #0f0a0f;
    /* Slight magenta tint bg */
    z-index: 10;
}

.tier-obsidean:hover {
    border-color: #d946ef;
    box-shadow: 0 0 50px rgba(217, 70, 239, 0.4);
    transform: scale(1.015);
}

.tier-obsidean .tier-btn {
    background: #c026d3;
}

.tier-obsidean .feature-list i {
    color: #c026d3;
}

/* LOVE - PINK/ROSE (Advanced) */
.tier-love {
    border: 1px solid rgba(236, 72, 153, 0.2);
    /* Subtle pink */
    transition: all 0.3s ease;
}

.tier-love:hover {
    transform: scale(1.025);
    /* Large pop */
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.2);
}

.tier-love .tier-btn {
    background: #be185d;
}

.tier-love .feature-list i {
    color: #db2777;
}

.tier-header-badge {
    /* Ko-fi Style Badge - Forced with !important */
    position: absolute !important;
    top: -14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    /* Colors - Forced */
    background: #8c00e5 !important;
    color: #ffffff !important;
    opacity: 1 !important;

    /* Typography - Forced */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    text-shadow: none !important;

    /* Spacing & Shape */
    padding: 6px 16px 8px !important;
    border-radius: 9999px !important;

    /* Effects */
    box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.25) !important;

    /* Behavior */
    z-index: 100 !important;
    white-space: nowrap !important;
    visibility: visible !important;
    display: block !important;
}

/* Modal responsive */
@media (max-width: 900px) {

    .tiers-grid,
    .modal-tiers-grid {
        grid-template-columns: 1fr;
    }

    .tier-card {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* ========================================
   DONATION CARD IN MODAL (FREE EDITION)
   ======================================== */
.subscription-modal {
    padding: 25px 15px;
    justify-content: center;
    /* Ensure vertical centering */
}

.donation-card {
    background: rgba(13, 18, 18, 0.95);
    border: 1px solid #3b82f6;
    /* Teal Border */
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    /* Remove top/bottom margin for flex centering */
    box-shadow: 0 0 30px rgba(45, 212, 191, 0.15);
    /* Soft teal glow */
}

.donation-left {
    flex: 1;
    text-align: left;
}

.donation-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #3b82f6;
    /* Teal Text */
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: none;
    /* Keep natural case */
}

.donation-title i {
    color: #3b82f6;
    /* Teal Heart */
}

.donation-subtitle {
    font-size: 1rem;
    color: #94a3b8;
    /* Slate-400 for contrast */
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
}

.donation-right {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: max-content;
}

.donation-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: #3b82f6;
    /* Teal Amount */
}

.donation-btn {
    background: #3b82f6;
    /* Teal Background */
    color: #0f172a;
    /* Dark text */
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1rem;
    border: 2px solid #3b82f6;
    gap: 8px;
}

.donation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.4);
    background: #14b8a6;
    /* Darker teal on hover */
    border-color: #14b8a6;
    color: #fff;
}

@media (max-width: 768px) {
    .donation-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 25px;
    }

    .donation-left {
        text-align: center;
    }

    .donation-subtitle {
        margin: 0 auto;
    }

    .donation-title {
        justify-content: center;
        font-size: 1.5rem;
    }

    .donation-right {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .donation-amount {
        font-size: 2rem;
    }

    .donation-btn {
        width: 100%;
    }
}

/* ========================================
   HEADER DONATE BUTTON (FREE EDITION)
   ======================================== */
.btn-guest-donate {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: var(--patreon-font-stack, "ABC Oracle Plus Variable", sans-serif);
    letter-spacing: -0.01em;
    min-height: 40px;
    white-space: nowrap;

    /* Aqua Green Theme */
    background: rgba(45, 212, 191, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(45, 212, 191, 0.5);
}

.btn-guest-donate:hover {
    background: #3b82f6;
    color: #000;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
}

/* ========================================
   MODAL INFO TEXT
   ======================================== */
.modal-info-text {
    text-align: center;
    max-width: 800px;
    margin: 30px auto 0 auto;
    color: #a1a1aa;
}

.info-highlight {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e4e4e7;
    margin-bottom: 12px;
}

.info-secondary {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #71717a;
}

.simple-register-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.or-divider {
    font-size: 0.8rem;
    font-weight: 700;
    color: #52525b;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0 10px;
}

.or-divider::before,
.or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: #27272a;
}

.or-divider::before {
    right: 100%;
}

.or-divider::after {
    left: 100%;
}

.simple-register-link {
    color: #a1a1aa;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.simple-register-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* === TELEGRAM WIDGET (Global) === */
.telegram-section {
    padding: 0;
    overflow: hidden;
    border: none;
    background: none;
}

.telegram-widget {
    display: block;
    text-decoration: none;
}

.telegram-banner {
    background: linear-gradient(135deg, #0088cc 0%, #0099dd 50%, #00aaee 100%);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.telegram-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.telegram-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 136, 204, 0.35);
    color: #fff;
    text-decoration: none;
}

.telegram-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.telegram-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.telegram-label {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.telegram-name {
    font-size: 1.1rem;
    font-weight: 800;
}

.telegram-arrow {
    font-size: 0.8rem;
    opacity: 0.6;
    transition: transform 0.2s;
}

.telegram-banner:hover .telegram-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* === PROYECTOS ASOCIADOS WIDGET === */
.partner-projects-section {
    padding-bottom: 5px;
}

.partner-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.partner-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.partner-card:not(.disabled):hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.partner-card.disabled {
    opacity: 0.7;
    cursor: default;
}

/* Premium Partner Modifier */
.partner-card.premium {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(251, 191, 36, 0.25);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.05);
}

.partner-card.premium:hover {
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.15);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 1));
}

.partner-card.premium .partner-title,
.partner-card.premium .partner-arrow {
    color: #fbbf24;
}

.partner-card.premium .partner-subtitle {
    color: #fce68a;
}


.partner-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.partner-card:not(.disabled):hover .partner-icon {
    transform: scale(1.1);
}

.partner-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.partner-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 3px 0;
    line-height: 1.2;
}

.partner-subtitle {
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.3;
}

.partner-subtitle.coming-soon {
    color: #fbbf24;
    font-weight: 600;
}

.partner-arrow {
    color: #64748b;
    font-size: 0.8rem;
    transition: all 0.2s;
    opacity: 0.5;
}

.partner-card:not(.disabled):hover .partner-arrow {
    color: #a78bfa;
    opacity: 1;
    transform: translateX(3px);
}