/* ============================================
   LOADING AUTH STATE - Shown while checking auth
   ============================================ */

.loading-auth-state {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-auth-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   LOGIN STATE - Full page login screen
   ============================================ */

.login-state {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.login-content {
    padding: 40px 32px;
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(var(--glass-blur));
}

.login-logo {
    width: 72px;
    height: 72px;
    background: var(--gradient-gold);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #000;
}

.login-title {
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.login-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.login-google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
}

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

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

.login-google-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
}

.login-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.login-divider-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.login-feature-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.login-footer {
    padding: 20px;
    text-align: center;
}

.login-footer-text {
    font-size: 12px;
    color: var(--text-muted);
}

.login-footer-text a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.login-footer-text a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Login loading spinner */
.login-google-btn .loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
/* @keyframes spin is defined in variables.css */

/* ============================================
   TRANSCRIPTS VIEW - Filters
   ============================================ */

/* Simple Filters Bar */
.transcripts-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    position: relative;
    z-index: 100; /* Above cards grid so dropdowns are visible */
}

/* Decorative top gradient line */
.transcripts-controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), var(--gold-light), transparent);
    opacity: 0.7;
}

/* Search Row */
.search-filter-row {
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    height: 52px;
}

.search-box:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

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

.search-box:focus-within .search-icon {
    color: var(--accent-gold);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Filters Row */
.filters-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-label-icon {
    width: 14px;
    height: 14px;
    color: var(--accent-gold);
}

/* Premium Select Dropdown */
.filter-select {
    padding: 12px 40px 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23D4AF37' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    min-width: 160px;
    height: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.filter-select:hover {
    border-color: var(--border-gold);
    background-color: var(--bg-elevated);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filter-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px;
}

/* Inline Search Box (between Tag and Select button) */
.search-box-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    background: #1a1a1a; /* Solid dark background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    height: 48px;
    min-width: 200px;
    flex: 1;
    max-width: 320px;
}

.search-box-inline:focus-within {
    border-color: var(--accent-gold);
    background: #222222;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.search-box-inline .search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-box-inline:focus-within .search-icon {
    color: var(--accent-gold);
}

.search-box-inline .search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    min-width: 0;
}

.search-box-inline .search-input::placeholder {
    color: var(--text-muted);
}

/* Responsive pour transcripts-controls */
@media (max-width: 768px) {
    .transcripts-controls {
        padding: 16px;
        gap: 16px;
    }

    .search-box {
        height: 48px;
        padding: 12px 14px;
    }

    .filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .search-box-inline {
        max-width: 100%;
        width: 100%;
    }
}

/* ============================================
   ASSISTANT VIEW - Premium Chat
   ============================================ */

.assistant-container {
    display: flex;
    gap: 28px;
    height: calc(100vh - var(--topbar-height) - 64px);
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
}

.chat-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 16px;
}

.chat-ai-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-gold);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #000;
    box-shadow: var(--shadow-gold);
}

.chat-ai-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.chat-ai-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--accent-green);
}

.chat-ai-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
}

.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.message {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
}

.message-avatar.ai {
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 700;
    font-size: 16px;
}

.message-avatar.user {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
}

.message-content {
    flex: 1;
    max-width: 80%;
}

.message.user .message-content {
    margin-left: auto;
}

.message-bubble {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    font-size: 14px;
    line-height: 1.7;
}

.message.ai .message-bubble {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.message.user .message-bubble {
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    color: var(--text-primary);
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

.chat-input-area {
    padding: 20px 24px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.chat-input-wrapper {
    display: flex;
    gap: 14px;
    align-items: flex-end;
}

.chat-input-container {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 4px;
    transition: var(--transition-normal);
}

.chat-input-container:focus-within {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-gold);
}

.chat-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 14px;
    resize: none;
    outline: none;
    min-height: 50px;
    max-height: 150px;
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-input-actions {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid var(--glass-border);
}

.input-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.input-action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.chat-send-btn {
    width: 52px;
    height: 52px;
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--border-radius);
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-gold);
}

.chat-send-btn:hover {
    box-shadow: var(--shadow-gold-strong);
    transform: scale(1.05);
}

.chat-sidebar {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 20px;
}

.sidebar-card-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.context-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.context-item:hover {
    background: var(--bg-card-hover);
}

.context-thumb {
    width: 48px;
    height: 32px;
    border-radius: 6px;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.context-info {
    flex: 1;
    min-width: 0;
}

.context-title {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.context-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* Suggestion chips */
.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-chip {
    padding: 8px 14px;
    font-size: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.suggestion-chip:hover {
    background: var(--gold-dim);
    border-color: var(--border-gold);
    color: var(--accent-gold);
}

/* ============================================
   LIBRARY VIEW
   ============================================ */

.library-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 20px;
}

.btn-new-folder {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--gradient-gold);
    border: none;
    color: #000;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-gold);
    flex-shrink: 0;
}

.btn-new-folder:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-strong);
}

.folders-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Ultrawide (2560px+) - better folder distribution */
@media (min-width: 2560px) {
    .folders-grid-v2 {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 28px;
    }
}

/* Large desktop (1920px+) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .folders-grid-v2 {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 26px;
    }
}

.folder-card-v2 {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal),
                box-shadow var(--transition-normal),
                border-color var(--transition-normal);
}

.folder-card-v2 .folder-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.folder-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 10;
}

.folder-card-v2:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-gold);
    transform: translateY(-4px) scale(1.01);
}

.folder-card-v2:hover::before {
    opacity: 1;
}

.folder-card-v2:active {
    transform: translateY(-2px) scale(0.99);
    transition-duration: 0.1s;
}

.folder-card-v2:hover .folder-gradient-bg {
    opacity: 0.18;
}

.folder-header-v2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.folder-icon-v2 {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}

.folder-card-v2:hover .folder-icon-v2 {
    transform: scale(1.05);
}

.folder-icon-v2 svg {
    width: 24px;
    height: 24px;
    color: white;
}

.folder-info-v2 {
    flex: 1;
    min-width: 0;
}

.folder-name-v2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.02em;
}

.folder-meta-v2 {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.folder-meta-v2 svg {
    width: 14px;
    height: 14px;
}

.folder-menu-btn-v2 {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    flex-shrink: 0;
    opacity: 0;
}

.folder-card-v2:hover .folder-menu-btn-v2 {
    opacity: 1;
}

.folder-menu-btn-v2:hover {
    background: var(--gold-dim);
    border-color: var(--border-gold);
    color: var(--accent-gold);
    transform: scale(1.1);
}

.folder-desc-v2 {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.folder-footer-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.folder-tag-v2 {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: transform var(--transition-fast);
}

.folder-tag-v2.blue {
    background: rgba(0, 163, 255, 0.2);
    color: #00A3FF;
    border: 1px solid rgba(0, 163, 255, 0.4);
}

.folder-tag-v2.green {
    background: rgba(0, 210, 106, 0.2);
    color: #00D26A;
    border: 1px solid rgba(0, 210, 106, 0.4);
}

.folder-tag-v2.gold {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.folder-tag-v2.purple {
    background: rgba(155, 89, 182, 0.2);
    color: #9B59B6;
    border: 1px solid rgba(155, 89, 182, 0.4);
}

.folder-tag-v2.orange {
    background: rgba(255, 154, 31, 0.2);
    color: #FF9A1F;
    border: 1px solid rgba(255, 154, 31, 0.4);
}

.folder-tag-v2.red {
    background: rgba(255, 71, 87, 0.2);
    color: #FF4757;
    border: 1px solid rgba(255, 71, 87, 0.4);
}

.folder-tag-v2.cyan {
    background: rgba(34, 211, 238, 0.2);
    color: #22D3EE;
    border: 1px solid rgba(34, 211, 238, 0.4);
}

.folder-tag-v2.pink {
    background: rgba(255, 105, 180, 0.2);
    color: #FF69B4;
    border: 1px solid rgba(255, 105, 180, 0.4);
}

.folder-date-v2 {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   EMPTY STATE V2
   ============================================ */

