/* =========================================================
   SMART TO-DO — REMINDERS
   GREIGE / GRAY DESIGN SYSTEM
   ========================================================= */

:root {

    --bg: #F5F2ED;
    --bg-soft: #EEE9E2;

    --white: #FFFFFF;

    --greige-light: #E6D9C9;
    --greige: #D8CBBB;

    --mineral: #B4ACA1;

    --taupe: #A6988A;
    --taupe-dark: #8D837A;

    --charcoal: #292725;

    --sidebar: #4A4640;

    --text: #3F3A35;
    --muted: #777069;

    --border: #D8D1C8;

    --green: #87927F;
    --blue-gray: #7F8B8D;
    --rose-gray: #A98983;

    --shadow:
        0 18px 50px rgba(72, 63, 54, 0.10);

    --shadow-soft:
        0 8px 25px rgba(72, 63, 54, 0.07);

    --radius: 18px;

    --container: 1180px;
}


/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--bg);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}


/* ================= CONTAINER ================= */

.container {
    width:
        min(
            var(--container),
            calc(100% - 80px)
        );

    margin-inline: auto;
}


/* ================= NAVBAR ================= */

.navbar {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    background:
        rgba(245, 242, 237, 0.94);

    backdrop-filter: blur(15px);

    border-bottom:
        1px solid rgba(216, 209, 200, 0.65);

    transition: 0.3s ease;
}

.navbar.scrolled {
    box-shadow:
        0 8px 30px rgba(70, 61, 52, 0.08);
}

.nav-inner {
    height: 82px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* ================= BRAND ================= */

.brand {
    display: inline-flex;

    align-items: center;

    gap: 11px;

    font-size: 21px;

    font-weight: 700;

    letter-spacing: -0.7px;
}

.brand > span:last-child > span {
    color: var(--taupe-dark);
}

.brand-mark {
    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    background: var(--sidebar);

    color: white;

    border-radius: 10px;

    font-size: 17px;
}


/* ================= NAV LINKS ================= */

.nav-links {
    display: flex;

    align-items: center;

    gap: 30px;
}

.nav-links a {
    position: relative;

    color: var(--muted);

    font-size: 14px;

    font-weight: 600;

    transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--charcoal);
}

.nav-links a.active::after {
    content: "";

    position: absolute;

    bottom: -10px;

    left: 50%;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--taupe-dark);

    transform: translateX(-50%);
}

.login-link {
    padding: 11px 21px;

    background: var(--sidebar);

    color: white !important;

    border-radius: 999px;
}

.login-link::after {
    display: none;
}


/* ================= MOBILE MENU ================= */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 0;

    background: transparent;
}

