/* ========================================
   Mindset365 - Page-Specific Styles
   ======================================== */

/* --- Page Headers --- */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-bottom: var(--sp-6);
}
.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.page-header .text-muted {
    font-size: 0.875rem;
}
.page-header-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

/* --- Stats Row --- */
.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--sp-1);
}
.stat-change {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: var(--sp-1);
}
.stat-change.positive { color: var(--color-success); }
.stat-change.negative { color: var(--color-danger); }

/* --- Login Page --- */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
    padding: var(--sp-4);
}
.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--sp-8) var(--sp-6);
    max-width: 420px;
    width: 100%;
    text-align: center;
}
.login-card .logo-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    margin: 0 auto var(--sp-4);
}
.login-card h1 {
    font-size: 1.5rem;
    margin-bottom: var(--sp-1);
}
.login-card p {
    color: var(--text-muted);
    margin-bottom: var(--sp-6);
}
#google-signin-btn {
    display: flex;
    justify-content: center;
    margin-bottom: var(--sp-4);
}
#auth-error {
    display: none;
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    padding: var(--sp-3);
    font-size: 0.875rem;
    margin-bottom: var(--sp-4);
}

/* --- Assessment Page --- */
.assessment-container {
    max-width: 720px;
    margin: 0 auto;
}
.assessment-progress {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-6);
}
.assessment-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-hover);
    border-radius: 3px;
    overflow: hidden;
}
.assessment-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.4s ease;
}
.assessment-progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}
.assessment-question {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
}
.assessment-question h2 {
    font-size: 1.25rem;
    margin-bottom: var(--sp-1);
}
.assessment-question p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--sp-5);
}
.assessment-options {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}
.assessment-option {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
}
.assessment-option:hover {
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.05);
}
.assessment-option.selected {
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.1);
}
.assessment-option input[type="radio"] {
    accent-color: var(--color-primary);
}

/* --- Chat / AI Coach Page --- */
.chat-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
}
.chat-sidebar {
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}
.chat-sidebar-header {
    padding: var(--sp-4);
    border-bottom: 1px solid var(--border-color);
}
.chat-session-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--sp-2);
}
.chat-session-item {
    padding: var(--sp-3);
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-bottom: var(--sp-1);
    transition: background 0.15s ease;
}
.chat-session-item:hover { background: var(--bg-hover); }
.chat-session-item.active { background: rgba(99, 102, 241, 0.1); color: var(--color-primary); }
.chat-session-item .title { font-weight: 500; font-size: 0.875rem; }
.chat-session-item .date { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.chat-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--sp-4) var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}
.chat-message {
    display: flex;
    gap: var(--sp-3);
    max-width: 80%;
}
.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.chat-message .avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}
.chat-bubble {
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    line-height: 1.6;
}
.chat-message.assistant .chat-bubble {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-bottom-left-radius: var(--radius-sm);
}
.chat-message.user .chat-bubble {
    background: var(--color-primary);
    color: #fff;
    border-bottom-right-radius: var(--radius-sm);
}
/* Chat message bubble — matches JS class */
.chat-message-bubble {
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 100%;
}
.chat-message.assistant .chat-message-bubble {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-bottom-left-radius: var(--radius-sm);
}
.chat-message.user .chat-message-bubble {
    background: var(--color-primary);
    color: #fff;
    border-bottom-right-radius: var(--radius-sm);
}

.chat-input-area {
    padding: var(--sp-4) var(--sp-6);
    border-top: 1px solid var(--border-color);
}
.chat-input-wrap {
    display: flex;
    gap: var(--sp-2);
    align-items: flex-end;
}
.chat-input-wrap textarea {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    resize: none;
    padding: var(--sp-3);
    font-size: 0.9rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-family);
}
.chat-input-wrap textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}
.chat-input-wrap textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.chat-input-form {
    display: flex;
    gap: var(--sp-2);
}
.chat-input-form textarea {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    resize: none;
    padding: var(--sp-3);
    font-size: 0.9rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-family);
}
.chat-input-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}
.chat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: var(--sp-2) 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* --- Settings Page --- */
.settings-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--sp-6);
}
.settings-nav {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}
.settings-nav-item {
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}
.settings-nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.settings-nav-item.active { background: rgba(99, 102, 241, 0.1); color: var(--color-primary); }

.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
}
.settings-section h3 {
    font-size: 1.125rem;
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--border-color);
}

/* --- Referral Page --- */
.referral-link-box {
    max-width: 480px;
    margin: 0 auto;
}
.referral-link-input {
    flex: 1;
    padding: var(--sp-3);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: var(--font-mono, monospace);
    min-width: 0;
}
.referral-link-input:focus { outline: none; border-color: var(--color-primary); }
.step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

/* --- Client Detail --- */
.client-header {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
}
.client-header .avatar {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}
.client-info h2 { margin-bottom: var(--sp-1); }
.client-info .text-muted { font-size: 0.875rem; }

/* --- Tabs --- */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--sp-6);
}
.tab-item {
    padding: var(--sp-3) var(--sp-4);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    user-select: none;
}
.tab-item:hover { color: var(--text-primary); }
.tab-item.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- Progress Bars --- */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-hover);
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--gradient-primary);
    transition: width 0.5s ease;
}
.progress-bar.sm { height: 4px; }
.progress-bar.lg { height: 12px; }

/* --- Kanban Override --- */
.kanban-board {
    display: flex;
    gap: var(--sp-4);
    overflow-x: auto;
    padding-bottom: var(--sp-4);
    min-height: 400px;
}
.kanban-column {
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}
.kanban-column-header {
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.875rem;
}
.kanban-column-body {
    flex: 1;
    padding: var(--sp-2);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}
