:root {
    --ink: #0e1726;
    --sand: #f7f1e9;
    --primary: #0f766e;
    --accent: #f59f0b;
    --muted: #6b7280;
    --card: rgba(255, 255, 255, 0.92);
    --border: rgba(14, 23, 38, 0.08);
    --radius: 18px;
    --shadow: 0 15px 45px rgba(14, 23, 38, 0.15);
    --positive: #0f766e;
    --negative: #b91c1c;

}

* { box-sizing: border-box; }

.hero {
    padding: 20px 0 40px;
}

input[type="password"] {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.text-bg-primary {
    color: #fff !important;
    background-color: RGBA(var(--bs-primary-rgb), var(--bs-bg-opacity, 1)) !important;
}

.text-bg-secondary {
    color: #fff !important;
    background-color: RGBA(var(--bs-secondary-rgb), var(--bs-bg-opacity, 1)) !important;
}

.text-bg-success {
    color: #fff !important;
    background-color: RGBA(var(--bs-success-rgb), var(--bs-bg-opacity, 1)) !important;
}

.text-bg-info {
    color: #000 !important;
    background-color: RGBA(var(--bs-info-rgb), var(--bs-bg-opacity, 1)) !important;
}

.text-bg-warning {
    color: #000 !important;
    background-color: RGBA(var(--bs-warning-rgb), var(--bs-bg-opacity, 1)) !important;
}

.text-bg-danger {
    color: #fff !important;
    background-color: RGBA(var(--bs-danger-rgb), var(--bs-bg-opacity, 1)) !important;
}

.text-bg-light {
    color: #000 !important;
    background-color: RGBA(var(--bs-light-rgb), var(--bs-bg-opacity, 1)) !important;
}

.text-bg-dark {
    color: #fff !important;
    background-color: RGBA(var(--bs-dark-rgb), var(--bs-bg-opacity, 1)) !important;
}


.step {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    height: 100%;
}


.bubble {
    max-width: 70%;
    padding: 10px 12px;
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: 0 10px 22px rgba(14, 23, 38, 0.08);
}

.bubble.me {
    margin-left: auto;
    background: var(--ink);
    color: white;
}

.bubble.them {
    background: white;
    border: 1px solid var(--border);
}

.bubble small {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.bubble.them small {
    color: var(--muted);
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.3);
}


.chat-list {
    height: calc(100vh - 380px);
    /*overflow-y: auto;*/
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

.chat-bubbles {
    height: calc(100vh - 380px);
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.chat-con {
    max-height: calc(100vh - 220px);
}

.chat-tabs .nav-link {
    color: var(--muted);
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
    scrollbar-gutter: stable;
    max-height: calc(100vh - 520px);
}

.chat-tabs .nav-link.active {
    color: var(--ink);
    background: transparent;
    border-bottom-color: var(--primary);
}


.dot-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 10px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}



.team-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(14, 23, 38, 0.18);
}

.avatar {
    width: 146px;
    height: 146px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(14, 23, 38, 0.18);
}

.link-reset {
    color: inherit;
    text-decoration: none;
}

.link-reset:hover,
.link-reset:focus,
.link-reset:active {
    color: inherit;
    text-decoration: none;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: background 120ms ease, transform 120ms ease;
}

.dot.active {
    background: #fff;
    transform: scale(1.05);
}



.stories-wrap {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(14, 23, 38, 0.12);
    border-radius: 18px;
    padding: 12px;
    margin-top: 14px;
}

.stories {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.story {
    min-width: 90px;
    display: grid;
    place-items: center;
    gap: 8px;
    text-align: center;
    font-weight: 700;
    color: var(--ink);
    font-family: 'Space Grotesk', system-ui, sans-serif;
}

.story-thumb {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 180deg, #f59f0b, #0ea5e9, #0f766e, #f59f0b);
    display: grid;
    place-items: center;
}

.story-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 12px 22px rgba(14, 23, 38, 0.18);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 600;
    box-shadow: 0 12px 22px rgba(14, 23, 38, 0.05);
}

.card-custom {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 14px 32px rgba(14, 23, 38, 0.12);
    overflow: hidden;
    position: relative;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.card-custom:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(14, 23, 38, 0.18);
}

.card-custom img {
    height: 400px;
    object-fit: cover;
}

.badge-float {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 118, 110, 0.95);
    color: white;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.3);
}

.cta-banner {
    margin: 36px 0;
    background: linear-gradient(135deg, var(--ink), #192a46);
    color: white;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 16px 42px rgba(14, 23, 38, 0.4);
}

footer {
    border-top: 1px solid var(--border);
    padding: 24px 0 32px;
    color: var(--muted);
    font-size: 14px;
}


.plan-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
}

.plan-card.highlight {
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: 0 20px 45px rgba(14, 23, 38, 0.25);
    position: relative;
}

.ribbon {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--ink);
    color: white;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 12px 22px rgba(14, 23, 38, 0.25);
}

