/* Habit Tracker - Minimal iOS HIG Flat Design System */

:root {
    /* ======================================================== */
    /* Google Stitch Material You 3 Design Tokens (Project 9228)*/
    /* Primary: #516161 | Mint: #E8F5E9 | Surface: #FCF9F8     */
    /* ======================================================== */
    --primary: #516161;
    --accent: #516161;
    --success: #81C784;
    --mint-bg: #E8F5E9;
    --mint-text: #81C784;
    --error: #BA1A1A;
    --skip-color: #94A3B8;

    /* Backgrounds & Surfaces */
    --bg-app: #FCF9F8;
    --bg-dark: #FCF9F8;
    --bg-surface: #FCF9F8;
    --bg-surface-card: #F6F3F2;   /* bg-surface-container-low */
    --bg-surface-high: #EAE7E7;   /* bg-surface-container-high */
    --bg-navbar: #FCF9F8;
    --bg-selected: #E0F2F1;       /* primary-container */

    /* Typography Colors */
    --text-primary: #1C1B1B;
    --text-secondary: #424848;
    --text-muted: #727878;
    --border: #E5E2E1;

    /* Border Radius & Fonts */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    --radius-lg: 16px;
    --radius-md: 12px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --radius-sm: 8px;
    --shadow-premium: none;
    --transition-smooth: all 0.2s ease;
    --transition-spring: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Stitch Font Scale */
    --fs-display: 34px;
    --fs-headline: 28px;
    --fs-title: 20px;
    --fs-body: 17px;
    --fs-body-sm: 15px;
    --fs-caption: 12px;
    --fs-tiny: 10px;
}

/* ======================================================== */
/* DARK MODE OVERRIDES (AUTOMATIC SYNC & MANUAL OVERRIDE)   */
/* ======================================================== */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-app: #121315;
        --bg-dark: #121315;
        --bg-surface: #1E1F23;
        --bg-surface-card: #28292E;
        --bg-surface-high: #32333A;
        --bg-navbar: #1A1B1F;
        --bg-selected: #1F3A36;

        --text-primary: #F4F4F6;
        --text-secondary: #A0A2AA;
        --text-muted: #6C6E78;
        --border: #2E3038;
    }
}

:root[data-theme="dark"] {
    --bg-app: #121315;
    --bg-dark: #121315;
    --bg-surface: #1E1F23;
    --bg-surface-card: #28292E;
    --bg-surface-high: #32333A;
    --bg-navbar: #1A1B1F;
    --bg-selected: #1F3A36;

    --text-primary: #F4F4F6;
    --text-secondary: #A0A2AA;
    --text-muted: #6C6E78;
    --border: #2E3038;
}

:root[data-theme="light"] {
    --bg-app: #FCF9F8;
    --bg-dark: #FCF9F8;
    --bg-surface: #FCF9F8;
    --bg-surface-card: #F6F3F2;
    --bg-surface-high: #EAE7E7;
    --bg-navbar: #FCF9F8;
    --bg-selected: #E0F2F1;

    --text-primary: #1C1B1B;
    --text-secondary: #424848;
    --text-muted: #727878;
    --border: #E5E2E1;
}

*, *::before, *::after {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

input, textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    touch-action: manipulation;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-app);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Uygulama Sarıcı (Masaüstü için Ortala) */
.app-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    height: 100dvh;
    padding: 20px;
    overflow: hidden;
}