.kanban-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--sp-3);
    cursor: grab;
    transition: all 0.15s ease;
}
.kanban-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

/* --- Filter Bar --- */
.filter-bar {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
    margin-bottom: var(--sp-4);
    padding: var(--sp-3) var(--sp-4);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.filter-bar input,
.filter-bar select {
    padding: var(--sp-2) var(--sp-3);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-family: var(--font-family);
}
.filter-bar input:focus,
.filter-bar select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* --- Modal Enhancements --- */
.modal { z-index: 1000; }
.form-group {
    margin-bottom: var(--sp-4);
}
.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--sp-1);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--sp-2) var(--sp-3);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: var(--font-family);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.form-group textarea { min-height: 80px; resize: vertical; }

/* --- Accordion --- */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--sp-2);
    overflow: hidden;
}
.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-3) var(--sp-4);
    cursor: pointer;
    background: var(--bg-primary);
    transition: background 0.15s ease;
}
.accordion-header:hover { background: var(--bg-hover); }
.accordion-body {
    display: none;
    padding: var(--sp-4);
    border-top: 1px solid var(--border-color);
}
.accordion-item.open .accordion-body { display: block; }
.accordion-chevron { transition: transform 0.2s ease; }
.accordion-item.open .accordion-chevron { transform: rotate(90deg); }

/* --- Toggle Switch --- */
.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    cursor: pointer;
}
.toggle-switch input { display: none; }
.toggle-track {
    position: absolute;
    inset: 0;
    background: var(--bg-hover);
    border-radius: 11px;
    transition: background 0.2s ease;
}
.toggle-switch input:checked + .toggle-track { background: var(--color-primary); }
.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}
.toggle-switch input:checked ~ .toggle-thumb { transform: translateX(18px); }

/* --- Legal Pages (Terms, Privacy) --- */
.legal-page {
    min-height: 100vh;
    background: var(--bg-primary);
    padding: var(--sp-6) var(--sp-4);
    display: flex;
    justify-content: center;
}
.legal-container {
    max-width: 800px;
    width: 100%;
}
.legal-header {
    margin-bottom: var(--sp-6);
}
.legal-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--sp-1);
}
.legal-header .text-muted {
    font-size: 0.875rem;
}
.legal-back-link {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    margin-bottom: var(--sp-3);
    transition: opacity 0.15s ease;
}
.legal-back-link:hover {
    opacity: 0.8;
}
.legal-content.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}
.legal-content .card-body {
    padding: var(--sp-6) var(--sp-8);
}
.legal-section {
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-6);
    border-bottom: 1px solid var(--glass-border);
}
.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.legal-section h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--sp-3);
}
.legal-section h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--sp-4);
    margin-bottom: var(--sp-2);
}
.legal-section p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--sp-3);
}
.legal-section p:last-child {
    margin-bottom: 0;
}
.legal-section ul {
    list-style: disc;
    padding-left: var(--sp-5);
    margin-bottom: var(--sp-3);
}
.legal-section ul li {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--sp-1);
}
.legal-section a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}
.legal-section a:hover {
    text-decoration: underline;
}
.legal-footer {
    text-align: center;
    margin-top: var(--sp-6);
    padding: var(--sp-4) 0;
    font-size: 0.875rem;
}
.legal-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}
.legal-footer a:hover {
    text-decoration: underline;
}
.legal-footer .text-muted {
    margin: 0 var(--sp-2);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .chat-layout { grid-template-columns: 1fr; height: 100%; }
    .chat-sidebar { display: none; }
    .settings-layout { grid-template-columns: 1fr; }
    .settings-nav { flex-direction: row; overflow-x: auto; }
}
@media (max-width: 768px) {
    .page-header { flex-direction: column; align-items: flex-start; }
    .grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid.grid-3 { grid-template-columns: 1fr; }
    .grid.grid-2 { grid-template-columns: 1fr; }
    .client-header { flex-direction: column; text-align: center; }
    .kanban-board { flex-direction: column; }
    .kanban-column { max-width: 100%; min-width: 0; }
    .filter-bar { flex-direction: column; }
    .filter-bar input,
    .filter-bar select { width: 100%; }
    .legal-page { padding: var(--sp-4) var(--sp-2); }
    .legal-content .card-body { padding: var(--sp-4) var(--sp-4); }
    .legal-header h1 { font-size: 1.5rem; }
}

/* ─── Template Collection Tabs ─────────────────────────── */
.collection-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: var(--sp-4);
}
.collection-tab {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.collection-tab:hover {
    border-color: var(--tab-color, var(--color-primary));
    color: var(--tab-color, var(--color-primary));
    background: color-mix(in srgb, var(--tab-color, var(--color-primary)) 8%, var(--bg-card));
}
.collection-tab.active {
    border-color: var(--tab-color, var(--color-primary));
    color: #fff;
    background: var(--tab-color, var(--color-primary));
}

/* ─── Impact Stars ─────────────────────────────────────── */
.impact-stars {
    color: #f59e0b;
    font-size: 0.75rem;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── Time Badge ───────────────────────────────────────── */
.time-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1px 6px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── Browse Template Card ─────────────────────────────── */
.browse-template-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}
.browse-task-detail {
    animation: slideDown 0.2s ease;
}
@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 500px; }
}

@media (max-width: 640px) {
    .collection-tabs { flex-direction: column; }
    .collection-tab { text-align: center; }
}

/* ========================================
   Growth OS — Profit Engine Page
   UNIFIED FONT SYSTEM
   Base: 0.875rem (14px) body · 0.75rem (12px) meta/badges
   ======================================== */
