:root {
    /* Premium Color Palette */
    --bg-dark: #000000;
    --bg-surface-1: #0f0f11;
    /* Slightly lighter black */
    --bg-surface-2: #1c1c1e;
    /* Dark gray */

    --text-primary: #ffffff;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;

    --accent-primary: #2997ff;
    /* Apple Blue */
    --accent-secondary: #bf5af2;
    /* Purple */
    --accent-glow: rgba(41, 151, 255, 0.5);

    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(28, 28, 30, 0.65);

    --font-main: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

:root[data-theme="light"] {
    filter: invert(1) hue-rotate(180deg);
    background-color: #ffffff;
}

:root[data-theme="light"] img,
:root[data-theme="light"] video,
:root[data-theme="light"] iframe {
    filter: invert(1) hue-rotate(180deg);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 0;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Utilities */
.text-gradient {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

.glass-panel-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
}

.glass-panel-premium:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 12px 24px;
    border-radius: 980px;
    /* Pill shape */
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 980px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Lock Section */
.scroll-lock-section {
    display: flex;
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.scroll-content {
    flex: 1;
}

.scroll-step {
    min-height: 80vh;
    /* Each step takes up screen height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.3;
    transition: opacity 0.5s;
}

.scroll-step.active {
    opacity: 1;
}

/* Custom Driver.js Styles */
div.driver-popover.ql-driver-popover {
    background: rgba(15, 15, 17, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    color: white !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
    font-family: var(--font-main) !important;
    padding: 16px !important;
    max-width: 320px !important;
}

div.driver-popover.ql-driver-popover * {
    font-family: var(--font-main) !important;
}

div.driver-popover.ql-driver-popover .driver-popover-title {
    color: var(--text-primary) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

div.driver-popover.ql-driver-popover .driver-popover-description {
    color: var(--text-secondary) !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

div.driver-popover.ql-driver-popover .driver-popover-footer {
    margin-top: 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

div.driver-popover.ql-driver-popover .driver-popover-progress-text {
    color: var(--text-tertiary) !important;
    font-size: 0.85rem !important;
}

div.driver-popover.ql-driver-popover button.driver-popover-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 980px !important;
    padding: 6px 16px !important;
    font-weight: 500 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

div.driver-popover.ql-driver-popover button.driver-popover-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

div.driver-popover.ql-driver-popover button.driver-popover-next-btn,
div.driver-popover.ql-driver-popover button.driver-popover-done-btn {
    background: var(--text-primary) !important;
    color: var(--bg-dark) !important;
    border: none !important;
}

div.driver-popover.ql-driver-popover button.driver-popover-next-btn:hover,
div.driver-popover.ql-driver-popover button.driver-popover-done-btn:hover {
    opacity: 0.9 !important;
    transform: scale(1.01) !important;
}

div.driver-popover.ql-driver-popover .driver-popover-arrow {
    border-color: rgba(15, 15, 17, 0.95) !important;
}

/* Fix arrow coloring for driver.js */
div.driver-popover.ql-driver-popover .driver-popover-arrow-side-left { border-left-color: rgba(15, 15, 17, 0.95) !important; border-top-color: transparent !important; border-bottom-color: transparent !important; border-right-color: transparent !important; }
div.driver-popover.ql-driver-popover .driver-popover-arrow-side-right { border-right-color: rgba(15, 15, 17, 0.95) !important; border-top-color: transparent !important; border-bottom-color: transparent !important; border-left-color: transparent !important; }
div.driver-popover.ql-driver-popover .driver-popover-arrow-side-top { border-top-color: rgba(15, 15, 17, 0.95) !important; border-bottom-color: transparent !important; border-left-color: transparent !important; border-right-color: transparent !important; }
div.driver-popover.ql-driver-popover .driver-popover-arrow-side-bottom { border-bottom-color: rgba(15, 15, 17, 0.95) !important; border-top-color: transparent !important; border-left-color: transparent !important; border-right-color: transparent !important; }

.ql-driver-popover .driver-popover-footer button {
    text-align: center !important;
    text-shadow: none !important;
    min-width: 100px;
    padding: 8px 16px !important;
    border-radius: 999px !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.01em !important;
    font-weight: 600 !important;
}

.ql-driver-popover .driver-popover-navigation-btns button {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-secondary) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
    margin-left: 4px !important;
}

.ql-driver-popover .driver-popover-navigation-btns button.driver-popover-next-btn,
.ql-driver-popover .driver-popover-navigation-btns button.driver-popover-done-btn {
    background: var(--text-primary) !important;
    color: var(--bg-dark) !important;
}

.ql-driver-popover .driver-popover-navigation-btns button:hover {
    opacity: 0.95 !important;
    transform: translateY(-1px) scale(1.02) !important;
}

.sticky-visual {
    flex: 1;
    position: sticky;
    top: 100px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-item.active {
    opacity: 1;
    transform: scale(1);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

.bento-item {
    background: var(--bg-surface-1);
    border-radius: 32px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
}

.bento-item.large {
    grid-column: span 2;
}

/* Navigation */
.nav-dock {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 24px;
    border-radius: 980px;
    display: flex;
    gap: 24px;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.billing-disabled-banner {
    margin: 0 auto;
    margin-top: 12px;
    max-width: 960px;
    padding: 10px 16px;
    text-align: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light-temp-disabled"] .nav-dock {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 0;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Utilities */
.text-gradient {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

.glass-panel-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
}

.glass-panel-premium:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 12px 24px;
    border-radius: 980px;
    /* Pill shape */
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.ql-bubble .ql-editor code, .ql-bubble .ql-editor pre {
    background-color: rgba(0, 0, 0, 0.3) !important;
    color: #e5e7eb;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 0.2rem;
}

.theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1100;
}

.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.theme-toggle-btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="light-temp-disabled"] .theme-toggle-btn {
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.2);
    border-color: rgba(15, 23, 42, 0.08);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 980px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Lock Section */
.scroll-lock-section {
    display: flex;
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.scroll-content {
    flex: 1;
}

.scroll-step {
    min-height: 80vh;
    /* Each step takes up screen height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.3;
    transition: opacity 0.5s;
}

.scroll-step.active {
    opacity: 1;
}

/* Custom Intro.js Styles */
.ql-intro-tooltip {
    background: rgba(15, 15, 17, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    color: white !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
    font-family: var(--font-main) !important;
    padding: 16px !important;
    max-width: 320px !important;
}

.ql-intro-tooltip .introjs-tooltiptext {
    color: var(--text-secondary) !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    padding-bottom: 20px !important;
}

.ql-intro-tooltip .introjs-tooltipbuttons {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 12px !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
}

.ql-intro-tooltip .introjs-button {
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 980px !important;
    padding: 6px 16px !important;
    font-weight: 500 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.ql-intro-tooltip .introjs-button:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.ql-intro-tooltip .introjs-button.introjs-nextbutton,
.ql-intro-tooltip .introjs-button.introjs-donebutton {
    background: var(--text-primary) !important;
    color: var(--bg-dark) !important;
    border: none !important;
}

.ql-intro-tooltip .introjs-button.introjs-nextbutton:hover,
.ql-intro-tooltip .introjs-button.introjs-donebutton:hover {
    opacity: 0.9 !important;
    transform: scale(1.05) !important;
}

.ql-intro-tooltip .introjs-progress {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    height: 4px !important;
    margin: 10px 0 !important;
}

.ql-intro-tooltip .introjs-progressbar {
    background-color: var(--accent-primary) !important;
}

.introjs-arrow.top { border-bottom-color: rgba(15, 15, 17, 0.95) !important; }
.introjs-arrow.bottom { border-top-color: rgba(15, 15, 17, 0.95) !important; }
.introjs-arrow.left { border-right-color: rgba(15, 15, 17, 0.95) !important; }
.introjs-arrow.right { border-left-color: rgba(15, 15, 17, 0.95) !important; }

.sticky-visual {
    flex: 1;
    position: sticky;
    top: 100px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-item.active {
    opacity: 1;
    transform: scale(1);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

.bento-item {
    background: var(--bg-surface-1);
    border-radius: 32px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
}

.bento-item.large {
    grid-column: span 2;
}

/* Navigation */
.nav-dock {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 20px;
    border-radius: 980px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 980px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link i {
    margin-right: 6px;
    font-size: 0.85rem;
}

/* Studio nav (refined dock + brand) */
.nav-dock--studio {
    padding: 8px 10px 8px 14px;
    gap: 10px 14px;
    max-width: min(94vw, 880px);
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 100px;
    background: rgba(12, 12, 14, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 24px 48px -24px rgba(0, 0, 0, 0.65);
}

[data-theme="light-temp-disabled"] .nav-dock--studio {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 20px 40px -20px rgba(15, 23, 42, 0.12);
}

.nav-dock-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    border-radius: 100px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.06em;
    font-size: 0.95rem;
    transition: background 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
}

.nav-dock-brand:hover {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="light-temp-disabled"] .nav-dock-brand:hover {
    background: rgba(15, 23, 42, 0.05);
}

.nav-dock-brand.active {
    color: var(--text-primary);
}

.nav-dock-brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: conic-gradient(from 210deg, var(--accent-primary), var(--accent-secondary), #22d3ee, var(--accent-primary));
    box-shadow: 0 0 24px var(--accent-glow);
    flex-shrink: 0;
}

.nav-dock-brand-text {
    letter-spacing: -0.05em;
}

.nav-dock-divider {
    width: 1px;
    height: 22px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    flex-shrink: 0;
}

[data-theme="light-temp-disabled"] .nav-dock-divider {
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.12), transparent);
}

/* Autofill fix for dark mode */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1c1c1e inset !important;
    -webkit-text-fill-color: white !important;
}

/* Quick Edit Modal Styles */
.quick-edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.quick-edit-modal.open {
    display: flex;
}

.quick-edit-content {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.quick-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--glass-border);
    background: transparent;
}

.quick-edit-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Preference Toggle Styles */
.pref-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.pref-toggle input[type="checkbox"] {
    display: none;
}


.pref-toggle:hover .pref-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.pref-toggle input:checked + .pref-card,
.pref-toggle .pref-card.active {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgb(34, 197, 94);
    color: white;
}

.pref-toggle input:checked + .pref-card i,
.pref-toggle .pref-card.active i {
    color: rgb(34, 197, 94);
}

.pref-toggle input:checked + .pref-card span:last-child,
.pref-toggle .pref-card.active span:last-child {
    color: rgba(255, 255, 255, 0.7);
}

/* Preference Option Styles */
.pref-option {
    cursor: pointer;
    user-select: none;
}

.pref-option input[type="radio"] {
    display: none;
}

.pref-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
    text-align: center;
}

.pref-card.active {
    border-color: var(--accent-primary);
    background: rgba(41, 151, 255, 0.1);
}

.pref-card i {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.pref-card.active i {
    color: var(--accent-primary);
}


/* Quick Edit Button Styles */
.quick-edit-btn {
    padding: 12px 24px;
    border-radius: 980px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quick-edit-btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.quick-edit-btn-primary:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.quick-edit-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-edit-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Hide Google Translate top bar */
body {
    top: 0 !important;
}

.goog-te-banner-frame.skiptranslate, 
.goog-te-banner-frame {
    display: none !important;
}

.goog-tooltip, 
.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ensure translated content doesn't break layout */
.skiptranslate {
    display: none !important;
}

#google_translate_element {
    display: none !important;
}