.empty-state-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
}

.empty-state-v2-icon {
    width: 72px;
    height: 72px;
    background: var(--gold-dim);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.empty-state-v2-icon svg {
    width: 36px;
    height: 36px;
}

.empty-state-v2-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.empty-state-v2-desc {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 320px;
    margin: 0 0 24px;
    line-height: 1.5;
}

.empty-state-v2-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.empty-state-v2-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-strong);
}

/* ============================================
   LIBRARY VIEW V1 - Masonry Grid Design
   ============================================ */

/* Header V1 */
.library-header-v1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 24px;
}

.library-header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.library-stats-pills {
    display: flex;
    gap: 12px;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.stat-pill .stat-value {
    font-weight: 700;
    color: var(--accent-gold);
}

.btn-new-folder-v1 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.btn-new-folder-v1:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

/* Search Container */
.library-search-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.library-search-box {
    flex: 1;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    transition: border-color var(--transition-normal);
}

.library-search-box:focus-within {
    border-color: var(--border-gold);
}

.library-search-box svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.library-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.library-search-box input::placeholder {
    color: var(--text-muted);
}

/* View Toggle */
.library-view-toggle {
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-toggle-btn:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.view-toggle-btn.active {
    color: var(--accent-gold);
    background: var(--gold-dim);
}

/* Folders Grid V1 */
.folders-grid-v1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.folders-grid-v1.list {
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Folder Card V1 - Masonry Style */
.folder-card-v1 {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    animation: fadeInUp 0.4s ease-out forwards;
    opacity: 0;
}

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

.folder-card-v1:hover {
    transform: translateY(-4px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-md), 0 0 40px rgba(255, 215, 0, 0.08);
}

/* Gradient Header */
.folder-gradient-v1 {
    height: 80px;
    position: relative;
    overflow: hidden;
}

.folder-gradient-v1::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--folder-color, var(--accent-gold)) 0%, transparent 100%);
    opacity: 0.6;
}

.folder-gradient-v1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

/* Folder Icon - Floating */
.folder-icon-float {
    position: absolute;
    top: 40px;
    left: 20px;
    width: 56px;
    height: 56px;
    background: var(--bg-card, rgba(25, 25, 25, 0.9));
    border: 2px solid var(--folder-color, var(--accent-gold));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-md);
    z-index: 2;
    transition: transform var(--transition-normal);
}

.folder-card-v1:hover .folder-icon-float {
    transform: scale(1.05);
}

.folder-icon-float svg {
    width: 24px;
    height: 24px;
    color: white;
}

.folder-icon-float .folder-emoji {
    font-size: 24px;
    line-height: 1;
}

/* Card Content */
.folder-content-v1 {
    padding: 40px 20px 20px;
}

.folder-name-v1 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.folder-desc-v1 {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Folder Meta */
.folder-meta-v1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
}

.meta-left-v1 {
    display: flex;
    align-items: center;
    gap: 16px;
}

.meta-item-v1 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.meta-item-v1 svg {
    width: 14px;
    height: 14px;
}

.meta-item-v1 .meta-count {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Category Tag */
.category-tag-v1 {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Menu Button V1 */
.folder-menu-btn-v1 {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-fast);
    z-index: 3;
}

.folder-card-v1:hover .folder-menu-btn-v1 {
    opacity: 1;
}

.folder-menu-btn-v1:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Empty State V1 */
.empty-state-v1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    border-radius: var(--border-radius);
    text-align: center;
}

.empty-icon-v1 {
    width: 72px;
    height: 72px;
    background: var(--gold-dim);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-gold);
}

.empty-icon-v1 svg {
    width: 36px;
    height: 36px;
}

.empty-title-v1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-primary);
}

.empty-desc-v1 {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 360px;
    margin: 0 0 24px;
    line-height: 1.5;
}

.empty-action-v1 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.empty-action-v1:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

/* List View Mode */
.folders-grid-v1.list .folder-card-v1 {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.folders-grid-v1.list .folder-gradient-v1 {
    display: none;
}

.folders-grid-v1.list .folder-icon-float {
    position: relative;
    top: auto;
    left: auto;
    width: 48px;
    height: 48px;
    margin: 16px;
    flex-shrink: 0;
}

.folders-grid-v1.list .folder-content-v1 {
    flex: 1;
    padding: 16px 16px 16px 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.folders-grid-v1.list .folder-name-v1 {
    flex: 1;
    min-width: 150px;
    margin: 0;
}

.folders-grid-v1.list .folder-desc-v1 {
    display: none;
}

.folders-grid-v1.list .folder-meta-v1 {
    border-top: none;
    padding-top: 0;
    flex-shrink: 0;
}

.folders-grid-v1.list .folder-menu-btn-v1 {
    position: relative;
    top: auto;
    right: auto;
    margin: 16px;
    opacity: 0.6;
}

.folders-grid-v1.list .folder-card-v1:hover .folder-menu-btn-v1 {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .library-header-v1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .library-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .library-stats-pills {
        gap: 8px;
    }

    .stat-pill {
        padding: 6px 12px;
        font-size: 12px;
    }

    .library-search-container {
        flex-direction: column;
        align-items: stretch;
    }

    .library-search-box {
        max-width: none;
    }

    .library-view-toggle {
        align-self: flex-end;
    }

    .folders-grid-v1 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   WORK IN PROGRESS SECTIONS - Minimal & Sober
   ============================================ */

.wip-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 60px 20px;
    text-align: center;
}

.wip-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.wip-icon-wrapper svg {
    width: 36px;
    height: 36px;
    color: var(--text-muted);
    opacity: 0.6;
}

.wip-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.wip-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 360px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.wip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wip-badge svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* Legacy styles kept for compatibility */
.wip-icon {
    width: 16px;
    height: 16px;
}

.wip-hero {
    margin-bottom: 48px;
}

.wip-hero-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: var(--gradient-gold-soft);
    border: 2px solid var(--border-gold);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
}

.wip-hero-icon svg {
    width: 48px;
    height: 48px;
}

.wip-features {
    text-align: left;
    margin-bottom: 48px;
}

.wip-features-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-align: center;
}

