/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --purple:  #8B5CF6;
    --teal:    #0D9488;
    --coral:   #E85D3D;
    --pink:    #DB2777;
    --amber:   #D97706;
    --blue:    #2563EB;
    --warm:    #92400E;
    --gold:    #B45309;
    --bg:      #faf9f6;
    --surface: #ffffff;
    --text:    #2c2c2a;
    --muted:   #6b7280;
    --radius:  12px;
}

body {
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth theme transitions */
.post-card, .post-full, .comment,
.form-group input, .form-group textarea, .tag {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ── REMOVED: a { color: inherit } — was overriding all Tailwind link colours ── */
/* All anchor colours are now handled by Tailwind classes in the templates */

/* ── Container (used by non-Tailwind pages) ── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* ── Page header ── */
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 2rem; font-weight: 700; }

/* ── Posts grid ── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ── Post card ── */
.post-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border-top: 5px solid var(--purple);
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.post-card.color-0 { border-top-color: var(--purple); }
.post-card.color-1 { border-top-color: var(--teal);   }
.post-card.color-2 { border-top-color: var(--coral);  }
.post-card.color-3 { border-top-color: var(--pink);   }
.post-card.color-4 { border-top-color: var(--amber);  }
.post-card.color-5 { border-top-color: var(--blue);   }

.post-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-card-body { padding: 1.25rem; }

.post-card-body h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.post-card-body h2 a:hover { color: var(--purple); }

.post-excerpt {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--muted);
}

.read-more { color: var(--purple); font-weight: 500; }
.read-more:hover { text-decoration: underline; }

/* ── Tags ── */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem; }

.tag {
    background: #eeedfe;
    color: #534ab7;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

/* ── Full post ── */
.post-full {
    max-width: 720px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
}

.post-cover-full {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.post-full-header {
    padding: 2rem 2.5rem 1rem;
    border-bottom: 1px solid #e2e0d8;
}

.post-full-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.post-body {
    padding: 2rem 2.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    white-space: pre-wrap;
}

.post-actions {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid #e2e0d8;
    display: flex;
    gap: 1rem;
}

/* ── Buttons (non-Tailwind pages only) ── */
.btn {
    display: inline-block;
    background: var(--purple);
    color: #fff !important;   /* !important only here to beat inherit on old pages */
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn:hover { opacity: 0.88; }

.btn-outline {
    background: transparent;
    color: var(--purple) !important;
    border: 1.5px solid var(--purple);
}
.btn-outline:hover { background: #eeedfe; opacity: 1; }

.btn-danger {
    background: transparent;
    color: #a32d2d !important;
    border: 1.5px solid #a32d2d;
}
.btn-danger:hover { background: #fcebeb; opacity: 1; }

/* ── Forms ── */
.form-page { max-width: 680px; margin: 0 auto; }
.form-page h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.hint { color: var(--muted); font-weight: 400; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #d3d1c7;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
}

.form-group textarea { resize: vertical; }

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}
.empty-state p { margin-bottom: 1rem; font-size: 1.1rem; }

/* ── Error message ── */
.error {
    background: #fcebeb;
    color: #a32d2d;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* ── Mortgage pagination ── */
.mortgage-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--muted);
    padding: 0 0.5rem;
}

.mortgage-pagination .btn-outline:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Quill editor ── */
#quill-editor {
    min-height: 280px;
    background: var(--surface);
    border: 1.5px solid #d3d1c7;
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-size: 0.95rem;
    font-family: inherit;
}

#quill-editor:focus-within { border-color: var(--purple); }

.ql-toolbar {
    border: 1.5px solid #d3d1c7 !important;
    border-radius: 8px 8px 0 0 !important;
    background: var(--bg) !important;
    font-family: inherit !important;
}

.ql-toolbar:focus-within { border-color: var(--purple) !important; }
.ql-container { font-family: inherit !important; font-size: 0.95rem !important; }

/* ── Comments ── */
.comments-section {
    padding: 2rem 2.5rem;
    border-top: 1px solid #e2e0d8;
}

.comments-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.comment {
    background: var(--bg);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--purple);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.comment-author { font-weight: 600; font-size: 0.9rem; color: var(--purple); }
.comment-date   { font-size: 0.8rem; color: var(--muted); }

.comment-delete {
    background: none;
    border: none;
    color: #a32d2d;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}
.comment-delete:hover { text-decoration: underline; }

.comment-body {
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.comment-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e0d8;
}

.comment-login-prompt {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
}

/* ── Dark mode ── */
:root {
    --bg:      #f7f6f2;
    --surface: #ffffff;
    --text:    #2c2c2a;
    --muted:   #5f5e5a;
}

[data-theme="dark"] {
    --bg:      #1a1a18;
    --surface: #242422;
    --text:    #e2e0d8;
    --muted:   #9c9a92;
}

[data-theme="dark"] .post-card { box-shadow: none; }

[data-theme="dark"] .ql-toolbar {
    border-color: #444441 !important;
    background: #1a1a18 !important;
    color: var(--text) !important;
}

[data-theme="dark"] .ql-toolbar button,
[data-theme="dark"] .ql-toolbar .ql-picker {
    color: var(--text) !important;
    filter: invert(1);
}

[data-theme="dark"] #quill-editor { border-color: #444441; color: var(--text); }

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: #2c2c2a;
    border-color: #444441;
    color: var(--text);
}

[data-theme="dark"] .comment { background: #2c2c2a; }

[data-theme="dark"] .post-full-header,
[data-theme="dark"] .post-actions,
[data-theme="dark"] .comments-section,
[data-theme="dark"] .comment-form { border-color: #333330; }

[data-theme="dark"] .tag { background: #3c3489; color: #ceccf6; }

/* ── Author page ── */
.author-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius);
}

.author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--purple);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-info h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.25rem; }
.author-meta    { color: var(--muted); font-size: 0.9rem; }
.author-link    { color: var(--purple); font-weight: 500; font-size: 0.85rem; }
.author-link:hover { text-decoration: underline; }

/* ── Mortgage calculator ── */
.mortgage-page { max-width: 1100px; margin: 0 auto; }

.mortgage-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
    align-items: start;
}

