:root {
    --sunny-yellow: #ffc533;
    --sunny-purple: #8d42b6;
    --sunny-purple-soft: #c58ad6;
    --sunny-blue: #00a8c8;
    --sunny-bg: #f4f5f8;
    --sunny-text: #2f2a3d;
    --sunny-muted: #7b7288;
}

html,
body {
    min-height: 100%;
    background: var(--sunny-bg);
}

.pro-app-shell {
    min-height: 100vh;
    display: grid;
    place-items: start center;
    padding: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f2f4f8 100%);
}

.pro-phone-frame {
    width: min(100%, 430px);
    min-height: calc(100vh - 24px);
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: var(--sunny-bg);
    box-shadow: 0 18px 50px rgba(31, 41, 51, 0.12);
}

.pro-screen {
    min-height: calc(100vh - 110px);
    padding: 18px 16px 98px;
}

.pro-account-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #ffffff;
}

.login-screen {
    width: min(100%, 390px);
    min-height: 720px;
    padding: 58px 28px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    background: linear-gradient(165deg, #ffffff 0 16%, var(--sunny-purple) 16% 72%, var(--sunny-yellow) 72%);
    border-radius: 28px;
    overflow: hidden;
}

.login-brand {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: var(--sunny-purple);
    margin-bottom: 38px;
}

.login-brand img {
    width: 150px;
}

.login-card {
    width: 100%;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.login-avatar {
    width: 170px;
    margin-top: auto;
    margin-bottom: 22px;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.16));
}

.home-hero,
.details-hero {
    margin: -18px -16px 16px;
    padding: 22px 20px 34px;
    color: #ffffff;
    background: linear-gradient(135deg, #6fc9e5 0%, var(--sunny-blue) 52%, #56c7a9 100%);
    border-radius: 0 0 30px 30px;
}

.home-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.home-logo {
    width: 112px;
    margin-bottom: 14px;
}

.home-hero p,
.home-hero h1 {
    margin: 0;
}

.home-hero h1 {
    font-size: 1.35rem;
}

.hero-menu,
.pro-menu-button,
.pro-back-button {
    color: #ffffff !important;
}

.pro-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--sunny-text);
}

.pro-page-header h1 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.pro-eyebrow {
    display: block;
    color: var(--sunny-muted);
    font-size: 0.74rem;
}

.pro-card,
.notification-card,
.profile-card,
.calendar-card {
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(31, 41, 51, 0.08);
}

.notification-card {
    padding: 14px;
    margin-top: -34px;
    margin-bottom: 18px;
    border: 2px solid rgba(255, 197, 51, 0.45);
}

.notification-title,
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notification-title {
    color: #946200;
}

.notification-card p {
    margin: 10px 0;
    color: var(--sunny-muted);
}

.pro-section {
    display: grid;
    gap: 12px;
}

.section-title h2 {
    margin: 0;
    font-size: 1rem;
}

.appointment-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    cursor: pointer;
}

.appointment-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--sunny-blue);
    border-radius: 14px;
}

.appointment-avatar.large {
    width: 58px;
    height: 58px;
}

.appointment-main,
.appointment-meta {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.appointment-main span,
.appointment-main small,
.appointment-meta small {
    color: var(--sunny-muted);
}

.appointment-meta {
    justify-items: end;
}

.status-pill {
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
}

.status-pill.now {
    background: var(--sunny-yellow);
    color: #5a3a00;
}

.status-pill.next {
    background: var(--sunny-purple-soft);
}

.status-pill.done {
    background: #aeb0b6;
}

.status-pill.muted {
    background: #cfd4dc;
}

.date-strip,
.filter-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.date-chip {
    min-width: 52px;
    border: 0;
    border-radius: 15px;
    padding: 10px 8px;
    color: var(--sunny-text);
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(31, 41, 51, 0.07);
}

.date-chip span,
.date-chip strong {
    display: block;
}

.date-chip.selected {
    color: var(--sunny-purple);
    outline: 2px solid var(--sunny-blue);
}

.client-card,
.profile-card {
    display: flex;
    gap: 14px;
    align-items: center;
}

.client-card h2,
.profile-card h1 {
    margin: 0;
    font-size: 1.05rem;
}

.client-card p,
.client-card small,
.profile-card p {
    margin: 2px 0;
    color: rgba(255, 255, 255, 0.9);
}

.profile-card {
    padding: 14px;
    color: var(--sunny-text);
    background: linear-gradient(135deg, #ffffff 0%, #d9f7ff 100%);
    margin-bottom: 14px;
}

.profile-card p {
    color: var(--sunny-blue);
}

.profile-photo {
    width: 68px;
    height: 68px;
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e6d9ef;
}

.profile-photo.compact {
    margin: 0 auto 12px;
}

.profile-photo.large {
    width: 150px;
    height: 150px;
}

.profile-photo img {
    width: 82%;
    height: 82%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-photo span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--sunny-blue);
    border-radius: 50%;
}

.profile-menu,
.data-form,
.documents-list,
.availability-screen,
.delay-screen,
.completion-screen,
.photo-screen,
.saved-screen {
    display: grid;
    gap: 12px;
}

.profile-menu-item,
.document-row,
.turn-row {
    min-height: 54px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--sunny-text) !important;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(31, 41, 51, 0.07);
}

.document-row small,
.turn-row small {
    display: block;
    color: var(--sunny-muted);
}

.task-card {
    padding: 14px;
}

.task-card h3,
.pro-card h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

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

.details-actions {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.delay-minutes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 2px solid var(--sunny-yellow);
    border-radius: 18px;
    background: #ffffff;
}

.delay-minutes strong {
    font-size: 1.15rem;
}

.completion-screen,
.saved-screen {
    text-align: center;
}

.completion-card {
    display: grid;
    gap: 4px;
    padding: 14px;
    text-align: left;
}

.success-badge {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    color: #ffffff;
    background: #34c77b;
    border-radius: 50%;
    font-size: 2rem;
}

.success-badge.big {
    width: 116px;
    height: 116px;
}

.calendar-card {
    padding: 14px;
}

.calendar-card h2 {
    margin: 0 0 12px;
    font-size: 1rem;
    text-align: center;
}

.mini-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.mini-calendar span {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--sunny-muted);
}

.mini-calendar .today {
    color: #ffffff;
    background: var(--sunny-purple);
}

.pro-bottom-nav {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    height: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr 72px 1fr 1fr;
    align-items: center;
    padding: 8px;
    border-radius: 22px;
    background: var(--sunny-blue);
    box-shadow: 0 10px 30px rgba(0, 168, 200, 0.32);
}

.pro-nav-item {
    display: grid !important;
    justify-items: center;
    gap: 2px;
    min-width: 0;
    color: #ffffff !important;
    font-size: 0.68rem;
}

.pro-nav-item.active {
    color: var(--sunny-yellow) !important;
}

.pro-nav-action {
    justify-self: center;
    transform: translateY(-12px);
}

.pro-loading,
.pro-empty-state {
    min-height: 140px;
    display: grid;
    place-items: center;
    gap: 8px;
    color: var(--sunny-muted);
}

.pro-empty-state {
    padding: 18px;
    border: 1px dashed #d8dce4;
    border-radius: 18px;
    background: #ffffff;
}

@media (max-width: 520px) {
    .pro-app-shell {
        padding: 0;
    }

    .pro-phone-frame {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .pro-screen {
        min-height: calc(100vh - 86px);
    }
}
