/**
 * KhataClean — খাতাক্লিন
 * File 9/10: Mobile-First Compact Bento, Slim Canopy & Accordion Stylesheet (assets/css/admin.css)
 */

:root {
    --bg-app: #F5F7FB;
    --surface: #FFFFFF;
    --cobalt: #1D4ED8;
    --cobalt-dark: #172554;
    --indigo: #312E81;
    --emerald: #059669;
    --violet: #6D28D9;
    --amber: #D97706;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-hairline: #E2E8F0;
    --spring: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.app-shell {
    max-width: 540px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: 108px;
}

.pressable {
    transition: transform 0.24s var(--spring), box-shadow 0.24s var(--spring), background-color 0.2s ease;
    cursor: pointer;
}

.pressable:active {
    transform: scale(0.96);
}

/* 1. Curved Royal Cobalt Top Canopy (Auto-slims on non-overview tabs!) */
.top-canopy {
    position: relative;
    background: linear-gradient(135deg, #172554 0%, #1E3A8A 55%, #312E81 100%);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    padding: 16px 16px 20px;
    color: #FFFFFF;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(23, 37, 84, 0.22);
    transition: padding 0.32s var(--spring), border-radius 0.32s var(--spring);
}

.top-canopy.slim-mode {
    padding: 14px 16px 15px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.canopy-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.canopy-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.canopy-orb.orb-1 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(96,165,250,0.24) 0%, transparent 70%);
    top: -40px;
    right: -30px;
}

.canopy-orb.orb-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(167,139,250,0.2) 0%, transparent 70%);
    bottom: -30px;
    left: -20px;
}

.canopy-inner {
    position: relative;
    z-index: 2;
}

.brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.brand-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.26);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex-shrink: 0;
}

.brand-icon-box svg {
    width: 19px;
    height: 19px;
}

.brand-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-name-row h1 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.badge-a4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #A7F3D0;
    background: rgba(52, 211, 153, 0.2);
    border: 1px solid rgba(52, 211, 153, 0.45);
    padding: 2px 7px;
    border-radius: 999px;
}

.brand-sub {
    margin: 1px 0 0;
    font-size: 11px;
    color: #BFDBFE;
}

.top-right-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.db-status-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.13);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
}

.logout-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #FECACA;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logout-icon-btn svg {
    width: 15px;
    height: 15px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}

.db-status-chip.setup-needed .pulse-dot {
    background: #FBBF24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}

/* Overview 2x2 Bento Metric Cards (Collapsible when switching away from Tab 1) */
.metrics-2x2-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
    max-height: 260px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.34s var(--spring), opacity 0.24s ease, margin-top 0.28s var(--spring);
}