.wip-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.wip-feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition-normal);
}

.wip-feature-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
}

.wip-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-dim);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.wip-feature-icon svg {
    width: 24px;
    height: 24px;
}

.wip-feature-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.wip-feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.wip-cta {
    padding: 32px;
    background: var(--gradient-gold-soft);
    border: 1px solid var(--border-gold);
    border-radius: var(--border-radius-lg);
}

.wip-cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.wip-notify-btn {
    padding: 14px 32px;
}

/* ============================================
   FAVORITES TAB CONTENT
   ============================================ */

.favorites-content {
    padding: 0;
}

.favorites-content .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.favorites-content .gold-card {
    max-width: 100%;
}

.favorites-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.favorites-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.favorites-count .count-number {
    font-size: clamp(24px, 2vw, 32px);
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.favorites-count .count-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: lowercase;
}

.filter-select-mini {
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all var(--transition-normal);
}

.filter-select-mini:hover {
    border-color: var(--border-gold);
}

.filter-select-mini:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* Favorites Grid */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Favorite Card */
.favorite-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-normal),
                box-shadow var(--transition-normal),
                border-color var(--transition-normal);
}

.favorite-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-gold);
}

.favorite-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.favorite-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.favorite-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.favorite-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-normal);
    z-index: 10;
}

.favorite-card:hover .favorite-remove-btn {
    opacity: 1;
    transform: scale(1);
}

.favorite-remove-btn:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.1) !important;
}

.favorite-remove-btn svg {
    width: 16px;
    height: 16px;
}

.favorite-play-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.favorite-card:hover .favorite-play-overlay {
    opacity: 1;
}

.favorite-play-btn {
    width: 52px;
    height: 52px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold-strong);
    transform: scale(0.8);
    transition: transform var(--transition-normal);
}

.favorite-card:hover .favorite-play-btn {
    transform: scale(1);
}

.favorite-play-btn svg {
    width: 22px;
    height: 22px;
    color: #000;
    margin-left: 2px;
}

.favorite-info {
    padding: 16px;
}

