/* ============================================
   FocusFlow – Design System v3
   Navy & Sky Blue · Solid buttons · Compact ring
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Design Tokens ── */
:root {
    --primary: #1E3A8A;
    --primary-hover: #1E40AF;
    --primary-light: rgba(30, 58, 138, .08);
    --primary-glow: rgba(30, 58, 138, .18);

    --accent: #0EA5E9;
    --accent-hover: #0284C7;
    --accent-light: rgba(14, 165, 233, .08);
    --accent-glow: rgba(14, 165, 233, .20);

    --success: #16A34A;
    --success-light: rgba(22, 163, 74, .08);
    --error: #DC2626;
    --error-light: rgba(220, 38, 38, .08);
    --warning: #D97706;
    --warning-light: rgba(217, 119, 6, .08);

    /* Surfaces */
    --bg-body: #F1F5F9;
    --bg-card: #FFFFFF;
    --bg-input: #FFFFFF;
    --bg-elevated: #F8FAFC;
    --bg-inset: #EFF3F8;

    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-faint: #94A3B8;
    --text-inverse: #FFFFFF;

    /* Borders */
    --border: #E2E8F0;
    --border-focus: #0EA5E9;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, .05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, .08);
    --shadow-glow: 0 0 24px rgba(14, 165, 233, .12);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius: 14px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    /* Layout */
    --max-width: 960px;
    --header-h: 68px;
    --gap: 16px;
    --section-gap: 44px;

    /* Motion */
    --ease: 200ms ease;
    --ease-s: 300ms cubic-bezier(.4, 0, .2, 1);
}

/* ── Dark Mode ── */
[data-theme="dark"] {
    --bg-body: #0B1220;
    --bg-card: #131D2E;
    --bg-input: #101A2B;
    --bg-elevated: #162033;
    --bg-inset: #0E1726;
    --border: #1E2D42;
    --border-focus: #0EA5E9;
    --text-primary: #E2E8F0;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-faint: #475569;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .2);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, .25);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-glow: 0 0 30px rgba(14, 165, 233, .15);
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background var(--ease-s), color var(--ease-s)
}

/* ── Layout ── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0
}

/* ============================================
   Header
   ============================================ */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    transition: background var(--ease-s), border-color var(--ease-s)
}

[data-theme="dark"] .app-header {
    background: rgba(11, 18, 32, .88)
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h)
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(30, 58, 138, .25)
}

.brand-text h1 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--primary)
}

[data-theme="dark"] .brand-text h1 {
    color: var(--accent)
}

.brand-text p {
    font-size: .68rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: -1px;
    letter-spacing: .02em
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--bg-inset);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--ease);
    display: flex;
    align-items: center;
    padding: 0 3px
}

.theme-toggle:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow)
}

.theme-toggle-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FCD34D, #F59E0B);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
    transition: transform var(--ease-s);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .62rem
}

[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(24px);
    background: linear-gradient(135deg, #38BDF8, #0EA5E9)
}

/* ============================================
   Main
   ============================================ */
.app-main {
    padding: var(--section-gap) 0 80px
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    margin: 0
}

.section-title .icon {
    font-size: 1.15rem
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-xs);
    transition: all var(--ease)
}

.card:hover {
    box-shadow: var(--shadow-sm)
}

/* ============================================
   Form
   ============================================ */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.form-group.full-width {
    grid-column: 1/-1
}

.form-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: .01em
}

.form-label .required {
    color: var(--error);
    font-size: .72rem
}

.form-input,
.form-select {
    width: 100%;
    padding: 11px 16px;
    font-size: .88rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--ease)
}

.form-input::placeholder {
    color: var(--text-faint)
}

.form-input:focus,
.form-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-light)
}

.form-input.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px var(--error-light)
}

.form-error {
    font-size: .73rem;
    color: var(--error);
    font-weight: 500;
    min-height: 18px;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(-3px);
    transition: all 150ms ease
}

.form-error.visible {
    opacity: 1;
    transform: translateY(0)
}

.form-helper {
    font-size: .7rem;
    color: var(--text-faint);
    font-weight: 400
}

/* ============================================
   Buttons  – SOLID primary, no gradient
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    font-size: .86rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--ease);
    text-decoration: none;
    white-space: nowrap;
    user-select: none
}

.btn:active {
    transform: scale(.97)
}

.btn-primary {
    background: var(--primary);
    color: var(--text-inverse);
    box-shadow: 0 4px 14px rgba(30, 58, 138, .25)
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(30, 58, 138, .35);
    transform: translateY(-1px)
}

.btn-primary:active {
    transform: translateY(0) scale(.97)
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--border)
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: var(--accent-light)
}

/* Delete / Danger – outline red, solid on hover */
.btn-danger {
    background: transparent;
    color: var(--error);
    border: 1.5px solid var(--error);
    border-radius: var(--radius-sm)
}