.metrics-2x2-grid.hidden-metrics {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

.metric-mini-card {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    padding: 11px 12px;
    backdrop-filter: blur(10px);
}

.metric-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-label {
    font-size: 11px;
    color: #DBEAFE;
    font-weight: 500;
}

.svg-badge {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.svg-badge svg {
    width: 13px;
    height: 13px;
}

.metric-num {
    font-family: 'Plus Jakarta Sans', 'Hind Siliguri', sans-serif;
    font-size: 17.5px;
    font-weight: 800;
    margin: 4px 0 1px;
    line-height: 1.2;
}

.metric-caption {
    font-size: 10.5px;
    color: #A7F3D0;
}

/* 2. Mobile Workspace & Tab Animations */
.mobile-workspace {
    padding: 14px 14px 0;
}

.tab-view {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.tab-view.active {
    display: flex;
}

@keyframes slideUpSpring {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tab-view.active .stagger-1 {
    animation: slideUpSpring 0.34s var(--spring) forwards;
}

.tab-view.active .stagger-2 {
    animation: slideUpSpring 0.44s var(--spring) forwards;
}

.bento-card {
    background: var(--surface);
    border: 1px solid var(--border-hairline);
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.045);
}

.premium-bento-card {
    border: 1.5px solid #DDD6FE;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF8FF 100%);
}

.section-head {
    margin-bottom: 13px;
}

.chip-tag {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #EFF6FF;
    color: var(--cobalt);
}

.chip-tag.emerald {
    background: #ECFDF5;
    color: var(--emerald);
}

.chip-tag.violet {
    background: #F3E8FF;
    color: var(--violet);
}

.section-head h2 {
    margin: 6px 0 2px;
    font-size: 16px;
    font-weight: 700;
}

.section-head p {
    margin: 0;
    font-size: 11.8px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* 6-Provider Pill Selector Grid */
.provider-pill-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.prov-pill {
    height: 36px;
    border-radius: 12px;
    border: 1px solid var(--border-hairline);
    background: #F8FAFC;
    color: var(--text-main);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 6px;
}

.prov-pill.active {
    background: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}

.prov-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.prov-dot.emerald { background: #10B981; }
.prov-dot.cobalt { background: #3B82F6; }
.prov-dot.violet { background: #8B5CF6; }
.prov-dot.amber { background: #F59E0B; }

/* Auto-Detect Badge & Quick Model Chips */
.label-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detect-badge {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--emerald);
    background: #ECFDF5;
    padding: 2px 8px;
    border-radius: 999px;
}

.quick-chip-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    margin-top: 4px;
    scrollbar-width: none;
}

.quick-chip-scroll::-webkit-scrollbar {
    display: none;
}

.mini-model-chip {
    border: 1px solid var(--border-hairline);
    background: #F1F5F9;
    color: var(--text-muted);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.mini-model-chip.active {
    background: #DBEAFE;
    color: var(--cobalt-dark);
    border-color: #93C5FD;
    font-weight: 700;
}

/* Collapsible (▼) Guideline Accordion Drawer */
.guide-accordion {
    margin-top: 14px;
    border-top: 1px dashed var(--border-hairline);
    padding-top: 12px;
}

.guide-toggle-btn {
    width: 100%;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.guide-toggle-btn.violet-guide {
    background: #F5F3FF;
    border-color: #DDD6FE;
    color: #4C1D95;
}

.guide-btn-left {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.guide-info-svg {
    width: 16px;
    height: 16px;
    color: var(--cobalt);
    flex-shrink: 0;
}

.violet-guide .guide-info-svg {
    color: var(--violet);
}

.chevron-svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.28s var(--spring);
}

.guide-toggle-btn.open .chevron-svg {
    transform: rotate(180deg);
}

.guide-drawer-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.36s var(--spring), opacity 0.25s ease, margin-top 0.25s ease;
}

.guide-drawer-body.open {
    max-height: 520px;
    opacity: 1;
    margin-top: 10px;
}

.guide-step {
    background: #F8FAFC;
    border: 1px solid var(--border-hairline);
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.guide-step:last-child {
    margin-bottom: 0;
}

.guide-step strong {
    display: block;
    font-size: 12px;
    color: var(--text-main);
    margin-bottom: 3px;
}

.guide-step p {
    margin: 0;
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.45;
}

.guide-step code {
    background: #E2E8F0;
    color: #0F172A;
    padding: 1px 5px;
    border-radius: 5px;
    font-size: 10.5px;
}

/* Forms, Steppers, Segmented Controls & Switches */
.mobile-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.stepper-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stepper-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
    border: 1px solid var(--border-hairline);
    border-radius: 16px;
    padding: 9px 12px;
}

.stepper-info {
    display: flex;
    flex-direction: column;
}

.stepper-title {
    font-size: 12.5px;
    font-weight: 700;
}

.stepper-sub {
    font-size: 10.8px;
    color: var(--text-muted);
}

.stepper-control {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #FFFFFF;
    border: 1px solid var(--border-hairline);
    border-radius: 999px;
    padding: 3px;
}

.step-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #F1F5F9;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-btn svg {
    width: 13px;
    height: 13px;
}

.stepper-control input {
    width: 34px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--cobalt);
    outline: none;
}

.field-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field-label {
    font-size: 11.8px;
    font-weight: 600;
    color: var(--text-main);
}

.field-hint {
    font-size: 10.8px;
    color: var(--text-muted);
    line-height: 1.35;
}

.segmented-control {
    display: grid;
    gap: 4px;
    background: #F1F5F9;
    padding: 4px;
    border-radius: 999px;
}

.segmented-control.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.segmented-control.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.seg-item {
    height: 33px;
    border: none;
    border-radius: 999px;
    background: transparent;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s var(--spring);
}

.seg-item:active {
    transform: scale(0.95);
}

.seg-item.active {
    background: #111111;
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.16);
}

.segmented-control.mini {
    margin-top: 9px;
}

.segmented-control.mini .seg-item {
    height: 29px;
    font-size: 11px;
}

.switch-card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.switch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #F8FAFC;
    border: 1px solid var(--border-hairline);
    border-radius: 15px;
    padding: 10px 12px;
}

.switch-text strong {
    display: block;
    font-size: 12.2px;
}

.switch-text span {
    display: block;
    font-size: 10.8px;
    color: var(--text-muted);
}

.ios-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ios-slider {
    position: absolute;
    inset: 0;
    background-color: #CBD5E1;
    border-radius: 999px;
    transition: background-color 0.28s var(--spring);
}

.ios-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.18);
    transition: transform 0.28s var(--spring);
}

.ios-switch input:checked + .ios-slider {
    background-color: var(--cobalt);
}

.ios-switch input:checked + .ios-slider::before {
    transform: translateX(18px);
}

.split-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.compact-pill-input {
    height: 39px;
    border-radius: 999px;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    padding: 0 14px;
    font-family: inherit;
    font-size: 12.5px;
    color: var(--text-main);
    outline: none;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.compact-pill-input:focus {
    border-color: var(--cobalt);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.btn-primary-pill {
    height: 43px;
    border: none;
    border-radius: 999px;
    background: #111111;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

.btn-primary-pill.emerald-btn {
    background: var(--emerald);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.22);
}

.btn-primary-pill.violet-btn {
    background: var(--violet);
    box-shadow: 0 6px 16px rgba(109, 40, 217, 0.22);
}

.btn-primary-pill svg {
    width: 15px;
    height: 15px;
}

/* Key Cards & User Cards */
.sub-list-divider {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    margin: 14px 0 8px;
}

.mobile-card-stack {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.key-mobile-card,
.user-mobile-card {
    background: #F8FAFC;
    border: 1px solid var(--border-hairline);
    border-radius: 15px;
    padding: 11px 12px;
}

.paid-key-card {
    background: #F5F3FF;
    border-color: #DDD6FE;
}

.key-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.key-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.key-title-wrap strong {
    font-size: 12.5px;
}

.provider-badge {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    background: #D1FAE5;
    color: #065F46;
}

.provider-badge.paid {
    background: #EDE9FE;
    color: #5B21B6;
}

.key-btn-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pill-action-btn {
    border: none;
    border-radius: 999px;
    padding: 3px 9px;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
}

.pill-action-btn.active {
    background: #D1FAE5;
    color: #065F46;
}

.pill-action-btn.paused {
    background: #E2E8F0;
    color: #475569;
}

.icon-del-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #FEE2E2;
    color: #991B1B;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-del-btn svg {
    width: 12px;
    height: 12px;
}

.key-model-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10.8px;
    color: var(--text-muted);
    margin: 4px 0 6px;
}

.quota-bar-track {
    height: 4px;
    background: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
}

.quota-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cobalt), var(--emerald));
    border-radius: 999px;
    transition: width 0.5s var(--spring);
}

