:root {
    --bg-top: #181b22;
    --bg-bottom: #dce3ea;
    --pill-idle: #424751;
    --pill-active: #ff6a3d;
    --chip: #eceef1;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Outfit", sans-serif;
}

#toast-container>div {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    border-radius: 12px;
    opacity: 1;
    font-family: "Outfit", sans-serif;
}

#toast-container.toast-bottom-center {
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(86px + env(safe-area-inset-bottom));
}

#toast-container.toast-bottom-center>div {
    width: min(92vw, 360px);
}

#toast-container>.toast-success {
    background-color: #111111;
    color: #ffffff;
}

#toast-container>.toast-error {
    background-color: #111111;
    color: #ffffff;
}

#toast-container>.toast-info {
    background-color: #111111;
    color: #ffffff;
}

#toast-container .toast-close-button {
    color: #ffffff;
    opacity: 0.9;
}

#toast-container .toast-progress {
    background: #ffffff;
    opacity: 0.22;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.46);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.loading-glass {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 152px;
    height: 152px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(18, 22, 29, 0.15);
}

.loading-logo {
    width: 92px;
    height: auto;
    object-fit: contain;
    animation: breathe 1.7s ease-in-out infinite;
}

@keyframes breathe {
    0% {
        transform: scale(0.94);
        opacity: 0.74;
    }

    50% {
        transform: scale(1.03);
        opacity: 1;
    }

    100% {
        transform: scale(0.94);
        opacity: 0.74;
    }
}

.auth-wrap {
    background: #ffffff;
}

.auth-input {
    width: 100%;
    height: 50px;
    border: 1px solid #d8dce4;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 500;
    color: #222632;
    background: #fff;
}

.auth-input:focus {
    outline: none;
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.14);
}

.mobile-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.country-badge {
    min-width: 82px;
    height: 50px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #d8dce4;
    color: #242934;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 700;
}

.country-badge .flag {
    font-size: 16px;
}

.mobile-input {
    flex: 1;
}

.auth-submit {
    width: 100%;
    height: 50px;
    border: 1px solid #111111;
    border-radius: 14px;
    background: #111111;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.auth-submit[disabled] {
    opacity: 0.65;
}

.auth-message {
    min-height: 18px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #6a707d;
}

.auth-message.is-error {
    color: #d63638;
}

.auth-message.is-success {
    color: #12805c;
}

.auth-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid #d8dce4;
    border-radius: 12px;
    background: #ffffff;
    padding: 10px 12px;
    font-size: 13px;
    color: #1f2330;
    line-height: 1.35;
}

.auth-consent input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: #111111;
}

