/* ============================================
   FOCUS TIMER - Clean Modern Design
   ============================================ */

:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --bg: #fafafa;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    --text: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   LANDING PAGE
   ============================================ */

.landing {
    min-height: 100vh;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

.nav-logo-img {
    height: 36px;
    width: auto;
}

.nav-logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.btn-nav {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-nav:hover {
    background: var(--primary-dark);
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), #9333ea);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

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

.hero-image {
    margin-top: 2rem;
}

.hero-preview {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    display: inline-block;
}

.preview-timer {
    text-align: center;
}

.preview-time {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.preview-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background: white;
}

.features-container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* How It Works */
.how-it-works {
    padding: 5rem 2rem;
    background: var(--bg);
}

.how-container {
    max-width: 900px;
    margin: 0 auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #9333ea 100%);
    text-align: center;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cta p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

.cta .btn-primary {
    background: white;
    color: var(--primary);
}

.cta .btn-primary:hover {
    background: var(--bg);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    padding: 2rem;
    background: white;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-logo-img {
    height: 30px;
    width: auto;
}

.footer p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.powered-by {
    margin-top: 0.5rem;
    font-size: 0.8rem !important;
    color: var(--text-light);
}

.powered-by strong {
    color: var(--primary);
}

/* ============================================
   APP
   ============================================ */

.app-container {
    min-height: 100vh;
    background: var(--bg);
}

.app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: white;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.sidebar-logo-img {
    height: 32px;
    width: auto;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-section {
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.sidebar-link:hover {
    background: var(--bg);
    color: var(--text);
}

.sidebar-link.active {
    background: #f3e8ff;
    color: var(--primary);
}

.sidebar-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-light);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    max-width: 1400px;
}

/* Timer Section */
.timer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timer-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.timer-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.timer-tab {
    background: var(--bg);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.timer-tab:hover {
    background: #e2e8f0;
}

.timer-tab.active {
    background: var(--primary);
    color: white;
}

.timer-display {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.timer-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-ring-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 8;
}

.timer-ring-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.timer-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.timer-time {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
}

.timer-label {
    color: var(--text-light);
    font-weight: 500;
}

.timer-recording {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.timer-recording.active {
    display: flex;
}

.recording-dot {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.timer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-timer {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.875rem 2.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-timer:hover {
    background: var(--primary-dark);
}

.btn-timer-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-timer-secondary:hover {
    background: #e2e8f0;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.stat-card-icon {
    font-size: 1.5rem;
}

.stat-card-value {
    font-weight: 700;
    font-size: 1.25rem;
    display: block;
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Right Panel */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.panel-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}

.btn-small {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small:hover {
    background: #e2e8f0;
}

.panel-body {
    padding: 1rem 1.25rem;
}

/* Tasks */
.task-input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.task-input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
}

.task-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-add {
    background: var(--primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.25rem;
    cursor: pointer;
}

.task-list {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

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

.task-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.task-checkbox.checked {
    background: var(--primary);
    border-color: var(--primary);
}

.task-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-text {
    flex: 1;
    font-size: 0.9rem;
}

.task-text.completed {
    text-decoration: line-through;
    color: var(--text-light);
}

.task-delete {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.task-item:hover .task-delete {
    opacity: 1;
}

.task-delete:hover {
    color: var(--danger);
}

.task-empty {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

/* Notes */
.notes-container {
    max-height: 300px;
    overflow-y: auto;
}

.notes-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-light);
}

.notes-empty span {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.notes-empty p {
    margin-bottom: 0.25rem;
}

.notes-empty small {
    font-size: 0.8rem;
}

.note-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

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

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.note-timestamp {
    font-size: 0.75rem;
    color: var(--text-light);
}

.note-actions {
    display: flex;
    gap: 0.25rem;
}

.note-btn {
    background: var(--bg);
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.note-btn:hover {
    background: #e2e8f0;
}

.note-transcript {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.note-summary {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Premium Card */
.premium-card {
    background: linear-gradient(135deg, #f3e8ff, #ede9fe);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.premium-card-icon {
    font-size: 1.5rem;
}

.premium-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.premium-card p {
    font-size: 0.75rem;
    color: var(--text-light);
}

.btn-upgrade {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: auto;
}

/* ============================================
   MODALS
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

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

.modal {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
}

.modal-small {
    max-width: 360px;
}

.modal-large {
    max-width: 500px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-actions button {
    flex: 1;
}

/* Auth Modal */
.auth-error {
    background: #fef2f2;
    color: var(--danger);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: none;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-google:hover {
    background: var(--bg);
}

/* Premium Modal */
.premium-badge-modal {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), #9333ea);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.premium-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
}

.premium-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.premium-trial {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.premium-features {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.premium-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.premium-features li span {
    color: var(--success);
    font-weight: 700;
}

.btn-full {
    width: 100%;
}

.stripe-secure {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Settings */
.settings-form {
    text-align: left;
}

.settings-group {
    margin-bottom: 1rem;
}

.settings-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.settings-group input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
}

.settings-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.settings-danger {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.btn-danger {
    width: 100%;
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* Music Modal */
.music-genres {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.genre-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.genre-btn:hover {
    background: #e2e8f0;
}

.genre-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.music-player {
    border-radius: var(--radius);
    overflow: hidden;
}

.music-player iframe {
    width: 100%;
    height: 200px;
}

/* Leaderboard */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.leaderboard-rank {
    width: 30px;
    font-weight: 700;
    color: var(--text-light);
}

.leaderboard-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: 500;
}

.leaderboard-streak {
    font-size: 0.75rem;
    color: var(--text-light);
}

.leaderboard-score {
    font-weight: 700;
    color: var(--primary);
}

/* Quiz */
.generating-quiz {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.quiz-progress {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.quiz-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.quiz-dot.active {
    background: var(--primary);
}

.quiz-dot.completed {
    background: var(--success);
}

.quiz-card {
    perspective: 1000px;
    cursor: pointer;
    margin: 1.5rem 0;
}

.quiz-card-inner {
    position: relative;
    width: 100%;
    min-height: 150px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.quiz-card.flipped .quiz-card-inner {
    transform: rotateY(180deg);
}

.quiz-card-front,
.quiz-card-back {
    position: absolute;
    width: 100%;
    min-height: 150px;
    backface-visibility: hidden;
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quiz-card-front {
    background: var(--bg);
    border: 1px solid var(--border);
}

.quiz-card-back {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.quiz-card-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.quiz-card-content {
    font-size: 1rem;
}

.quiz-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s;
    z-index: 2000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* User Badge */
.user-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-plan {
    font-size: 0.75rem;
    color: var(--text-light);
}

.user-plan.premium {
    color: var(--primary);
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-login {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links a:not(.btn-nav) {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
}