/* Telefon Mockup Çerçevesi */
.phone-frame {
    width: 393px;
    height: 852px;
    max-height: 100dvh;
    background-color: var(--bg-dark);
    border: 12px solid #1A1F26;
    border-radius: 48px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Mobil ekranlar için tam sayfa yapısı (Sabit Ekran - Pinning) */
@media (max-width: 500px) {
    .app-wrapper {
        padding: 0;
        height: 100dvh;
        overflow: hidden;
    }
    .phone-frame {
        width: 100%;
        height: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border: none;
        border-radius: 0;
        overflow: hidden;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
}

/* iOS Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 4px 20px;
    background: var(--bg-navbar);
}

.status-time {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-family);
}

.status-icons {
    display: flex;
    gap: 6px;
    align-items: center;
    color: var(--text-primary);
}

/* Streaks Style Header: [Calendar] [Title] [+] */
.app-header {
    padding: 8px 20px 12px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-navbar);
    z-index: 5;
}

.app-title-center {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    text-align: center;
    flex: 1;
}

.header-icon-btn {
    background: none;
    border: none;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.header-icon-btn:active {
    background: var(--bg-surface);
    transform: scale(0.92);
}

/* Keep old typography for other screens */
.app-title-large {
    font-size: var(--fs-display);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
    line-height: 1.1;
}

/* Ekranlar Konteyneri */
.screens-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 85px 0;
    scrollbar-width: none;
}

.screens-container::-webkit-scrollbar {
    display: none;
}

.screen {
    display: none;
    animation: fadeIn 0.3s ease-out;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 1. DASHBOARD EKRANI */

/* Referans: "2 of 6 habits completed. Keep up the good work!" */
.progress-summary {
    text-align: center;
    padding: 20px 24px 8px 24px;
}

.progress-summary-line {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0 0 4px 0;
}

.progress-summary-motto {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Section titles */
.section-title {
    margin: 20px 24px 12px 24px;
}

.section-title h2 {
    font-size: var(--fs-title);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.habits-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==================================================================== */
/* GOOGLE STITCH SCREEN 2: HABIT GRID HOME (PROJECT 9228765863149094886)*/
/* 2-Column Circular Progress Rings with Pastel Fills & Inner Icons     */
/* ==================================================================== */

.stitch-summary-wrapper {
    display: flex;
    justify-content: center;
    margin: 4px 0 16px 0;
}

.stitch-summary-box {
    background: var(--bg-surface-card, #F6F3F2);
    border: 1px solid var(--border, #E5E2E1);
    border-radius: 30px;
    padding: 6px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.stitch-summary-line {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.2px;
    margin: 0;
}

/* Slider & Grid Layout */
.stitch-grid-wrapper {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.stitch-grid-wrapper::-webkit-scrollbar { display: none; }

.stitch-grid-slider {
    display: flex;
    width: 100%;
}

.stitch-grid-page {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
    padding: 4px 12px 16px 12px;
    box-sizing: border-box;
    justify-items: center;
}

/* Circular Ring Card Element */
.stitch-ring-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    transition: var(--transition-spring);
    user-select: none;
    -webkit-user-select: none;
}

.stitch-ring-card:active {
    transform: scale(0.94);
}

.stitch-ring-box {
    position: relative;
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stitch-ring-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 128px;
    height: 128px;
    transform: rotate(-90deg);
}

.stitch-ring-track {
    fill: none;
    stroke: #F0EDED;
    stroke-width: 8;
}

/* 2 * π * 54 = 339.292 */
.stitch-ring-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1), fill 0.3s ease;
}

.stitch-ring-card.completed .stitch-ring-fill {
    fill: var(--pastel-fill, #B2DFDB);
    stroke: var(--pastel-fill, #B2DFDB);
}

.stitch-ring-icon {
    position: relative;
    z-index: 2;
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.stitch-ring-card.completed .stitch-ring-icon {
    color: #1C1B1B;
}

.stitch-ring-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 8px;
    text-align: center;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.stitch-ring-subtext {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted, #727878);
    margin-top: 2px;
    text-align: center;
}

/* Page Dots (iPhone Home Screen Style) */
.page-dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 12px 0 16px 0;
}
.page-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
    opacity: 0.3;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.page-dot.active {
    width: 20px;
    border-radius: 10px;
    background-color: var(--primary);
    opacity: 1;
}



.habit-card-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 24px;
    background-color: var(--bg-surface);
    position: relative;
    z-index: 2;
    transition: transform 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.habit-swipe-delete-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background-color: var(--error);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    z-index: 1;
    transition: opacity 0.2s;
}

.habit-swipe-delete-btn:hover {
    opacity: 0.9;
}

.habit-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    height: 100%;
}

.habit-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    background-color: var(--bg-surface-light);
    color: var(--primary);
    transition: var(--transition-smooth);
}

.habit-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.habit-title {
    font-size: var(--fs-subtitle);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.habit-desc {
    font-size: var(--fs-caption);
    color: var(--text-secondary);
    line-height: 1.3;
    margin-top: 4px;
}

.habit-progress-label {
    font-size: var(--fs-micro);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tamamlama Butonu / Daire */
.habit-card-right {
    display: flex;
    align-items: center;
}

.check-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2.5px solid var(--text-muted);
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-spring);
}

.check-button.partial {
    border-color: var(--accent);
}

.check-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--fill-percent, 0%);
    background-color: var(--accent);
    transition: height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0.15;
}

.check-button.completed {
    border-color: var(--success) !important;
    background-color: var(--success) !important;
    transform: scale(1.08);
}

.check-button.completed::before {
    height: 100%;
    opacity: 1;
}

.check-button svg {
    color: #FFFFFF;
    z-index: 2;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition-spring);
}

.check-button.completed svg {
    opacity: 1;
    transform: scale(1);
}

/* Hedef Sayacı Ekleme/Çıkarma Pop-up Tipi Arttırıcı */
.target-counter-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-dark);
    padding: 4px 10px;
    border-radius: 20px;
    margin-right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.counter-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.counter-btn:active {
    transform: scale(0.8);
}

.counter-value {
    font-size: var(--fs-caption);
    font-weight: 700;
}

/* Boş Durum (Empty State) */
.empty-state {
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 48px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* 2. STATS (ANALİZ) EKRANI */

.screen-header {
    margin-bottom: 20px;
}

.screen-header h2 {
    font-size: var(--fs-title);
    font-weight: 700;
}

.stats-streak-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.streak-card {
    flex: 1;
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-premium);
}

