/* ===== USAGE DASHBOARD ===== */
.dashboard-page.hidden {
    display: none !important;
}

.dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 120px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.usage-stats.variant-a {
    position: fixed;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4001;
}

.usage-stats-card {
    background: rgba(13, 13, 20, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 24px 48px -12px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03);
}

.usage-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    min-width: 190px;
}

.usage-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.07);
    transform: translateX(-4px);
}

.usage-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.usage-icon .material-icons {
    font-size: 18px;
}

.usage-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
}

.usage-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.usage-history-btn {
    height: 40px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 700;
}

.usage-personalization-btn {
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--accent-orange);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    justify-content: center;
}

.usage-personalization-btn:hover {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.4);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.2);
}

.usage-personalization-btn .material-icons {
    font-size: 14px;
}

/* ===== DASHBOARD HERO ===== */
#dashboardPage .hero-section {
    padding-top: 40px;
    margin-bottom: 24px;
}

.input-examples-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

body:has(.landing-page:not(.hidden)) .library-btn {
    display: none !important;
}

.hero-badge-container {
    margin-bottom: 16px;
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.2s;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    /* FIX: inline-block so it doesn't stretch full width */
    display: inline-block;
}

.get-started-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.get-started-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.get-started-btn .material-icons {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.get-started-btn:hover .material-icons {
    transform: translateX(4px);
}


/* =============================================
   INPUT MODULE
   ============================================= */
.input-wrapper {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 28px;
    padding: 30px 30px 18px;
    position: relative;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-premium);
}

@keyframes sunsetGlow {
    0% {
        box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(249, 115, 22, 0.2), 0 0 30px rgba(249, 115, 22, 0.15);
        border-color: rgba(249, 115, 22, 0.5);
    }
    50% {
        box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 8px rgba(249, 115, 22, 0.08), 0 0 60px rgba(249, 115, 22, 0.4);
        border-color: rgba(251, 146, 60, 0.9);
    }
    100% {
        box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(249, 115, 22, 0.2), 0 0 30px rgba(249, 115, 22, 0.15);
        border-color: rgba(249, 115, 22, 0.5);
    }
}

.input-wrapper:focus-within {
    transform: translateY(-6px) scale(1.01);
    background: linear-gradient(135deg, rgba(15, 15, 22, 0.7) 0%, rgba(249, 115, 22, 0.08) 100%);
    animation: sunsetGlow 4s ease-in-out infinite;
    /* Adding a subtle inner glow */
}

.input-wrapper:hover:not(:focus-within) {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(249, 115, 22, 0.1);
    background: linear-gradient(135deg, rgba(20, 20, 28, 0.6) 0%, rgba(249, 115, 22, 0.03) 100%);
}

.input-area {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 500;
    resize: none;
    outline: none;
    min-height: 80px;
    line-height: 1.6;
    overflow: hidden; /* Hide scrollbar when typing */
    scrollbar-width: none; /* Firefox */
}

.input-area::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.input-area::placeholder {
    color: var(--text-dim);
    transition: var(--transition-smooth);
}

.input-area:focus::placeholder {
    opacity: 0.5;
    transform: translateX(10px);
}

/* ===== INPUT TOOLS ===== */
.input-tools {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.audio-chip {
    cursor: pointer;
}

.audio-chip input {
    display: none;
}

.audio-chip .chip-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--surface-bright);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.audio-chip:hover .chip-content {
    background: var(--surface-highlight);
    border-color: var(--border-bright);
    color: #fff;
}

.audio-chip input:checked + .chip-content {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #fff;
    box-shadow: 0 8px 16px -4px rgba(249, 115, 22, 0.4);
}

.tool-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--surface-bright);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tool-btn:hover {
    background: var(--surface-highlight);
    border-color: var(--border-bright);
    color: #fff;
    transform: scale(1.05);
}

.tool-btn.active-img {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    background: rgba(249, 115, 22, 0.1);
}

.submit-btn {
    height: 44px;
    padding: 0 28px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 14px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-left: auto;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.3);
}

.submit-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== EXAMPLE PILLS ===== */
.examples-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0px;
}