.favorite-channel {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.favorite-channel .channel-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.favorite-channel .channel-avatar.blue { background: linear-gradient(135deg, #00A3FF, #0088DD); }
.favorite-channel .channel-avatar.purple { background: linear-gradient(135deg, #9B59B6, #8E44AD); }
.favorite-channel .channel-avatar.green { background: linear-gradient(135deg, #00D26A, #00B359); }
.favorite-channel .channel-avatar.gold { background: linear-gradient(135deg, #FFE135, #FFD700); }
.favorite-channel .channel-avatar.orange { background: linear-gradient(135deg, #FF9A1F, #E67E00); }
.favorite-channel .channel-avatar.cyan { background: linear-gradient(135deg, #22D3EE, #0891B2); }

.favorite-channel span {
    font-size: 12px;
    color: var(--text-muted);
}

.favorite-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.favorite-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.favorite-date {
    font-size: 11px;
    color: var(--text-muted);
}

.favorite-tags {
    display: flex;
    gap: 6px;
}

.mini-tag {
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.mini-tag.education {
    background: rgba(0, 163, 255, 0.15);
    color: #00A3FF;
}

.mini-tag.tech {
    background: rgba(155, 89, 182, 0.15);
    color: #9B59B6;
}

.mini-tag.productivity {
    background: rgba(0, 210, 106, 0.15);
    color: #00D26A;
}

.mini-tag.design {
    background: rgba(34, 211, 238, 0.15);
    color: #22D3EE;
}

.mini-tag.business {
    background: rgba(255, 154, 31, 0.15);
    color: #FF9A1F;
}

/* Favorites Empty State */
.favorites-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

.favorites-empty .empty-icon {
    width: 80px;
    height: 80px;
    background: var(--gold-dim);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.favorites-empty .empty-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent-gold);
}

.favorites-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.favorites-empty p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 24px;
    max-width: 320px;
}

.favorites-empty .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.favorites-empty .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-strong);
}

.favorites-empty .btn .icon {
    width: 18px;
    height: 18px;
}

/* ============================================
   SETTINGS MODAL
   ============================================ */

.settings-page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.settings-page-message {
    text-align: center;
    color: var(--text-muted);
}

.settings-page-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: var(--gold-dim);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
}

.settings-modal {
    max-width: 772px;
    width: 90%;
}

.settings-body {
    display: flex;
    padding: 0 !important;
    /* Fixed height based on Preferences tab content - prevents size jumping between tabs */
    height: 580px;
}

.settings-modal .settings-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Custom scrollbar for settings content */
.settings-modal .settings-content::-webkit-scrollbar {
    width: 6px;
}

.settings-modal .settings-content::-webkit-scrollbar-track {
    background: transparent;
}

.settings-modal .settings-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.settings-modal .settings-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Responsive settings modal */
@media (min-width: 1200px) {
    .settings-modal {
        max-width: 820px;
    }
    .settings-body {
        height: 600px;
    }
}

@media (min-width: 1600px) {
    .settings-modal {
        max-width: 900px;
    }
    .settings-body {
        height: 620px;
    }
}

@media (min-width: 1920px) {
    .settings-modal {
        max-width: 950px;
    }
    .settings-body {
        height: 640px;
    }
}

/* Beta Badge */
.beta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--gradient-gold);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #000;
}

.settings-tabs {
    width: 140px;
    border-right: 1px solid var(--glass-border);
    padding: 12px 0;
    flex-shrink: 0;
}

.settings-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    text-align: left;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

.settings-tab.active {
    color: var(--accent-gold);
    border-left-color: var(--accent-gold);
    background: var(--gold-dim);
}

.settings-tab svg {
    flex-shrink: 0;
}

.settings-tab-panel {
    animation: fadeIn 0.2s ease;
}

.settings-profile-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.settings-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin: 0 auto 12px;
}

.settings-profile-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.settings-profile-email {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.subscription-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--gradient-gold);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #000;
}

.settings-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item-icon {
    width: 36px;
    height: 36px;
    background: var(--gold-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.settings-item-content {
    flex: 1;
    min-width: 0;
}

.settings-item-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.settings-item-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.settings-select {
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
}

.settings-select:hover {
    border-color: var(--border-gold);
}

.settings-toggle {
    position: relative;
    cursor: pointer;
}

.settings-toggle input {
    display: none;
}

.settings-toggle-track {
    display: block;
    width: 44px;
    height: 24px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    transition: background 0.2s;
}

.settings-toggle input:checked + .settings-toggle-track {
    background: var(--accent-gold);
}

.settings-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.settings-toggle input:checked + .settings-toggle-track .settings-toggle-thumb {
    transform: translateX(20px);
}

.subscription-info {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

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

.subscription-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.subscription-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid var(--glass-border);
}

.subscription-info-label {
    font-size: 13px;
    color: var(--text-muted);
}

.subscription-info-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Subscription Premium/Free States */
.subscription-info.premium {
    background: linear-gradient(135deg, rgba(255, 225, 53, 0.08), rgba(255, 215, 0, 0.08));
    border-color: var(--border-gold);
}

.subscription-info.free {
    background: var(--glass-bg);
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--gradient-gold);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #000;
}

.premium-badge svg {
    width: 12px;
    height: 12px;
}

.free-badge {
    padding: 4px 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.subscription-actions {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
}

.btn-gold {
    background: var(--gradient-gold) !important;
    color: #000 !important;
    border: none !important;
}

.btn-gold:hover {
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
    transform: translateY(-1px);
}

/* Premium Features Preview */
.premium-features-preview {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.premium-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.premium-feature svg {
    color: var(--accent-green);
    flex-shrink: 0;
}

.settings-danger-zone {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.settings-section-title.danger {
    color: var(--accent-red);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.settings-danger-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid var(--accent-red);
    border-radius: 8px;
    color: var(--accent-red);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-danger-btn:hover {
    background: rgba(255, 71, 87, 0.1);
}

.settings-danger-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.settings-about-header {
    text-align: center;
    margin-bottom: 24px;
}

.settings-about-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.settings-about-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.settings-about-version {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.settings-links {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.settings-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.settings-link:hover {
    color: var(--accent-gold);
}

.settings-link svg {
    width: 18px;
    height: 18px;
}

.settings-about-footer {
    margin-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* ============================================
   FORMATS VIEW - List & Cards
   ============================================ */

.formats-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
}

/* Format Card V1 - Horizontal with WPM Bar */
.format-card-v1 {
    display: flex;
    align-items: stretch;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.format-card-v1:hover {
    border-color: var(--accent-gold);
    transform: translateX(4px);
}

.format-card-v1 .card-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    background: var(--gold-dim);
    flex-shrink: 0;
}

.format-card-v1 .card-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.format-card-v1 .card-body {
    flex: 1;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.format-card-v1 .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.format-card-v1 .card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.format-card-v1 .card-actions {
    display: flex;
    gap: 2px;
}

.format-card-v1 .card-params {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.format-card-v1 .param {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.format-card-v1 .param-icon {
    font-size: 10px;
}

.format-card-v1 .wpm-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.format-card-v1 .wpm-track {
    flex: 1;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.format-card-v1 .wpm-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.format-card-v1 .wpm-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-gold);
    min-width: 50px;
    text-align: right;
}

.format-card-v1 .btn-icon {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.format-card-v1 .btn-icon:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.format-card-v1 .btn-icon.delete:hover {
    background: rgba(229, 57, 53, 0.15);
    color: #E53935;
}

/* ============================================
   FORMAT EDITOR - Two Column + Live Preview
   ============================================ */

.format-editor-view {
    max-width: 1260px;
    margin: 0 auto;
}

.fe-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 20px;
}

.fe-back-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-gold);
    color: var(--text-primary);
}

.fe-container {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 26px;
}

.fe-config-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.fe-panel-header {
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--gold-dim), transparent);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 16px;
}

.fe-panel-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fe-panel-icon svg {
    width: 24px;
    height: 24px;
    color: #000;
}

.fe-format-name {
    flex: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
}

.fe-format-name::placeholder {
    color: var(--text-muted);
}

.fe-panel-body {
    padding: 28px;
}

.fe-config-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.fe-config-block {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 20px;
}

.fe-config-block.fe-full {
    grid-column: 1 / -1;
}

.fe-block-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fe-block-title svg {
    width: 16px;
    height: 16px;
    color: var(--accent-gold);
}

.fe-choice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fe-choice-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.fe-choice-item:hover {
    border-color: var(--border-gold);
}

.fe-choice-item.selected {
    border-color: var(--accent-gold);
    background: var(--gold-dim);
}

.fe-choice-emoji {
    font-size: 20px;
}

.fe-choice-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.fe-choice-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fe-choice-item.selected .fe-choice-check {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.fe-choice-item.selected .fe-choice-check svg {
    color: #000;
}

/* Content Type Grid */
.fe-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.fe-content-item {
    padding: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fe-content-item:hover {
    border-color: var(--border-gold);
}

.fe-content-item.selected {
    border-color: var(--accent-gold);
    background: var(--gold-dim);
}

.fe-content-item span {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
}

.fe-content-item small {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Density */
.fe-density-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.fe-density-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-gold);
}

.fe-density-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: var(--bg-tertiary);
    border-radius: 3px;
    cursor: pointer;
    outline: none;
}

.fe-density-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 12px var(--gold-glow);
}

.fe-estimates-row {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.fe-est-item {
    text-align: center;
}

.fe-est-dur {
    font-size: 11px;
    color: var(--text-muted);
}

.fe-est-val {
    font-size: 14px;
    font-weight: 600;
}

.fe-panel-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.fe-btn {
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fe-btn-ghost {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.fe-btn-ghost:hover {
    border-color: var(--border-gold);
    color: var(--text-primary);
}

.fe-btn-primary {
    background: var(--gradient-gold);
    border: none;
    color: #000;
}

.fe-btn-primary:hover {
    box-shadow: 0 4px 20px var(--gold-glow);
}

/* Preview Panel */
.fe-preview-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.fe-preview-header {
    padding: 24px 29px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fe-preview-title {
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 9px;
}

.fe-preview-title svg {
    color: var(--accent-gold);
    width: 18px;
    height: 18px;
}

.fe-preview-live {
    padding: 5px 11px;
    background: var(--gold-dim);
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 600;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fe-preview-live::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.fe-preview-body {
    padding: 29px;
    flex: 1;
}

.fe-preview-content {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 29px;
}

.fe-preview-content h4 {
    color: var(--accent-gold);
    font-size: 18px;
    margin-bottom: 14px;
}

.fe-preview-content ul,
.fe-preview-content ol {
    margin-left: 22px;
}

.fe-preview-content li {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.fe-preview-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Preview section and badge (from Hub V1) */
.fe-preview-section {
    margin-bottom: 16px;
}

.fe-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.fe-preview-intro {
    color: var(--text-secondary);
    font-size: 14px;
    font-style: italic;
    margin-bottom: 12px;
    opacity: 0.9;
}

.fe-preview-content code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    color: var(--accent-gold);
}

.fe-preview-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.fe-preview-footer {
    padding: 20px 29px;
    border-top: 1px solid var(--glass-border);
}

.fe-config-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.fe-config-tag {
    padding: 7px 14px;
    background: var(--bg-secondary);
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================
   FORMAT PREVIEW - Content Type Specific Styles
   ============================================ */

/* Focus Reader divider */
.fe-chapter-divider {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 16px 0;
}

.fe-focus-section {
    margin-bottom: 12px;
}

.fe-mark {
    background: linear-gradient(135deg, rgba(255, 200, 100, 0.3) 0%, rgba(255, 170, 70, 0.25) 100%);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Tutorial Preview Styles */
.fe-tutorial-preview {
    font-size: 14px;
}

.fe-meta-line {
    font-size: 12px;
    color: var(--text-muted);
    margin: 8px 0 16px;
}

.fe-prereqs-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 12px 0;
}

.fe-prereqs-box .fe-prereqs-header {
    padding: 10px 14px;
    background: rgba(59, 130, 246, 0.1);
    font-weight: 600;
    font-size: 13px;
    color: #60A5FA;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.fe-prereqs-box ul {
    margin: 0;
    padding: 12px 14px 12px 32px;
}

.fe-prereqs-box li {
    font-size: 13px;
    margin-bottom: 4px;
}

.fe-demo-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    margin: 10px 0;
    font-size: 13px;
}

.fe-demo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
    color: white;
    border-radius: 8px;
    font-size: 11px;
}

.fe-demo-time {
    font-family: 'Monaco', monospace;
    font-weight: 600;
    color: #60A5FA;
    background: rgba(59, 130, 246, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.fe-code-box {
    background: #0D1117;
    border-radius: 10px;
    border: 1px solid rgba(48, 54, 61, 0.8);
    overflow: hidden;
    margin: 10px 0;
}

.fe-code-box .fe-code-header {
    padding: 8px 12px;
    background: rgba(22, 27, 34, 0.8);
    border-bottom: 1px solid rgba(48, 54, 61, 0.6);
}

.fe-code-box .fe-code-lang {
    font-family: 'Monaco', monospace;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8B949E;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fe-code-box .fe-code-lang::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #3FB950;
    border-radius: 50%;
}

.fe-code-box pre {
    margin: 0;
    padding: 12px 14px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    color: #C9D1D9;
    overflow-x: auto;
}

.fe-tip-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-left: 3px solid #22C55E;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 13px;
}

.fe-warning-box {
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(234, 88, 12, 0.04) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-left: 3px solid #F59E0B;
    border-radius: 8px;
    margin: 10px 0;
}

.fe-warning-box .fe-warning-header {
    font-weight: 600;
    color: #FBBF24;
    font-size: 13px;
    margin-bottom: 6px;
}

.fe-warning-box p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Educational Preview Styles */
.fe-definition-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(124, 58, 237, 0.04) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-left: 3px solid #8B5CF6;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 12px 0;
}

.fe-definition-box .fe-def-term {
    font-weight: 700;
    color: #A78BFA;
    font-size: 14px;
    margin-bottom: 6px;
}

.fe-definition-box p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.fe-concept-box {
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 12px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Entertainment Preview Styles */
.fe-quote-box {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, rgba(219, 39, 119, 0.04) 100%);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-left: 3px solid #EC4899;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 12px 0;
}

.fe-quote-box .fe-quote-text {
    font-style: italic;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.fe-quote-box .fe-quote-author {
    font-size: 12px;
    color: #F472B6;
    font-weight: 500;
}

.fe-moment-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(236, 72, 153, 0.06);
    border: 1px solid rgba(236, 72, 153, 0.15);
    border-radius: 8px;
    margin: 10px 0;
    font-size: 13px;
}

.fe-moment-icon {
    font-size: 16px;
}

.fe-hottake-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.04) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    margin: 10px 0;
    font-size: 13px;
    color: var(--text-primary);
}

/* Format Editor Responsive */
@media (max-width: 1200px) {
    .fe-container {
        grid-template-columns: 1fr;
    }

    .fe-preview-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .fe-config-grid {
        grid-template-columns: 1fr;
    }

    .fe-content-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .format-card-v1 .card-left {
        width: 56px;
    }

    .format-card-v1 .card-icon {
        width: 36px;
        height: 36px;
    }

    .format-card-v1 .card-body {
        padding: 14px 16px;
    }

    .format-card-v1 .card-title {
        font-size: 15px;
    }
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header .page-title {
    font-size: 32px;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.form-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 28px;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.category-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.category-pill svg {
    width: 16px;
    height: 16px;
}

.category-pill:hover {
    color: var(--text-primary);
    border-color: var(--border-gold);
}

.category-pill.active {
    background: var(--gold-dim);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s;
}

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

.form-input::placeholder {
    color: var(--text-muted);
}

.textarea-wrapper {
    position: relative;
}

.form-textarea {
    width: 100%;
    min-height: 160px;
    padding: 14px 16px;
    padding-bottom: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

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

.form-textarea::placeholder {
    color: var(--text-muted);
}

.char-counter {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.char-counter.over-limit {
    color: var(--accent-red);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-strong);
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: border-color 0.2s;
}

.contact-card:hover {
    border-color: var(--border-gold);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    background: var(--gold-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
}

.contact-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-card-value {
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-card-value a {
    color: var(--accent-gold);
    text-decoration: none;
}

.contact-card-value a:hover {
    text-decoration: underline;
}


@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        order: -1;
    }

    .settings-body {
        flex-direction: column;
    }

    .settings-tabs {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        display: flex;
        overflow-x: auto;
    }

    .settings-tab {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }

    .settings-tab.active {
        border-left-color: transparent;
        border-bottom-color: var(--accent-gold);
    }
}

/* ============================================
   CUSTOM DROPDOWN COMPONENT
   Premium styled dropdown to replace native select
   ============================================ */

.custom-dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.custom-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    min-width: 160px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.custom-dropdown-trigger:hover {
    border-color: var(--border-gold);
    background: #222222;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.custom-dropdown-trigger:active {
    transform: translateY(0) scale(0.99);
}

.custom-dropdown.open .custom-dropdown-trigger {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Active filter indicator - golden glow when filter is not default */
.custom-dropdown.has-active-filter .custom-dropdown-trigger {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.08);
}

.custom-dropdown.has-active-filter .custom-dropdown-trigger::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-gold);
}

.custom-dropdown-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-dropdown-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--transition-normal);
}

.custom-dropdown.open .custom-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--accent-gold);
}

/* Dropdown Menu */
.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 100%;
    max-width: 320px;
    background: #1a1a1a; /* Solid dark background */
    border: 1px solid var(--border-gold);
    border-radius: var(--border-radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 175, 55, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    overflow: hidden;
}

.custom-dropdown.open .custom-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Open upward */
.custom-dropdown.open-up .custom-dropdown-menu {
    top: auto;
    bottom: calc(100% + 8px);
}

.custom-dropdown-scroll {
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
}

/* Scrollbar styling */
.custom-dropdown-scroll::-webkit-scrollbar {
    width: 6px;
}

.custom-dropdown-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-dropdown-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.custom-dropdown-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--border-gold);
}

/* Dropdown Items */
.custom-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.custom-dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-gold);
    transform: scaleY(0);
    transition: transform var(--transition-fast);
}

.custom-dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    padding-left: 16px;
}

.custom-dropdown-item:hover::before {
    transform: scaleY(1);
}

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

.custom-dropdown-item.selected {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    font-weight: 500;
    padding-left: 16px;
}

.custom-dropdown-item.selected::before {
    transform: scaleY(1);
}

.custom-dropdown-item-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.custom-dropdown-item.selected .custom-dropdown-item-icon {
    color: var(--accent-gold);
}

.custom-dropdown-item-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-dropdown-check {
    flex-shrink: 0;
    color: var(--accent-gold);
    margin-left: auto;
}

/* Category dividers (optional) */
.custom-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 12px;
}

.custom-dropdown-heading {
    padding: 8px 12px 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .custom-dropdown-trigger {
        min-width: 100%;
        padding: 14px 16px;
    }

    .custom-dropdown-menu {
        min-width: 100%;
        max-width: none;
    }
}

/* ============================================
   LIBRARY VIEW - Folders & Organization
   (Merged from library.css)
   ============================================ */

/* ===== FOLDER SECTIONS SYSTEM ===== */
.library-folders-area {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.folder-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.folder-section .section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

.section-line {
    flex: 1;
    height: 2px;
    border-radius: 2px;
    opacity: 0.6;
}

.section-name {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.section-name:hover {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
}

.section-folders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    min-height: 60px;
    padding: 8px;
    margin: -8px;
    border-radius: var(--border-radius);
}

/* ===== FOLDER CARD - Physical Design ===== */
.folder-card-new {
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    user-select: none;
}

/* Physical folder tab (protruding top-left) */
.folder-physical-tab {
    position: relative;
    width: 45%;
    height: 28px;
    margin-left: 12px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.folder-tab-label {
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 8px;
}

/* Physical folder body */
.folder-physical-body {
    position: relative;
    background: var(--glass-bg);
    border: 2px solid var(--folder-color, var(--accent-gold));
    border-radius: 8px;
    margin-top: -2px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    z-index: 1;
}

.folder-content-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Top row with icon and menu button */
.folder-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Folder icon */
.folder-icon-new {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.folder-icon-new svg {
    width: 20px;
    height: 20px;
}

.folder-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.folder-card-new .folder-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
}

/* Channel avatars row */
.folder-avatars {
    display: flex;
    align-items: center;
}

.folder-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--glass-bg);
    object-fit: cover;
    margin-left: -6px;
}

.folder-avatar:first-child {
    margin-left: 0;
}

.folder-avatar-more {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--glass-bg-hover);
    border: 2px solid var(--glass-bg);
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -6px;
}

/* Menu button */
.folder-menu-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    opacity: 0;
}