.booking-bg {
    background:
        radial-gradient(circle at 15% 12%, rgba(255, 119, 82, 0.24), transparent 40%),
        radial-gradient(circle at 82% 88%, rgba(74, 104, 140, 0.24), transparent 38%),
        linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.icon-btn {
    display: grid;
    place-items: center;
    height: 36px;
    width: 36px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.day-pill {
    min-width: 64px;
    border-radius: 9999px;
    border: 0;
    background: var(--pill-idle);
    color: #f4f5f7;
    padding: 10px 6px;
    text-align: center;
    line-height: 1.05;
}

.day-pill.is-active {
    background: var(--pill-active);
}

.day-pill .num {
    display: block;
    font-size: 22px;
    font-weight: 700;
}

.day-pill .dow {
    display: block;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.shop-card {
    border-radius: 24px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 8px 18px rgba(24, 28, 36, 0.11);
}

.shop-image {
    height: 180px;
    border-radius: 18px;
    object-fit: cover;
    width: 100%;
    filter: grayscale(100%);
}

.shop-map-frame {
    width: 100%;
    height: 210px;
    border: 0;
}

.shop-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.shop-action-link {
    display: grid;
    place-items: center;
    height: 44px;
    border-radius: 12px;
    background: #111111;
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
}

.carousel-dots {
    position: relative;
    margin-top: -22px;
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.carousel-dots span {
    height: 6px;
    width: 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.55);
}

.carousel-dots span.is-on {
    width: 18px;
    background: #fff;
}

.time-chip {
    min-width: 62px;
    border-radius: 9999px;
    border: 0;
    background: var(--chip);
    color: #2b2f38;
    padding: 8px 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.05;
}

.time-chip small {
    display: block;
    opacity: 0.6;
    font-size: 10px;
}

.calendar-page {
    border-radius: 24px;
    background: #ffffff;
    padding: 12px;
    color: #121212;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.calendar-title {
    margin: 0 0 10px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #0f1115;
}

.calendar-day-track {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.calendar-day-pill {
    flex: 0 0 auto;
    min-width: 58px;
    border: 1px solid #000000;
    border-radius: 14px;
    background: #000000;
    color: #ffffff;
    padding: 10px 6px;
    text-align: center;
    line-height: 1.05;
}

.calendar-day-pill .dow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.75;
    margin-bottom: 3px;
}

.calendar-day-pill .num {
    display: block;
    font-size: 22px;
    font-weight: 800;
}

.calendar-day-pill.is-active {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #000000;
    transform: translateY(-1px);
}

.calendar-barbers {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.calendar-barber-card {
    min-width: 108px;
    border: 1px solid #000000;
    border-radius: 14px;
    background: #000000;
    color: #ffffff;
    padding: 9px 8px;
    text-align: center;
}

.calendar-barber-card.is-active {
    border-color: #000000;
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #000000;
    transform: translateY(-1px);
}

.calendar-avatar {
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    object-fit: cover;
    margin: 0 auto 6px;
}

.calendar-avatar.fallback {
    display: grid;
    place-items: center;
    background: #1f1f1f;
    color: #ffffff;
    font-size: 24px;
}

.calendar-barber-name {
    font-size: 14px;
    line-height: 1.2;
    margin: 0;
}

.calendar-barber-index {
    margin: 1px 0 0;
    font-size: 13px;
    opacity: 0.78;
}

.calendar-times {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.calendar-time-btn {
    border: 1px solid #000000;
    border-radius: 12px;
    background: #000000;
    color: #ffffff;
    height: 44px;
    font-size: 15px;
    font-weight: 700;
}

.calendar-time-btn.is-active {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #000000;
    transform: translateY(-1px);
}

.calendar-empty {
    width: 100%;
    border-radius: 12px;
    background: #f6f7f9;
    color: #252a33;
    border: 1px solid #e2e5ea;
    text-align: center;
    font-size: 14px;
    padding: 14px;
}

.calendar-status {
    min-height: 20px;
    margin: 12px 2px 10px;
    color: #1f2430;
    font-size: 13px;
    text-align: center;
}

.calendar-status.is-error {
    color: #3a3f48;
}

.calendar-status.is-success {
    color: #1f2430;
}

.calendar-book-btn {
    width: 100%;
    height: 44px;
    border: 1px solid #000000;
    border-radius: 9999px;
    background: #000000;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.calendar-book-btn[disabled] {
    background: #2a2a2a;
    color: #b8b8b8;
    border-color: #2a2a2a;
}

.appointment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.appointment-card {
    border-radius: 14px;
    background: #f5f7fa;
    padding: 10px;
}

.appointment-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.appointment-avatar {
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    object-fit: cover;
    flex: 0 0 auto;
}

.appointment-avatar.fallback {
    display: grid;
    place-items: center;
    background: #16181d;
    color: #ffffff;
    font-size: 20px;
}

.appointment-main {
    min-width: 0;
}

.appointment-name {
    display: block;
    color: #12151b;
    font-size: 15px;
    line-height: 1.2;
}

.appointment-when {
    margin: 2px 0 0;
    color: #3a404c;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.appointment-actions {
    flex: 0 0 auto;
}

.appointment-cancel {
    border: 0;
    border-radius: 9999px;
    background: #fee6e6;
    color: #bd2f35;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 10px;
    white-space: nowrap;
}

.appointment-cancel[disabled] {
    opacity: 0.45;
}

.profile-page {
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e6e8ee;
    box-shadow: 0 8px 18px rgba(24, 28, 36, 0.11);
    padding: 14px;
}

.profile-photo-wrap {
    position: relative;
    width: 106px;
    margin: 4px auto 8px;
}

.profile-photo-trigger {
    width: 106px;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.profile-avatar {
    width: 106px;
    height: 106px;
    border-radius: 9999px;
    object-fit: cover;
    border: 2px solid #111111;
    background: #f3f4f7;
}

.profile-photo-edit {
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    min-width: 68px;
    height: 24px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: #111111;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.top-header-profile-photo {
    width: 88px;
    height: 88px;
    border-radius: 9999px;
    object-fit: cover;
    border: 2px solid #111111;
}

.top-header-profile-photo.is-clickable {
    cursor: pointer;
}

.profile-links {
    margin-top: 12px;
    display: grid;
    gap: 9px;
}

.profile-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    border-radius: 16px;
    padding: 14px 16px;
    background: #1b1d22;
    color: #ffffff;
    text-decoration: none;
    border: 0;
}

.profile-link-left {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 600;
}

.profile-link-left i {
    font-size: 19px;
}

.profile-logout-btn {
    width: 100%;
    margin-top: 12px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #000000;
    background: #000000;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.absolute-nav {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 16px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 26px rgba(20, 24, 35, 0.2);
    z-index: 1200;
}

.bottom-tab {
    border: 0;
    height: 44px;
    border-radius: 12px;
    font-size: 20px;
    color: #9aa0aa;
    background: transparent;
}

.bottom-tab.is-active {
    color: #12141a;
    background: #f1f3f6;
}

@media (min-width: 820px) {
    .shop-image {
        height: 220px;
    }
}

@media (max-width: 560px) {
    .absolute-nav {
        width: calc(100% - 20px);
        border-radius: 14px;
    }
}