.streak-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background-color: var(--bg-surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.streak-details {
    display: flex;
    flex-direction: column;
}

.streak-val {
    font-size: var(--fs-heading);
    font-weight: 700;
}

.streak-lbl {
    font-size: var(--fs-micro);
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* İstatistik Grafik Kartları */
.stat-chart-card {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-md);
    padding: 16px;
    margin-bottom: 12px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.chart-header h3 {
    font-size: var(--fs-body);
    font-weight: 600;
}

.chart-percentage {
    font-size: var(--fs-caption);
    font-weight: 700;
    color: var(--text-secondary);
}

.chart-bars-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 90px;
    padding-top: 10px;
}

.chart-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.chart-bar-track {
    width: 12px;
    height: 60px;
    background-color: var(--bg-dark);
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.chart-bar-fill {
    width: 100%;
    background-color: var(--theme-color);
    border-radius: 6px;
    height: 0%;
    transition: height 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chart-day-name {
    font-size: var(--fs-tiny);
    font-weight: 600;
    color: var(--text-muted);
}

/* 3. DIARY (GÜNLÜK) EKRANI */

.diary-input-card {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.diary-input-card h3 {
    font-size: var(--fs-body);
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.mood-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: space-between;
}

.mood-btn {
    flex: 1;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-bounce);
}

.mood-btn:hover {
    background-color: var(--bg-surface-light);
    color: var(--text-primary);
}

.mood-btn.active {
    background-color: var(--primary) !important;
    color: #FFFFFF !important;
    border-color: var(--primary) !important;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.18);
}

.diary-input-card textarea {
    width: 100%;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    padding: 12px;
    font-family: var(--font-family);
    font-size: var(--fs-body);
    resize: none;
    outline: none;
    transition: var(--transition-smooth);
}

.diary-input-card textarea:focus {
    border-color: var(--pastel-green);
}

/* Günlük Akışı (Timeline) */
.diary-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.diary-card {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-md);
    padding: 16px;
    border-left: 4px solid var(--pastel-green);
    display: flex;
    gap: 14px;
    position: relative;
    animation: fadeIn 0.4s ease-out;
}

.diary-card.mood-neutral {
    border-left-color: var(--pastel-blue);
}

.diary-card.mood-sad {
    border-left-color: var(--pastel-pink);
}

.diary-card.mood-battery {
    border-left-color: var(--pastel-purple);
}

.diary-card.mood-write {
    border-left-color: var(--pastel-orange);
}

.diary-mood-badge {
    font-size: 24px;
    margin-top: 2px;
}

.diary-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.diary-date {
    font-size: var(--fs-micro);
    font-weight: 600;
    color: var(--text-secondary);
}

.diary-note {
    font-size: var(--fs-caption);
    color: var(--text-primary);
    line-height: 1.5;
}

.delete-diary-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.delete-diary-btn:hover {
    color: var(--pastel-pink);
    opacity: 1;
}

/* ALT NAVİGASYON BARI (TAB BAR) */
/* ============================================ */
/* Figma NavBar-Klasik (EBXmsRn6qdOCUMMvehpaQ6) */
/* BG: #FFFFFF | Height: 75px | Ikon + Etiket   */
/* Sekmeler: Bugün · Günlük · Profil            */
/* ============================================ */
.tab-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;                        /* Figma: NavBar-Klasik h=75px */
    background-color: var(--bg-navbar);  /* Figma: r=1 g=1 b=1 = #FFFFFF */
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px 12px 8px;
    z-index: 10;
}

.tab-item {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 64px;
    padding: 6px 8px;
    border-radius: 12px;
}

/* Figma: seçili item tint = rgb(238,236,251) = #EEEDFB */
.tab-item.active {
    color: var(--accent);
    background-color: var(--bg-selected);
}

.tab-item svg {
    transition: var(--transition-spring);
}

.tab-item.active svg {
    stroke: var(--accent);
    transform: scale(1.05);
}

/* Figma: etiket stili — küçük, semibold, accent rengi seçiliyken */
.tab-item span {
    font-size: var(--fs-tiny);
    font-weight: 600;
    letter-spacing: 0.2px;
    font-family: var(--font-family);
}

.tab-item.active span {
    color: var(--accent);
}

/* Floating Action Button (Sağ Altta) */
.fab-btn {
    position: absolute;
    bottom: 96px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9;
    transition: var(--transition-spring);
}

.fab-btn:hover {
    transform: scale(1.05);
}

.fab-btn:active {
    transform: scale(0.95);
}

/* BUTONLAR */
.btn {
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 14px 20px;
    font-family: var(--font-family);
    font-size: var(--fs-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--pastel-green);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(168, 230, 207, 0.3);
}

.btn-primary:active {
    transform: scale(0.95);
}

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

.btn-secondary:active {
    transform: scale(0.95);
}