.menu-toggle span {
    display: block;

    width: 22px;
    height: 2px;

    margin: 5px auto;

    background: var(--sidebar);
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {
    position: relative;

    padding-top: 155px;
    padding-bottom: 80px;

    background:
        radial-gradient(
            circle at 90% 30%,
            rgba(216,203,187,0.55),
            transparent 35%
        ),
        var(--bg);
}

.page-header::after {
    content: "";

    position: absolute;

    right: 7%;
    bottom: 30px;

    width: 180px;
    height: 180px;

    border:
        1px solid rgba(141,131,122,0.16);

    border-radius: 50%;

    pointer-events: none;
}

.page-header-content {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 50px;
}

.eyebrow {
    color: var(--taupe-dark);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 16px;
}

.page-header h1 {
    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(50px, 7vw, 78px);

    line-height: 0.95;

    letter-spacing: -3px;

    margin-bottom: 25px;
}

.page-header h1 span {
    color: var(--taupe-dark);
}

.header-description {
    max-width: 570px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;
}


/* ================= DATE CARD ================= */

.date-card {
    display: flex;

    align-items: center;

    gap: 15px;

    min-width: 225px;

    padding: 17px 20px;

    background:
        rgba(255,255,255,0.70);

    border:
        1px solid var(--border);

    border-radius: 16px;

    box-shadow: var(--shadow-soft);
}

.calendar-icon {
    width: 52px;
    height: 52px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    background: var(--sidebar);

    color: white;

    font-family:
        "Playfair Display",
        serif;

    font-size: 22px;
}

.date-card span {
    display: block;

    color: var(--taupe-dark);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.7px;
}

.date-card strong {
    display: block;

    margin-top: 3px;

    font-size: 12px;
}


/* =========================================================
   REMINDER SECTION
   ========================================================= */

.reminder-section {
    padding: 75px 0 110px;

    background: #ECE7E0;
}

.section-intro {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;

    margin-bottom: 42px;
}

.section-label {
    color: var(--taupe-dark);

    font-size: 10px;

    letter-spacing: 3px;

    font-weight: 700;

    margin-bottom: 13px;
}

.section-intro h2,
.routine-heading h2 {
    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(38px, 5vw, 55px);

    line-height: 1;

    letter-spacing: -1.5px;
}

.section-intro h2 span {
    color: var(--taupe-dark);
}


/* ================= PROGRESS ================= */

.progress-info {
    width: 250px;

    margin-bottom: 7px;
}

.progress-text {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 9px;

    color: var(--muted);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.progress-text strong {
    color: var(--sidebar);
}

.progress-bar {
    width: 100%;

    height: 5px;

    background:
        rgba(141,131,122,0.17);

    border-radius: 10px;

    overflow: hidden;
}

.progress-bar span {
    display: block;

    width: 0%;

    height: 100%;

    background: var(--sidebar);

    border-radius: 10px;

    transition: 0.5s ease;
}


/* =========================================================
   TOPIC GRID
   ========================================================= */

.topic-grid {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 13px;
}


/* ================= TOPIC CARD ================= */

.topic-card {
    position: relative;

    min-height: 315px;

    padding: 23px;

    text-align: left;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    background:
        rgba(255,255,255,0.65);

    color: var(--charcoal);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.topic-card::before {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 4px;

    background: var(--taupe);

    transform:
        scaleX(0);

    transform-origin: left;

    transition: 0.3s ease;
}

.topic-card:hover {
    background: white;

    transform: translateY(-7px);

    box-shadow: var(--shadow-soft);
}

.topic-card:hover::before {
    transform: scaleX(1);
}

.topic-card.active {
    background: var(--sidebar);

    color: white;

    border-color: var(--sidebar);

    transform: translateY(-7px);

    box-shadow: var(--shadow);
}

.topic-card.active::before {
    background: #D8C8B6;

    transform: scaleX(1);
}


/* ================= NUMBER ================= */

.topic-number {
    position: absolute;

    top: 20px;
    right: 20px;

    color: var(--mineral);

    font-size: 10px;

    font-weight: 700;
}

.topic-card.active .topic-number {
    color: #BFB5A9;
}


/* ================= ICON ================= */

.topic-icon {
    width: 54px;
    height: 54px;

    display: grid;

    place-items: center;

    margin-top: 48px;
    margin-bottom: 38px;

    border-radius: 15px;

    font-size: 22px;

    background: var(--greige-light);

    color: var(--sidebar);

    transition: 0.3s ease;
}

.topic-card.active .topic-icon {
    background:
        rgba(255,255,255,0.12);

    color: #E2D5C7;
}


/* ================= ICON TONES ================= */

.food-icon {
    background: #E3DED4;
}

.study-icon {
    background: #DDD9D2;
}

.water-icon {
    background: #D8E0E0;
}

.medicine-icon {
    background: #E3D8D4;
}


/* ================= CONTENT ================= */

.topic-small {
    color: var(--taupe-dark);

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 2px;
}

.topic-card.active .topic-small {
    color: #C6BBB0;
}

.topic-content h3 {
    font-family:
        "Playfair Display",
        serif;

    font-size: 26px;

    margin: 5px 0 8px;
}

.topic-content p {
    color: var(--muted);

    font-size: 11px;

    line-height: 1.7;
}

.topic-card.active .topic-content p {
    color:
        rgba(255,255,255,0.62);
}


/* ================= ARROW ================= */

.topic-arrow {
    position: absolute;

    left: 23px;
    bottom: 20px;

    font-size: 19px;

    transition: 0.25s ease;
}

.topic-card:hover .topic-arrow {
    transform:
        translateX(6px);
}

.topic-card.active .topic-arrow {
    color: #E0D3C4;
}


/* =========================================================
   CREATION AREA
   ========================================================= */

.creation-area {
    display: none;

    margin-top: 28px;

    animation: setupIn 0.4s ease;
}

.creation-area.visible {
    display: block;
}


/* =========================================================
   MODE SELECTOR
   ========================================================= */

.mode-selector {
    display: flex;

    gap: 10px;

    margin: 0 0 20px;

    padding: 7px;

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius: 60px;

    box-shadow: var(--shadow-soft);

    width: fit-content;
}

.mode-btn {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 12px 26px;

    border: 0;

    border-radius: 40px;

    background: transparent;

    color: var(--muted);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.2px;

    transition: 0.25s ease;
}

.mode-btn .mode-icon {
    font-size: 14px;

    line-height: 1;
}

.mode-btn:hover:not(.active) {
    background: var(--bg-soft);

    color: var(--charcoal);
}

.mode-btn.active {
    background: var(--sidebar);

    color: white;

    box-shadow:
        0 8px 18px
        rgba(74, 70, 64, 0.22);
}


/* =========================================================
   SETUP PANEL
   ========================================================= */

.setup-panel {
    margin-top: 4px;

    min-height: 270px;

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius: 22px;

    box-shadow: var(--shadow-soft);

    overflow: hidden;
}


/* ================= EMPTY ================= */

.setup-empty {
    min-height: 270px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 35px;
}

.setup-empty[hidden] {
    display: none;
}

.empty-symbol {
    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    margin-bottom: 17px;

    border:
        1px dashed var(--mineral);

    border-radius: 50%;

    color: var(--taupe-dark);

    font-size: 22px;
}

.setup-empty h3 {
    font-family:
        "Playfair Display",
        serif;

    font-size: 24px;

    margin-bottom: 7px;
}

.setup-empty p {
    max-width: 390px;

    color: var(--muted);

    font-size: 12px;
}


/* ================= SETUP CONTENT ================= */

.setup-content {
    display: none;
    padding: 35px;
}

.setup-content.visible {
    display: block !important;
    animation: setupIn 0.4s ease;
}

.setup-empty[hidden] {
    display: none !important;
}

@keyframes setupIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ================= SETUP HEADING ================= */

.setup-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding-bottom: 25px;

    margin-bottom: 25px;

    border-bottom:
        1px solid var(--border);
}

.selected-label {
    color: var(--taupe-dark);

    font-size: 8px;

    letter-spacing: 2px;

    font-weight: 700;
}

.setup-heading h3 {
    font-family:
        "Playfair Display",
        serif;

    font-size: 32px;

    margin: 3px 0;
}

.setup-heading p {
    color: var(--muted);

    font-size: 12px;
}

.selected-topic-icon {
    width: 62px;
    height: 62px;

    display: grid;

    place-items: center;

    border-radius: 17px;

    background: var(--sidebar);

    color: #E0D3C4;

    font-size: 24px;
}


/* =========================================================
   FORM
   ========================================================= */

.form-grid {
    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr 1fr;

    gap: 18px;
}

.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.form-group label {
    color: var(--text);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.4px;
}

.form-group input,
.form-group select {
    width: 100%;

    height: 46px;

    padding: 0 14px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: #FAF8F5;

    color: var(--charcoal);

    outline: none;

    font-size: 12px;

    transition: 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color:
        var(--taupe);

    background: white;

    box-shadow:
        0 0 0 3px
        rgba(166,152,138,0.10);
}


/* =========================================================
   GOOGLE CALENDAR INTEGRATION
   ========================================================= */

.calendar-integration {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    margin-top: 22px;

    padding: 22px;

    border:
        1px solid var(--border);

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #FAF8F5,
            #F5F1EB
        );

    transition: 0.25s ease;
}

.calendar-integration:hover {
    border-color: var(--greige);

    box-shadow:
        0 8px 24px
        rgba(72,63,54,0.06);
}

.calendar-integration-content {

    display: flex;

    align-items: center;

    gap: 16px;

    min-width: 0;
}

.calendar-integration-icon {

    width: 52px;
    height: 52px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 14px;

    background: var(--sidebar);

    color: #E0D3C4;

    font-size: 22px;
}

.calendar-integration-text {

    min-width: 0;
}

.calendar-integration-text .selected-label {

    display: block;

    margin-bottom: 2px;
}

.calendar-integration-text strong {

    display: block;

    font-family:
        "Playfair Display",
        serif;

    font-size: 21px;

    color: var(--charcoal);
}

.calendar-integration-text p {

    max-width: 600px;

    margin-top: 4px;

    color: var(--muted);

    font-size: 10.5px;

    line-height: 1.65;
}

.calendar-integration-action {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 8px;

    flex-shrink: 0;
}

.google-calendar-btn {

    min-height: 46px;

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 0 18px;

    border:
        1px solid var(--border);

    border-radius: 999px;

    background: white;

    color: var(--sidebar);

    font-size: 11px;

    font-weight: 700;

    transition: 0.25s ease;

    box-shadow:
        0 5px 15px
        rgba(72,63,54,0.05);
}

.google-calendar-btn:hover {

    background: var(--sidebar);

    color: white;

    border-color: var(--sidebar);

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(72,63,54,0.14);
}

.google-calendar-icon {

    width: 24px;
    height: 24px;

    display: grid;

    place-items: center;

    border-radius: 7px;

    background: #F2ECE4;

    color: #5C554E;

    font-size: 12px;

    font-weight: 700;

    transition: 0.25s ease;
}

.google-calendar-btn:hover .google-calendar-icon {

    background:
        rgba(255,255,255,0.14);

    color: white;
}

.google-calendar-arrow {

    font-size: 15px;

    transition: 0.25s ease;
}

.google-calendar-btn:hover
.google-calendar-arrow {

    transform:
        translateX(4px);
}

.calendar-status {

    color: var(--muted);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.3px;
}

.calendar-status.connected {

    color: var(--green);
}

.calendar-status.error {

    color: var(--rose-gray);
}


/* =========================================================
   NOTIFICATION
   ========================================================= */

.notification-row,
.verification-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 22px 0;

    margin-top: 20px;

    border-top:
        1px solid var(--border);
}