.gos-root {
    min-height: 100vh;
    color: var(--text-on-card);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
}
.gos-inner { padding: 24px 24px 0; max-width: 100%; margin: 0 auto; }
.gos-content { max-width: 100%; margin: 0 auto; padding: 0 24px 60px; }

/* Header */
.gos-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.gos-subtitle { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px; color: var(--dim); font-weight: 700; }
.gos-title { font-size: 1.75rem; font-weight: 900; margin: 4px 0; background: linear-gradient(90deg,#8B5CF6,#3B82F6,#10B981); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -0.5px; }
.gos-pct-big { font-size: 1.6rem; font-weight: 900; }
.gos-pct-label { font-size: 0.8rem; color: var(--dim); }

/* Progress bars */
.gos-progress-track { height: 6px; background: var(--glass-track); border-radius: 99px; }
.gos-progress-fill { height: 100%; border-radius: 99px; transition: width 0.4s; }

/* Book legend — inside header center */
.gos-legend { display: flex; gap: 20px; margin: 0; justify-content: center; align-items: center; }
.gos-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--text-secondary); font-weight: 700; }
.gos-legend-dot { width: 12px; height: 12px; border-radius: 4px; }

/* Week selector */
.gos-week-selector { display: flex; gap: 10px; margin-bottom: 20px; }
.gos-week-btn { flex: 1; padding: 14px 16px; border-radius: 12px; border: 2px solid transparent; background: var(--glass-bg); cursor: pointer; text-align: left; color: inherit; font-family: inherit; transition: opacity 0.25s, filter 0.25s, transform 0.15s; }
.gos-week-btn.active { }
.gos-week-btn:not(.active):not(.placeholder) { opacity: 0.35; filter: grayscale(0.5); }
.gos-week-btn:not(.active):not(.placeholder):hover { opacity: 1; filter: none; transform: translateY(-1px); }
.gos-week-btn.placeholder { opacity: 0.3; cursor: not-allowed; filter: grayscale(0.6); }
.gos-week-btn-inner { display: flex; align-items: center; justify-content: space-between; }
.gos-week-label { font-size: 0.95rem; font-weight: 800; }
.gos-week-sub { font-size: 0.8rem; color: var(--dim); margin-top: 3px; }
.gos-week-pct { font-size: 1.15rem; font-weight: 800; }

/* View toggle */
.gos-view-toggle { display: flex; gap: 5px; }
.gos-view-btn { padding: 7px 14px; border-radius: 8px; border: none; font-size: 0.8rem; font-weight: 600; cursor: pointer; background: var(--glass-bg); color: var(--mid); font-family: inherit; white-space: nowrap; transition: all 0.15s; }
.gos-view-btn.active { }

/* Day selector — compact single-line tabs */
.gos-day-selector { display: flex; gap: 6px; margin-bottom: 20px; overflow-x: auto; }
.gos-day-btn { flex: 1 0 auto; min-width: 0; padding: 7px 12px; border-radius: 8px; border: 2px solid transparent; background: var(--glass-bg); cursor: pointer; color: inherit; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 6px; transition: opacity 0.25s, filter 0.25s, transform 0.15s; }
.gos-day-btn:not(.active) { opacity: 0.35; filter: grayscale(0.5); }
.gos-day-btn:not(.active):hover { opacity: 1; filter: none; transform: translateY(-1px); }
.gos-day-name { font-size: 0.8rem; font-weight: 700; }
.gos-day-count { font-size: 0.75rem; }

/* Day header + view toggle bar */
.gos-day-header-title { font-size: 1rem; font-weight: 800; line-height: 1.3; }
.gos-day-header-meta { font-size: 0.8rem; color: var(--mid); margin-top: 2px; }