.mortgage-form-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    max-width: 320px;
}

.mortgage-form-card form { display: flex; flex-direction: column; gap: 0.7rem; }
.mortgage-form-card .form-group { margin-bottom: 0.5rem; }
.mortgage-form-card label { font-size: 0.97rem; margin-bottom: 0.15rem; }
.mortgage-form-card input[type="number"] {
    font-size: 0.97rem;
    padding: 0.3rem 0.5rem;
    height: 2rem;
    border-radius: 6px;
}
.mortgage-form-card .btn { margin-top: 0.5rem; padding: 0.5rem 0; font-size: 1rem; }

.mortgage-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.summary-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    border-top: 4px solid var(--purple);
}

.summary-card.color-0 { border-top-color: var(--purple); }
.summary-card.color-1 { border-top-color: var(--teal);   }
.summary-card.color-2 { border-top-color: var(--coral);  }
.summary-card.color-3 { border-top-color: var(--pink);   }

.summary-label  { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; }
.summary-value  { font-size: 1.6rem; font-weight: 700; color: var(--text); }

.amortization-wrapper { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; }
.table-scroll { overflow-x: auto; }

.amortization-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }

.amortization-table th {
    text-align: left;
    padding: 0.6rem 1rem;
    background: var(--bg);
    color: var(--muted);
    font-weight: 500;
    border-bottom: 1.5px solid #e2e0d8;
    white-space: nowrap;
}

.amortization-table td {
    padding: 0.55rem 1rem;
    border-bottom: 1px solid #e2e0d8;
    white-space: nowrap;
}

.amortization-table tbody tr:hover { background: var(--bg); }