.btn-danger:hover {
    background: var(--error);
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, .25)
}

.btn-sm {
    padding: 7px 16px;
    font-size: .78rem;
    border-radius: var(--radius-sm)
}

.btn-lg {
    padding: 13px 32px;
    font-size: .92rem
}

.btn-block {
    width: 100%
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none !important
}

.form-actions {
    margin-top: 28px;
    display: flex;
    gap: 14px
}

/* ============================================
   Create Section
   ============================================ */
.create-section {
    margin-bottom: var(--section-gap)
}

.create-card {
    position: relative;
    overflow: hidden
}

.create-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary)
}

/* ============================================
   Progress Section – compact ring
   ============================================ */
.progress-section {
    margin-bottom: var(--section-gap)
}

.progress-card {
    padding: 32px;
    display: flex;
    gap: 36px;
    align-items: center;
    flex-wrap: wrap
}

/* Circular Progress – 100×100 */
.circular-progress {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0
}

.circular-progress svg {
    width: 100px;
    height: 100px;
    transform: rotate(-90deg)
}

.circular-progress .track {
    fill: none;
    stroke: var(--bg-inset);
    stroke-width: 7
}

.circular-progress .fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 7;
    stroke-linecap: round;
    transition: stroke-dashoffset .8s cubic-bezier(.34, 1.56, .64, 1)
}

.circular-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.circular-percent {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1
}

.circular-label {
    font-size: .58rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 4px
}

/* Progress Details */
.progress-details {
    flex: 1;
    min-width: 200px
}

.progress-headline {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px
}

.progress-motivation {
    font-size: .82rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 16px
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: var(--bg-inset);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px
}

.progress-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width .7s cubic-bezier(.34, 1.56, .64, 1);
    min-width: 0
}

.progress-meta {
    font-size: .76rem;
    color: var(--text-muted);
    font-weight: 500
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px
}

.stat-item {
    text-align: center;
    padding: 14px 8px;
    background: var(--bg-inset);
    border-radius: var(--radius-md);
    transition: all var(--ease)
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xs)
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary)
}

.stat-label {
    font-size: .65rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: .05em
}

/* ============================================
   Plans Section
   ============================================ */
.plans-section {
    margin-top: 8px
}

.plan-card {
    margin-bottom: var(--section-gap);
    border-left: 4px solid var(--primary);
    overflow: hidden
}

.plan-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px
}

.plan-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px
}

.plan-info .plan-meta {
    font-size: .76rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap
}

.plan-meta span {
    display: flex;
    align-items: center;
    gap: 4px
}

.plan-actions {
    display: flex;
    gap: 8px
}

/* ── Days Grid (2-col desktop) ── */
.days-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
    align-items: start
}

/* ── Day Card ── */
.day-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--ease);
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated)
}

.day-card:hover {
    border-color: var(--accent-glow);
    box-shadow: var(--shadow-sm)
}

.day-card.completed {
    border-color: var(--success)
}

.day-card.completed .day-header {
    opacity: .65
}

.day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: background var(--ease);
    gap: 10px
}

.day-header:hover {
    background: var(--bg-inset)
}

.day-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1
}

.day-number {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.day-card.completed .day-number {
    background: var(--success-light);
    color: var(--success)
}

.day-card.phase-practice .day-number {
    background: var(--accent-light);
    color: var(--accent)
}

.day-card.phase-revision .day-number {
    background: var(--warning-light);
    color: var(--warning)
}

.day-title-block {
    min-width: 0;
    flex: 1
}

.day-focus {
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.day-topics-preview {
    font-size: .72rem;
    color: var(--text-muted);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.day-date-label {
    font-size: .68rem;
    color: var(--text-faint);
    margin-top: 2px
}

.day-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0
}

.phase-badge {
    font-size: .6rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap
}

.phase-badge.core {
    background: var(--primary-light);
    color: var(--primary)
}

.phase-badge.practice {
    background: var(--accent-light);
    color: var(--accent)
}

.phase-badge.revision {
    background: var(--warning-light);
    color: var(--warning)
}

.phase-badge.done {
    background: var(--success-light);
    color: var(--success)
}

.chevron {
    font-size: .8rem;
    transition: transform var(--ease-s);
    color: var(--text-faint)
}

.day-card.expanded .chevron {
    transform: rotate(180deg)
}

/* Day Content (collapsible) */
.day-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--ease-s)
}