.notification-row strong,
.verification-row strong {

    display: block;

    font-size: 12px;
}

.notification-row p,
.verification-row p {

    color: var(--muted);

    font-size: 10px;

    margin-top: 3px;
}


/* ================= NOTIFICATION OPTIONS ================= */

.notification-options {

    display: flex;

    gap: 8px;

    flex-wrap: wrap;

    justify-content: flex-end;
}

.notification-option {

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 8px 11px;

    border:
        1px solid var(--border);

    border-radius: 999px;

    color: var(--muted);

    font-size: 10px;

    cursor: pointer;

    transition: 0.2s ease;
}

.notification-option:has(input:checked) {

    background: var(--greige-light);

    color: var(--sidebar);

    border-color:
        var(--greige);
}

.notification-option input {

    accent-color: var(--sidebar);
}


/* =========================================================
   SWITCH
   ========================================================= */

.switch {

    position: relative;

    width: 48px;
    height: 27px;

    flex-shrink: 0;
}

.switch input {

    opacity: 0;

    width: 0;
    height: 0;
}

.slider {

    position: absolute;

    inset: 0;

    background: #D6D0C9;

    border-radius: 30px;

    cursor: pointer;

    transition: 0.25s ease;
}

.slider::before {

    content: "";

    position: absolute;

    width: 21px;
    height: 21px;

    left: 3px;
    top: 3px;

    background: white;

    border-radius: 50%;

    box-shadow:
        0 2px 5px rgba(0,0,0,0.15);

    transition: 0.25s ease;
}