.btn-secondary.hidden {
    display: none;
}

/* MODAL / SHEET (iOS Tarzı Aşağıdan Açılan Panel) */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-sheet {
    width: 100%;
    background-color: var(--bg-surface);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    padding: 16px 24px 34px 24px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    max-height: 90%;
    overflow-y: auto;
}

.modal-overlay.active .modal-sheet {
    transform: translateY(0);
}

.modal-handle {
    width: 40px;
    height: 4px;
    background-color: var(--text-muted);
    border-radius: 2px;
    margin: 0 auto 16px auto;
    opacity: 0.5;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: var(--fs-heading);
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Form Tasarımı */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Canlı Kart Önizlemesi ── */
.habit-live-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-surface-card, #F6F3F2);
    border: 1px solid var(--border, #E5E2E1);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 4px;
}

.preview-ring-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-ring-svg {
    position: absolute;
    top: 0; left: 0;
    width: 64px; height: 64px;
    transform: rotate(-90deg);
}

.preview-ring-track {
    fill: none;
    stroke: var(--border, #E5E2E1);
    stroke-width: 6;
}

.preview-ring-fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 219.9;
    stroke-dashoffset: 55;
    transition: stroke 0.3s ease;
}

.preview-ring-icon {
    position: relative;
    font-size: 22px;
    z-index: 1;
}

.preview-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.preview-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ── Hızlı Şablonlar ── */
.quick-templates-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.quick-templates-row::-webkit-scrollbar { display: none; }

.template-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    background: var(--bg-surface, #FFFFFF);
    border: 1.5px solid var(--border, #E5E2E1);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    font-family: var(--font-family);
}

.template-chip:hover, .template-chip.selected {
    background: var(--primary, #A8E6CF);
    border-color: var(--primary, #A8E6CF);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.template-chip:active {
    transform: scale(0.96);
}

/* ── İkon Hızlı Satır ── */
.icon-quick-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.icon-dot {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-surface-card, #F6F3F2);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
    color: var(--text-primary);
}

.icon-dot:hover {
    background: var(--bg-surface, #FFFFFF);
    border-color: var(--border);
}

.icon-dot.active {
    background: var(--primary, #A8E6CF);
    border-color: var(--primary, #A8E6CF);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.icon-more-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    font-family: var(--font-family);
    text-align: left;
    transition: color 0.2s;
}

.icon-more-btn:hover { color: var(--text-primary); }

/* ── Cue / Habit Stacking Chipleri ── */
.cue-chips-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cue-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg-surface-card, #F6F3F2);
    border: 1.5px solid var(--border, #E5E2E1);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: var(--font-family);
}

.cue-chip:hover {
    border-color: var(--primary, #A8E6CF);
    color: var(--text-primary);
}

.cue-chip.active {
    background: var(--primary, #A8E6CF);
    border-color: var(--primary, #A8E6CF);
    color: #fff;
    font-weight: 600;
}

/* ── Akıllı Hedef Uyarısı ── */
.smart-target-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #FFF9EC;
    border: 1px solid #FFE082;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    color: #8A6500;
    margin-top: 2px;
    animation: fadeIn 0.25s ease;
}

[data-theme="dark"] .smart-target-hint {
    background: #2C2500;
    border-color: #5C4400;
    color: #FFD54F;
}

/* ── Gelişmiş Ayarlar Akordeon ── */
.advanced-accordion {
    border: 1px solid var(--border, #E5E2E1);
    border-radius: 14px;
    overflow: hidden;
}

.advanced-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-surface-card, #F6F3F2);
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: background 0.2s;
}

.advanced-toggle:hover {
    background: var(--bg-surface, #FFFFFF);
}

.advanced-content {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, padding 0.3s ease;
}

.advanced-content:not(.hidden) {
    max-height: 600px;
    padding: 0 16px 16px 16px;
}

.advanced-content.hidden {
    max-height: 0;
    padding-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: var(--fs-caption);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="time"] {
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 14px;
    font-family: var(--font-family);
    color: var(--text-primary);
    font-size: var(--fs-body);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    border-color: var(--pastel-green);
}

.target-input-row {
    display: flex;
    gap: 12px;
}

.target-input-row input {
    flex: 1;
}

.target-input-row select {
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 0 14px;
    font-family: var(--font-family);
    color: var(--text-primary);
    font-size: var(--fs-body);
    outline: none;
    cursor: pointer;
}

/* Renk Seçim Paleti */
.color-palette {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.color-dot.active, .app-theme-dot.active {
    border-color: var(--text-primary) !important;
    transform: scale(1.15);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.form-actions .btn {
    flex: 1;
}

/* UYGULAMA İÇİ TOAST BİLDİRİMLERİ */
.toast-container {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 48px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background-color: rgba(28, 34, 41, 0.95);
    color: #FFFFFF !important;
    padding: 12px 18px;
    border-radius: var(--border-radius-sm);
    font-size: var(--fs-caption);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--pastel-green);
    animation: slideDown 0.3s ease-out forwards, fadeOut 0.3s ease-in 3.5s forwards;
    pointer-events: auto;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}

/* Kategori Filtre Şeridi (iOS Segmented Control Stili) */
.category-filter-strip {
    display: flex;
    background-color: var(--bg-surface-card, #F6F3F2);
    border: 1px solid var(--border, #E5E2E1);
    border-radius: 14px;
    padding: 3px;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}
.category-filter-strip::-webkit-scrollbar {
    display: none;
}

.category-filter-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 10px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    user-select: none;
}

.category-filter-btn:hover {
    color: var(--text-primary);
}

.category-filter-btn:active {
    transform: scale(0.97);
}

.category-filter-btn.active {
    background-color: var(--bg-surface, #FFFFFF) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.category-filter-btn:hover .category-dot {
    transform: scale(1.25);
}

/* Alışkanlık Kartındaki Kategori Rozeti */
.habit-category-badge {
    font-size: var(--fs-tiny);
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    margin-top: 4px;
    display: inline-block;
    width: fit-content;
}

/* GitHub Heatmap Görünümü (GitHub Contribution Graph) */
.heatmap-title-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0 8px 0;
}
.heatmap-title-box h4 {
    font-size: var(--fs-caption);
    color: var(--text-secondary);
}
.heatmap-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 sütunlu (Haftanın günleri) */
    gap: 4px;
    background-color: var(--bg-dark);
    padding: 10px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}
.heatmap-day-square {
    aspect-ratio: 1;
    background-color: var(--bg-surface-light);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}
.heatmap-day-square:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-surface-light);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: var(--fs-tiny);
    white-space: nowrap;
    z-index: 100;
    box-shadow: var(--shadow-premium);
}

/* Kategori filtre şeridi */
.category-filter-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px 0;
    scrollbar-width: none;
    margin-bottom: 8px;
}
.category-filter-strip::-webkit-scrollbar {
    display: none;
}
.category-filter-btn {
    background-color: var(--bg-surface);
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 12px;
    padding: 6px 12px;
    font-family: var(--font-family);
    font-size: var(--fs-caption);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}
.category-filter-btn.active {
    background-color: var(--primary) !important;
    color: #FFFFFF !important;
    border-color: var(--primary) !important;
}

/* Modallardaki Açılır Menüler (Selects) */
.modal-select {
    background-color: var(--bg-dark);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 14px;
    font-family: var(--font-family);
    color: var(--text-primary);
    font-size: var(--fs-body);
    outline: none;
    cursor: pointer;
}

/* Segmented Control (Apple HIG tarzı) */
.segmented-control {
    display: flex;
    background-color: var(--bg-surface-light);
    padding: 4px;
    border-radius: var(--radius-sm);
    gap: 4px;
    margin-top: 6px;
}
.segmented-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: calc(var(--radius-sm) - 4px);
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
    -webkit-user-select: none;
}
.segmented-btn.active {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Haftanın Özel Günleri (Day Chips) */
.days-picker-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    justify-content: space-between;
}
.day-chip {
    flex: 1;
    height: 36px;
    border: 1px solid var(--border);
    background-color: var(--bg-surface-light);
    color: var(--text-secondary);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
}
.day-chip.active {
    background-color: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

/* Ayarlar Sayfası Elemanları */
.settings-desc {
    font-size: var(--fs-caption);
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.settings-section {
    margin-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
}
.data-actions-row {
    display: flex;
    gap: 8px;
}
.data-actions-row .btn {
    flex: 1;
    padding: 10px;
}
.app-theme-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

/* Hafta Değiştirme Butonu */
.nav-week-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}
.nav-week-btn:hover {
    background-color: var(--bg-surface-light);
    color: var(--text-primary);
}

/* Örnek Veri Uyarısı */
.sample-data-notice {
    background-color: rgba(255, 211, 182, 0.2); /* Yarı şeffaf pastel somon */
    border: 1px solid var(--pastel-orange);
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    font-size: var(--fs-caption);
    color: #8C5B3F; /* Koyu pastel kahverengi */
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}
.sample-data-notice.hidden {
    display: none !important;
}
.close-notice-btn {
    background: none;
    border: none;
    color: #8C5B3F;
    font-size: 14px;
    cursor: pointer;
    font-weight: 700;
    opacity: 0.8;
}
.close-notice-btn:hover {
    opacity: 1;
}

/* Minimal SVG İkon Seçim Butonları */
.icon-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background-color: var(--bg-surface-light) !important;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 !important;
}
.icon-dot:hover {
    background-color: var(--bg-surface) !important;
    color: var(--text-primary);
}
.icon-dot.active {
    background-color: rgba(79, 70, 229, 0.1) !important;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    transform: scale(1.05);
}

/* ==========================================================================
   iOS DYNAMIC ISLAND, INTERACTIVE WIDGET & SIMULATOR STYLES
   ========================================================================== */

/* Dynamic Island Simulator Capsule */
.dynamic-island-wrapper {
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.dynamic-island {
    background-color: #000000;
    color: #FFFFFF;
    border-radius: 20px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 90px;
    height: 24px;
    justify-content: center;
}
.dynamic-island.expanded {
    height: 48px;
    border-radius: 24px;
    padding: 10px 20px;
    background-color: #000000;
    min-width: 260px;
    justify-content: flex-start;
    animation: islandPulse 1.5s infinite alternate;
}
@keyframes islandPulse {
    from { box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
    to { box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3); }
}
.dynamic-island .island-icon {
    font-size: 14px;
    transition: all 0.3s;
}
.dynamic-island.expanded .island-icon {
    font-size: 18px;
    transform: scale(1.2);
}
.dynamic-island .island-text {
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s;
}
.dynamic-island.expanded .island-text {
    opacity: 1;
    font-weight: 700;
}

/* iOS Interactive Widget Mockup Card */
.widget-mockup-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.widget-accent-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent);
}
.widget-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.widget-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: var(--bg-surface-light);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-smooth);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.widget-item-row.completed {
    opacity: 0.6;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}
.widget-item-row span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Simulator Pill Expandable Panel */
.simulator-pill-panel {
    background-color: var(--bg-surface-light);
    border-radius: 20px;
    padding: 10px 16px;
    margin-bottom: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.03);
}
.simulator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}
.simulator-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    animation: slideDown 0.3s ease-out;
}
.simulator-content.hidden {
    display: none;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.sim-btn {
    width: 100%;
    border: 1px solid var(--border);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-smooth);
}
.sim-btn:hover {
    background-color: var(--bg-surface-light);
}
.sim-btn:active {
    transform: scale(0.98);
}

/* Badge styles on Habit Card left side */
.badge-sensor, .badge-family {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-sensor {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--accent);
}
.badge-family {
    background-color: rgba(17, 24, 39, 0.06);
    color: var(--text-secondary);
}
.last-completed-info {
    font-size: 11px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 2px;
}

/* Görsel Kanıt Galerisi */
.visual-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}
.gallery-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    cursor: pointer;
}
/* Streaks Pure Focus Mode Styling (İki Parmak Açma - Pinch Open) */
.phone-frame.focus-pure-mode .app-header,
.phone-frame.focus-pure-mode .category-filter-strip,
.phone-frame.focus-pure-mode .fab-btn,
.phone-frame.focus-pure-mode .tab-bar,
.phone-frame.focus-pure-mode .progress-bar-box,
.phone-frame.focus-pure-mode .progress-card,
.phone-frame.focus-pure-mode .section-title,
.phone-frame.focus-pure-mode .app-title-sub,
.phone-frame.focus-pure-mode .sample-data-notice {
    display: none !important;
}