.highlight-row { background: #eeedfe !important; font-weight: 500; }

[data-theme="dark"] .highlight-row   { background: #3c3489 !important; }
[data-theme="dark"] .amortization-table th { border-bottom-color: #333330; }
[data-theme="dark"] .amortization-table td { border-bottom-color: #2c2c2a; }

@media (max-width: 768px) {
    .mortgage-layout { grid-template-columns: 1fr; }
    .mortgage-summary { grid-template-columns: repeat(2, 1fr); }
}

/* ── Savings banner ── */
.savings-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #eefaf5;
    border: 1.5px solid var(--teal);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

[data-theme="dark"] .savings-banner { background: #1a2e27; }

.savings-icon      { font-size: 1.8rem; }
.savings-title     { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.2rem; }
.savings-highlight { font-size: 1rem; font-weight: 700; color: var(--teal); }

.mortgage-results { display: flex; flex-direction: column; gap: 1rem; }

.summary-sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }
.summary-sub.saving { color: var(--teal); font-weight: 500; }

/* ── About pages ── */
.about-page { max-width: 900px; margin: 0 auto; }

.about-hero { text-align: center; padding: 3rem 2rem 2rem; margin-bottom: 2rem; }
.about-hero-icon   { font-size: 3rem; margin-bottom: 1rem; }
.about-hero-avatar { font-size: 4rem; margin-bottom: 1rem; }
.about-hero h1     { font-size: 2.2rem; font-weight: 700; margin-bottom: 0.75rem; }

.about-tagline {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
}

.about-section h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; color: var(--purple); }
.about-section p  { color: var(--text); line-height: 1.8; margin-bottom: 0.75rem; }
.about-section p:last-child { margin-bottom: 0; }

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.topic-card {
    background: var(--bg);
    border-radius: 8px;
    padding: 1.25rem;
    border-left: 3px solid var(--purple);
}

.topic-card:nth-child(1) { border-left-color: var(--purple); }
.topic-card:nth-child(2) { border-left-color: var(--teal);   }
.topic-card:nth-child(3) { border-left-color: var(--coral);  }
.topic-card:nth-child(4) { border-left-color: var(--pink);   }
.topic-card:nth-child(5) { border-left-color: var(--amber);  }
.topic-card:nth-child(6) { border-left-color: var(--blue);   }

.topic-icon  { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }
.topic-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
.topic-card p  { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin: 0; }

.about-me-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    align-items: start;
}

.about-me-card { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.about-me-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--purple); }
.about-me-avatar-large { font-size: 4rem; text-align: center; margin-bottom: 1rem; }

.about-facts { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.about-facts li { font-size: 0.9rem; color: var(--muted); }

.about-cta { text-align: center; padding: 2.5rem; background: var(--surface); border-radius: var(--radius); margin-top: 1.5rem; }
.about-cta p { color: var(--muted); margin-bottom: 1rem; font-size: 1rem; }

@media (max-width: 768px) {
    .about-me-layout  { grid-template-columns: 1fr; }
    .about-section    { padding: 1.5rem; }
}

/* ── About hero banner ── */
.about-hero-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 320px;
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 30%, #d97706 60%, #0d9488 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.about-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.about-hero-overlay {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.about-hero-overlay h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.about-hero-overlay p  { font-size: 1.1rem; line-height: 1.7; opacity: 0.92; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }

/* ── Mission statement ── */
.about-mission {
    background: linear-gradient(135deg, #faf5ff, #fdf2f8);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid #e9d5ff;
}

.mission-icon { font-size: 2rem; margin-bottom: 1rem; }

.about-mission blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto;
}

[data-theme="dark"] .about-mission { background: linear-gradient(135deg, #2d1f4e, #3d1a2e); border-color: #4c1d95; }

/* ── Coloured section variants ── */
.about-section-warm   { border-left: 4px solid var(--amber);  background: linear-gradient(to right, #fffbeb, var(--surface)); }
.about-section-teal   { border-left: 4px solid var(--teal);   background: linear-gradient(to right, #f0fdfa, var(--surface)); }
.about-section-purple { border-left: 4px solid var(--purple); background: linear-gradient(to right, #faf5ff, var(--surface)); }
.about-section-gold   { border-left: 4px solid var(--gold);   background: linear-gradient(to right, #fff7ed, var(--surface)); }

[data-theme="dark"] .about-section-warm   { background: linear-gradient(to right, #2d2008, var(--surface)); }
[data-theme="dark"] .about-section-teal   { background: linear-gradient(to right, #042f2e, var(--surface)); }
[data-theme="dark"] .about-section-purple { background: linear-gradient(to right, #1e1035, var(--surface)); }
[data-theme="dark"] .about-section-gold   { background: linear-gradient(to right, #2d1a00, var(--surface)); }

/* ── Stats bar ── */
.about-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-item    { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 0 2rem; }
.stat-icon    { font-size: 1.8rem; }
.stat-label   { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.stat-divider { width: 1px; height: 40px; background: #e2e0d8; }

[data-theme="dark"] .stat-divider { background: #333330; }

/* ── About Me hero ── */
.about-me-hero {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    margin-bottom: 2.5rem;
}

.about-me-hero-image { position: relative; overflow: hidden; }
.about-me-hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.about-me-hero-text {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.about-me-location      { font-size: 0.85rem; opacity: 0.85; font-weight: 500; }
.about-me-hero-text h1  { font-size: 2.2rem; font-weight: 800; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.about-me-intro         { font-size: 1rem; line-height: 1.7; opacity: 0.92; }

.about-me-hero-text .btn {
    background: rgba(255,255,255,0.2);
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff !important;
    align-self: flex-start;
    backdrop-filter: blur(4px);
}
.about-me-hero-text .btn:hover { background: rgba(255,255,255,0.35); opacity: 1; }

.about-me-card-disclaimer { background: #fffbeb; border: 1px solid #fcd34d; }
.about-me-card-disclaimer h3 { color: var(--amber) !important; }
.about-me-card-disclaimer p  { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

[data-theme="dark"] .about-me-card-disclaimer { background: #2d2008; border-color: #92400e; }

/* ── Footer tagline ── */
.footer-tagline { font-size: 0.75rem; color: var(--muted); font-style: italic; margin-top: 0.1rem; }

/* ── Modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    backdrop-filter: blur(3px);
}
.modal-overlay.active { display: flex; }

.modal-box {
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none; border: none;
    font-size: 1.1rem; color: var(--muted);
    cursor: pointer;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.modal-close:hover { background: var(--bg); color: var(--text); }

.modal-header { text-align: center; margin-bottom: 1.5rem; }
.modal-icon   { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.modal-header h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.4rem; }
.modal-header p  { color: var(--muted); font-size: 0.9rem; }
.modal-footer    { margin-top: 1.25rem; text-align: center; }
.bio-link-arrow  { font-size: 1.1rem; color: var(--purple); flex-shrink: 0; margin-left: auto; }

[data-theme="dark"] .modal-box { box-shadow: 0 24px 64px rgba(0,0,0,0.5); }

/* ── Landing page ── */
.landing-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 480px;
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 35%, #d97706 65%, #0d9488 100%);
    border-radius: 20px;
    padding: 3.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    border-radius: 20px;
}

.landing-hero-content { position: relative; color: #fff; }
.landing-eyebrow { font-size: 0.9rem; font-weight: 500; opacity: 0.85; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.5rem; }
.landing-hero-content h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.landing-tagline  { font-size: 1.05rem; line-height: 1.7; opacity: 0.92; margin-bottom: 1.75rem; }
.landing-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-hero { background: #fff; color: #7c3aed !important; font-weight: 700; padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-hero:hover { background: #f5f3ff; opacity: 1; }

.btn-hero-outline { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,0.7); padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); opacity: 1; }

.landing-hero-cards { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.floating-card {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
    transition: background 0.2s;
}
.floating-card:hover { background: rgba(255,255,255,0.28); }

.landing-welcome {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
}

.landing-welcome-photo img {
    width: 100%; border-radius: 12px;
    object-fit: cover; height: 280px;
    object-position: center top;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.landing-welcome-text h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.3; }
.landing-welcome-text p  { color: var(--muted); line-height: 1.8; margin-bottom: 0.75rem; }

.landing-section { margin-bottom: 2.5rem; }
.landing-section-title { font-size: 1.6rem; font-weight: 700; text-align: center; margin-bottom: 0.5rem; }
.landing-section-sub   { text-align: center; color: var(--muted); margin-bottom: 1.75rem; font-size: 0.95rem; }

.landing-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.landing-topic-card { border-radius: var(--radius); padding: 1.5rem; transition: transform 0.2s; }
.landing-topic-card:hover { transform: translateY(-3px); }

.lt-purple { background: linear-gradient(135deg, #f5f3ff, #ede9fe); border-top: 3px solid var(--purple); }
.lt-teal   { background: linear-gradient(135deg, #f0fdfa, #ccfbf1); border-top: 3px solid var(--teal);   }
.lt-coral  { background: linear-gradient(135deg, #fff7ed, #fed7aa); border-top: 3px solid var(--coral);  }
.lt-pink   { background: linear-gradient(135deg, #fdf2f8, #fce7f3); border-top: 3px solid var(--pink);   }
.lt-amber  { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-top: 3px solid var(--amber);  }
.lt-blue   { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-top: 3px solid var(--blue);   }

[data-theme="dark"] .lt-purple { background: linear-gradient(135deg, #1e1035, #2d1f4e); }
[data-theme="dark"] .lt-teal   { background: linear-gradient(135deg, #042f2e, #0d3d3a); }
[data-theme="dark"] .lt-coral  { background: linear-gradient(135deg, #2d1a00, #3d2000); }
[data-theme="dark"] .lt-pink   { background: linear-gradient(135deg, #3d0a1e, #4d0f26); }
[data-theme="dark"] .lt-amber  { background: linear-gradient(135deg, #2d2008, #3d2a00); }
[data-theme="dark"] .lt-blue   { background: linear-gradient(135deg, #0f1e3d, #162444); }

.lt-icon { font-size: 1.8rem; display: block; margin-bottom: 0.75rem; }
.landing-topic-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.landing-topic-card p  { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

.landing-promise {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: #fff;
}

.landing-promise h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 2rem; }

.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.promise-item {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    backdrop-filter: blur(4px);
}

.promise-icon   { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.promise-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.promise-item p  { font-size: 0.85rem; opacity: 0.85; }

.landing-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--surface);
    border-radius: 20px;
    margin-bottom: 2rem;
}

.landing-cta h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.75rem; }
.landing-cta p  { color: var(--muted); margin-bottom: 1.5rem; font-size: 1rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .landing-hero { grid-template-columns: 1fr; padding: 2rem; }
    .landing-hero-content h1 { font-size: 2rem; }
    .landing-hero-cards { display: none; }
    .landing-welcome { grid-template-columns: 1fr; }
    .landing-welcome-photo img { height: 200px; }
    .landing-topics { grid-template-columns: 1fr 1fr; }
    .promise-grid { grid-template-columns: 1fr 1fr; }
    .about-me-hero { grid-template-columns: 1fr; }
    .about-me-hero-image { height: 250px; }
    .about-hero-overlay h1 { font-size: 1.8rem; }
    .about-stats { gap: 0.5rem; }
    .stat-item { padding: 0 1rem; }
    .stat-divider { display: none; }
}

@media (max-width: 480px) {
    .landing-topics { grid-template-columns: 1fr; }
    .promise-grid   { grid-template-columns: 1fr; }
}