/* Priority dropdown */
.gos-prio-dropdown { background: var(--bg-card, #1a1a2e); border: 1px solid var(--border-color, rgba(255,255,255,0.12)); border-radius: 10px; padding: 4px; min-width: 170px; box-shadow: 0 8px 28px rgba(0,0,0,0.45); animation: gosDropIn 0.15s ease-out; }
@keyframes gosDropIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.gos-prio-option { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border: none; border-radius: 8px; background: transparent; color: var(--text-primary, #e0e0e0); font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: inherit; text-align: left; transition: background 0.15s; }
.gos-prio-option:hover { background: rgba(255,255,255,0.07); }
.gos-prio-option.active { background: rgba(139,92,246,0.14); }
.gos-prio-option.is-default { border: 1px solid rgba(139,92,246,0.25); background: rgba(139,92,246,0.08); }
.gos-prio-option.is-default.active { background: rgba(139,92,246,0.2); border-color: rgba(139,92,246,0.4); }
.gos-prio-default-badge { font-size: 0.6rem; padding: 1px 6px; border-radius: 4px; background: rgba(139,92,246,0.18); color: #A78BFA; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-left: auto; }
.light-mode .gos-prio-dropdown { background: #fff; border-color: rgba(0,0,0,0.1); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.light-mode .gos-prio-option { color: #1a1a2e; }
.light-mode .gos-prio-option:hover { background: rgba(0,0,0,0.04); }
.light-mode .gos-prio-option.active { background: rgba(139,92,246,0.1); }
.light-mode .gos-prio-option.is-default { border-color: rgba(139,92,246,0.2); background: rgba(139,92,246,0.06); }
.light-mode .gos-prio-default-badge { background: rgba(139,92,246,0.12); color: #7C3AED; }

/* Task card */
.gos-task { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; transition: opacity 0.2s; }
.gos-task.done { background: rgba(16,185,129,0.06); opacity: 0.55; }
.gos-task-row { padding: 14px 16px; display: flex; align-items: center; gap: 10px; }

/* Reorder */
.gos-reorder { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.gos-reorder-btn { background: none; border: none; color: var(--dim); cursor: pointer; font-size: 0.7rem; padding: 2px; line-height: 1; }
.gos-reorder-btn:disabled { color: var(--faint); cursor: default; }

/* Checkbox */
.gos-checkbox { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--dim); background: transparent; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; transition: all 0.15s; }
.gos-checkbox:hover { border-color: var(--color-primary); background: rgba(108,92,231,0.08); }
.gos-checkbox.checked { border: none; background: #10B981; }
.gos-checkbox span { color: #fff; font-size: 0.75rem; font-weight: 700; }

/* Task content */
.gos-task-content { flex: 1; min-width: 0; cursor: pointer; }
.gos-task-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.gos-task-name { font-size: 0.875rem; font-weight: 600; line-height: 1.4; }
.gos-task-name.done { text-decoration: line-through; }
.gos-task-badges { display: flex; align-items: center; gap: 4px; flex-shrink: 0; flex-wrap: nowrap; }
.gos-task-badges > * { height: 22px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
/* Unified badge — all badges identical height, radius, font, padding */
.gos-badge-unified { height: 22px; font-size: 0.7rem; font-weight: 700; padding: 0 7px; border-radius: 6px; cursor: pointer; font-family: inherit; white-space: nowrap; transition: all 0.15s; line-height: 1; }
.gos-badge-book { }
.gos-badge-time { }
.gos-task-impact { font-size: 0.8rem; color: var(--mid); margin-top: 5px; line-height: 1.4; }

/* Task detail (expanded) */
.gos-task-detail { border-top: 1px solid; padding: 16px 18px; background: var(--glass-detail-bg); }
.gos-detail-label { font-size: 0.7rem; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1.5px; }
.gos-detail-text { font-size: 0.875rem; color: var(--detail-text); line-height: 1.75; white-space: pre-wrap; }

/* Auto section (owner only) */
.gos-auto-section { margin-top: 14px; }
.gos-auto-toggle { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(16,185,129,0.2); background: rgba(16,185,129,0.03); color: #10B981; font-size: 0.8rem; font-weight: 700; cursor: pointer; width: 100%; text-align: left; font-family: inherit; }
.gos-auto-toggle:hover { background: rgba(16,185,129,0.08); }
.gos-auto-content { margin-top: 10px; padding: 14px 16px; background: rgba(16,185,129,0.04); border: 1px solid rgba(16,185,129,0.1); border-radius: 10px; }
.gos-auto-label { font-size: 0.7rem; font-weight: 700; color: #10B981; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1.5px; }
.gos-auto-text { font-size: 0.875rem; color: var(--auto-text); line-height: 1.75; white-space: pre-wrap; }

/* Overview view */
.gos-section-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
.gos-overview-day { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; cursor: pointer; }
.gos-overview-day:hover { background: var(--glass-bg-hover); }
.gos-overview-day-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.gos-overview-day-title { font-size: 0.95rem; font-weight: 700; }
.gos-overview-day-time { font-size: 0.8rem; color: var(--dim); }
.gos-overview-day-count { font-size: 1.1rem; font-weight: 800; }
.gos-overview-task { font-size: 0.8rem; color: var(--mid); padding: 3px 0; display: flex; gap: 8px; align-items: center; }
.gos-overview-task.done { color: #10B981; }
.gos-overview-check { font-size: 0.8rem; }
.gos-overview-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; opacity: 0.6; }
.gos-overview-name { flex: 1; }
.gos-overview-name.done { text-decoration: line-through; }
.gos-overview-time { color: var(--dim); flex-shrink: 0; font-size: 0.75rem; }

/* Scorecard view */
.gos-score-row { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 12px 18px; margin-bottom: 8px; }
.gos-score-info { display: flex; justify-content: space-between; align-items: center; }
.gos-score-day { font-size: 0.875rem; font-weight: 600; }
.gos-score-count { font-size: 1.1rem; font-weight: 800; }
.gos-score-section-title { font-size: 0.95rem; font-weight: 700; margin-top: 18px; margin-bottom: 10px; color: var(--text-secondary); }

/* Insight card */
.gos-insight { background: linear-gradient(135deg,rgba(139,92,246,0.08),rgba(16,185,129,0.06)); border: 1px solid rgba(139,92,246,0.12); border-radius: 12px; padding: 18px; margin-top: 16px; }
.gos-insight-title { font-size: 0.8rem; font-weight: 700; color: #8B5CF6; margin-bottom: 6px; }
.gos-insight-text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* Tool links in auto tips */
.gos-tool-link {
    color: #10B981;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dashed rgba(16,185,129,0.4);
    transition: color 0.15s, border-color 0.15s;
}
.gos-tool-link:hover {
    color: #34D399;
    border-bottom-color: #34D399;
    border-bottom-style: solid;
}

/* Mobile */
@media (max-width: 640px) {
    .gos-inner { padding: 16px 16px 0; }
    .gos-content { padding: 0 16px 40px; }
    .gos-week-selector { flex-wrap: wrap; }
    .gos-week-btn { flex: 1 1 45%; min-width: 0; }
    .gos-title { font-size: 26px; }
    .gos-task-row { padding: 14px 14px; }
}


/* ========================================
   Light Mode — Growth OS & General Overrides
   ======================================== */
/* Growth OS light overrides */
[data-theme="light"] .gos-root { color: #1a1a2e; }
[data-theme="light"] .gos-task-name { color: #1a1a2e; }
[data-theme="light"] .gos-task-name.done { color: #6b7280; }
[data-theme="light"] .gos-day-header-meta { color: #4b5563; }
[data-theme="light"] .gos-task { background: #fff; border-color: #e5e7eb; }
[data-theme="light"] .gos-task.done { background: rgba(16,185,129,0.05); border-color: rgba(16,185,129,0.15); }
[data-theme="light"] .gos-checkbox { border-color: #9ca3af; }
[data-theme="light"] .gos-checkbox:hover { border-color: var(--color-primary); }
[data-theme="light"] .gos-task-detail { background: #f9fafb; }
[data-theme="light"] .gos-task-impact { color: #4b5563; }
[data-theme="light"] .gos-auto-toggle { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.05); }
[data-theme="light"] .gos-auto-toggle:hover { background: rgba(16,185,129,0.1); }
[data-theme="light"] .gos-auto-content { background: rgba(16,185,129,0.04); border-color: rgba(16,185,129,0.15); }
[data-theme="light"] .gos-insight { background: linear-gradient(135deg,rgba(139,92,246,0.06),rgba(16,185,129,0.04)); border-color: rgba(139,92,246,0.12); }
[data-theme="light"] .gos-overview-day { background: #fff; border-color: #e5e7eb; }
[data-theme="light"] .gos-overview-day:hover { background: #f9fafb; }
[data-theme="light"] .gos-overview-day-title { color: #1a1a2e; }
[data-theme="light"] .gos-overview-day-count { color: #1a1a2e; }
[data-theme="light"] .gos-overview-task { color: #374151; }
[data-theme="light"] .gos-score-row { background: #fff; border-color: #e5e7eb; }
[data-theme="light"] .gos-score-day { color: #1a1a2e; }
[data-theme="light"] .gos-score-count { color: #1a1a2e; }
[data-theme="light"] .gos-section-title { color: #1a1a2e; }
[data-theme="light"] .gos-detail-text { color: #374151; }
[data-theme="light"] .gos-auto-text { color: #065f46; }
[data-theme="light"] .gos-tool-link { color: #059669; border-bottom-color: rgba(5,150,105,0.4); }
[data-theme="light"] .gos-tool-link:hover { color: #047857; border-bottom-color: #047857; }
[data-theme="light"] .gos-week-btn { background: #fff; border-color: #e5e7eb; }
[data-theme="light"] .gos-day-btn { background: #fff; border-color: #e5e7eb; }
[data-theme="light"] .gos-view-btn { background: #fff; color: #4b5563; }
[data-theme="light"] .gos-progress-track { background: #e5e7eb; }
[data-theme="light"] .gos-legend-item { color: #374151; }
[data-theme="light"] .gos-reorder-btn { color: #9ca3af; }
[data-theme="light"] .gos-reorder-btn:disabled { color: #d1d5db; }

/* General app light overrides */
[data-theme="light"] .welcome-banner h2 { color: #fff; }
[data-theme="light"] .welcome-banner p { color: rgba(255,255,255,0.85); }
[data-theme="light"] .card { background: #fff; border-color: #e5e7eb; }
[data-theme="light"] .card-header h3 { color: #1a1a2e; }
[data-theme="light"] .kpi-value { color: #1a1a2e; }
[data-theme="light"] .kpi-label { color: #4b5563; }
[data-theme="light"] .page-header h1 { color: #1a1a2e; }

/* ========================================
   Landing / Login Page
   ======================================== */

.landing-page {
    min-height: 100vh;
    background: #0a0a0f;
    color: #e0e0e0;
    font-family: var(--font-family, 'Inter', sans-serif);
    overflow-x: hidden;
}

/* ── Hero ── */
.landing-hero {
    position: relative;
    padding: 40px 24px 32px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(108,92,231,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 40%, rgba(59,130,246,0.08) 0%, transparent 50%),
                #0a0a0f;
    overflow: hidden;
}
.landing-hero::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B5CF6, #3B82F6, #10B981, #F59E0B, #EF4444);
}
.landing-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

/* Logo row */
.landing-logo-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.landing-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    font-size: 24px;
}
.landing-logo-text {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}
.landing-logo-text .accent { color: #a78bfa; }

/* Headline */
.landing-headline {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: -0.03em;
}
.landing-headline-sub {
    font-size: 1.2rem;
    font-weight: 600;
    color: #a0a0b0;
    display: block;
    margin-top: 6px;
}
.gradient-text {
    background: linear-gradient(90deg, #8B5CF6, #3B82F6, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tagline */
.landing-tagline {
    font-size: 1rem;
    line-height: 1.6;
    color: #999;
    max-width: 560px;
    margin: 0 auto 24px;
}
.landing-tagline strong { color: #d0d0dd; }

/* ── Spots Counter ── */
.landing-spots {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 18px 24px;
    max-width: 400px;
    margin: 0 auto 20px;
}
.landing-spots-compact {
    padding: 20px 24px;
    margin: 0 auto 0;
}
.landing-spots-badge {
    display: inline-block;
    background: rgba(239,68,68,0.15);
    color: #EF4444;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 14px;
    border-radius: 99px;
    margin-bottom: 10px;
}
.landing-spots-headline {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}
.landing-spots-number {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #10B981, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.landing-spots-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ccc;
}
.landing-spots-bar {
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 12px;
}
.landing-spots-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #3B82F6);
    border-radius: 99px;
    transition: width 1s ease;
}
.landing-spots-sub {
    font-size: 0.85rem;
    color: #777;
}
.landing-spots-sub strong { color: #10B981; }

/* ── CTA Area ── */
.landing-cta-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.landing-google-btn {
    display: flex;
    justify-content: center;
    min-height: 48px;
}
.landing-cta-note {
    font-size: 0.8rem;
    color: #555;
    margin-top: 12px;
}
.landing-cta-trust {
    display: flex;
    gap: 18px;
    margin-top: 12px;
    font-size: 0.78rem;
    color: #666;
}
@media (max-width: 480px) {
    .landing-cta-trust { gap: 10px; font-size: 0.7rem; }
    .landing-google-btn iframe { max-width: 100% !important; }
}

/* ── Sections ── */
.landing-section {
    padding: 80px 24px;
    max-width: 960px;
    margin: 0 auto;
}
.landing-section-dark {
    background: rgba(255,255,255,0.02);
    max-width: 100%;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.landing-section-dark > * {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}
.landing-section-cta {
    text-align: center;
    max-width: 100%;
    background: radial-gradient(ellipse at 50% 100%, rgba(108,92,231,0.1) 0%, transparent 60%);
}
.landing-section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.landing-section-sub {
    text-align: center;
    color: #888;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

/* ── Features Grid ── */
.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.landing-feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 28px 24px;
    transition: all 0.25s;
}
.landing-feature-card:hover {
    border-color: rgba(139,92,246,0.25);
    transform: translateY(-2px);
}
.landing-feature-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}
.landing-feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.landing-feature-card p {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.6;
}

/* ── Weeks Row ── */
.landing-weeks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.landing-week {
    background: rgba(255,255,255,0.02);
    border: 1px solid;
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.2s;
}
.landing-week:hover { transform: translateY(-3px); }
.landing-week-icon { font-size: 2.5rem; margin-bottom: 12px; }
.landing-week-label { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.landing-week-desc { font-size: 0.85rem; color: #888; line-height: 1.5; }

/* ── Mentors ── */
.landing-mentors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.landing-mentor {
    padding: 28px 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    transition: all 0.25s;
}
.landing-mentor:hover { border-color: rgba(139,92,246,0.2); }
.landing-mentor-emoji { font-size: 2.5rem; margin-bottom: 12px; }
.landing-mentor-name { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.landing-mentor-role { font-size: 0.85rem; color: #888; }

/* ── Final CTA ── */
.landing-final-cta {
    max-width: 560px;
    margin: 0 auto;
}
.landing-final-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.landing-final-cta p {
    color: #888;
    font-size: 1rem;
    margin-bottom: 28px;
}

/* ── Footer ── */
.landing-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 40px 24px;
}
.landing-footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.landing-footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #888;
    font-size: 0.95rem;
}
.landing-logo-icon-sm {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 14px;
}
.landing-footer-links {
    display: flex;
    gap: 20px;
}
.landing-footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.landing-footer-links a:hover { color: #aaa; }
.landing-footer-copy {
    color: #444;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
    margin-top: 12px;
}

/* ── Landing Page Responsive ── */
@media (max-width: 768px) {
    .landing-headline { font-size: 2rem; }
    .landing-headline-sub { font-size: 1rem; }
    .landing-features-grid { grid-template-columns: 1fr; }
    .landing-weeks { grid-template-columns: repeat(2, 1fr); }
    .landing-mentors { grid-template-columns: repeat(2, 1fr); }
    .landing-hero { padding: 32px 16px 24px; }
    .landing-hero-inner { max-width: 100%; }
    .landing-section { padding: 48px 16px; }
    .landing-spots { max-width: 100%; padding: 16px 16px; }
    .landing-spots-number { font-size: 2.2rem; }
    .landing-tagline { font-size: 0.95rem; max-width: 100%; margin-bottom: 18px; }
    .landing-feature-card { padding: 22px 18px; }
    .landing-week { padding: 22px 16px; }
    .landing-mentor { padding: 22px 14px; }
    .landing-final-cta { max-width: 100%; padding: 0 4px; }
    .landing-footer-inner { flex-direction: column; text-align: center; }
    .landing-footer-links { justify-content: center; }
    .landing-cta-wrap { max-width: 100%; }
}
@media (max-width: 480px) {
    .landing-headline { font-size: 1.6rem; }
    .landing-headline-sub { font-size: 0.95rem; }
    .landing-hero { padding: 24px 12px 20px; }
    .landing-section { padding: 36px 12px; }
    .landing-weeks { grid-template-columns: 1fr; }
    .landing-mentors { grid-template-columns: 1fr; }
    .landing-spots { padding: 14px 12px; border-radius: 12px; }
    .landing-spots-number { font-size: 2rem; }
    .landing-section-title { font-size: 1.5rem; }
    .landing-section-sub { font-size: 0.95rem; }
    .landing-logo-row { margin-bottom: 12px; }
    .landing-logo-icon { width: 36px; height: 36px; font-size: 18px; }
    .landing-logo-text { font-size: 22px; }
}

/* ========================================
   Feedback Page
   ======================================== */

/* Tabs */
.fb-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: var(--sp-5);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 4px;
    width: fit-content;
}
.fb-tab {
    padding: 8px 20px;
    border: none;
    background: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.fb-tab.active {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}
.fb-tab:hover:not(.active) {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* Grid */
.fb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--sp-4);
}

/* Section Card */
.fb-card {
    padding: var(--sp-4);
    border-radius: var(--radius-lg);
    transition: transform 0.15s, box-shadow 0.15s;
}
.fb-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.fb-card-head {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
}
.fb-emoji {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}
.fb-card-info { flex: 1; }
.fb-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.fb-card-desc {
    font-size: 0.8rem;
    margin-top: 2px;
}
.fb-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

/* Stars */
.fb-stars {
    display: flex;
    gap: 4px;
}
.fb-star {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: var(--radius-sm);
    transition: transform 0.15s;
    line-height: 0;
}
.fb-star:hover {
    transform: scale(1.25);
}
.fb-star.active svg polygon {
    fill: var(--color-warning);
    stroke: var(--color-warning);
}

/* Like / Thumbs-up Button */
.fb-like {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    flex-shrink: 0;
}
.fb-like:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-alpha, rgba(108, 92, 231, 0.08));
}
.fb-like.liked {
    border-color: var(--color-success);
    color: var(--color-success);
    background: rgba(0, 206, 201, 0.12);
    transform: scale(1.1);
}
.fb-like.liked svg {
    fill: var(--color-success);
}

/* Comment textarea */
.fb-comment {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
    min-height: 42px;
    transition: border-color 0.2s;
}
.fb-comment:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}
.fb-comment::placeholder {
    color: var(--text-muted);
}

/* Owner Summary Stats */
.fb-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
    margin-bottom: var(--sp-4);
}
.fb-stat-card {
    text-align: center;
    padding: var(--sp-4);
}
.fb-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
}
.fb-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--sp-1);
}

/* Section breakdown table */
.fb-section-table {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.fb-table-head,
.fb-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: var(--sp-2);
    padding: 10px 16px;
    align-items: center;
}
.fb-table-head {
    background: var(--bg-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.fb-table-row {
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}
.fb-table-row:hover {
    background: var(--bg-secondary);
}

/* Recent feedback items */
.fb-recent-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}
.fb-recent-item {
    padding: var(--sp-3) var(--sp-4);
}
.fb-recent-head {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-2);
    flex-wrap: wrap;
}
.fb-recent-body {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    flex-wrap: wrap;
}
.fb-recent-stars {
    color: var(--color-warning);
    font-size: 1rem;
    letter-spacing: 1px;
}
.fb-recent-like {
    font-size: 1.1rem;
}
.fb-recent-comment {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
    min-width: 200px;
}

/* Floating feedback FAB */
.fb-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 900;
}
.fb-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(108, 92, 231, 0.5);
}
.fb-fab svg {
    width: 24px;
    height: 24px;
}

/* Mobile */
@media (max-width: 600px) {
    .fb-grid {
        grid-template-columns: 1fr;
    }
    .fb-summary-grid {
        grid-template-columns: 1fr;
    }
    .fb-table-head,
    .fb-table-row {
        grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
        font-size: 0.75rem;
        padding: 8px 10px;
    }
    .fb-card-head {
        flex-wrap: wrap;
    }
    .fb-fab {
        bottom: 80px; /* above install banner if showing */
        right: 16px;
        width: 46px;
        height: 46px;
    }
}

/* ========================================
   Growth OS — Focus Mode Overlay
   ======================================== */
#gos-focus-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: focusFadeIn 0.25s ease;
}
@keyframes focusFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.gos-focus-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.gos-focus-panel {
    position: relative;
    width: 94%;
    max-width: 720px;
    max-height: 92vh;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    animation: focusSlideUp 0.3s ease;
}
@keyframes focusSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Top bar */
.gos-focus-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.06));
    background: var(--bg-secondary, rgba(255,255,255,0.02));
}
.gos-focus-close {
    background: none;
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    color: var(--text-muted, #888);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.gos-focus-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

/* Timer section */
.gos-focus-timer-wrap {
    text-align: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.06));
}
.gos-focus-timer-display {
    font-size: 3rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    color: var(--text-primary, #fff);
    margin-bottom: 12px;
    font-family: 'Inter', monospace;
}
.gos-focus-timer-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.gos-focus-timer-btn {
    padding: 8px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    transition: all 0.15s;
}
.gos-focus-timer-start {
    background: #10B981;
    color: #fff;
}
.gos-focus-timer-start:hover { background: #059669; }
.gos-focus-timer-pause {
    background: #F59E0B;
    color: #fff;
}
.gos-focus-timer-pause:hover { background: #D97706; }
.gos-focus-timer-reset {
    background: var(--bg-hover, rgba(255,255,255,0.06));
    color: var(--text-muted, #888);
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
}
.gos-focus-timer-reset:hover { background: var(--bg-tertiary, rgba(255,255,255,0.1)); }

/* Body / task details */
.gos-focus-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
.gos-focus-task-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
.gos-focus-checkbox {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 2px solid var(--dim, #555);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.15s;
}
.gos-focus-checkbox:hover {
    border-color: var(--color-primary, #6C5CE7);
    background: rgba(108, 92, 231, 0.08);
}
.gos-focus-checkbox.checked {
    border: none;
    background: #10B981;
}
.gos-focus-checkbox span {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}
.gos-focus-task-name {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary, #fff);
    margin: 0 0 8px 0;
}
.gos-focus-task-name.done {
    text-decoration: line-through;
    color: var(--text-muted, #888);
}
.gos-focus-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.gos-focus-impact {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 1rem;
    color: var(--text-secondary, #a0a0b0);
    line-height: 1.5;
    padding: 14px 18px;
    background: var(--bg-secondary, rgba(255,255,255,0.02));
    border-radius: 12px;
    margin-bottom: 20px;
}
.gos-focus-section {
    background: var(--bg-secondary, rgba(255,255,255,0.02));
    border: 1px solid var(--border-color, rgba(255,255,255,0.06));
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
}
.gos-focus-section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}
.gos-focus-section-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary, #a0a0b0);
    white-space: pre-wrap;
}

/* Bottom bar */
.gos-focus-bottom {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.06));
    text-align: center;
}
.gos-focus-done-btn {
    padding: 12px 40px;
    border: none;
    border-radius: 12px;
    background: #10B981;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.gos-focus-done-btn:hover {
    background: #059669;
    transform: scale(1.02);
}
.gos-focus-done-btn.completed {
    background: var(--bg-hover, rgba(255,255,255,0.06));
    color: var(--text-muted, #888);
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
}
.gos-focus-done-btn.completed:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Focus btn hover in task row */
.gos-focus-btn:hover {
    opacity: 1 !important;
    border-color: var(--color-primary, #6C5CE7) !important;
    color: var(--color-primary, #6C5CE7) !important;
    background: rgba(108, 92, 231, 0.08) !important;
}

/* Light mode overrides */
[data-theme="light"] .gos-focus-panel { background: #fff; }
[data-theme="light"] .gos-focus-topbar { background: #f9fafb; }
[data-theme="light"] .gos-focus-task-name { color: #1a1a2e; }
[data-theme="light"] .gos-focus-timer-display { color: #1a1a2e; }
[data-theme="light"] .gos-focus-impact { background: #f9fafb; }
[data-theme="light"] .gos-focus-section { background: #f9fafb; border-color: #e5e7eb; }
[data-theme="light"] .gos-focus-section-text { color: #374151; }
[data-theme="light"] .gos-focus-done-btn.completed { background: #f3f4f6; color: #6b7280; border-color: #d1d5db; }

/* Mobile focus */
@media (max-width: 640px) {
    .gos-focus-panel { width: 100%; max-width: 100%; max-height: 100vh; border-radius: 0; }
    .gos-focus-timer-display { font-size: 2.2rem; }
    .gos-focus-task-name { font-size: 1.1rem; }
    .gos-focus-body { padding: 16px; }
}

/* ========================================
   Software & Infrastructure Page
   ======================================== */
.sw-root { min-height: 100vh; color: var(--text-on-card); font-family: 'Inter', -apple-system, sans-serif; }
.sw-inner { max-width: 960px; margin: 0 auto; padding: 32px 24px 80px; }

/* Header */
.sw-header { margin-bottom: 28px; }
.sw-subtitle { font-size: 11px; text-transform: uppercase; letter-spacing: 3px; color: var(--dim); font-weight: 700; margin-bottom: 6px; }
.sw-title { font-size: 30px; font-weight: 900; margin: 0 0 8px; background: linear-gradient(90deg, #8B5CF6, #3B82F6, #10B981); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sw-desc { font-size: 14px; color: var(--mid); margin: 0; line-height: 1.6; }

/* Quick Nav pills */
.sw-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.sw-nav-pill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 20px; border: 1px solid; font-size: 0.78rem; font-weight: 600; text-decoration: none; transition: all 0.2s; background: transparent; }
.sw-nav-pill:hover { transform: translateY(-1px); filter: brightness(1.2); }

/* Category section */
.sw-category { margin-bottom: 36px; }
.sw-cat-header { padding: 0 0 0 16px; margin-bottom: 16px; }
.sw-cat-title { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.sw-cat-desc { font-size: 13px; color: var(--mid); margin: 0; }

/* Workflow box */
.sw-workflow { border: 1px solid; border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; }
.sw-workflow-title { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.sw-workflow-steps { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.8; color: var(--text-secondary, #8892B0); }
.sw-workflow-steps li { margin-bottom: 4px; }
.sw-workflow-steps strong { color: var(--text-primary, #fff); }

/* Tools grid */
.sw-tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

/* Tool card */
.sw-tool-card { background: var(--glass-bg, rgba(255,255,255,0.03)); border: 1px solid var(--glass-border, rgba(255,255,255,0.06)); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.2s, transform 0.15s; }
.sw-tool-card:hover { border-color: rgba(139,92,246,0.2); transform: translateY(-2px); }
.sw-tool-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sw-tool-name { font-size: 17px; font-weight: 800; }
.sw-tool-price { font-size: 12px; font-weight: 700; white-space: nowrap; }
.sw-tool-desc { font-size: 13px; line-height: 1.65; color: var(--text-secondary, #8892B0); flex: 1; }
.sw-tool-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sw-tool-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.sw-tag { font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.sw-tool-link { font-size: 0.78rem; font-weight: 700; padding: 6px 16px; border-radius: 8px; text-decoration: none; transition: all 0.15s; white-space: nowrap; }
.sw-tool-link:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* Footer tip */
.sw-footer { margin-top: 24px; padding: 16px 20px; border-radius: 12px; background: rgba(139,92,246,0.06); border: 1px solid rgba(139,92,246,0.12); font-size: 13px; color: var(--mid); line-height: 1.6; }
.sw-footer strong { color: var(--text-primary, #fff); }

/* Light mode */
.light-mode .sw-tool-card { background: #fff; border-color: rgba(0,0,0,0.08); }
.light-mode .sw-tool-card:hover { border-color: rgba(139,92,246,0.25); }
.light-mode .sw-tool-desc { color: #555; }
.light-mode .sw-workflow-steps { color: #555; }
.light-mode .sw-workflow-steps strong { color: #1a1a2e; }
.light-mode .sw-footer { background: rgba(139,92,246,0.04); }
.light-mode .sw-footer strong { color: #1a1a2e; }

/* Mobile */
@media (max-width: 640px) {
    .sw-inner { padding: 20px 16px 60px; }
    .sw-title { font-size: 24px; }
    .sw-tools-grid { grid-template-columns: 1fr; }
    .sw-nav { gap: 6px; }
    .sw-nav-pill { font-size: 0.7rem; padding: 5px 10px; }
}