.brand-pill {
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    box-shadow: 0 10px 25px rgba(15, 118, 110, 0.35);
    color: white;
    padding: 6px 10px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.card-hero {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}


.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 360px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    z-index: 1050;
    display: none;
}

.faq-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.faq-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(14, 23, 38, 0.18);
}

.gallery-main img,
.gallery-thumb img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
}

.gallery-main {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 16px 35px rgba(14, 23, 38, 0.2);
}

.gallery-thumb {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
    background: white;
}

.gallery-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(14, 23, 38, 0.12);
    border-color: rgba(15, 118, 110, 0.4);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.spec-chip {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: white;
    box-shadow: 0 10px 18px rgba(14, 23, 38, 0.06);
}

.spec-chip small { color: var(--muted); }



.swipe-pointer {
    position: fixed;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 10px;
    box-shadow: 0 10px 24px rgba(14, 23, 38, 0.14);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--ink);
    z-index: 10;
}

.swipe-pointer .arrow {
    font-size: 18px;
    line-height: 1;
}

@media (hover: none) and (pointer: coarse) {
    .swipe-pointer {
        display: none;
    }
}

.smaller {
    font-size: 0.55rem;
}

.link-like {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.tree-select {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0.14));
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}

.shake {
    display: inline-block;
    animation: shake-right 2.2s ease-in-out 2s 3;
}

@keyframes shake-right {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(4px); }
    40%  { transform: translateX(0); }
    60%  { transform: translateX(4px); }
    80%  { transform: translateX(0); }
    100% { transform: translateX(0); }
}




/* In */


.brand-pill {
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    box-shadow: 0 10px 25px rgba(15, 118, 110, 0.35);
    color: white;
    padding: 6px 10px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.dashboard-shell {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 28px;
}


.hero-title {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.menu-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: white;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(14, 23, 38, 0.12);
    border-color: rgba(15, 118, 110, 0.3);
}
.menu-card.support-card {
    border-color: rgba(220, 38, 38, 0.45);
}

.menu-label {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.menu-meta {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.menu-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.12);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--primary);
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.action-chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: white;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border);
}

.stat-card h4 {
    font-size: 18px;
    margin-bottom: 2px;
    font-weight: 700;
}

.stat-card small {
    color: var(--muted);
    font-weight: 600;
}


.popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14, 23, 38, 0.55);
    z-index: 9998;
    display: none;
}

.popup-window {
    position: fixed;
    inset: 8% 8%;
    max-width: 560px;
    width: calc(100% - 32px);
    height: 90%;
    margin: auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(14, 23, 38, 0.3);
    z-index: 9999;
    display: none;
    overflow: auto;
    padding: 18px;
}

.popup-open .popup-backdrop,
.popup-open .popup-window {
    display: block;
}




.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #6c757d;
    --bs-btn-border-color: #6c757d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgb(91.8, 99.45, 106.25);
    --bs-btn-hover-border-color: rgb(86.4, 93.6, 100);
    --bs-btn-focus-shadow-rgb: 130, 138, 145;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgb(86.4, 93.6, 100);
    --bs-btn-active-border-color: rgb(81, 87.75, 93.75);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #6c757d;
    --bs-btn-disabled-border-color: #6c757d;
}


.btn-lg {
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-padding-x: 1rem;
    --bs-btn-font-size: 1.25rem;
    --bs-btn-border-radius: var(--bs-border-radius-lg);
}




.brand-pill {
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    box-shadow: 0 10px 25px rgba(15, 118, 110, 0.35);
    color: white;
    padding: 6px 10px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 600;
    box-shadow: 0 12px 22px rgba(14, 23, 38, 0.05);
}

.card-hero {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.menu-list .list-group-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.8);
}

.month-item.active {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(14, 165, 233, 0.08));
    border-color: rgba(15, 118, 110, 0.28);
}

.summary-card {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(245, 159, 11, 0.12));
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 16px;
}

.transaction-row {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.transaction-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.transaction-main {
    display: grid;
    grid-template-columns: minmax(130px, 180px) minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: start;
}

.transaction-sub {
    display: grid;
    grid-template-columns: minmax(130px, 180px) minmax(0, 1fr) auto auto;
    gap: 16px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.timestamp {
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.transaction-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.amount {
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-align: right;
}

.amount.credit {
    color: var(--positive);
}

.amount.debit {
    color: var(--negative);
}

.balance {
    white-space: nowrap;
    text-align: right;
    font-weight: 700;
    color: var(--muted);
}



.sort-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px 10px 8px 12px;
    box-shadow: 0 10px 24px rgba(14, 23, 38, 0.08);
}

.sort-form label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.sort-form .form-select {
    min-width: 170px;
    border-color: transparent;
    background-color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}


@media (max-width: 767.98px) {
    .transaction-main,
    .transaction-sub {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .amount {
        text-align: left;
    }
}