.switch input:checked + .slider {

    background: var(--sidebar);
}

.switch input:checked + .slider::before {

    transform:
        translateX(21px);
}


/* =========================================================
   ACTIONS
   ========================================================= */

.setup-actions {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

    padding-top: 22px;
}

.cancel-btn,
.create-btn {

    height: 44px;

    padding: 0 20px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 700;
}

.cancel-btn {

    border:
        1px solid var(--border);

    background: transparent;

    color: var(--muted);
}

.create-btn {

    border: 0;

    background: var(--sidebar);

    color: white;

    display: flex;

    align-items: center;

    gap: 12px;

    transition: 0.25s ease;
}

.create-btn span {

    font-size: 16px;
}

.create-btn:hover {

    background: #625C54;

    transform:
        translateY(-2px);
}


/* =========================================================
   ROUTINE
   ========================================================= */

.routine-section {

    margin-top: 85px;
}

.routine-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 25px;
}

.routine-heading h2 {

    font-size: 43px;
}

.routine-count {

    color: var(--muted);

    font-size: 11px;
}

.routine-count strong {

    color: var(--sidebar);

    font-size: 16px;
}


/* ================= ROUTINE LIST ================= */

.routine-list {

    display: flex;

    flex-direction: column;

    gap: 9px;
}

.routine-empty {

    min-height: 95px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    border:
        1px dashed var(--mineral);

    border-radius: 14px;

    color: var(--muted);

    font-size: 11px;
}

.routine-empty span {

    font-size: 20px;

    color: var(--mineral);
}


/* ================= ROUTINE ITEM ================= */

.routine-item {

    position: relative;

    display: grid;

    grid-template-columns:
        55px 1fr auto;

    align-items: center;

    gap: 20px;

    padding: 18px 22px;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 14px;

    animation:
        itemIn 0.35s ease;
}