.day-card.expanded .day-content {
    max-height: 900px
}

.day-inner {
    padding: 0 18px 18px
}

/* Study structure breakdown */
.study-structure {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px
}

.structure-block {
    padding: 10px 12px;
    background: var(--bg-inset);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all var(--ease)
}

.structure-block:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs)
}

.structure-percent {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1
}

.structure-type {
    font-size: .62rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: .04em
}

.structure-hours {
    font-size: .68rem;
    color: var(--text-faint);
    margin-top: 2px
}

/* Topic tasks */
.day-topics-list {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-inset);
    border-radius: var(--radius-sm);
    transition: all 150ms ease;
    cursor: pointer
}

.task-item:hover {
    background: var(--accent-light)
}

.task-item.completed {
    opacity: .55
}

.task-item.completed .task-label {
    text-decoration: line-through;
    color: var(--text-muted)
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 150ms ease;
    background: var(--bg-input)
}

.task-item.completed .task-checkbox {
    background: var(--success);
    border-color: var(--success);
    color: #fff
}

.task-checkbox-icon {
    font-size: .68rem;
    opacity: 0;
    transform: scale(0);
    transition: all 150ms ease
}

.task-item.completed .task-checkbox-icon {
    opacity: 1;
    transform: scale(1)
}

.task-label {
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 150ms ease
}

/* Time tag – readable pill, light bg, dark text */
.task-tag {
    margin-left: auto;
    font-size: .7rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 64px 24px
}

.empty-state-icon {
    font-size: 3.2rem;
    margin-bottom: 20px;
    opacity: .25
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px
}

.empty-state p {
    font-size: .85rem;
    color: var(--text-muted);
    max-width: 320px;
    margin: 0 auto
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease)
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    transform: scale(.96) translateY(8px);
    transition: transform var(--ease-s)
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0)
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--error-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px
}

.modal h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px
}

.modal p {
    font-size: .85rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.5
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end
}

/* ============================================
   Toast
   ============================================ */
.toast-container {
    position: fixed;
    top: calc(var(--header-h) + 12px);
    right: 16px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    font-size: .82rem;
    font-weight: 500;
    max-width: 340px;
    transform: translateX(120%);
    transition: transform var(--ease-s)
}

.toast.show {
    transform: translateX(0)
}

.toast-icon {
    font-size: 1.05rem;
    flex-shrink: 0
}

.toast.success {
    border-left: 4px solid var(--success)
}

.toast.error {
    border-left: 4px solid var(--error)
}

.toast.info {
    border-left: 4px solid var(--accent)
}

/* ============================================
   Toggle All
   ============================================ */
.toggle-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .76rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    transition: color var(--ease)
}

.toggle-all-btn:hover {
    color: var(--accent)
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.animate-in {
    animation: fadeInUp .45s ease forwards
}

.animate-in-delay-1 {
    animation-delay: .08s;
    opacity: 0
}

.animate-in-delay-2 {
    animation-delay: .16s;
    opacity: 0
}

.animate-in-delay-3 {
    animation-delay: .24s;
    opacity: 0
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 5px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full)
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted)
}

/* ============================================
   Utilities
   ============================================ */
.hidden {
    display: none !important
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

/* ============================================
   Responsive
   ============================================ */
@media(max-width:768px) {
    .container {
        padding: 0 16px
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .days-grid {
        grid-template-columns: 1fr
    }

    .progress-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 24px
    }

    .circular-progress {
        margin: 0 auto
    }

    .stats-row {
        grid-template-columns: repeat(3, 1fr)
    }

    .study-structure {
        grid-template-columns: 1fr
    }

    .plan-header {
        flex-direction: column;
        align-items: flex-start
    }

    .plan-actions {
        width: 100%
    }

    .plan-actions .btn {
        flex: 1
    }

    .app-main {
        padding: 28px 0 64px
    }

    .card {
        padding: 20px
    }

    .modal-actions {
        flex-direction: column-reverse
    }

    .modal-actions .btn {
        width: 100%
    }
}

@media(max-width:480px) {
    .brand-text p {
        display: none
    }

    .brand-text h1 {
        font-size: 1.15rem
    }

    .header-inner {
        height: 56px
    }

    .brand-icon {
        width: 32px;
        height: 32px;
        font-size: .95rem
    }

    .day-header {
        padding: 12px 14px
    }

    .day-inner {
        padding: 0 14px 14px
    }

    .day-topics-preview {
        display: none
    }

    .stats-row {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px
    }

    .stat-item {
        padding: 10px 4px
    }

    .stat-number {
        font-size: 1.05rem
    }
}