.folder-card-new:hover .folder-menu-btn {
    opacity: 1;
}

.folder-menu-btn:hover {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
}

/* Footer with badge */
.folder-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8px;
    border-top: 1px solid var(--glass-border);
}

.folder-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--glass-bg-hover);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.folder-badge svg {
    color: var(--text-muted);
}

/* Hover effects */
.folder-card-new:hover .folder-physical-body {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.folder-card-new:hover .folder-physical-tab {
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

.folder-card-new:hover .folder-icon-new {
    transform: scale(1.05);
}

.folder-card-new:active .folder-physical-body {
    transform: translateY(0);
    transition: all 0.1s ease;
}

/* ===== FOLDER DETAIL VIEW ===== */
.folder-detail-section {
    min-height: calc(100vh - 160px);
    padding: 1.5rem 0 3rem 0;
    max-width: 100%;
    margin: 0;
}

.folder-detail-header-v2 {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.5rem;
}

.btn-back-minimal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-back-minimal:hover {
    background: var(--accent-gold);
    color: white;
    border-color: var(--accent-gold);
}

.folder-info-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.folder-icon-large {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 154, 31, 0.15), rgba(242, 140, 12, 0.15));
    border-radius: 12px;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.folder-text {
    min-width: 0;
}

.folder-text h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folder-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.folder-actions-compact {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-icon-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-icon-action:hover {
    background: var(--accent-gold);
    color: white;
    border-color: var(--accent-gold);
}

.btn-icon-action.danger:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

/* ===== ADD SECTION BUTTON ===== */
.btn-add-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border: 2px dashed var(--glass-border);
    border-radius: var(--border-radius);
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-add-section:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(255, 154, 31, 0.05);
}

/* ===== EMPTY STATES ===== */
.empty-folder-state {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-secondary);
}