@keyframes itemIn {

    from {

        opacity: 0;

        transform:
            translateY(8px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}

.routine-icon {

    width: 44px;
    height: 44px;

    display: grid;

    place-items: center;

    background: var(--greige-light);

    border-radius: 12px;

    color: var(--sidebar);

    font-size: 18px;
}

.routine-content h3 {

    font-family:
        "Playfair Display",
        serif;

    font-size: 18px;

    margin-bottom: 4px;
}

.routine-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    color: var(--muted);

    font-size: 10px;
}

.routine-meta span {

    position: relative;
}

.routine-meta span + span::before {

    content: "•";

    position: absolute;

    left: -7px;

    color: var(--mineral);
}

.routine-status {

    display: flex;

    align-items: center;

    gap: 10px;
}

.status-badge {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 4px 11px;

    border-radius: 20px;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.5px;

    text-transform: uppercase;
}

.status-badge.status-pending,
.status-badge.pending {

    background: #F6E3CB;

    color: #9A6A2F;
}

.status-badge.status-verified,
.status-badge.verified {

    background: #DCE8D4;

    color: #4A6E3E;
}

.status-badge.status-failed,
.status-badge.failed {

    background: #EED6D2;

    color: #8E3F36;
}

.calendar-event-link {

    width: 30px;
    height: 30px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #F2ECE4;

    font-size: 13px;

    transition: 0.2s ease;
}

.calendar-event-link:hover {

    background: var(--greige-light);
}

.delete-reminder-btn {

    width: 30px;
    height: 30px;

    border: 0;

    background: transparent;

    color: var(--mineral);

    border-radius: 50%;

    font-size: 18px;

    line-height: 1;

    transition: 0.2s ease;
}

.delete-reminder-btn:hover {

    background: #F0E5E1;

    color: var(--rose-gray);
}

.empty-state {

    padding: 45px 25px;

    text-align: center;

    border:
        1px dashed var(--mineral);

    border-radius: 14px;

    background: rgba(255,255,255,0.55);
}

.empty-icon {

    width: 52px;
    height: 52px;

    display: grid;

    place-items: center;

    margin: 0 auto 15px;

    border-radius: 50%;

    background: var(--greige-light);

    color: var(--sidebar);

    font-size: 22px;
}

.empty-state h3 {

    font-family:
        "Playfair Display",
        serif;

    font-size: 21px;

    margin-bottom: 5px;
}

.empty-state p {

    color: var(--muted);

    font-size: 11.5px;
}


/* =========================================================
   ROUTINE FILTERS
   ========================================================= */

.routine-filters {

    display: flex;

    gap: 8px;

    margin-bottom: 18px;

    padding: 6px;

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius: 40px;

    width: fit-content;

    box-shadow: var(--shadow-soft);
}

.filter-btn {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 9px 20px;

    border: 0;

    border-radius: 30px;

    background: transparent;

    color: var(--muted);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.3px;

    transition: 0.25s ease;
}

.filter-btn:hover:not(.active) {

    background: var(--bg-soft);

    color: var(--charcoal);
}

.filter-btn.active {

    background: var(--sidebar);

    color: white;

    box-shadow:
        0 6px 14px
        rgba(74,70,64,0.20);
}

.filter-count {

    display: inline-grid;

    place-items: center;

    min-width: 20px;
    height: 20px;

    padding: 0 6px;

    border-radius: 20px;

    background:
        rgba(141,131,122,0.18);

    color: var(--taupe-dark);

    font-size: 10px;

    font-weight: 700;
}

.filter-btn.active .filter-count {

    background:
        rgba(255,255,255,0.18);

    color: #E2D5C7;
}


/* =========================================================
   SMART SECTION
   ========================================================= */

.smart-section {

    padding: 100px 0;

    background: var(--bg);
}

.smart-card {

    position: relative;

    min-height: 270px;

    display: flex;

    align-items: center;

    gap: 35px;

    padding: 50px;

    background: var(--sidebar);

    color: white;

    border-radius: 25px;

    overflow: hidden;
}

.smart-card::before {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -100px;
    top: -130px;

    border:
        1px solid rgba(255,255,255,0.10);

    border-radius: 50%;
}

.smart-card::after {

    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -55px;
    top: -90px;

    border:
        1px solid rgba(255,255,255,0.07);

    border-radius: 50%;
}

.smart-symbol {

    position: relative;

    z-index: 2;

    width: 67px;
    height: 67px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border:
        1px solid rgba(255,255,255,0.16);

    border-radius: 19px;

    color: #D8C8B6;

    font-size: 28px;
}

.smart-text {

    position: relative;

    z-index: 2;
}

.smart-text .section-label {

    color: #C9BCAE;
}

.smart-text h2 {

    max-width: 680px;

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(35px, 5vw, 54px);

    line-height: 1;

    letter-spacing: -1.5px;

    margin-bottom: 15px;
}

.smart-text h2 span {

    color: #CBBBA9;
}

.smart-text > p:last-child {

    max-width: 550px;

    color:
        rgba(255,255,255,0.60);

    font-size: 13px;

    line-height: 1.8;
}

.smart-decoration {

    position: absolute;

    right: 70px;

    bottom: 45px;

    display: flex;

    gap: 7px;
}

.smart-decoration span {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #CBBBA9;
}

.smart-decoration span:nth-child(2) {

    opacity: 0.55;
}

.smart-decoration span:nth-child(3) {

    opacity: 0.25;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {

    background: var(--sidebar);

    color: white;
}

.footer-main {

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1.4fr;

    gap: 60px;

    padding:
        70px 0 65px;
}

.footer-brand .brand {

    color: white;
}

.footer-brand .brand > span:last-child > span {

    color: #CFC2B3;
}

.footer-brand p {

    max-width: 290px;

    margin-top: 20px;

    color:
        rgba(255,255,255,0.55);

    font-size: 13px;

    line-height: 1.8;
}

.footer-column {

    display: flex;

    flex-direction: column;

    gap: 11px;
}

.footer-column h4 {

    color: #E3D7C9;

    font-size: 12px;

    margin-bottom: 8px;
}

.footer-column a {

    width: fit-content;

    color:
        rgba(255,255,255,0.58);

    font-size: 12px;

    transition: 0.2s ease;
}

.footer-column a:hover {

    color: white;
}

.socials {

    display: flex;

    gap: 8px;

    margin-top: 12px;
}

.socials a {

    width: 31px;
    height: 31px;

    display: grid;

    place-items: center;

    border:
        1px solid rgba(255,255,255,0.18);

    border-radius: 50%;

    font-size: 10px;
}

.footer-bottom {

    min-height: 65px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border-top:
        1px solid rgba(255,255,255,0.12);

    color:
        rgba(255,255,255,0.42);

    font-size: 10px;
}

.footer-bottom div {

    display: flex;

    gap: 22px;
}


/* =========================================================
   AI AGENT PANEL
   ========================================================= */

.ai-agent-panel {

    display: none;

    margin-top: 24px;

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius: 22px;

    box-shadow: var(--shadow-soft);

    overflow: hidden;

    flex-direction: column;
}

.ai-agent-panel.visible {

    display: flex;

    animation:
        setupIn 0.4s ease;
}


/* ================= CHAT HEADER ================= */

.ai-chat-header {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 22px 30px;

    background: var(--sidebar);

    color: white;
}

.ai-chat-header .ai-symbol {

    width: 46px;
    height: 46px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 14px;

    background:
        rgba(255,255,255,0.12);

    color: #D8C8B6;

    font-size: 20px;
}

.ai-chat-header h3 {

    font-family:
        "Playfair Display",
        serif;

    font-size: 22px;

    font-weight: 600;

    letter-spacing: -0.5px;
}

.ai-chat-header p {

    margin-top: 3px;

    color:
        rgba(255,255,255,0.60);

    font-size: 11px;
}


/* =========================================================
   AI AGENT — CHANNEL BODY
   ========================================================= */

.ai-agent-channel-body {

    padding: 30px;

    background: #FAF8F5;
}

.ai-agent-channel-intro {

    max-width: 640px;

    margin: 0 auto 24px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.7;

    text-align: center;
}

.ai-agent-channel-intro strong {

    color: var(--charcoal);

    font-weight: 700;
}


/* ================= CHANNEL GRID ================= */

.ai-agent-channel-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;

    max-width: 760px;

    margin: 0 auto;
}


/* ================= CHANNEL CARD ================= */

.ai-channel-card {

    position: relative;

    display: flex;

    align-items: center;

    gap: 16px;

    padding: 22px;

    text-align: left;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 18px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.ai-channel-card:hover:not(:disabled) {

    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(72, 63, 54, 0.10);

    border-color: var(--taupe);
}

.ai-channel-card:disabled {

    opacity: 0.6;

    cursor: not-allowed;
}


/* ================= ICON ================= */

.ai-channel-icon {

    width: 52px;
    height: 52px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 15px;

    font-size: 22px;

    color: white;
}

.telegram-card .ai-channel-icon {

    background:
        linear-gradient(135deg, #2AABEE, #229ED9);
}

.whatsapp-card .ai-channel-icon {

    background:
        linear-gradient(135deg, #25D366, #128C7E);
}


/* ================= CONTENT ================= */

.ai-channel-content {

    min-width: 0;

    flex: 1;
}

.ai-channel-label {

    display: block;

    color: var(--taupe-dark);

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 4px;
}

.ai-channel-content strong {

    display: block;

    font-family:
        "Playfair Display",
        serif;

    font-size: 18px;

    color: var(--charcoal);

    margin-bottom: 4px;
}

.ai-channel-content p {

    color: var(--muted);

    font-size: 11px;

    line-height: 1.6;
}


/* ================= ARROW ================= */

.ai-channel-arrow {

    font-size: 18px;

    color: var(--mineral);

    transition: 0.25s ease;
}

.ai-channel-card:hover:not(:disabled) .ai-channel-arrow {

    color: var(--sidebar);

    transform: translateX(4px);
}


/* ================= NOTE ================= */

.ai-agent-channel-note {

    display: flex;

    align-items: center;

    gap: 12px;

    max-width: 760px;

    margin: 24px auto 0;

    padding: 14px 18px;

    border:
        1px dashed var(--mineral);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.55);
}

.ai-agent-channel-note-icon {

    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--greige-light);

    color: var(--sidebar);

    font-size: 15px;
}

.ai-agent-channel-note p {

    color: var(--muted);

    font-size: 11.5px;

    line-height: 1.6;
}

.ai-agent-channel-note strong {

    color: var(--charcoal);

    font-weight: 700;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 700px) {

    .ai-agent-channel-grid {

        grid-template-columns: 1fr;
    }

    .ai-agent-channel-body {

        padding: 22px;
    }

    .ai-channel-card {

        padding: 18px;
    }
}


/* =========================================================
   GOOGLE CALENDAR SCHEDULE MODAL
   ========================================================= */

.calendar-modal {

    position: fixed;

    inset: 0;

    display: none;

    align-items: center;

    justify-content: center;

    z-index: 1000;
}

.calendar-modal.active {

    display: flex;
}

.calendar-modal-overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(41,39,37,0.55);

    backdrop-filter: blur(4px);
}

.calendar-modal-box {

    position: relative;

    background: #ffffff;

    border-radius: 22px;

    width: min(560px, 92vw);

    max-height: 90vh;

    overflow-y: auto;

    box-shadow: var(--shadow);

    display: flex;

    flex-direction: column;

    animation:
        modalIn 0.3s ease;
}

.calendar-modal-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    padding: 24px 28px 8px;
}