.key-card-foot {
    display: flex;
    justify-content: space-between;
    font-size: 10.8px;
    color: var(--text-muted);
    margin-top: 5px;
}

.user-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #DBEAFE;
    color: var(--cobalt-dark);
    font-weight: 800;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-main-info {
    flex: 1;
    min-width: 0;
}

.user-main-info strong {
    display: block;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-main-info span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-note-count {
    text-align: right;
    background: #FFFFFF;
    border: 1px solid var(--border-hairline);
    padding: 3px 9px;
    border-radius: 10px;
}

.user-note-count b {
    display: block;
    font-size: 13px;
    color: var(--cobalt);
}

.user-note-count small {
    font-size: 9.5px;
    color: var(--text-muted);
}

.empty-box {
    text-align: center;
    padding: 20px 14px;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: 15px;
    color: var(--text-muted);
}

.empty-box svg {
    width: 24px;
    height: 24px;
    color: #94A3B8;
    margin-bottom: 5px;
}

.empty-box p {
    margin: 0;
    font-size: 11.8px;
}

/* 3. Animated Toast Pill */
.toast-pill {
    position: fixed;
    bottom: 82px;
    left: 50%;
    transform: translateX(-50%) translateY(30px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    background: #0F172A;
    color: #FFFFFF;
    padding: 8px 15px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
    z-index: 100;
    transition: transform 0.32s var(--spring), opacity 0.25s ease;
    white-space: nowrap;
}

.toast-pill.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.toast-pill svg {
    width: 14px;
    height: 14px;
    color: #34D399;
}

/* 4. Floating Bottom Pill Navigation Dock */
.bottom-dock-wrap {
    position: fixed;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0 14px;
    z-index: 90;
    pointer-events: none;
}

.floating-bottom-dock {
    pointer-events: auto;
    width: 100%;
    max-width: 460px;
    height: 58px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-hairline);
    border-radius: 999px;
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.dock-tab {
    border: none;
    background: transparent;
    border-radius: 999px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #64748B;
    font-family: inherit;
    padding: 0;
    transition: background-color 0.28s var(--spring), color 0.22s ease, transform 0.22s var(--spring);
}

.dock-tab svg {
    width: 17px;
    height: 17px;
    transition: transform 0.28s var(--spring);
}

.dock-tab span {
    font-size: 10.2px;
    font-weight: 600;
}

.dock-tab.active {
    background: #EDEDEF;
    color: #0F172A;
}

.dock-tab.active svg {
    transform: translateY(-1px) scale(1.08);
    stroke-width: 2.3;
}

.dock-tab.active span {
    font-weight: 700;
}

/* 5. Premium Login Screen Styles */
.login-screen-body {
    background: var(--bg-app);
}

.login-shell {
    padding-bottom: 36px;
}

.login-canopy {
    padding: 28px 18px 54px;
    text-align: center;
}

.login-canopy-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-shield-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A7F3D0;
}

.login-shield-icon svg {
    width: 26px;
    height: 26px;
}

.login-hero-title {
    margin: 8px 0 4px;
    font-size: 21px;
    font-weight: 800;
}

.login-hero-sub {
    margin: 0;
    font-size: 12px;
    color: #BFDBFE;
}

.login-card-wrap {
    padding: 0 16px;
    margin-top: -32px;
    position: relative;
    z-index: 5;
}

.login-bento-card {
    padding: 20px 18px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.field-svg {
    position: absolute;
    left: 13px;
    width: 15px;
    height: 15px;
    color: #64748B;
    pointer-events: none;
}

.compact-pill-input.has-left-icon {
    padding-left: 36px;
}

.login-err-pill {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.login-err-pill svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.login-hint-box {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-hairline);
    text-align: center;
}

.login-hint-box p {
    margin: 5px 0 0;
    font-size: 11px;
    color: var(--text-muted);
}

.login-hint-box code {
    background: #F1F5F9;
    color: #0F172A;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 700;
}