.empty-folder-state .empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-folder-state h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-folder-state p {
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 11000;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 280px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

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

.toast svg {
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.toast-close {
    background: none;
    border: none;
    padding: 4px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.toast-close:hover {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
}

/* Toast Types */
.toast-success svg { color: #10B981; }
.toast-error svg { color: var(--accent-red); }
.toast-warning svg { color: #F59E0B; }
.toast-info svg { color: #3B82F6; }

.toast-success { border-left: 3px solid #10B981; }
.toast-error { border-left: 3px solid var(--accent-red); }
.toast-warning { border-left: 3px solid #F59E0B; }
.toast-info { border-left: 3px solid #3B82F6; }

/* Library Responsive */
@media (max-width: 768px) {
    .section-folders {
        grid-template-columns: 1fr;
    }

    .folder-detail-header-v2 {
        flex-wrap: wrap;
    }

    .folder-actions-compact {
        width: 100%;
        justify-content: flex-end;
    }

    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}

/* ============================================
   FOLDER DETAIL VIEW
   ============================================ */

.folder-detail-view {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.folder-detail-header {
    display: flex;
    align-items: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.back-btn svg {
    opacity: 0.7;
}

/* Folder Info Card */
.folder-info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    position: relative;
    overflow: hidden;
}

.folder-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--folder-color, var(--gradient-gold));
}

.folder-info-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.folder-info-content {
    flex: 1;
    min-width: 0;
}

.folder-info-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.folder-info-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.folder-info-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.folder-info-count {
    display: flex;
    align-items: center;
    gap: 6px;
}

.folder-info-count svg {
    opacity: 0.6;
}

.folder-info-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-icon.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

/* Folder Transcripts Section */
.folder-transcripts-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.folder-transcripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

/* Folder Transcript Card */
.folder-transcript-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.folder-transcript-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.folder-transcript-thumb {
    width: 120px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--bg-tertiary);
}

.folder-transcript-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.folder-transcript-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: white;
}

.folder-transcript-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.folder-transcript-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.folder-transcript-channel {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.folder-transcript-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.folder-transcript-tag {
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    color: var(--text-secondary);
    font-weight: 500;
}

.folder-transcript-date {
    color: var(--text-muted);
}

.folder-transcript-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
}

.folder-transcript-card:hover .folder-transcript-remove {
    opacity: 1;
}

.folder-transcript-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

/* Responsive */
@media (max-width: 768px) {
    .folder-info-card {
        flex-direction: column;
        text-align: center;
    }

    .folder-info-icon {
        margin: 0 auto;
    }

    .folder-info-meta {
        justify-content: center;
    }

    .folder-info-actions {
        justify-content: center;
    }

    .folder-transcripts-grid {
        grid-template-columns: 1fr;
    }

    .folder-transcript-card {
        flex-direction: column;
    }

    .folder-transcript-thumb {
        width: 100%;
        height: 160px;
    }
}

/* ============================================
   SSE REAL-TIME CARD ANIMATIONS
   ============================================ */

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-entering {
    animation: cardEnter 0.4s ease-out forwards;
}

/* ============================================
   PRICING VIEW
   ============================================ */

.pricing-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 20px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 16px;
}

.pricing-title {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: clamp(24px, 3vw, 28px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.pricing-subtitle {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 12px;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

/* Billing Toggle */
.pricing-toggle-container {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.pricing-toggle {
    display: inline-flex;
    background: var(--bg-tertiary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 4px;
    gap: 4px;
    box-shadow: var(--shadow-sm), var(--shadow-inset);
}

.pricing-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 26px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.pricing-toggle-btn:hover {
    color: var(--text-primary);
}

.pricing-toggle-btn.active {
    background: var(--gradient-gold);
    color: #000;
    font-weight: 600;
}

.pricing-toggle-btn:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Billing Info */
.pricing-billing-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    min-height: 36px;
}

.pricing-billing-period {
    font-size: 13px;
    color: var(--text-muted);
}

.pricing-billing-total {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-gold);
}

/* Plans Grid */
.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

/* Pricing Card */
.pricing-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal),
                border-color var(--transition-normal),
                box-shadow var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pricing-card.premium {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.06) 0%, rgba(255, 140, 0, 0.04) 100%);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-sm), var(--shadow-gold);
}

.pricing-card.premium:hover {
    box-shadow: var(--shadow-md), var(--shadow-gold-strong), 0 0 60px rgba(255, 215, 0, 0.03);
    border-color: rgba(255, 215, 0, 0.4);
}

.pricing-card-ribbon {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
    animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 4px 24px rgba(255, 215, 0, 0.5); }
}

.pricing-card-header {
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 12px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.pricing-card-badge.starter {
    background: linear-gradient(135deg, rgba(232, 197, 71, 0.15) 0%, rgba(212, 169, 48, 0.15) 100%);
    color: #E8C547;
}

.pricing-card-badge.premium {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 140, 0, 0.15) 100%);
    color: var(--accent-gold);
}

.pricing-card-name {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.pricing-card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.pricing-price-original {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.pricing-price-amount {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.pricing-card.premium .pricing-price-amount {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-price-period {
    font-size: 16px;
    color: var(--text-muted);
}

.pricing-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Features List */
.pricing-card-features {
    flex: 1;
    margin-bottom: 12px;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.pricing-feature:hover {
    color: var(--text-primary);
    transform: translateX(2px);
}

.pricing-feature svg {
    flex-shrink: 0;
    color: var(--accent-green);
    transition: transform var(--transition-fast);
}

.pricing-feature:hover svg {
    transform: scale(1.1);
}

.pricing-feature.disabled {
    opacity: 0.5;
}

.pricing-feature.disabled:hover {
    color: var(--text-secondary);
    transform: none;
}

.pricing-feature.disabled svg {
    color: var(--text-muted);
}

.pricing-feature.disabled:hover svg {
    transform: none;
}

/* Card Footer */
.pricing-card-footer {
    text-align: center;
}

.pricing-quota-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
}

.pricing-quota-count {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-quota-label {
    font-size: 12px;
    color: var(--text-muted);
}

.pricing-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: var(--gradient-gold);
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal),
                box-shadow var(--transition-normal),
                filter var(--transition-normal);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
}

/* Shimmer effect on Pro CTA */
.pricing-card.premium .pricing-cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.pricing-card.premium .pricing-cta-btn:hover::after {
    left: 100%;
}

.pricing-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
    filter: brightness(1.05);
}

.pricing-cta-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.pricing-cta-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.pricing-cta-btn:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.pricing-cta-btn.starter {
    background: linear-gradient(135deg, #F0D860 0%, #E8C547 50%, #D4A930 100%);
    color: #000;
}

.pricing-cta-btn.starter:hover {
    box-shadow: 0 8px 24px rgba(232, 197, 71, 0.3);
}

.pricing-card.starter {
    border-color: rgba(232, 197, 71, 0.15);
}

.pricing-card.starter:hover {
    border-color: rgba(232, 197, 71, 0.3);
    box-shadow: var(--shadow-md), 0 0 20px rgba(232, 197, 71, 0.08);
}

/* Loading State */
.pricing-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 16px;
}

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

/* Price Animation */
.pricing-price-amount {
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.pricing-price-amount.price-changing {
    opacity: 0;
    transform: translateY(-10px);
}

.pricing-guarantee {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}


/* Premium State */
.pricing-premium-state {
    text-align: center;
    padding: 60px 20px;
}

.pricing-premium-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 140, 0, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--accent-gold);
}

.pricing-premium-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.pricing-premium-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 32px;
}

.pricing-premium-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Page Entry Animation */
.pricing-animate-in {
    animation: pricingFadeIn 0.6s ease-out;
}

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

/* Card Entry Animation */
.pricing-card-animate {
    opacity: 0;
    animation: pricingCardSlideIn 0.5s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes pricingCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header Badge */
.pricing-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 140, 0, 0.15) 100%);
    border: 1px solid var(--border-gold);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.pricing-header-badge svg {
    color: var(--accent-gold);
}

/* Savings Badge (outside toggle) */
.pricing-savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    background: rgba(0, 210, 106, 0.1);
    border: 1px solid rgba(0, 210, 106, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-green);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pricing-savings-badge svg {
    color: var(--accent-green);
}

.pricing-savings-badge.hidden {
    opacity: 0;
    transform: translateY(-5px);
    pointer-events: none;
}

/* Toggle Slider */
.pricing-toggle {
    position: relative;
}

.pricing-toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--gradient-gold);
    border-radius: 26px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.25);
}