.calendar-modal-header h3 {

    margin: 6px 0 0;

    font-family:
        "Playfair Display",
        serif;

    font-size: 24px;

    color: var(--charcoal);
}

.calendar-modal-body {

    padding: 8px 28px 4px;

    display: flex;

    flex-direction: column;

    gap: 18px;
}

.calendar-modal-body .form-grid {

    grid-template-columns:
        1fr 1fr;

    gap: 16px;
}

.calendar-modal-footer {

    display: flex;

    justify-content: flex-end;

    gap: 12px;

    padding: 20px 28px 24px;

    border-top:
        1px solid var(--border);

    margin-top: 12px;
}


/* =========================================================
   VERIFICATION MODAL
   ========================================================= */

.verify-modal {

    position: fixed;

    inset: 0;

    z-index: 2000;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 30px;
}

.verify-modal.open {

    display: flex;
}

.verify-modal-backdrop {

    position: absolute;

    inset: 0;

    background:
        rgba(41,39,37,0.55);

    backdrop-filter: blur(4px);
}

.verify-modal-box {

    position: relative;

    width:
        min(520px, 100%);

    background: var(--white);

    border-radius: 22px;

    box-shadow: var(--shadow);

    overflow: hidden;

    animation:
        modalIn 0.3s ease;
}