.example-pill {
    padding: 10px 22px;
    background: var(--surface-bright);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.example-pill .material-icons {
    font-size: 16px;
    color: var(--accent-orange);
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.example-pill:hover {
    background: var(--surface-highlight);
    border-color: rgba(249, 115, 22, 0.4);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.15);
}

.example-pill:hover .material-icons {
    opacity: 1;
    transform: scale(1.1);
}

/* =============================================
   PROCESSING VIEW
   ============================================= */
.processing-view {
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

.processing-grid {
    max-width: 900px;
    margin: 0 auto;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.step-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}


.step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

@keyframes pillReveal {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.9);
    }

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

.example-pill:hover {
    border-color: rgba(249, 115, 22, 0.3);
    color: var(--text-main);
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.12);
    background: rgba(249, 115, 22, 0.04);
}

.example-pill:hover::before {
    opacity: 1;
}

.example-pill:active {
    transform: scale(0.96);
}

/* ===== IMAGE PREVIEW ===== */
.image-preview-bar {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    width: fit-content;
    animation: previewSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes previewSlide {
    from {
        opacity: 0;
        transform: translateX(-15px) scale(0.95);
    }

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

.image-preview-bar.visible {
    display: flex;
}

.preview-thumb {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.preview-thumb:hover {
    transform: scale(1.1);
}

.remove-img {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-sans);
    font-size: 12px;
    color: #ff5555;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.remove-img:hover {
    color: #ff7777;
    background: rgba(255, 85, 85, 0.1);
}

/* =============================================
   PROCESSING VIEW
   ============================================= */
.processing-view {
    display: none;
    width: 100%;
    text-align: left;
    margin: 0 auto;
    /* FIX: add padding so content doesn't hit edges */
    padding: 0 20px;
}

.processing-view.visible {
    display: block;
    animation: processingReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes processingReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
        filter: blur(4px);
    }

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

.processing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 70px;
    align-items: start;
}

.steps-column {
    display: flex;
    flex-direction: column;
    /* FIX: prevent overflow */
    min-width: 0;
}

.terminal-header {
    padding-top: 12px;
    font-family: var(--font-mono);
    color: var(--accent-orange);
    margin-bottom: 36px;
    font-size: 1.05rem;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-left: 2px;
    animation: terminalType 0.5s ease both;
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

@keyframes terminalType {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.blink {
    animation: blinker 1s step-end infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* =============================================
   VIDEO RESULT VIEW
   ============================================= */
.video-view {
    display: none;
    width: 100%;
}

.video-view.visible {
    display: block;
    animation: videoReveal 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes videoReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
        filter: blur(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-premium);
    position: relative;
    margin-bottom: 30px;
}

.c-video {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.processing-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.processing-actions .action-btn,
.processing-actions .cancel-btn {
    height: 48px;
    padding: 0 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.processing-actions .action-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.processing-actions .cancel-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
}

.processing-actions .action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.processing-actions .cancel-btn:hover {
    color: #ff5555;
    transform: translateY(-2px);
}

.processing-actions .material-icons {
    font-size: 20px;
}

/* IMPROVED VIDEO PLAYER */
.c-video {
    width: 100%;
    /* Using 100% since it's in a container, ignoring max-width 800px to fit layout */
    position: relative;
    overflow: hidden;
    background: #000;
}

.video {
    width: 100%;
    display: block;
}

.controls {
    display: flex;
    position: absolute;
    bottom: 0;
    width: 100%;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(100%) translateY(-5px);
    transition: all 0.2s;
    z-index: 10;
}

.c-video:hover .controls {
    transform: translateY(0);
}

.orange-bar {
    height: 10px;
    top: 0;
    left: 0;
    width: 100%;
    background: #000;
    cursor: pointer; 
}

.orange-juice {
    height: 10px;
    width: 0px; 
    background-color: orangered;
    pointer-events: none; 
}

.buttons {
    padding: 10px;
    display: flex;
    align-items: center; 
    flex: 1;
}

.buttons button {
    background: none;
    border: 0;
    outline: 0;
    cursor: pointer;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

.buttons button.play::before {
    content: '\f144';
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
    font-size: 28px;
}

.buttons button.pause::before {
    content: '\f28b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 28px;
}

.buttons button.next {
    margin-left: 15px;
}

.buttons button.next::before {
    content: '\f051';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 20px;
    transition: color 0.2s;
}

.buttons button.next:hover {
    color: orangered;
}

/* Dynamic Segment Text */
.segment-info {
    color: #fff;
    margin-left: 20px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
}

#segment-text {
    margin-left: 6px;
}

/* Audio Badge Mini */
.audio-badge-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--accent-orange);
    flex-shrink: 0;
}

.audio-badge-mini .material-icons {
    font-size: 18px;
}

.audio-badge-mini.hidden {
    display: none;
}

/* Ask Sage Button */
.sage-player-btn {
    margin-left: auto; /* Push it to the right within flex context */
    padding: 8px 18px;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    display: flex !important; /* Override the default button block */
    align-items: center;
    gap: 10px;
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sage-player-btn:hover {
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.4);
    color: var(--accent-orange) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.2);
}

.sage-player-btn span {
    letter-spacing: 0.02em;
}

/* =============================================
   RESULT LAYOUT
   ============================================= */
.result-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stats-taskbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 16px 32px;
    background: var(--surface-bright);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.stat-item .material-icons {
    color: var(--accent-orange);
}

.stat-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
}

.action-row {
    display: flex;
    gap: 16px;
}

.action-row .action-btn {
    flex: 1;
    height: 60px;
    border-radius: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.action-btn.primary {
    background: var(--accent-orange);
    color: #000;
    border: none;
}

.action-btn.secondary {
    background: var(--surface-bright);
    border: 1px solid var(--border);
    color: #fff;
}

.action-btn.tertiary {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid var(--accent-orange-glow);
    color: var(--accent-orange);
}

.action-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.3);
}