.pricing-toggle-slider[data-position="right"] {
    transform: translateX(calc(100% + 4px));
}

.pricing-toggle-slider[data-position="left"] {
    transform: translateX(0);
}

.pricing-toggle-btn {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

.pricing-toggle-btn.active {
    background: transparent !important;
    color: #000;
}

/* Main Layout: Centered Cards */
.pricing-main-layout {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

/* Plans Grid */
.pricing-main-layout .pricing-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 960px;
}

/* Social Proof Section */
.pricing-social-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.pricing-social-proof {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 140, 0, 0.04) 100%);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 30px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pricing-social-stars {
    display: flex;
    gap: 3px;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4));
}

.pricing-social-stars svg {
    transition: transform var(--transition-fast);
}

.pricing-social-proof:hover .pricing-social-stars svg {
    animation: starPulse 0.4s ease-in-out;
}

.pricing-social-proof:hover .pricing-social-stars svg:nth-child(1) { animation-delay: 0s; }
.pricing-social-proof:hover .pricing-social-stars svg:nth-child(2) { animation-delay: 0.05s; }
.pricing-social-proof:hover .pricing-social-stars svg:nth-child(3) { animation-delay: 0.1s; }
.pricing-social-proof:hover .pricing-social-stars svg:nth-child(4) { animation-delay: 0.15s; }
.pricing-social-proof:hover .pricing-social-stars svg:nth-child(5) { animation-delay: 0.2s; }

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