@keyframes modalIn {

    from {

        opacity: 0;

        transform:
            translateY(14px)
            scale(0.98);
    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

.verify-modal-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    padding: 24px 28px 18px;

    border-bottom:
        1px solid var(--border);
}

.verify-modal-header h3 {

    font-family:
        "Playfair Display",
        serif;

    font-size: 24px;

    margin-top: 3px;
}

.verify-close {

    width: 34px;
    height: 34px;

    border:
        1px solid var(--border);

    border-radius: 50%;

    background: transparent;

    color: var(--muted);

    font-size: 18px;

    line-height: 1;

    transition: 0.2s ease;
}

.verify-close:hover {

    background: var(--bg-soft);

    color: var(--charcoal);
}

.verify-modal-body {

    padding: 22px 28px;
}

.verify-instruction {

    color: var(--muted);

    font-size: 12px;

    line-height: 1.7;

    margin-bottom: 18px;
}


/* ================= UPLOAD ================= */

.verify-upload {

    display: block;

    cursor: pointer;

    border:
        2px dashed var(--border);

    border-radius: 16px;

    overflow: hidden;

    background: #FAF8F5;

    transition: 0.2s ease;
}

.verify-upload:hover {

    border-color: var(--taupe);

    background: white;
}

.verify-upload-placeholder {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 40px 20px;

    text-align: center;

    color: var(--muted);
}

.upload-icon {

    width: 44px;
    height: 44px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: var(--greige-light);

    color: var(--sidebar);

    font-size: 20px;

    margin-bottom: 4px;
}

.verify-upload-placeholder strong {

    font-size: 12px;

    color: var(--charcoal);
}

.verify-upload-placeholder small {

    font-size: 10px;

    color: var(--mineral);
}

.verify-preview {

    display: none;

    position: relative;

    padding: 10px;
}

.verify-preview img {

    width: 100%;

    max-height: 260px;

    object-fit: cover;

    border-radius: 12px;

    display: block;
}

.verify-remove {

    position: absolute;

    top: 18px;
    right: 18px;

    width: 32px;
    height: 32px;

    border: 0;

    border-radius: 50%;

    background:
        rgba(41,39,37,0.75);

    color: white;

    font-size: 16px;

    line-height: 1;
}

.verify-upload.has-image
.verify-upload-placeholder {

    display: none;
}

.verify-upload.has-image
.verify-preview {

    display: block;
}


/* ================= RESULT ================= */

.verify-result {

    display: none;

    align-items: center;

    gap: 14px;

    margin-top: 18px;

    padding: 14px 18px;

    border-radius: 14px;

    border:
        1px solid var(--border);
}

.verify-result.visible {

    display: flex;
}

.verify-result.verified {

    background: #F3F7F1;

    border-color: #C7D8BC;
}

.verify-result.failed {

    background: #FBF1EF;

    border-color: #E4C5C0;
}

.verify-result-icon {

    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 50%;

    font-size: 20px;

    font-weight: 700;
}

.verify-result.verified
.verify-result-icon {

    background: #DCE8D4;

    color: #4A6E3E;
}

.verify-result.failed
.verify-result-icon {

    background: #EED6D2;

    color: #8E3F36;
}

.verify-result strong {

    font-size: 13px;

    display: block;

    margin-bottom: 2px;
}

.verify-result p {

    color: var(--muted);

    font-size: 11px;
}

.verify-modal-footer {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

    padding: 18px 28px 24px;

    border-top:
        1px solid var(--border);
}

#verifySubmitBtn:disabled {

    opacity: 0.45;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .topic-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-integration {
        align-items: flex-start;
        flex-direction: column;
    }

    .calendar-integration-action {
        width: 100%;
        align-items: flex-start;
    }

}