.phone-frame.focus-pure-mode .screens-container {
    padding: 24px 14px 24px 14px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.phone-frame.focus-pure-mode .dashboard-page {
    grid-template-rows: repeat(3, minmax(135px, 1fr));
    gap: 14px;
}

.focus-exit-pill {
    display: none !important;
}

/* ==================================================================== */
/* ALIŞKANLIK DETAY SAYFASI (HABIT DETAIL SCREEN)                        */
/* ==================================================================== */

.detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--primary, #10B981);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.detail-topbar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.detail-title-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.detail-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.detail-title-text h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    letter-spacing: -0.5px;
}

.detail-title-text p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.detail-stat-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-stat-box {
    flex: 1;
    background: var(--bg-surface, #FFFFFF);
    border: 1px solid var(--border, #E5E2E1);
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
}

.detail-stat-val {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.detail-stat-lbl {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

.detail-section-card {
    background: var(--bg-surface, #FFFFFF);
    border: 1px solid var(--border, #E5E2E1);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.detail-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.detail-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.detail-card-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-surface-card, #F6F3F2);
    padding: 4px 8px;
    border-radius: 8px;
}

.detail-heatmap-grid {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 5px;
}

.detail-heatmap-cell {
    aspect-ratio: 1;
    border-radius: 4px;
    transition: transform 0.15s ease;
}

.detail-heatmap-cell:hover {
    transform: scale(1.2);
}

.heatmap-cell-skipped {
    background: var(--skip-color, #94A3B8) !important;
    opacity: 0.85;
}

.detail-actions-card {
    padding: 8px 16px;
}

.detail-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border, #E5E2E1);
    text-align: left;
    cursor: pointer;
}

.detail-action-row:last-child {
    border-bottom: none;
}

.detail-action-row .action-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.detail-action-row .action-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.detail-action-row .action-info strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-action-row .action-info span {
    font-size: 11px;
    color: var(--text-secondary);
}

.detail-action-row .action-arrow {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ==================================================================== */
/* GÖRSEL KANIT GALERİSİ & LIGHTBOX MODAL (PHOTO WALL)                  */
/* ==================================================================== */

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.photo-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-surface-card, #F6F3F2);
    border: 1px solid var(--border, #E5E2E1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 6px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 500;
}

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img-wrapper {
    max-width: 92%;
    max-height: 65vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.lightbox-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lightbox-info {
    margin-top: 16px;
    text-align: center;
    color: #FFFFFF;
    max-width: 90%;
}

.lightbox-info .lightbox-date {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.lightbox-info .lightbox-note {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.lightbox-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #FFFFFF;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─────────────────────────────────────────────────────────────
   LAYOUT SYSTEM REDESIGN (Header Switcher, List, Compact, Anim)
   ───────────────────────────────────────────────────────────── */

/* Header Right Actions */
.header-actions-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.layout-switcher-wrapper {
    position: relative;
}

.layout-popover.hidden,
.layout-recommendation-banner.hidden {
    display: none !important;
}

/* Apple-style Popover Menu */
.layout-popover {
    position: absolute;
    top: 44px;
    right: 0;
    width: 175px;
    background: var(--bg-surface-card, #FFFFFF);
    border: 1px solid var(--border, #E5E2E1);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transform-origin: top right;
    animation: popoverSpring 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.2) forwards;
}

[data-theme="dark"] .layout-popover {
    background: rgba(30, 36, 44, 0.95);
    backdrop-filter: blur(16px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

@keyframes popoverSpring {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popover-divider {
    height: 1px;
    background: var(--border, rgba(0,0,0,0.1));
    margin: 4px 0;
}

.layout-preview-thumb {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-surface-light, #F1EEEB);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 2px;
    color: var(--text-primary);
    position: relative;
    transition: background 0.2s, color 0.2s;
}

.layout-popover-item.active .layout-preview-thumb {
    background: rgba(168, 230, 207, 0.3);
    color: var(--primary, #2D6A4F);
}

.layout-preview-thumb.auto-preview::after {
    content: '✨';
    font-size: 10px;
    position: absolute;
    top: -3px;
    right: -3px;
}

.layout-popover-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    background: none;
    border: none;
    border-radius: 9px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}

.layout-popover-item:hover {
    background: var(--bg-surface-light, rgba(0,0,0,0.04));
}

.layout-popover-item.active {
    background: var(--bg-selected, rgba(168, 230, 207, 0.2));
    color: var(--primary, #2D6A4F);
    font-weight: 700;
}

[data-theme="dark"] .layout-popover-item.active {
    color: var(--primary, #A8E6CF);
}

/* ── Adaptif Görünüm Tavsiye Balonu ── */
.layout-recommendation-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg-surface-card, #F6F3F2);
    border: 1px solid var(--border, #E5E2E1);
    border-radius: 14px;
    padding: 10px 14px;
    margin: 4px 16px 12px 16px;
    animation: fadeIn 0.3s ease;
}

.recommendation-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recommendation-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.recommendation-sub {
    font-size: 11px;
    color: var(--text-secondary);
}

.recommendation-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-rec-action {
    background: var(--primary, #A8E6CF);
    border: none;
    color: #1A1F26;
    font-weight: 700;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-family);
    transition: transform 0.15s ease;
}

.btn-rec-action:active {
    transform: scale(0.95);
}

.btn-rec-dismiss {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    padding: 2px;
}

/* ── 2. LIST LAYOUT (Apple Reminders Inspired Rows) ── */
.habit-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 16px 24px 16px;
}

.habit-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface-card, #FFFFFF);
    border: 1px solid var(--border, #E5E2E1);
    border-radius: 16px;
    padding: 12px 16px;
    min-height: 58px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.habit-list-row:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.habit-list-row:active {
    transform: scale(0.985);
}

.habit-list-row.completed {
    opacity: 0.72;
    background: var(--bg-surface-light, #F8F9FA);
}

.list-row-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.list-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.list-icon-badge:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.habit-list-row.completed .list-icon-badge {
    transform: scale(0.92);
}

.list-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.list-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-family);
}

.habit-list-row.completed .list-title {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.list-cue-pill {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-surface, #F0F0F0);
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
}

.list-meta {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Linear Progress Bar for List Rows */
.list-progress-bar {
    width: 100%;
    height: 3px;
    background: var(--border, #E5E2E1);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.list-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* Completion Button Target (Right side) */
.list-check-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border, #E5E2E1);
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 12px;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.list-check-btn:hover {
    border-color: var(--primary, #A8E6CF);
    transform: scale(1.05);
}

.list-check-btn:active {
    transform: scale(0.92);
}

.list-check-btn.checked {
    background: var(--primary, #A8E6CF);
    border-color: var(--primary, #A8E6CF);
    color: #FFFFFF;
}

/* ── 3. COMPACT LAYOUT (High-Density Single Line Rows) ── */
.habit-compact-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 16px 24px 16px;
}

.habit-compact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface-card, #FFFFFF);
    border: 1px solid var(--border, #E5E2E1);
    border-radius: 12px;
    padding: 8px 12px;
    min-height: 42px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.habit-compact-row:hover {
    border-color: rgba(0,0,0,0.15);
}

.habit-compact-row:active {
    transform: scale(0.99);
}

.habit-compact-row.completed {
    opacity: 0.65;
}

.compact-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.compact-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: grab;
    touch-action: none;
    user-select: none;
    transition: transform 0.2s ease;
}

.compact-icon:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.compact-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-family);
}

.habit-compact-row.completed .compact-title {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.compact-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 8px;
    font-weight: 500;
    flex-shrink: 0;
}

.compact-check-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border, #E5E2E1);
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.compact-check-btn.checked {
    background: var(--primary, #A8E6CF);
    border-color: var(--primary, #A8E6CF);
    color: #FFFFFF;
}

/* ── ANIMATED LAYOUT TRANSITIONS ── */
.layout-transitioning {
    opacity: 0;
    transform: scale(0.97) translateY(4px);
    transition: opacity 0.2s cubic-bezier(0.2, 0, 0.2, 1), transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.layout-transitioning-in {
    animation: layoutSpringIn 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

@keyframes layoutSpringIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ── SH-02: Shared Habit Collaboration ── */

.shared-badge {
    font-size: 11px;
    margin-left: 2px;
    opacity: 0.85;
    vertical-align: middle;
}

.collab-section {
    padding: 4px 0;
}

.collab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.collab-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #1F2937);
}

.collab-status-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    letter-spacing: 0.3px;
}

.collab-desc {
    font-size: 12px;
    color: var(--text-secondary, #6B7280);
    margin: 0;
    line-height: 1.4;
}

.collab-sublabel {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary, #6B7280);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.collab-participants {
    margin-bottom: 4px;
}

.collab-participant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid var(--border, #F3F4F6);
}

.collab-participant-row:last-child {
    border-bottom: none;
}

.collab-participant-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #1F2937);
}

.collab-role {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary, #9CA3AF);
    background: var(--bg-surface-card, #F9FAFB);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.collab-remove-btn {
    background: none;
    border: 1px solid var(--border, #E5E7EB);
    color: var(--accent-danger, #EF4444);
    font-size: 11px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.collab-remove-btn:hover {
    background: rgba(239, 68, 68, 0.08);
}

/* Activity feed */
.collab-activity-feed {
    padding: 2px 0;
}

.collab-activity-day {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary, #6B7280);
    margin: 8px 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.collab-activity-day:first-child {
    margin-top: 0;
}

.collab-activity-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
}

.collab-activity-msg {
    font-size: 12px;
    color: var(--text-primary, #1F2937);
    line-height: 1.4;
    flex: 1;
}

.collab-activity-time {
    font-size: 11px;
    color: var(--text-secondary, #9CA3AF);
    white-space: nowrap;
}

.collab-empty {
    font-size: 12px;
    color: var(--text-secondary, #9CA3AF);
    text-align: center;
    padding: 12px 0;
    margin: 0;
}

/* Notification panel */
.collab-notif-list {
    padding: 2px 0;
}

.collab-notif-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.12s ease;
}

.collab-notif-row:hover {
    background: var(--bg-surface-card, #F9FAFB);
}

.collab-notif-unread {
    background: rgba(16, 185, 129, 0.05);
}

.collab-notif-unread .collab-notif-msg {
    font-weight: 600;
}

.collab-notif-msg {
    font-size: 12px;
    color: var(--text-primary, #1F2937);
    line-height: 1.4;
    flex: 1;
}

.collab-notif-time {
    font-size: 11px;
    color: var(--text-secondary, #9CA3AF);
    white-space: nowrap;
}

/* SH-03: Owner Transfer & Accountability */
.collab-accountability-status {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary, #6B7280);
    white-space: nowrap;
}

/* ==================================================================== */
/* INTERACTIVE ONBOARDING & DOPAMINE CELEBRATION STYLES                  */
/* ==================================================================== */

@keyframes onboardingFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes onboardingPopUp {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes onboardingBounceIn {
    0% { opacity: 0; transform: translateX(-50%) translateY(30px) scale(0.9); }
    70% { opacity: 1; transform: translateX(-50%) translateY(-5px) scale(1.05); }
    100% { transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes onboardingBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes onboardingTargetGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); transform: scale(1); }
    50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); transform: scale(1.03); }
}

.onboarding-highlight-pulse {
    animation: onboardingTargetGlow 1.5s infinite ease-in-out !important;
    position: relative !important;
    z-index: 9995 !important;
    border: 2px solid var(--primary, #10B981) !important;
}

/* Hide header and tab bar on Auth Landing Screen for pure full-card experience */
.app-wrapper:has(#screen-auth-landing.active) .tab-bar,
.app-wrapper:has(#screen-auth-landing.active) .app-header {
    display: none !important;
}