.feedback-taskbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
}

.feedback-question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.feedback-buttons {
    display: flex;
    gap: 12px;
}

.feedback-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--surface-bright);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.feedback-btn:hover {
    background: var(--surface-highlight);
    border-color: var(--border-bright);
    color: #fff;
}

.feedback-btn.thumb-up:hover {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
}

.feedback-btn.thumb-down:hover {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
}

.feedback-thanks {
    font-weight: 700;
    color: var(--accent-orange);
}

.feedback-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-question {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.promo-banner {
    margin-top: 16px;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.promo-badge {
    background: var(--accent-orange);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.promo-banner a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
}

.promo-banner a:hover {
    text-decoration: underline;
}

.feedback-buttons {
    display: flex;
    gap: 10px;
}

.feedback-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.feedback-btn:hover {
    transform: translateY(-2px) scale(1.1);
    color: var(--text-main);
}

.feedback-btn.thumb-up:hover,
.feedback-btn.thumb-up.voted {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.25);
    color: var(--accent-orange);
}

.feedback-btn.thumb-down:hover,
.feedback-btn.thumb-down.voted {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

.feedback-btn .material-icons {
    font-size: 18px;
}

.feedback-btn.voted {
    pointer-events: none;
    transform: scale(0.9);
    opacity: 0.5;
}

.feedback-btn.voted.active-vote {
    opacity: 1;
    transform: scale(1.1);
}

.feedback-details {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-details.visible {
    max-height: 300px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feedback-tags-sleek {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tag-sleek {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.tag-sleek:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.tag-sleek.active {
    background: var(--accent-orange);
    color: black;
    border-color: transparent;
    font-weight: 600;
}

.feedback-input-sleek {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px 12px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    resize: none;
    min-height: 40px;
    outline: none;
}

.feedback-input-sleek:focus {
    border-color: rgba(249, 115, 22, 0.3);
}

.feedback-actions-sleek {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.sleek-btn {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.sleek-btn.primary {
    background: var(--accent-orange);
    color: black;
}

.sleek-btn.secondary {
    background: transparent;
    color: var(--text-muted);
}

.sleek-btn:hover {
    transform: translateY(-1px);
}

.feedback-thanks {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--accent-orange);
    font-weight: 500;
}

.feedback-thanks.hidden {
    display: none;
}

/* Feedback Modal Popup */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.feedback-modal {
    background: #141418;
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 28px;
    padding: 32px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-overlay.visible .feedback-modal {
    transform: scale(1);
}

.feedback-modal-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: #fff;
    margin: 0;
    text-align: center;
}

.feedback-modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    margin: -10px 0 10px;
}

.feedback-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.feedback-textarea {
    width: 100%;
    height: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    color: #fff;
    font-size: 0.9rem;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

.feedback-textarea:focus {
    border-color: var(--accent-orange);
}

.feedback-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.feedback-skip-btn {
    padding: 0 24px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-skip-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.feedback-thanks-bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    margin: 20px auto 0;
    width: fit-content;
}