@media (max-width: 850px) {

    .container {
        width:
            min(
                var(--container),
                calc(100% - 40px)
            );
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 82px;
        left: 20px;
        right: 20px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: white;
        border: 1px solid var(--border);
        border-radius: 17px;
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: 0.25s ease;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        padding: 13px 14px;
    }

    .nav-links a.active::after {
        display: none;
    }

    .page-header-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .date-card {
        min-width: 210px;
    }

    .section-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .progress-info {
        width: 100%;
    }

    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .smart-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 600px) {

    .nav-inner {
        height: 72px;
    }

    .nav-links {
        top: 72px;
    }

    .page-header {
        padding-top: 125px;
        padding-bottom: 60px;
    }

    .page-header h1 {
        font-size: 54px;
    }

    .reminder-section {
        padding: 65px 0 80px;
    }

    .topic-grid {
        grid-template-columns: 1fr;
    }

    .topic-card {
        min-height: 250px;
    }

    .setup-content {
        padding: 23px;
    }

    .setup-heading {
        align-items: flex-start;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .calendar-integration {
        padding: 18px;
        gap: 20px;
    }

    .calendar-integration-content {
        align-items: flex-start;
    }

    .calendar-integration-text strong {
        font-size: 19px;
    }

    .google-calendar-btn {
        width: 100%;
        justify-content: center;
    }

    .calendar-integration-action {
        width: 100%;
    }

    .notification-row,
    .verification-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .notification-options {
        justify-content: flex-start;
    }

    .setup-actions {
        flex-direction: column-reverse;
    }

    .cancel-btn,
    .create-btn {
        width: 100%;
    }

    .routine-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .routine-item {
        grid-template-columns: 45px 1fr auto;
        gap: 12px;
    }

    .routine-status {
        flex-direction: column;
        align-items: flex-end;
    }

    .smart-card {
        padding: 30px;
    }

    .smart-decoration {
        display: none;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px 0;
    }

    .mode-selector {
        width: 100%;
        justify-content: center;
    }

    .mode-btn {
        flex: 1;
        justify-content: center;
        padding: 11px 14px;
        font-size: 10.5px;
    }

    .ai-chat-header {
        padding: 18px 20px;
    }

    .ai-chat-body {
        padding: 20px 18px;
    }

    .message {
        max-width: 95%;
    }

    .quick-replies {
        padding: 0 18px 12px;
    }

    .ai-chat-footer {
        padding: 14px 16px 18px;
    }

    .ai-send-btn {
        padding: 0 18px;
    }

    .routine-filters {
        width: 100%;
        justify-content: space-between;
    }

    .filter-btn {
        flex: 1;
        justify-content: center;
        padding: 9px 8px;
        font-size: 10px;
    }

    .filter-count {
        display: none;
    }

    .verify-modal {
        padding: 16px;
    }

    .verify-modal-header,
    .verify-modal-body,
    .verify-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .verify-modal-footer {
        flex-direction: column-reverse;
    }

    .verify-modal-footer
    .cancel-btn,
    .verify-modal-footer
    .create-btn {
        width: 100%;
    }

    .calendar-modal-body .form-grid {
        grid-template-columns: 1fr;
    }

    .calendar-modal-header,
    .calendar-modal-body,
    .calendar-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

}
/* =========================================================
   VERIFY ACTIVITY BUTTON
   ========================================================= */

.verify-activity-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border: 0;
    border-radius: 20px;
    background: var(--sidebar);
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.25s ease;
    animation: pulseVerify 2s infinite;
}

.verify-activity-btn:hover {
    background: #625C54;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 70, 64, 0.25);
}

@keyframes pulseVerify {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 70, 64, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(74, 70, 64, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 70, 64, 0);
    }
}