.pricing-social-text {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.pricing-social-proof:hover .pricing-social-text {
    color: var(--accent-gold);
}

/* Trust Badges Section */
.pricing-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-top: 1px solid var(--glass-border);
}

.pricing-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.pricing-trust-item svg {
    color: var(--accent-green);
    flex-shrink: 0;
}

.pricing-trust-item:hover {
    color: var(--text-primary);
}

/* Card Glow Effect - Subtle */
.pricing-card-glow {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.1));
    border-radius: calc(var(--border-radius-lg) + 1px);
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pricing-card.premium:hover .pricing-card-glow {
    opacity: 0.6;
}

/* Highlighted Feature */
.pricing-feature.highlight {
    color: var(--text-primary);
    font-weight: 500;
}

.pricing-feature.highlight svg {
    color: var(--accent-gold);
}

/* Card Body for flex alignment */
.pricing-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-card-features {
    flex: 1;
    margin-bottom: 24px;
}

/* Billing Info Transition */
.pricing-billing-info {
    transition: opacity 0.15s ease;
}

/* Ribbon Transition */
.pricing-card-ribbon {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Guarantee with icon alignment */
.pricing-guarantee {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pricing-guarantee svg {
    color: var(--accent-green);
}

/* Premium card relative for glow */
.pricing-card.premium {
    position: relative;
    overflow: visible;
}

/* Responsive height - fit content without scroll on desktop */
@media (min-width: 769px) and (max-height: 800px) {
    .pricing-page {
        padding: 10px 20px;
    }

    .pricing-header {
        margin-bottom: 10px;
    }

    .pricing-title {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .pricing-subtitle {
        font-size: 13px;
        margin: 0 auto 8px;
    }

    .pricing-card {
        padding: 14px;
    }

    .pricing-card-header {
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .pricing-card-name {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .pricing-price-amount {
        font-size: 28px;
    }

    .pricing-feature {
        padding: 4px 0;
        font-size: 12px;
    }

    .pricing-card-features {
        margin-bottom: 8px;
    }

    .pricing-main-layout {
        margin-bottom: 10px;
    }

    .pricing-trust {
        padding: 10px 0;
    }

    .pricing-cta-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .pricing-quota-info {
        padding: 8px;
    }
}

@media (min-width: 769px) and (max-height: 700px) {
    .pricing-page {
        padding: 6px 20px;
    }

    .pricing-header {
        margin-bottom: 6px;
    }

    .pricing-title {
        font-size: 20px;
    }

    .pricing-subtitle {
        font-size: 12px;
        margin: 0 auto 6px;
    }

    .pricing-savings-badge {
        padding: 4px 10px;
        font-size: 11px;
        margin-top: 6px;
    }

    .pricing-card {
        padding: 10px;
    }

    .pricing-card-header {
        padding-bottom: 6px;
        margin-bottom: 6px;
    }

    .pricing-card-badge {
        padding: 2px 8px;
        margin-bottom: 4px;
        font-size: 10px;
    }

    .pricing-card-name {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .pricing-price-amount {
        font-size: 24px;
    }

    .pricing-feature {
        padding: 3px 0;
        font-size: 11px;
    }

    .pricing-feature svg {
        width: 14px;
        height: 14px;
    }

    .pricing-card-features {
        margin-bottom: 6px;
    }

    .pricing-main-layout {
        margin-bottom: 6px;
    }

    .pricing-main-layout .pricing-plans {
        gap: 16px;
    }

    .pricing-trust {
        padding: 8px 0;
        gap: 16px;
    }

    .pricing-trust-item {
        font-size: 12px;
    }

    .pricing-cta-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .pricing-guarantee {
        font-size: 10px;
        margin-top: 4px;
    }

    .pricing-quota-info {
        padding: 6px;
    }

    .pricing-quota-count {
        font-size: 13px;
    }

    .pricing-quota-label {
        font-size: 11px;
    }
}

/* Responsive width - tablet/mobile */
@media (max-width: 768px) {
    .pricing-page {
        padding: 24px 16px;
    }

    .pricing-main-layout .pricing-plans {
        grid-template-columns: 1fr;
    }

    .pricing-trust {
        gap: 20px;
    }

    .pricing-trust-item {
        font-size: 13px;
    }
}

/* ============================================
   PAYMENT RESULT PAGES (Success & Cancelled)
   ============================================ */

.payment-result-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.payment-result-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.payment-result-card.success {
    border-color: rgba(46, 204, 113, 0.3);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, rgba(46, 204, 113, 0.02) 100%);
}

.payment-result-card.cancelled {
    border-color: rgba(231, 76, 60, 0.3);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, rgba(231, 76, 60, 0.02) 100%);
}

/* Success Checkmark Animation */
.payment-result-icon {
    margin-bottom: 24px;
}

.payment-result-icon.success {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.payment-result-icon.cancelled {
    color: #e74c3c;
    margin-bottom: 24px;
}

.payment-result-icon.cancelled svg {
    width: 64px;
    height: 64px;
}

/* Checkmark SVG Animation */
.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #2ecc71;
    stroke-miterlimit: 10;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #2ecc71;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0 0 0 40px rgba(46, 204, 113, 0.1);
    }
}

.payment-result-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.payment-result-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.payment-result-message {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.payment-result-details {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 20px 24px;
    margin-bottom: 32px;
}

.payment-result-details .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.payment-result-details .detail-row:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.payment-result-details .detail-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.payment-result-details .detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-result-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-result-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.payment-result-actions .btn-primary {
    background: var(--gradient-gold);
    color: #000;
    border: none;
}

.payment-result-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.payment-result-actions .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.payment-result-actions .btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
}

.payment-result-actions .btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* ============================================
   SUBSCRIPTION CARD (Settings Account Tab)
   ============================================ */

.subscription-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.subscription-card.premium {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.06) 0%, rgba(255, 140, 0, 0.04) 100%);
    border-color: var(--border-gold);
}

.subscription-card.free {
    background: var(--bg-tertiary);
}

.subscription-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.subscription-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.subscription-status .plan-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.subscription-info-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.subscription-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
}

.subscription-info-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.subscription-info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.subscription-helper {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.5;
}

.subscription-error {
    text-align: center;
    padding: 20px;
}

.subscription-error p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.status-badge.active {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-badge.cancelling {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.status-badge.free {
    background: rgba(149, 165, 166, 0.15);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* Button in subscription card */
.subscription-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: 16px;
    width: 100%;
}

.subscription-card .btn-gold {
    background: var(--gradient-gold);
    color: #000;
    border: none;
}

.subscription-card .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.subscription-card .btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.subscription-card .btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-gold);
}

/* Responsive */
@media (max-width: 768px) {
    .payment-result-container {
        padding: 24px 16px;
        min-height: calc(100vh - 150px);
    }

    .payment-result-card {
        padding: 32px 24px;
    }

    .payment-result-title {
        font-size: 24px;
    }

    .payment-result-actions {
        gap: 10px;
    }

    .payment-result-actions .btn-lg {
        padding: 14px 24px;
        font-size: 15px;
    }
}
