:root {
    --bg: #f7f4ef;
    --bg-deep: #efe8dc;
    --page-bg: #fbf9f5;
    --ink: #1c1915;
    --muted: #6b6358;
    --gold: #b8944d;
    --gold-deep: #8f6d2f;
    --gold-soft: #e8d5a8;
    --white: #fffcf7;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #fff;
    --line: rgba(28, 25, 21, 0.1);
    --line-gold: rgba(184, 148, 77, 0.1);
    --danger: #9b2c2c;
    --success: #2f6b4f;
    --shadow: 0 10px 32px rgba(45, 35, 20, 0.055);
    --shadow-soft: 0 10px 28px rgba(28, 25, 21, 0.045);
    --shadow-gold: 0 12px 28px rgba(143, 109, 47, 0.28);
    --radius: 24px;
    --radius-mobile: 18px;
    --radius-field: 14px;
    --radius-pill: 999px;
    --space-1: 0.35rem;
    --space-2: 0.55rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.4rem;
    --control-height: 52px;
    --font-display: "IBM Plex Sans Arabic", "Noto Naskh Arabic", sans-serif;
    --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    --page-logo-size: 72px;
}

/* ===== Public pages layout ===== */
body.page-public {
    background: var(--page-bg) !important;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

body.page-public:not(.page-home):not(.page-login):not(.page-start)::before {
    content: "";
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.32;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='420' viewBox='0 0 220 420'%3E%3Cg fill='none' stroke='%23b8944d' stroke-width='1.1' opacity='0.18'%3E%3Cpath d='M40 380c40-60 40-120 10-170 40 10 80-10 100-50-50 10-90-10-120-50 30 70 20 150-20 220z'/%3E%3Cpath d='M70 300c20-30 20-70 0-100'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='420' viewBox='0 0 220 420'%3E%3Cg fill='none' stroke='%23b8944d' stroke-width='1.1' opacity='0.18'%3E%3Cpath d='M180 40c-40 60-40 120-10 170-40-10-80 10-100 50 50-10 90 10 120 50-30-70-20-150 20-220z'/%3E%3Cpath d='M150 120c-20 30-20 70 0 100'/%3E%3C/g%3E%3C/svg%3E");
    background-position: left 2% bottom 6%, right 2% top 10%;
    background-repeat: no-repeat;
    background-size: min(18vw, 150px), min(18vw, 150px);
}

.public-page-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.app-container {
    padding-top: 30px;
}

.app-content {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
    animation: rise 500ms ease both;
}

.app-content > * {
    width: 100%;
}

.app-content > section + section {
    margin-top: 1rem;
}

.public-container {
    width: calc(100% - 48px);
    max-width: 1180px;
    margin: 0 auto;
    flex: 1;
}

.public-header {
    position: relative;
    width: calc(100% - 48px);
    max-width: 1360px;
    height: 88px;
    margin: 22px auto 0;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(169, 122, 33, 0.08);
    border-radius: 22px;
    box-shadow: 0 8px 30px rgba(70, 50, 20, 0.05);
}

.public-header-brand-link {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: block;
    width: 54px;
    transform: translate(-50%, -50%);
    border-radius: 14px;
    touch-action: manipulation;
}

.public-header-brand-link img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 12px rgba(143, 109, 47, 0.14));
}

.brand-logo-link {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 20px;
    touch-action: manipulation;
}

.public-header-start {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.public-header-dropdown {
    position: relative;
    display: inline-flex;
}

.public-header-dropdown-toggle {
    gap: 0.4rem;
}

.public-header-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    z-index: 40;
    min-width: 168px;
    display: grid;
    gap: 0.2rem;
    padding: 0.4rem;
    border-radius: 16px;
    border: 1.5px solid var(--gold);
    background: #fffcf7;
    box-shadow: 0 12px 28px rgba(70, 50, 20, 0.12);
}

.public-header-dropdown-menu[hidden] {
    display: none !important;
}

.public-header-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 0.45rem 0.85rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--gold-deep);
    font: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.public-header-dropdown-item:hover {
    background: rgba(184, 148, 77, 0.1);
}

.public-header-dropdown-logout {
    margin: 0;
    padding: 0;
}

.public-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.5rem 1.05rem;
    border-radius: 999px;
    border: 1.5px solid var(--gold);
    background: #fffcf7;
    color: var(--gold-deep);
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease;
}

.public-header-btn:hover {
    background: rgba(184, 148, 77, 0.08);
}

.public-header-btn:active {
    transform: scale(0.98);
}

.public-header-icon {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.public-header-icon svg {
    width: 21px;
    height: 21px;
}

.public-container > .public-content,
.public-container > .home-landing,
.public-container > .home-hero {
    margin-top: 30px;
}

.public-header--home {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 4px;
}

.public-header-menu {
    position: relative;
}

.public-header-menu-toggle {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    border: 1.5px solid var(--gold);
    background: #fffcf7;
    color: var(--gold-deep);
    cursor: pointer;
    padding: 0;
    box-shadow: 0 6px 16px rgba(70, 50, 20, 0.06);
}

.public-header-menu-bars {
    width: 18px;
    height: 14px;
    display: grid;
    gap: 4px;
    align-content: center;
}

.public-header-menu-bars span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.public-header-menu-panel {
    left: 0;
    right: auto;
    min-width: 190px;
}

.public-header--home .public-header-dropdown.is-open .public-header-menu-toggle {
    background: rgba(184, 148, 77, 0.1);
}

body.page-home .public-container,
body.page-login .public-container,
body.page-start .public-container {
    width: min(100% - 28px, 1200px);
}

body.page-home .public-header--home,
body.page-login .public-header--home,
body.page-start .public-header--home {
    width: min(100% - 28px, 1200px);
    height: auto;
    min-height: 56px;
    margin: 8px auto 0;
}

body.page-login,
body.page-home,
body.page-start {
    min-height: 0;
    height: auto;
    overflow-x: hidden;
}

body.page-login .public-page-wrapper,
body.page-home .public-page-wrapper,
body.page-start .public-page-wrapper {
    min-height: 0;
    height: auto;
    overflow-x: hidden;
}

body.page-login .public-container,
body.page-home .public-container,
body.page-start .public-container {
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
}

body.page-start .public-container {
    overflow: visible;
}

.home-decor {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 1;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='480' viewBox='0 0 260 480' fill='none'%3E%3Cg stroke='%23c4a56a' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round' opacity='0.16'%3E%3Cpath d='M18 470c28-78 42-150 36-220 48 18 92-8 118-48-42 8-78-18-102-52 38 62 34 138 12 210'/%3E%3Cpath d='M54 250c-22-48-18-96 8-138'/%3E%3Cpath d='M54 250c38-12 72-42 88-84'/%3E%3Cpath d='M72 190c-28-36-22-78 6-112'/%3E%3Cpath d='M72 190c34-18 58-52 62-92'/%3E%3Cpath d='M88 140c-18-34-10-72 18-102'/%3E%3Cpath d='M88 140c28-22 44-54 42-90'/%3E%3Cpath d='M42 320c32-10 58-38 68-72'/%3E%3Cpath d='M42 320c-20-40-12-84 16-118'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='480' viewBox='0 0 260 480' fill='none'%3E%3Cg stroke='%23c4a56a' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round' opacity='0.16'%3E%3Cpath d='M242 10c-28 78-42 150-36 220-48-18-92 8-118 48 42-8 78 18 102 52-38-62-34-138-12-210'/%3E%3Cpath d='M206 230c22 48 18 96-8 138'/%3E%3Cpath d='M206 230c-38 12-72 42-88 84'/%3E%3Cpath d='M188 290c28 36 22 78-6 112'/%3E%3Cpath d='M188 290c-34 18-58 52-62 92'/%3E%3Cpath d='M172 340c18 34 10 72-18 102'/%3E%3Cpath d='M172 340c-28 22-44 54-42 90'/%3E%3Cpath d='M218 160c-32 10-58 38-68 72'/%3E%3Cpath d='M218 160c20 40 12 84-16 118'/%3E%3C/g%3E%3C/svg%3E");
    background-position: left -42px top 72px, right -48px top 40px;
    background-repeat: no-repeat;
    background-size: min(46vw, 210px), min(46vw, 210px);
}

.home-hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 720px;
    margin: 40px auto 0;
    padding: 0 2px 8px;
    animation: rise 650ms ease both;
}

.home-logo {
    width: var(--page-logo-size);
    height: var(--page-logo-size);
    max-width: var(--page-logo-size);
    max-height: var(--page-logo-size);
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(143, 109, 47, 0.18));
}

.home-title {
    margin: 16px 0 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 2.6rem);
    font-weight: 700;
    color: var(--gold-deep);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.home-lead {
    margin: 12px 0 0;
    max-width: 22rem;
    color: #4f4942;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.7;
}

.home-cta-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 28px;
    gap: 12px;
}

.home-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: min(85%, 340px);
    min-height: 52px;
    margin-top: 0;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #c9a85f 0%, #9a7534 100%);
    color: #fffaf0 !important;
    font-size: 1.08rem;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(143, 109, 47, 0.26);
    transition: transform 160ms ease, box-shadow 160ms ease;
    text-decoration: none;
}

.home-cta-arrow {
    font-size: 1.2em;
    line-height: 1;
    font-weight: 500;
}

.home-cta:active {
    transform: scale(0.98);
}

.home-cta--vip {
    background: linear-gradient(180deg, #2c2721 0%, #1a1713 100%);
    color: #e2c27a !important;
    box-shadow: 0 12px 28px rgba(28, 25, 21, 0.22);
}

.home-cta-crown {
    display: inline-flex;
    width: 22px;
    height: 22px;
}

.home-cta-crown svg {
    width: 100%;
    height: 100%;
}

.home-highlights {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    width: 100%;
    max-width: 520px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    align-items: start;
}

.home-highlights > li {
    display: grid;
    justify-items: center;
    gap: 0.28rem;
    padding: 0.35rem 0.45rem;
    text-align: center;
    position: relative;
}

.home-highlights > li + li::before {
    content: "";
    position: absolute;
    top: 18%;
    bottom: 18%;
    right: 0;
    width: 1px;
    background: rgba(184, 148, 77, 0.28);
}

.home-highlight-icon {
    width: 28px;
    height: 28px;
    color: var(--gold-deep);
    display: grid;
    place-items: center;
    margin-bottom: 0.15rem;
}

.home-highlight-icon svg {
    width: 24px;
    height: 24px;
}

.home-highlights strong {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
}

.home-highlights span:last-child {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.4;
}

.home-section--features {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(184, 148, 77, 0.08);
    border-radius: 28px;
    padding: 1.6rem 1rem 1.75rem;
    box-shadow: 0 8px 24px rgba(45, 35, 20, 0.03);
}

.home-section-title {
    margin: 0 0 1.35rem;
    text-align: center;
    color: #332e29;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 4.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.35;
}

.home-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.home-card {
    background: #fff;
    border: 1px solid rgba(184, 148, 77, 0.12);
    border-radius: 22px;
    box-shadow: 0 8px 22px rgba(28, 25, 21, 0.04);
    padding: 1.15rem 1rem 1.25rem;
    text-align: center;
    display: grid;
    gap: 0.4rem;
    justify-items: center;
}

.home-card-icon {
    width: 40px;
    height: 40px;
    color: var(--gold-deep);
    display: grid;
    place-items: center;
    margin-bottom: 0.15rem;
}

.home-card-icon svg {
    width: 30px;
    height: 30px;
}

.home-card h3 {
    margin: 0;
    color: var(--gold-deep);
    font-size: 1.02rem;
    font-weight: 700;
}

.home-card p {
    margin: 0;
    color: #6b6358;
    font-size: 0.88rem;
    line-height: 1.65;
    max-width: 16rem;
}

.home-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    counter-reset: none;
}

.home-step {
    position: relative;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem 0.25rem;
}

.home-step-num {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, #c9a85f 0%, #9a7534 100%);
    color: #fffaf0;
    font-size: 0.85rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 14px rgba(143, 109, 47, 0.22);
}

.home-step-icon {
    width: 42px;
    height: 42px;
    color: var(--gold-deep);
    display: grid;
    place-items: center;
}

.home-step-icon svg {
    width: 32px;
    height: 32px;
}

.home-step h3 {
    margin: 0;
    color: #332e29;
    font-size: 1.02rem;
    font-weight: 700;
}

.home-step p {
    margin: 0;
    color: #6b6358;
    font-size: 0.88rem;
    line-height: 1.65;
    max-width: 15rem;
}

body.page-home .public-footer {
    margin-top: 60px;
}

/* ===== Auth / Login (same design system as home) ===== */
.auth-botanical {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    width: auto;
    height: 280px;
    overflow: hidden;
    pointer-events: none;
}

.auth-botanical-branch {
    position: absolute;
    top: 24px;
    width: 138px;
    height: 266px;
    stroke: #b89a62;
    stroke-width: 1.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.17;
}

.auth-botanical-branch--left {
    left: -15px;
}

.auth-botanical-branch--right {
    right: -15px;
    transform: scaleX(-1);
}

.page-login .public-header-btn {
    min-height: 44px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 420px;
    margin: 10px auto 0;
    padding: 0 4px;
}

.auth-brand--compact {
    margin-top: 10px;
}

.auth-logo,
.auth-brand--compact .auth-logo {
    width: var(--page-logo-size);
    height: var(--page-logo-size);
    max-width: var(--page-logo-size);
    max-height: var(--page-logo-size);
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(143, 109, 47, 0.16));
}

.auth-brand-title {
    margin: 8px 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 6vw, 2.05rem);
    font-weight: 700;
    color: var(--gold-deep);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.auth-brand-lead {
    margin: 7px 0 0;
    max-width: 18.5rem;
    color: #4f4942;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.65;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: calc(100% - 36px);
    max-width: 360px;
    margin: 16px auto 0;
    padding: 1.15rem 1.35rem 1.1rem;
    background: #fff;
    border: 1px solid rgba(184, 148, 77, 0.12);
    border-radius: 28px;
    box-shadow: 0 12px 32px rgba(45, 35, 20, 0.06);
    text-align: center;
    animation: rise 650ms ease both;
}

.auth-card-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.65rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1.5px solid rgba(184, 148, 77, 0.35);
    color: var(--gold-deep);
    background: rgba(184, 148, 77, 0.06);
}

.auth-card-icon svg {
    width: 22px;
    height: 22px;
}

.auth-card-title {
    margin: 0;
    color: #332e29;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.auth-card-text {
    margin: 0.45rem auto 0;
    max-width: 18rem;
    color: #6b6358;
    font-size: 0.82rem;
    line-height: 1.65;
}

.auth-card .alert {
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: right;
}

.auth-form {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
    text-align: right;
}

.auth-label {
    display: block;
    color: #332e29;
    font-size: 0.88rem;
    font-weight: 600;
}

.auth-phone-field {
    position: relative;
}

.auth-phone-field input,
.auth-otp-input {
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 1.5px solid rgba(184, 148, 77, 0.22);
    background: #fbf9f5;
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    text-align: right;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.auth-phone-field input::placeholder,
.auth-otp-input::placeholder {
    color: #a39a8c;
}

.auth-phone-field input:focus,
.auth-otp-input:focus {
    outline: none;
    border-color: rgba(184, 148, 77, 0.55);
    box-shadow: 0 0 0 3px rgba(184, 148, 77, 0.12);
}

.auth-otp-input {
    text-align: center;
    letter-spacing: 0.35em;
    font-weight: 700;
}

.auth-submit {
    width: 100%;
    max-width: none;
    min-height: 50px;
    margin-top: 0.25rem;
    padding: 0.65rem 1rem;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1rem 0 0.75rem;
    color: #9a9185;
    font-size: 0.88rem;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(80, 65, 45, 0.12);
}

.auth-register-note {
    margin: 0;
    color: #6b6358;
    font-size: 0.86rem;
}

.auth-register-link {
    display: inline-block;
    margin-top: 0.2rem;
    color: var(--gold-deep);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-register-link:hover {
    color: #7a5c24;
}

.auth-highlights {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    margin: 14px auto 0;
}

.auth-highlights .home-highlights {
    margin-top: 0;
}

.wa-login-fallback {
    margin-top: 1.1rem;
    text-align: center;
}

.wa-login-fallback-text {
    margin: 0 0 0.75rem;
    color: var(--danger);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.7;
}

.wa-login-fallback-btn {
    min-height: 48px;
}

.wa-login-fallback-error {
    margin: 0.65rem 0 0;
    color: var(--danger);
    font-size: 0.82rem;
    font-weight: 600;
}

.auth-otp-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.15rem;
    text-align: center;
}

.auth-secondary-btn {
    width: 100%;
}

body.page-login .public-footer {
    margin-top: 12px;
    padding: 12px 0 16px;
}

@media (max-height: 760px) {
    .auth-logo {
        width: var(--page-logo-size);
        height: var(--page-logo-size);
    }

    .auth-brand-title {
        font-size: 1.5rem;
    }

    .auth-brand-lead {
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .auth-card {
        margin-top: 12px;
        padding: 1rem 1.2rem 0.95rem;
    }

    .auth-card-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0.4rem;
    }

    .auth-form {
        margin-top: 0.75rem;
        gap: 0.5rem;
    }

    .auth-phone-field input,
    .auth-otp-input {
        min-height: 48px;
    }

    .auth-submit {
        min-height: 46px;
    }

    .auth-highlights {
        margin-top: 10px;
    }
}

@media (min-width: 640px) {
    .home-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.95rem;
    }

    .home-card {
        padding: 1.25rem 0.9rem 1.35rem;
    }

    .home-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
        align-items: start;
    }

    .home-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 48px;
        left: -12%;
        width: 24%;
        border-top: 1.5px dashed rgba(184, 148, 77, 0.45);
        pointer-events: none;
    }
}

@media (min-width: 900px) {
    body.page-home .public-header--home,
    body.page-login .public-header--home,
    body.page-start .public-header--home {
        margin-top: 22px;
    }

    body.page-login .home-decor {
        background-position: left -28px top 90px, right -36px top 48px;
        background-size: 220px, 220px;
    }

    .auth-brand {
        margin-top: 28px;
    }

    .auth-card {
        margin-top: 28px;
        padding: 1.85rem 1.6rem 1.7rem;
    }

    .auth-highlights {
        margin-top: 28px;
    }

    body.page-login .public-footer {
        margin-top: 36px;
    }

    .home-hero {
        margin-top: 40px;
        max-width: 780px;
    }

    .home-logo {
        width: var(--page-logo-size);
        height: var(--page-logo-size);
    }

    .home-title {
        font-size: 2.65rem;
    }

    .home-lead {
        font-size: 1.05rem;
        max-width: 26rem;
    }

    .home-cta {
        width: 320px;
        min-height: 54px;
        font-size: 1.1rem;
    }

    .home-highlights {
        max-width: 560px;
        margin-top: 32px;
    }

    .home-highlights strong {
        font-size: 0.9rem;
    }

    .home-highlights span:last-child {
        font-size: 0.78rem;
    }

    .home-section {
        margin-top: 72px;
    }

    .home-section-title {
        margin-bottom: 1.6rem;
        font-size: 1.85rem;
    }

    .home-card {
        min-height: 0;
        padding: 1.4rem 1.1rem 1.5rem;
        border-radius: 24px;
    }

    .home-step:not(:last-child)::after {
        left: -18%;
        width: 36%;
        top: 52px;
    }
}

@media (max-width: 767px) {
    .public-container {
        width: calc(100% - 24px);
    }

    .public-content {
        max-width: 100%;
    }

    .public-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .public-header {
        width: calc(100% - 24px);
        height: 72px;
        padding: 0 14px;
        border-radius: 17px;
        margin-top: 14px;
    }

    body.page-home .public-header--home,
    body.page-login .public-header--home,
    body.page-start .public-header--home {
        width: calc(100% - 20px);
        height: auto;
        min-height: 52px;
        padding: 0;
        margin-top: 12px;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    body.page-home .public-container,
    body.page-login .public-container,
    body.page-start .public-container {
        width: calc(100% - 20px);
    }

    .public-header-start {
        gap: 0.4rem;
    }

    .public-header-btn {
        min-height: 44px;
        padding: 0.45rem 0.95rem;
        font-size: 0.95rem;
    }

    .public-page-title {
        font-size: 25px;
        margin-bottom: 18px;
    }

    .public-page-text {
        font-size: 16px;
    }

    .home-decor {
        background-position: left -48px top 58px, right -52px top 28px;
        background-size: min(48vw, 170px), min(48vw, 170px);
        opacity: 1;
    }

    .home-highlights > li {
        padding: 0.25rem 0.2rem;
    }

    .home-highlights strong {
        font-size: 0.74rem;
    }

    .home-highlights span:last-child {
        font-size: 0.66rem;
    }
}


.public-content {
    width: 100%;
    max-width: 980px;
    margin-inline: auto;
}

.public-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(80, 60, 35, 0.07);
    border-radius: 24px;
    box-shadow: 0 10px 32px rgba(45, 35, 20, 0.055);
    padding: 40px 44px;
    animation: rise 500ms ease both;
}

.public-page-title {
    margin: 0 0 24px;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: #332E29;
    line-height: 1.3;
    text-align: right;
}

.public-page-meta {
    margin: -8px 0 20px;
    font-size: 15px;
    color: #6b6358;
    text-align: right;
}

.public-page-text {
    margin: 0;
    font-size: 17px;
    line-height: 2;
    color: #514B45;
    text-align: right;
}

.public-footer {
    margin-top: 32px;
    padding: 25px 0 30px;
    border-top: 1px solid rgba(80, 65, 45, 0.08);
    text-align: center;
}

.public-footer-links {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    font-size: 0.92rem;
}

.public-footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.45rem 0.65rem;
}

.public-footer-links a {
    color: var(--ink);
    font-weight: 600;
}

.public-footer-sep {
    color: var(--muted);
}

.public-footer-support {
    margin: 0.85rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.public-footer-support a {
    color: var(--gold-deep);
    font-weight: 700;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

a,
button,
input,
select,
textarea,
label,
[role="button"] {
    touch-action: manipulation;
}

body.page-login,
body.page-home,
body.page-start {
    min-height: 0;
    height: auto;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 100% -10%, rgba(184, 148, 77, 0.18), transparent 55%),
        radial-gradient(900px 420px at 0% 100%, rgba(143, 109, 47, 0.12), transparent 50%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    line-height: 1.7;
}

a {
    color: var(--gold-deep);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.site-shell {
    width: min(100%, 480px);
    margin: 0 auto;
    min-height: 100vh;
    padding: 1.25rem 1.1rem 2.5rem;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--gold-deep);
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand span {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--gold-deep);
}

.nav-links {
    display: flex;
    gap: 0.85rem;
    font-size: 0.95rem;
}

.hero {
    min-height: calc(100vh - 7rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
    animation: rise 700ms ease both;
}

.hero-mark {
    width: min(58vw, 180px);
    margin-inline: auto;
    filter: drop-shadow(0 12px 24px rgba(143, 109, 47, 0.25));
    animation: float 4.5s ease-in-out infinite;
}

.hero h1 {
    margin: 0;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 10vw, 3.4rem);
    font-weight: 700;
    color: var(--gold-deep);
    line-height: 1.2;
}

.hero p {
    margin: 0;
    text-align: center;
    color: var(--muted);
    font-size: 1.05rem;
}

.actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn {
    appearance: none;
    border: 0;
    border-radius: var(--radius-pill);
    min-height: 50px;
    padding: 0.82rem 1.3rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #c4a05a 0%, var(--gold-deep) 100%);
    color: #fffaf0 !important;
    box-shadow: var(--shadow-gold);
}

.btn-secondary {
    background: var(--white);
    color: var(--gold-deep);
    border: 1.5px solid var(--gold);
    box-shadow: none;
}

.btn:focus-visible,
.public-header-btn:focus-visible {
    outline: 3px solid rgba(184, 148, 77, 0.28);
    outline-offset: 2px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.panel {
    background: var(--surface);
    border: 1px solid rgba(80, 60, 35, 0.07);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    backdrop-filter: blur(6px);
    animation: rise 500ms ease both;
}

.panel h1,
.panel h2 {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 4vw, 1.8rem);
    color: #332e29;
    line-height: 1.3;
}

.lead {
    margin: 0 0 1.2rem;
    color: var(--muted);
}

.form-stack {
    display: grid;
    gap: 1rem;
}

label {
    display: grid;
    gap: 0.4rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    min-height: var(--control-height);
    border: 1px solid var(--line);
    border-radius: var(--radius-field);
    background: var(--white);
    padding: 0.85rem 1rem;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

select {
    appearance: none;
    padding-inline-end: 2.75rem;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--gold-deep) 50%),
        linear-gradient(135deg, var(--gold-deep) 50%, transparent 50%);
    background-position:
        left 1.15rem center,
        left 0.8rem center;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 148, 77, 0.16);
    background-color: #fff;
}

input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    background: #f3f0ea;
}

.otp-input {
    letter-spacing: 0.45em;
    text-align: center;
    font-size: 1.55rem;
    font-weight: 700;
}

.alert {
    border: 1px solid transparent;
    border-radius: var(--radius-field);
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.alert-error {
    background: #fdecec;
    color: var(--danger);
    border-color: rgba(155, 44, 44, 0.1);
}

.alert-success {
    background: #e8f6ef;
    color: var(--success);
    border-color: rgba(47, 107, 79, 0.1);
}

.muted {
    color: var(--muted);
    font-size: 0.95rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0 1.4rem;
}

.stat {
    background: var(--surface-solid);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-mobile);
    padding: 1rem;
    box-shadow: var(--shadow-soft);
}

.stat strong {
    display: block;
    font-size: 1.4rem;
    color: var(--gold-deep);
}

.guest-status-panel {
    margin-top: 0.35rem;
}

.guest-status-heading {
    margin: 0 0 0.75rem;
    text-align: center;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ink);
}

.guest-status-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin: 0 0 0.95rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
}

.guest-status-filters::-webkit-scrollbar {
    display: none;
}

.guest-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0.22rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(184, 148, 77, 0.28);
    background: #fff;
    color: #6b6358;
    font-size: 0.82rem;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}

.guest-filter-chip.is-active {
    border-color: var(--gold-deep);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: #fffaf0;
    font-weight: 700;
}

.guest-status-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
}

.guest-status-pending {
    background: rgba(184, 148, 77, 0.16);
    color: #8f6d2f;
}

.guest-status-not_sent,
.guest-status-queued {
    background: rgba(80, 60, 35, 0.08);
    color: #6b6358;
}

.guest-status-failed {
    background: rgba(155, 44, 44, 0.12);
    color: #9b2c2c;
}

.guest-status-accepted {
    background: rgba(47, 107, 79, 0.14);
    color: #2f6b4f;
}

.guest-status-declined {
    background: rgba(155, 44, 44, 0.12);
    color: #9b2c2c;
}

.guest-status-checked_in {
    background: rgba(47, 90, 140, 0.12);
    color: #2f5a8c;
}

/* —— مناسباتي / دعواتي —— */
.events-home,
.event-detail {
    width: 100%;
}

.summary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
}

.summary-stat-card {
    background: #fff;
    border: 1px solid rgba(80, 60, 35, 0.06);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(45, 35, 20, 0.045);
    padding: 0.95rem 0.85rem 0.85rem;
    text-align: center;
}

.summary-stat-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.45rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(184, 148, 77, 0.14);
    color: var(--gold-deep);
}

.summary-stat-label {
    font-size: 0.86rem;
    color: #6b6358;
    margin-bottom: 0.2rem;
}

.summary-stat-value {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.summary-stat-value--gold {
    color: var(--gold-deep);
}

.summary-stat-meta {
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: #8a8174;
}

.invites-section-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    margin: 0.25rem 0 0.85rem;
}

.invites-section-head h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
}

.invites-section-icon {
    color: var(--gold-deep);
    display: inline-flex;
}

.event-invite-list {
    display: grid;
    gap: 0.7rem;
}

.event-invite-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    background: #fff;
    border: 1px solid rgba(80, 60, 35, 0.06);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(45, 35, 20, 0.045);
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.event-invite-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(45, 35, 20, 0.07);
}

.event-invite-thumb {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 14px;
    overflow: hidden;
    background: #f3eee4;
    order: 3;
}

.event-invite-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-invite-thumb-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, #f7f1e6, #efe4d0);
}

.event-invite-thumb-fallback img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.event-invite-body {
    flex: 1;
    min-width: 0;
    order: 2;
}

.event-invite-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.28rem;
}

.event-invite-date,
.event-invite-count {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.84rem;
    color: #6b6358;
}

.event-invite-date {
    margin-bottom: 0.18rem;
}

.event-invite-date svg,
.event-invite-count svg {
    flex-shrink: 0;
    opacity: 0.75;
}

.event-invite-chevron {
    order: 1;
    color: #b0a89c;
    display: inline-flex;
    flex-shrink: 0;
}

.event-invite-empty {
    background: #fff;
    border-radius: 18px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 6px 18px rgba(45, 35, 20, 0.045);
}

.event-invite-empty p {
    margin: 0 0 0.85rem;
    color: #6b6358;
}

.events-home-actions {
    margin: 0 0 0.9rem;
}

.events-home-actions .btn {
    width: 100%;
}

.pager {
    margin: 1rem 0 0.25rem;
}

.pager-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.55rem;
}

.pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1.5px solid var(--gold-deep);
    background: #fff;
    color: var(--gold-deep);
    text-decoration: none;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
}

.pager-btn--primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: #fffaf0;
    border-color: transparent;
}

.pager-btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
    border-color: rgba(80, 60, 35, 0.18);
    color: #8a8174;
    background: #fff;
}

.pager-row .pager-btn:first-child {
    justify-self: stretch;
}

.pager-row .pager-btn:last-child,
.pager-row .pager-btn--primary {
    justify-self: stretch;
}

.pager-meta {
    font-size: 0.86rem;
    font-weight: 600;
    color: #6b6358;
    white-space: nowrap;
}

/* قائمة المدعوين */
.page-back-bar {
    width: 100%;
    max-width: 980px;
    margin: 1.1rem auto 0;
}

.app-content > .page-back,
.page-back-bar .page-back {
    margin-bottom: 0.85rem;
}

.page-back,
.event-detail-back,
.contacts-back {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 40px;
    padding: 0.35rem 0.85rem 0.35rem 0.7rem;
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-pill);
    background: var(--white);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--gold-deep);
    text-decoration: none;
    box-shadow: none;
    transition: background 160ms ease, transform 160ms ease;
}

.page-back:hover,
.event-detail-back:hover,
.contacts-back:hover {
    background: rgba(184, 148, 77, 0.08);
}

.page-back:active,
.event-detail-back:active,
.contacts-back:active {
    transform: scale(0.98);
}

.page-back svg,
.event-detail-back svg,
.contacts-back svg {
    flex-shrink: 0;
}

.event-detail-back,
.contacts-back {
    margin-bottom: 0.85rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    min-height: auto;
}

.event-guests-head {
    text-align: center;
    margin-bottom: 0.95rem;
}

.event-guests-head h1 {
    margin: 0 0 0.35rem;
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--ink);
}

.event-guests-count {
    margin: 0;
    display: inline-block;
    padding: 0.28rem 0.85rem;
    border-radius: 999px;
    background: rgba(184, 148, 77, 0.12);
    color: var(--gold-deep);
    font-size: 0.92rem;
    font-weight: 600;
}

.event-detail-send {
    margin-bottom: 0.85rem;
}

.event-detail-send .btn {
    width: 100%;
}

.guests-page-actions {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.guests-page-actions .btn {
    width: 100%;
}

.guests-send-bar {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 0.55rem;
    margin-bottom: 0.95rem;
}

.guests-send-bar form {
    margin: 0;
}

.guests-send-bar .btn {
    width: 100%;
    min-height: 46px;
}

.guest-status-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.guest-status-panel-head .guest-status-heading {
    margin: 0;
}

.guests-select-all {
    display: inline-flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 0.35rem;
    font-size: 0.86rem;
    font-weight: 500;
    color: #6b6358;
    cursor: pointer;
    user-select: none;
}

.guests-select-all input,
.guest-send-check input,
.guest-pending-check {
    appearance: auto;
    width: 1rem;
    height: 1rem;
    min-height: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    accent-color: var(--gold-deep);
    flex-shrink: 0;
}

.guest-phone-list {
    display: grid;
    gap: 0.55rem;
}

.guest-phone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    background: #fff;
    border: 1px solid rgba(80, 60, 35, 0.05);
    border-radius: 16px;
    padding: 0.8rem 0.9rem;
    box-shadow: 0 5px 16px rgba(45, 35, 20, 0.04);
}

.guest-send-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: auto;
    margin: 0;
    padding: 0;
    gap: 0;
    font-weight: 400;
}

.guest-phone-main {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 0.1rem;
}

.guest-phone-name {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.95rem;
}

.guest-resent-note {
    margin-top: 0.15rem;
    color: #9a6b22;
    font-size: 0.78rem;
    font-weight: 600;
}

.guest-phone-side {
    display: grid;
    gap: 0.4rem;
    justify-items: end;
    align-content: start;
}

.guest-resend-form {
    margin: 0;
}

.guest-resend-btn {
    min-height: 32px;
    padding: 0 0.65rem;
    font-size: 0.78rem;
}

.guest-phone-number {
    font-weight: 600;
    font-size: 0.9rem;
    color: #6b6358;
    letter-spacing: 0.02em;
    min-width: 0;
}

.guest-dashboard-quota {
    margin: 0.45rem 0 0;
}

.guest-dashboard-quota strong {
    color: var(--gold-deep);
}

.guest-dashboard .guests-rsvp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guest-dashboard .guest-status-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.65rem;
    margin-top: 0.3rem;
    color: #6b6358;
    font-size: 0.78rem;
}

.guest-dashboard .guest-status-line span {
    white-space: nowrap;
}

.guest-contact-tools,
.excluded-contacts-panel {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.guest-contact-tools > h2,
.excluded-contacts-panel > h2 {
    margin: 0;
    font-size: 1.08rem;
}

.guest-contact-tools .host-access-add-form {
    margin: 0;
}

.guest-contact-tools .host-access-add-form h3 {
    margin: 0;
    font-size: 1rem;
}

.guest-available-only {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0.85rem auto 1rem;
}

.guest-available-only .stat {
    text-align: center;
}

.guest-available-hint {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
}

.guest-selection-actions {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0.55rem;
    align-items: stretch;
    margin-top: 1rem;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 1;
}

.guest-selection-actions form {
    width: 100%;
    margin: 0;
    min-width: 0;
    display: flex;
}

.guest-selection-actions .btn {
    width: 100%;
    margin: 0;
    min-height: 48px;
    white-space: normal;
    line-height: 1.3;
    padding: 0.65rem 0.7rem;
    font-size: 0.92rem;
}

.guest-selection-actions + .guest-contact-tools {
    margin-top: 0.35rem;
}

.guest-selection-actions + .contacts-purchase-card,
.guest-selection-actions + .contacts-info-bar {
    margin-top: 0;
    clear: both;
}

.host-access-invitation-preview,
.secondary-host-management {
    width: 100%;
    margin-bottom: 1.25rem;
}

.host-access-invitation-preview + .guest-dashboard {
    padding-top: 1rem;
    border-top: 1px solid rgba(184, 148, 77, 0.18);
}

.review-date-field {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.review-date-input {
    width: 100%;
    min-height: var(--control-height);
    direction: ltr;
    text-align: center;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}

.review-date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.75;
    scale: 1.15;
}

.review-time-field {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.review-time-label {
    font-weight: 600;
}

.review-time-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.review-time-part {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    font-weight: 600;
    font-size: 0.92rem;
}

.review-time-part span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.review-time-part select {
    direction: rtl;
    text-align: center;
    font-variant-numeric: tabular-nums;
    min-height: var(--control-height);
}

.review-time-field small {
    display: block;
    line-height: 1.65;
}

.review-designs {
    margin: 1rem 0 0.35rem;
    display: grid;
    gap: 0.65rem;
}

.review-designs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
}

.review-designs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.65rem;
}

.review-design-card {
    display: grid;
    gap: 0.4rem;
    padding: 0.35rem;
    border: 1px solid rgba(117, 91, 44, 0.16);
    border-radius: 14px;
    background: #fffdf8;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

.review-design-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: #f1eadf;
}

.review-design-card span {
    font-size: 0.82rem;
    color: var(--gold-deep, #8a6a2f);
}

.page-dashboard .dashboard-actions,
.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
    margin-top: 1rem;
}

.page-dashboard .dashboard-actions .btn,
.dashboard-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    margin: 0;
    padding: 0 0.7rem;
    border-width: 1.5px;
    border-style: solid;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
}

.page-dashboard .dashboard-actions .btn-primary,
.dashboard-actions .btn-primary {
    border-color: transparent;
}

.page-dashboard .dashboard-actions .btn-secondary,
.dashboard-actions .btn-secondary {
    border-color: var(--gold);
}

.design-shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.85rem 0 1rem;
}

.design-shop-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.3rem 0.85rem;
    border: 1px solid rgba(117, 91, 44, 0.18);
    border-radius: 999px;
    background: #fffdf8;
    color: inherit;
    font-size: 0.88rem;
}

.design-shop-chip.is-active {
    border-color: rgba(169, 131, 62, 0.45);
    background: #f7efdf;
    color: var(--gold-deep, #8a6a2f);
    font-weight: 600;
}

.design-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 160px));
    gap: 0.85rem;
    justify-content: start;
}

.design-shop-card {
    margin: 0;
}

.design-shop-card-btn {
    display: grid;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem;
    border: 1px solid rgba(117, 91, 44, 0.16);
    border-radius: 16px;
    background: #fffdf8;
    color: inherit;
    font: inherit;
    text-align: right;
    cursor: pointer;
}

.design-shop-thumb {
    display: block;
    width: 100%;
    border-radius: 12px;
    background: #f1eadf;
    overflow: hidden;
}

.design-shop-thumb img {
    display: block;
    width: 100%;
    height: auto;
    background: #f1eadf;
}

.design-shop-meta {
    display: grid;
    gap: 0.2rem;
}

.design-shop-price {
    color: var(--gold-deep, #8a6a2f);
    font-weight: 700;
}

.design-shop-owned,
.design-shop-cta {
    font-size: 0.82rem;
    color: var(--muted, #7a7164);
}

.design-shop-empty {
    grid-column: 1 / -1;
    padding: 1.25rem;
    border: 1px dashed rgba(169, 131, 62, 0.3);
    border-radius: 16px;
    text-align: center;
    color: var(--muted, #7a7164);
}

.design-shop-card-link {
    display: grid;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem;
    border: 1px solid rgba(117, 91, 44, 0.16);
    border-radius: 16px;
    background: #fffdf8;
    color: inherit;
    text-decoration: none;
}

.page-design-compose .app-content {
    max-width: 1120px;
}

.design-compose {
    overflow: visible;
}

.design-compose-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin-bottom: 0.85rem;
}

.design-compose-head h1 {
    margin-bottom: 0.25rem;
}

.design-compose-head .lead {
    margin: 0;
}

.design-compose-head-meta {
    display: grid;
    gap: 0.15rem;
    text-align: start;
}

.design-compose-paid-note {
    background: #fff8e8;
    border-color: rgba(184, 148, 77, 0.35);
    color: #6b5422;
}

.design-compose-layout {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

.design-compose-stage-sticky {
    display: grid;
    gap: 0.55rem;
}

.compose-static-preview {
    position: relative;
    margin: 0;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #f7f1e6;
    border: 1px solid rgba(117, 91, 44, 0.14);
    box-shadow: 0 10px 28px rgba(45, 35, 20, 0.08);
}

.compose-static-preview__img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 1080 / 1920;
    object-fit: contain;
    background: #f7f1e6;
}

.compose-static-preview__badge {
    position: absolute;
    left: 50%;
    bottom: 2.6rem;
    transform: translateX(-50%);
    padding: 0.28rem 0.9rem;
    border-radius: 999px;
    background: rgba(34, 30, 25, 0.82);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    pointer-events: none;
    z-index: 1;
}

.compose-static-preview__caption {
    margin: 0;
    padding: 0.55rem 0.75rem 0.7rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #6b5422;
    background: #fffaf0;
    border-top: 1px solid rgba(117, 91, 44, 0.12);
}

.compose-static-preview__caption--selected {
    font-weight: 600;
    color: var(--muted, #7a7164);
}

.design-compose-fields {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.compose-static-preview--selected {
    max-width: 200px;
    margin-inline: auto;
}

.compose-static-preview--example {
    max-width: 420px;
    margin-inline: auto;
}

.design-compose-form label {
    display: grid;
    gap: 0.35rem;
}

.design-compose-form textarea,
.design-compose-form input,
.design-compose-form select {
    width: 100%;
}

.design-compose-form textarea {
    min-height: 9.5rem;
}

.design-compose-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

@media (min-width: 900px) {
    .design-compose-layout.has-example {
        grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
        gap: 1.5rem;
        align-items: start;
    }

    /* RTL: العمود الأيسر = المثال، الأيمن = التصميم المختار + النموذج */
    .design-compose-layout.has-example .design-compose-stage {
        order: 2;
    }

    .design-compose-layout.has-example .design-compose-fields {
        order: 1;
    }

    .design-compose-stage-sticky {
        position: sticky;
        top: 1rem;
    }

    .compose-static-preview--example {
        max-width: none;
    }

    .compose-static-preview--selected {
        max-width: 180px;
        margin-inline: 0;
    }
}

@media (max-width: 899px) {
    .design-compose-layout {
        grid-template-columns: 1fr;
    }

    /* جوال: التصميم المختار ثم النموذج ثم المثال */
    .design-compose-fields {
        order: 0;
    }

    .design-compose-stage {
        order: 1;
    }

    .compose-static-preview--selected {
        max-width: 220px;
    }

    .compose-static-preview--example {
        max-width: min(100%, 360px);
    }
}

@media (max-width: 380px) {
    .page-dashboard .dashboard-actions .btn,
    .dashboard-actions .btn {
        font-size: 0.82rem;
        padding: 0 0.45rem;
    }
}

.secondary-host-card {
    margin-top: 1.1rem;
    background: #fff;
    border: 1px solid rgba(80, 60, 35, 0.06);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(45, 35, 20, 0.045);
    padding: 1rem 0.95rem;
    display: grid;
    gap: 0.65rem;
}

.secondary-host-card h2 {
    margin: 0;
    font-size: 1.05rem;
}

.secondary-host-card .muted {
    margin: 0;
    font-size: 0.9rem;
}

.secondary-host-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.secondary-host-toggle-copy {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.secondary-host-fields {
    display: grid;
    gap: 0.65rem;
}

.secondary-host-fields[hidden] {
    display: none !important;
}

.ui-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.ui-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

.ui-switch-track {
    position: relative;
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: #d8d0c4;
    transition: background 160ms ease;
    pointer-events: none;
}

.ui-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    inset-inline-start: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform 160ms ease;
}

.ui-switch input:checked + .ui-switch-track {
    background: linear-gradient(135deg, #c4a05a, #8f6d2f);
}

.ui-switch input:checked + .ui-switch-track::after {
    transform: translateX(20px);
}

html[dir="rtl"] .ui-switch input:checked + .ui-switch-track::after {
    transform: translateX(-20px);
}

.ui-switch input:disabled,
.ui-switch input:disabled + .ui-switch-track {
    cursor: not-allowed;
}

.ui-switch input:disabled + .ui-switch-track {
    opacity: 0.45;
}

.ui-switch-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: #6b6358;
    min-width: 1.5rem;
    pointer-events: none;
}

.alert-inline-link {
    display: inline-block;
    margin-inline-start: 0.35rem;
    font-weight: 700;
    text-decoration: underline;
    color: inherit;
}

.secondary-host-card label:not(.ui-switch) {
    display: grid;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #6b6358;
}

.secondary-host-card input[type="tel"],
.secondary-host-card input[type="number"] {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(80, 60, 35, 0.12);
    padding: 0.55rem 0.75rem;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    background: #fff;
}

.secondary-host-card .btn {
    width: 100%;
    margin-top: 0.2rem;
}

.secondary-confirm h1,
.host-access .contacts-page-title {
    text-align: center;
}

.secondary-confirm-note {
    background: rgba(184, 148, 77, 0.1);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin: 0.85rem 0;
    color: #4a433a;
    line-height: 1.7;
}

.secondary-confirm-note p {
    margin: 0 0 0.45rem;
}

.secondary-confirm-note p:last-child {
    margin-bottom: 0;
}

.secondary-confirm-meta {
    background: #fff;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    display: grid;
    gap: 0.35rem;
    box-shadow: 0 5px 16px rgba(45, 35, 20, 0.04);
}

.secondary-confirm-actions {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.secondary-confirm-actions form {
    margin: 0;
}

.secondary-confirm-actions .btn {
    width: 100%;
}

.host-access-frozen-note {
    text-align: center;
    color: #6b6358;
    font-size: 0.88rem;
    margin: -0.35rem 0 0.85rem;
}

.host-access-stats {
    margin: 1rem 0;
}

.host-access-add-form {
    background: #fff;
    border-radius: 18px;
    padding: 1rem 0.95rem;
    margin: 0 0 1rem;
    display: grid;
    gap: 0.65rem;
    box-shadow: 0 6px 18px rgba(45, 35, 20, 0.045);
}

.host-access-add-form h2 {
    margin: 0;
    font-size: 1.05rem;
}

.host-access-add-form label {
    display: grid;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #6b6358;
}

.host-access-add-form input {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(80, 60, 35, 0.12);
    padding: 0.55rem 0.75rem;
    font: inherit;
    font-size: 16px;
}

.host-access-add-form .btn {
    width: 100%;
}

.guest-status-line {
    font-size: 0.8rem;
}

.guest-list-empty {
    margin: 0.5rem 0 0;
    text-align: center;
    color: #6b6358;
    font-size: 0.92rem;
}

.guest-list-empty.is-hidden {
    display: none;
}

.excluded-contacts-panel {
    background: #fff;
    border: 1px solid rgba(80, 60, 35, 0.06);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(45, 35, 20, 0.045);
    padding: 1rem 0.95rem;
    margin-bottom: 1rem;
}

.excluded-contacts-lead {
    margin: 0 0 0.75rem;
    color: #6b6358;
    font-size: 0.9rem;
    text-align: center;
}

.excluded-contacts-list {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.excluded-contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
    background: rgba(184, 148, 77, 0.08);
}

.excluded-contact-name {
    font-weight: 700;
    color: var(--ink);
}

.excluded-contact-phone {
    font-weight: 600;
    color: #6b6358;
    font-size: 0.92rem;
}

.excluded-contacts-actions {
    display: grid;
    gap: 0.5rem;
}

.excluded-contacts-actions .btn,
.excluded-contacts-actions form .btn {
    width: 100%;
}

@media (min-width: 480px) {
    .event-invite-thumb {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: #fffaf0;
    font-weight: 700;
    font-size: 1.15rem;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (min-width: 768px) {
    .site-shell {
        width: min(100%, 720px);
        padding-top: 2rem;
    }

    .hero {
        text-align: center;
    }
}

/* ===== Start / invitation quantity page ===== */
.page-start .public-container {
    overflow: visible;
}

body.page-purchase .app-container {
    padding-top: 0;
}

body.page-purchase .app-content {
    max-width: 100%;
    overflow: visible;
}

body.page-purchase .start-brand,
body.page-start .start-brand,
.app-content .start-brand {
    width: var(--page-logo-size);
    max-width: var(--page-logo-size);
}

.page-start .public-header-btn {
    min-height: 44px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.start-botanical {
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    z-index: 0;
    height: 260px;
    overflow: hidden;
    pointer-events: none;
}

.start-botanical-branch {
    position: absolute;
    top: 22px;
    width: 128px;
    height: 248px;
    stroke: #b89a62;
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.14;
}

.start-botanical-branch--left {
    left: -16px;
}

.start-botanical-branch--right {
    right: -16px;
    transform: scaleX(-1);
}

.start-brand {
    position: relative;
    z-index: 2;
    display: block;
    width: var(--page-logo-size);
    max-width: var(--page-logo-size);
    margin: 0 auto -36px;
    pointer-events: auto;
}

.start-brand img {
    display: block;
    width: var(--page-logo-size);
    height: var(--page-logo-size);
    max-width: var(--page-logo-size);
    max-height: var(--page-logo-size);
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(143, 109, 47, 0.14));
}

.start-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin-top: 18px;
    padding-top: 8px;
    overflow: visible;
}

.start-card {
    width: calc(100% - 36px);
    margin-inline: auto;
    padding: 2.85rem 1.35rem 1.45rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(184, 148, 77, 0.1);
    box-shadow: 0 14px 38px rgba(45, 35, 20, 0.065);
}

.start-title {
    margin: 0;
    color: #29251f;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 6vw, 1.75rem);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.start-lead {
    max-width: 25rem;
    margin: 0.8rem auto 0;
    color: #5f584f;
    font-size: 0.95rem;
    line-height: 1.75;
    text-align: center;
}

.purchase-balance {
    margin: 0.55rem auto 0;
    color: #6b6358;
    font-size: 0.88rem;
    text-align: center;
}

.purchase-balance strong {
    color: var(--gold-deep);
    font-size: 1rem;
}

.start-form {
    gap: 1rem;
    margin-top: 1.15rem;
}

.start-field-label {
    display: block;
    color: #332e29;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: right;
}

.page-start .qty-block {
    gap: 0.55rem;
}

.page-start .qty-stepper {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 0.55rem;
}

.page-start .qty-btn,
.page-start .qty-stepper input {
    min-height: 54px;
    border: 1px solid rgba(184, 148, 77, 0.2);
    border-radius: 16px;
    background: #fffdfa;
    box-shadow: 0 6px 16px rgba(45, 35, 20, 0.045);
}

.page-start .qty-btn {
    color: var(--gold-deep);
    font-size: 1.65rem;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.page-start .qty-stepper input {
    padding: 0.65rem;
    color: #1f1b17;
    font-size: 1.25rem;
    font-weight: 700;
}

.page-start .quote-box {
    position: relative;
    gap: 0.7rem;
    min-height: 168px;
    padding: 3.35rem 1.25rem 1rem;
    border: 1px solid rgba(184, 148, 77, 0.15);
    border-radius: 22px;
    background: rgba(255, 253, 250, 0.75);
    box-shadow: 0 8px 22px rgba(45, 35, 20, 0.035);
}

.page-start .quote-discount-badge {
    position: absolute;
    top: 1rem;
    left: 1.25rem;
    padding: 0.25rem 1rem;
    border: 0;
    background: linear-gradient(180deg, #d0ae61 0%, #aa8237 100%);
    color: #fffaf0;
    font-size: 0.82rem;
    font-weight: 600;
}

.page-start .quote-row {
    color: #3d3730;
    font-size: 0.92rem;
}

.page-start .quote-list-price {
    color: #7d7468;
    font-size: 0.95rem;
}

.page-start .quote-total strong {
    color: var(--gold-deep);
    font-size: 1.25rem;
}

.page-start #quote-note {
    margin: 0.65rem 0 0;
    color: #746c61;
    font-size: 0.78rem;
    line-height: 1.55;
    text-align: center;
}

.start-phone-label {
    display: grid;
    gap: 0.5rem;
}

.start-phone-field {
    position: relative;
    display: block;
}

.start-phone-field input {
    width: 100%;
    min-height: 56px;
    padding: 0.8rem 1rem 0.8rem 3.6rem;
    border: 1px solid rgba(184, 148, 77, 0.25);
    border-radius: 18px;
    background: #fffdfa;
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    text-align: right;
}

.start-phone-field input:focus {
    outline: none;
    border-color: rgba(184, 148, 77, 0.55);
    box-shadow: 0 0 0 3px rgba(184, 148, 77, 0.11);
}

.start-phone-icon {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 3.1rem;
    display: grid;
    place-items: center;
    border-right: 1px solid rgba(184, 148, 77, 0.12);
    color: var(--gold-deep);
    pointer-events: none;
}

.start-phone-icon svg {
    width: 20px;
    height: 20px;
}

.start-submit {
    width: 100%;
    max-width: none;
    min-height: 52px;
    margin-top: 0;
    border: 0;
    padding: 0.75rem 1rem;
    font: inherit;
    cursor: pointer;
}

.page-vip-pay .vip-pay-summary {
    display: grid;
    gap: 0.75rem;
    margin: 1.15rem 0 1.25rem;
}

.page-vip-pay .vip-pay-summary div {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: baseline;
}

.page-vip-pay .vip-pay-summary dt {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.page-vip-pay .vip-pay-summary dd {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
    text-align: left;
}

.page-vip-pay .vip-pay-summary del {
    color: #8a8174;
    text-decoration: line-through;
    text-decoration-color: #9b2c2c;
}

.page-vip-pay .vip-pay-total {
    color: var(--gold-deep, #8f6d2f);
}

.page-vip-pay a.start-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.vip-event-select {
    width: 100%;
    min-height: 56px;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(184, 148, 77, 0.25);
    border-radius: 18px;
    background: #fffdfa;
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
}

.vip-event-select:focus {
    outline: none;
    border-color: rgba(184, 148, 77, 0.55);
    box-shadow: 0 0 0 3px rgba(184, 148, 77, 0.11);
}

.vip-pricing {
    width: 100%;
    min-width: 0;
    margin: 0.35rem 0 0.25rem;
    padding: 0;
    border: 0;
    text-align: center;
}

.vip-pricing h2 {
    margin: 0 0 0.35rem;
    padding: 0;
    color: var(--gold-deep);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
}

.vip-pricing-hint {
    margin: 0 0 0.75rem;
    color: #8a8174;
    font-size: 0.86rem;
}

.vip-pricing-grid {
    display: grid;
    direction: rtl;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.vip-price-card {
    position: relative;
    display: grid;
    gap: 0.28rem;
    justify-items: center;
    min-width: 0;
    padding: 1rem 0.7rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    border: 1.5px solid rgba(184, 148, 77, 0.18);
    box-shadow: 0 10px 24px rgba(45, 35, 20, 0.05);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.vip-price-card input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    min-width: 0;
    min-height: 0;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
}

.vip-price-card:has(input:checked) {
    border-color: rgba(170, 130, 55, 0.85);
    background: rgba(255, 250, 240, 0.98);
    box-shadow: 0 0 0 3px rgba(184, 148, 77, 0.16), 0 10px 24px rgba(45, 35, 20, 0.06);
}

.vip-price-card:focus-within {
    outline: 2px solid rgba(170, 130, 55, 0.45);
    outline-offset: 2px;
}

.vip-price-count {
    color: #5c564d;
    font-size: 0.88rem;
    font-weight: 600;
}

.vip-discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #d0ae61 0%, #aa8237 100%);
    color: #fffaf0;
    font-size: 0.75rem;
    font-weight: 700;
}

.vip-price-was,
.vip-price-card del.vip-price-was {
    color: #8a8174;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: line-through !important;
    text-decoration-thickness: 2px !important;
    text-decoration-color: #c53030 !important;
}

.vip-price-amount {
    color: var(--gold-deep);
    font-size: 1.15rem;
    font-weight: 700;
}

.start-login-link {
    margin-top: 0.75rem;
    text-align: center;
}

.start-login-link a {
    display: block;
    min-height: 48px;
    padding: 0.7rem 1rem;
    border: 1.5px solid rgba(184, 148, 77, 0.65);
    border-radius: 999px;
    color: var(--gold-deep);
    font-weight: 700;
}

.page-start .public-footer {
    margin-top: 28px;
}

@media (min-width: 768px) {
    .start-content {
        margin-top: 24px;
    }

    .start-card {
        padding: 3rem 2.5rem 2rem;
    }

    .start-botanical-branch--left {
        left: 2%;
    }

    .start-botanical-branch--right {
        right: 2%;
    }
}

.qty-block {
    display: grid;
    gap: 0.5rem;
}

.qty-stepper {
    display: grid;
    grid-template-columns: 54px 1fr 54px;
    gap: 0.5rem;
    align-items: center;
}

.qty-btn {
    min-height: 52px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-deep);
    cursor: pointer;
}

.qty-stepper input {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.qty-notice {
    margin: 0;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    background: #fdecec;
    color: var(--danger);
    border: 1px solid rgba(155, 44, 44, 0.12);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.qty-notice[hidden] {
    display: none;
}

.quote-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem;
    display: grid;
    gap: 0.65rem;
}

.quote-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.quote-total strong {
    color: var(--gold-deep);
    font-size: 1.2rem;
}

.quote-discount-badge {
    display: inline-flex;
    align-self: start;
    background: color-mix(in srgb, var(--gold-deep) 14%, transparent);
    color: var(--gold-deep);
    border: 1px solid color-mix(in srgb, var(--gold-deep) 35%, transparent);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.86rem;
    font-weight: 700;
}

.quote-discount-badge.is-hidden,
.quote-row.is-hidden {
    display: none !important;
}

.quote-list-price,
.quote-box del.quote-list-price {
    display: inline-block;
    color: #8a8174;
    font-weight: 600;
    text-decoration: line-through !important;
    text-decoration-thickness: 2px !important;
    text-decoration-color: #b42318 !important;
    opacity: 1;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 0.5rem;
    text-align: right;
}

.table-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.table-actions form {
    display: inline;
}

.table-actions button {
    background: none;
    border: 0;
    color: var(--danger);
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.checkbox-row input {
    width: auto;
    min-height: auto;
}

.site-footer {
    margin-top: 2.5rem;
    padding: 1.4rem 0 0.5rem;
    border-top: 1px solid var(--line);
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.45rem 0.65rem;
    font-size: 0.95rem;
}

.footer-links a {
    color: var(--ink);
    font-weight: 600;
}

.footer-sep {
    color: var(--muted);
}

.footer-support {
    margin: 0.85rem 0 0;
}

.footer-support a {
    color: var(--gold-deep);
    font-weight: 700;
}

.legal-page {
    max-width: 820px;
}

.legal-card {
    padding: 28px 24px;
}

.legal-title {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: #332E29;
    line-height: 1.4;
    text-align: right;
}

.legal-meta {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: #6b6358;
}

.legal-intro {
    margin: 0 0 1.1rem;
    font-size: 1rem;
    line-height: 1.85;
    color: #514B45;
}

.legal-subtitle {
    margin: 1.5rem 0 0.85rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #332E29;
}

.policy-body {
    margin-top: 0;
    white-space: normal;
    font-size: 0.98rem;
    line-height: 1.9;
    color: #514B45;
    text-align: right;
}

.policy-body h2 {
    margin: 1.35rem 0 0.55rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #332E29;
    line-height: 1.5;
}

.policy-body h2:first-child {
    margin-top: 0;
}

.policy-body p {
    margin: 0 0 0.75rem;
}

.contact-form {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.contact-form label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.95rem;
    color: #514B45;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(80, 60, 35, 0.14);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    font: inherit;
    background: #fff;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

@media (max-width: 640px) {
    .legal-card {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .legal-title {
        font-size: 1.25rem;
    }

    .policy-body {
        font-size: 0.95rem;
    }
}

.public-card .lead {
    font-size: 17px;
    line-height: 2;
    color: #514B45;
}

.contact-channels {
    display: grid;
    gap: 1.1rem;
    margin-top: 0.5rem;
}

.contact-item {
    display: grid;
    gap: 0.55rem;
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-sep {
        display: none;
    }
}

/* —— معاينة رسالة واتساب —— */
.wa-preview-page {
    width: 100%;
}

.wa-preview-title {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
    text-align: center;
}

.wa-preview-lead {
    margin: 0 0 1rem;
    text-align: center;
    color: #6b6358;
    font-size: 0.92rem;
}

.wa-phone {
    max-width: 420px;
    margin: 0 auto;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(45, 35, 20, 0.1);
    box-shadow: 0 12px 28px rgba(45, 35, 20, 0.1);
    background: #fff;
}

.wa-phone-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    background: #075e54;
    color: #fff;
}

.wa-phone-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    background: #f7f1e8;
    font-weight: 700;
}

.wa-phone-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.wa-phone-name {
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.2;
}

.wa-phone-status {
    font-size: 0.75rem;
    opacity: 0.85;
}

.wa-chat {
    min-height: 360px;
    padding: 0.85rem;
    background-color: #e5ddd5;
    background-image:
        radial-gradient(rgba(0, 0, 0, 0.035) 0.6px, transparent 0.6px);
    background-size: 14px 14px;
}

.wa-bubble {
    max-width: 92%;
    margin-inline-start: 0;
    margin-inline-end: auto;
    background: #fff;
    border-radius: 10px 10px 10px 3px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.wa-bubble-media {
    background: #ece5dd;
    line-height: 0;
}

.wa-bubble-media img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center center;
}

.wa-bubble-text {
    padding: 0.7rem 0.8rem 0.15rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #111b21;
}

.wa-bubble-time {
    padding: 0 0.8rem 0.45rem;
    text-align: left;
    font-size: 0.7rem;
    color: #8696a0;
}

.wa-quick-replies {
    border-top: 1px solid #e9edef;
}

.wa-quick-reply {
    padding: 0.7rem 0.85rem;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 600;
    border-top: 1px solid #e9edef;
}

.wa-quick-reply--yes {
    color: #128c7e;
}

.wa-quick-reply--no {
    color: #c0392b;
}

.wa-preview-actions {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.wa-preview-actions .btn {
    width: 100%;
}

/* —— إدارة جهات الاتصال —— */
.contacts-manage {
    width: 100%;
}

.contacts-back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.65rem;
    color: var(--gold-deep);
    text-decoration: none;
    font-size: 0.92rem;
}

.contacts-page-title {
    margin: 0 0 0.9rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.contacts-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0.2rem;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(80, 60, 35, 0.08);
    box-shadow: 0 4px 14px rgba(45, 35, 20, 0.04);
}

.contacts-tab {
    border: 0;
    background: transparent;
    color: #3f3a34;
    min-height: 42px;
    border-radius: 999px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
}

.contacts-tab.is-active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: #fffaf0;
}

.contacts-panel-note {
    margin: 0 0 0.7rem;
    color: #6b6358;
    font-size: 0.9rem;
    text-align: center;
}

.contacts-section-title {
    margin: 0.35rem 0 0.7rem;
    font-size: 1.02rem;
    font-weight: 700;
    text-align: center;
}

.contacts-card {
    background: #fff;
    border: 1px solid rgba(80, 60, 35, 0.06);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(45, 35, 20, 0.045);
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.contacts-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem 0.55rem;
}

.contacts-count {
    font-size: 0.9rem;
    font-weight: 700;
}

.contacts-count--danger {
    color: #9b2c2c;
}

.contacts-count--ok {
    color: #2f6b4f;
}

.contacts-select-all {
    display: inline-flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 0.35rem;
    font-size: 0.86rem;
    font-weight: 500;
    color: #6b6358;
    cursor: pointer;
    user-select: none;
}

.contacts-select-all input,
.contacts-check {
    appearance: auto;
    width: 1rem;
    height: 1rem;
    min-height: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    accent-color: var(--gold-deep);
    flex-shrink: 0;
}

.contacts-list {
    display: grid;
}

.contacts-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0.95rem;
    border-top: 1px solid rgba(80, 60, 35, 0.06);
    cursor: pointer;
}

.contacts-row.is-locked {
    cursor: default;
    opacity: 0.88;
}

.contacts-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(184, 148, 77, 0.12);
    color: var(--gold-deep);
    flex-shrink: 0;
}

.contacts-meta {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 0.1rem;
}

.contacts-name {
    font-weight: 700;
    color: var(--ink);
}

.contacts-phone {
    font-size: 0.9rem;
    color: #6b6358;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.contacts-check-spacer {
    width: 18px;
    height: 18px;
}

.contacts-empty {
    margin: 0;
    padding: 1rem;
    text-align: center;
    color: #8a8174;
    font-size: 0.9rem;
}

.contacts-card-action {
    padding: 0.75rem 0.95rem 0.95rem;
}

.contacts-outline-btn {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    border: 1.5px solid var(--gold-deep);
    background: #fff;
    color: var(--gold-deep);
    font: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
}

.contacts-outline-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.contacts-purchase-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    margin: 0.25rem 0 1rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    background: rgba(184, 148, 77, 0.1);
    border: 1px solid rgba(184, 148, 77, 0.18);
    position: relative;
    z-index: 0;
}

button.contacts-purchase-card {
    width: 100%;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
}

.contacts-purchase-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(184, 148, 77, 0.16);
    color: var(--gold-deep);
    flex-shrink: 0;
}

.contacts-purchase-copy {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 0.1rem;
}

.contacts-purchase-title {
    font-weight: 700;
    color: var(--ink);
}

.contacts-purchase-sub {
    font-size: 0.82rem;
    color: #6b6358;
}

.contacts-purchase-chevron {
    color: #b0a89c;
    display: inline-flex;
}

.contacts-footer-actions {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0.55rem;
    margin-top: 0.35rem;
}

.contacts-footer-actions form {
    margin: 0;
}

.contacts-delete-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.contacts-footer-actions .btn-secondary {
    width: 100%;
}

.contacts-info-bar {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background: rgba(80, 60, 35, 0.05);
    color: #6b6358;
    font-size: 0.86rem;
}

.contacts-info-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(184, 148, 77, 0.18);
    color: var(--gold-deep);
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.contacts-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    margin: 0;
    background: rgba(28, 25, 21, 0.42);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
    z-index: 100000;
    overscroll-behavior: contain;
}

.contacts-modal[hidden] {
    display: none !important;
}

.contacts-modal.is-open {
    display: flex !important;
}

.contacts-modal-card {
    width: min(100%, 360px);
    max-height: min(85dvh, 100%);
    overflow: auto;
    background: var(--surface-solid, #fff);
    border: 1px solid var(--line-gold, rgba(184, 148, 77, 0.1));
    border-radius: var(--radius, 18px);
    padding: 1.4rem;
    box-shadow: 0 20px 55px rgba(28, 25, 21, 0.18);
    position: relative;
    z-index: 1;
}

html.contacts-modal-open,
html.contacts-modal-open body {
    overflow: hidden !important;
    overscroll-behavior: none;
}

body.contacts-modal-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
}

.contacts-modal-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
}

.contacts-modal-card p {
    margin: 0 0 0.95rem;
    color: #6b6358;
    font-size: 0.92rem;
    line-height: 1.6;
    white-space: pre-line;
}

.contacts-modal-actions {
    display: grid;
    gap: 0.45rem;
}

.contacts-modal-actions .btn {
    width: 100%;
}

/* ===== Guest check-in / QR card ===== */
.page-guest-checkin .topbar,
.page-guest-checkin .public-header,
.page-guest-checkin .page-back,
.page-guest-checkin .public-footer {
    display: none !important;
}
.checkin-page {
    max-width: 420px;
    margin: 0 auto;
    padding: 1rem 0 2rem;
    text-align: center;
}
.qr-card {
    background: #fffcf7;
    border: 1px solid rgba(184, 148, 77, 0.45);
    border-radius: 22px;
    padding: 1.4rem 1.2rem 1.2rem;
    box-shadow: 0 12px 34px rgba(28, 25, 21, 0.06);
    margin-bottom: 1.25rem;
}
.qr-card-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    margin: 0 auto 0.75rem;
    display: block;
    border-radius: 16px;
    background: #111;
}
.qr-card-title {
    color: var(--gold-deep);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.qr-card-type {
    color: var(--ink);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}
.qr-card-code {
    display: flex;
    justify-content: center;
    margin: 0 auto 1rem;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid rgba(184, 148, 77, 0.35);
    border-radius: 16px;
    width: fit-content;
}
.qr-card-code img { display: block; }
.qr-card-domain {
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.qr-card-note,
.qr-card-support,
.qr-card-help {
    margin: 0.85rem auto 0;
    max-width: 22rem;
    color: var(--muted, #6b6258);
    font-size: 0.92rem;
    line-height: 1.7;
    font-weight: 500;
}
.qr-card-support {
    margin-top: 0.55rem;
}
.qr-card-support a {
    display: inline-block;
    color: var(--gold-deep, #8a6a2f);
    font-weight: 700;
    text-decoration: none;
    direction: ltr;
    unicode-bidi: isolate;
}
.qr-card-help {
    margin-top: 1rem;
    padding: 0 0.75rem;
}
.checkin-countdown-label,
.checkin-ready-label {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.4rem 0;
}
.checkin-countdown-value {
    font-size: 1.35rem;
    color: var(--gold-deep);
    font-weight: 700;
    margin: 0.25rem 0 0;
}
.checkin-btn {
    min-height: 54px;
    font-size: 1.08rem;
    width: min(100%, 280px);
    margin-top: 0.75rem;
}
.checkin-success-title {
    color: var(--success);
    font-size: 1.2rem;
    font-weight: 700;
}
.checkin-success-meta {
    color: var(--muted);
    line-height: 1.7;
}
.wa-preview-continue {
    display: grid;
    gap: 0.55rem;
    justify-items: stretch;
}

.wa-preview-send-form {
    margin: 0;
    display: grid;
}

.wa-preview-send-hint {
    margin: 0;
    text-align: center;
    font-size: 0.86rem;
    line-height: 1.55;
}

.wa-preview-schedule-alert {
    margin: 0;
    text-align: center;
}
.wa-preview-actions .btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== دعواتي — luxury page refresh ===== */
body.page-events {
    --events-ink: #25211c;
    --events-muted: #746d62;
    --events-gold: #a9833e;
    --events-gold-deep: #80612b;
    --events-gold-pale: #f3ead7;
    --events-surface: rgba(255, 253, 249, 0.94);
    --events-border: rgba(117, 91, 44, 0.12);
    background:
        radial-gradient(circle at 100% 0, rgba(196, 164, 99, 0.1), transparent 29rem),
        #f8f5ef;
    color: var(--events-ink);
}

.page-events .site-shell {
    width: min(100%, 520px);
    padding: max(0.8rem, env(safe-area-inset-top)) 1rem max(2rem, env(safe-area-inset-bottom));
}

.page-events .topbar {
    min-height: 64px;
    margin-bottom: 1.4rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(117, 91, 44, 0.09);
    border-radius: 20px;
    background: rgba(255, 253, 249, 0.82);
    box-shadow: 0 8px 28px rgba(52, 43, 28, 0.045);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.page-events .brand {
    gap: 0.48rem;
    color: var(--events-gold-deep);
}

.page-events .brand img {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 5px 10px rgba(128, 97, 43, 0.14));
}

.page-events .brand span {
    font-size: 1.02rem;
    font-weight: 700;
}

.page-events .nav-links {
    gap: 0.25rem;
}

.page-events .nav-links a {
    min-height: 38px;
    padding: 0.48rem 0.68rem;
    border-radius: 999px;
    color: #5f584e;
    font-size: 0.84rem;
    font-weight: 600;
    transition: color 160ms ease, background-color 160ms ease;
}

.page-events .nav-links a:hover {
    background: var(--events-gold-pale);
    color: var(--events-gold-deep);
}

.page-events .events-home {
    display: grid;
    gap: 1.15rem;
}

.page-events .events-home > .alert {
    margin: 0;
    border-radius: 16px;
}

.events-welcome {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 132px;
    padding: 1.35rem 1.25rem;
    overflow: hidden;
    border: 1px solid var(--events-border);
    border-radius: 24px;
    background:
        linear-gradient(125deg, rgba(255, 254, 251, 0.98), rgba(248, 241, 226, 0.93));
    box-shadow: 0 14px 34px rgba(61, 48, 28, 0.055);
}

.events-welcome::after {
    content: "";
    position: absolute;
    inset-inline-end: -3.5rem;
    bottom: -5.5rem;
    width: 12rem;
    height: 12rem;
    border: 1px solid rgba(169, 131, 62, 0.12);
    border-radius: 50%;
}

.events-welcome-kicker,
.invites-section-eyebrow {
    display: block;
    margin-bottom: 0.22rem;
    color: var(--events-gold-deep);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.events-welcome h1 {
    margin: 0;
    color: var(--events-ink);
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 7vw, 2.05rem);
    line-height: 1.25;
}

.events-welcome p {
    max-width: 18rem;
    margin: 0.4rem 0 0;
    color: var(--events-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.events-welcome-mark {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(169, 131, 62, 0.18);
    border-radius: 50%;
    background: rgba(255, 253, 248, 0.72);
    color: var(--events-gold);
}

.events-welcome-mark svg {
    width: 32px;
    height: 32px;
}

.page-events .summary-stats {
    gap: 0.7rem;
    margin: 0;
}

.page-events .summary-stat-card {
    position: relative;
    min-width: 0;
    padding: 1rem 0.8rem 0.9rem;
    overflow: hidden;
    border: 1px solid var(--events-border);
    border-radius: 20px;
    background: var(--events-surface);
    box-shadow: 0 8px 24px rgba(52, 43, 28, 0.045);
}

.page-events .summary-stat-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 0.5rem;
    background: var(--events-gold-pale);
    color: var(--events-gold-deep);
}

.page-events .summary-stat-label {
    color: var(--events-muted);
    font-size: 0.79rem;
}

.page-events .summary-stat-value {
    color: var(--events-ink);
    font-size: clamp(1.45rem, 7vw, 1.8rem);
    font-variant-numeric: tabular-nums;
}

.page-events .summary-stat-value--gold {
    color: var(--events-gold-deep);
}

.page-events .summary-stat-meta {
    color: #92897b;
    font-size: 0.72rem;
}

.page-events .events-home-actions {
    margin: 0;
}

.page-events .events-home-actions .btn {
    gap: 0.65rem;
    min-height: 56px;
    border: 1px solid rgba(105, 76, 25, 0.22);
    border-radius: 17px;
    background: #9a7636;
    box-shadow: 0 10px 24px rgba(128, 97, 43, 0.19);
    color: #fffdf8;
    font-size: 0.95rem;
}

.page-events .events-home-actions .btn:hover {
    background: #87662e;
    box-shadow: 0 12px 28px rgba(128, 97, 43, 0.23);
}

.events-create-icon {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
}

.events-create-icon svg {
    width: 15px;
    height: 15px;
}

.page-events .invites-section-head {
    justify-content: space-between;
    margin: 0.4rem 0 -0.25rem;
}

.page-events .invites-section-head h2 {
    margin: 0;
    color: var(--events-ink);
    font-size: 1.13rem;
    font-weight: 700;
}

.invites-section-count {
    display: inline-flex;
    min-width: 34px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding-inline: 0.6rem;
    border: 1px solid rgba(169, 131, 62, 0.17);
    border-radius: 999px;
    background: var(--events-gold-pale);
    color: var(--events-gold-deep);
    font-size: 0.78rem;
    font-weight: 700;
}

.page-events .event-invite-list {
    gap: 0.72rem;
}

.page-events .event-invite-card {
    min-height: 91px;
    gap: 0.85rem;
    padding: 0.72rem;
    border: 1px solid var(--events-border);
    border-radius: 20px;
    background: var(--events-surface);
    box-shadow: 0 7px 22px rgba(52, 43, 28, 0.04);
    -webkit-tap-highlight-color: transparent;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.page-events .event-invite-card:hover {
    border-color: rgba(169, 131, 62, 0.26);
    box-shadow: 0 11px 28px rgba(52, 43, 28, 0.075);
}

.page-events .event-invite-card:active {
    transform: scale(0.99);
}

.page-events .event-invite-thumb {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
    border: 1px solid rgba(117, 91, 44, 0.09);
    border-radius: 16px;
    background: #f1eadf;
}

.page-events .event-invite-thumb-fallback {
    background: #f4eddf;
}

.page-events .event-invite-title {
    margin-bottom: 0.43rem;
    overflow: hidden;
    color: var(--events-ink);
    font-size: 0.98rem;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-invite-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.22rem 0.6rem;
}

.page-events .event-invite-date,
.page-events .event-invite-count {
    margin: 0;
    color: var(--events-muted);
    font-size: 0.76rem;
}

.page-events .event-invite-date svg,
.page-events .event-invite-count svg {
    color: var(--events-gold-deep);
    opacity: 0.82;
}

.page-events .event-invite-chevron {
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(117, 91, 44, 0.1);
    border-radius: 50%;
    color: #9d9282;
}

.page-events .event-invite-empty {
    padding: 2rem 1rem;
    border: 1px dashed rgba(169, 131, 62, 0.3);
    border-radius: 22px;
    background: rgba(255, 253, 249, 0.72);
    box-shadow: none;
}

.event-invite-empty-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 0.75rem;
    place-items: center;
    border-radius: 50%;
    background: var(--events-gold-pale);
    color: var(--events-gold-deep);
}

.event-invite-empty-icon svg {
    width: 25px;
    height: 25px;
}

.page-events .event-invite-empty h3 {
    margin: 0;
    color: var(--events-ink);
    font-size: 1.02rem;
}

.page-events .event-invite-empty p {
    margin: 0.35rem 0 0;
    color: var(--events-muted);
    font-size: 0.84rem;
}

.page-events .pager {
    margin-top: 0.15rem;
}

.page-events .pager-btn {
    border-color: rgba(128, 97, 43, 0.28);
    background: rgba(255, 253, 249, 0.9);
    color: var(--events-gold-deep);
}

.page-events .pager-btn--primary {
    background: var(--events-gold-deep);
    color: #fffdf8;
}

.page-events .site-footer {
    margin-top: 2.25rem;
    padding-top: 1.3rem;
    border-top-color: rgba(117, 91, 44, 0.11);
}

.page-events .footer-links {
    gap: 0.45rem 0.65rem;
    font-size: 0.76rem;
}

.page-events .footer-links a {
    color: var(--events-muted);
}

.page-events .footer-sep {
    color: rgba(117, 91, 44, 0.28);
}

.page-events a:focus-visible,
.page-events button:focus-visible {
    outline: 3px solid rgba(169, 131, 62, 0.28);
    outline-offset: 3px;
}

@media (min-width: 600px) {
    .page-events .site-shell {
        width: min(100%, 760px);
        padding-inline: 1.5rem;
    }

    .page-events .events-home {
        gap: 1.3rem;
    }

    .events-welcome {
        min-height: 154px;
        padding: 1.65rem 1.75rem;
    }

    .events-welcome-mark {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
    }

    .events-welcome-mark svg {
        width: 39px;
        height: 39px;
    }

    .page-events .summary-stat-card {
        padding-block: 1.15rem 1rem;
    }

    .page-events .event-invite-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-events .event-invite-empty {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-events .event-invite-card,
    .page-events .events-home-actions .btn {
        transition: none;
    }
}

/* ===== Dyoofna unified design system — homepage is the source of truth ===== */
.ui-card,
.card,
.event-detail,
.contacts-manage,
.wa-preview-page,
.secondary-confirm,
.host-access-invitation-preview {
    background: var(--surface);
    border: 1px solid rgba(80, 60, 35, 0.07);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.panel,
.public-card,
.ui-card,
.event-detail,
.contacts-manage,
.wa-preview-page,
.secondary-confirm,
.host-access-invitation-preview {
    color: var(--ink);
}

.host-access-invitation-preview + .guest-dashboard {
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(80, 60, 35, 0.07);
}

.panel h1,
.public-page-title,
.legal-title,
.contacts-page-title,
.wa-preview-title,
.secondary-confirm > h1,
.event-guests-head h1 {
    color: #332e29;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 4vw, 1.85rem);
    font-weight: 700;
    line-height: 1.3;
}

.wa-preview-title,
.contacts-page-title,
.secondary-confirm > h1 {
    margin-top: 0;
}

.panel .btn,
.public-card .btn {
    max-width: 100%;
}

.card,
.summary-stat-card,
.event-invite-card,
.event-invite-empty,
.contacts-card,
.contacts-purchase-card,
.guest-phone-row,
.secondary-host-card,
.quote-box,
.contact-item,
.qr-card,
.checkin-success,
.checkin-countdown,
.checkin-ready,
.secondary-confirm-note,
.secondary-confirm-meta,
.excluded-contacts-panel,
.guest-contact-tools {
    background: var(--surface-solid);
    border-color: var(--line-gold);
    box-shadow: var(--shadow-soft);
}

.summary-stat-card,
.contacts-card,
.secondary-host-card,
.quote-box,
.contact-item,
.secondary-confirm-note,
.secondary-confirm-meta,
.excluded-contacts-panel,
.guest-contact-tools {
    border-radius: var(--radius-mobile);
}

.event-invite-card,
.event-invite-empty,
.guest-phone-row,
.contacts-purchase-card {
    border-radius: var(--radius-mobile);
}

.contacts-tabs {
    padding: 0.25rem;
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-pill);
    background: rgba(184, 148, 77, 0.06);
}

.contacts-tab {
    min-height: 42px;
    border-radius: var(--radius-pill);
}

.contacts-tab.is-active,
.guest-filter-chip.is-active {
    border-color: var(--gold-deep);
    background: linear-gradient(135deg, #c4a05a 0%, var(--gold-deep) 100%);
    color: #fffaf0;
}

.guest-filter-chip {
    min-height: 36px;
    border-color: rgba(184, 148, 77, 0.22);
    background: var(--surface-solid);
}

.contacts-outline-btn {
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--gold-deep);
    font-family: inherit;
    font-weight: 700;
}

.contacts-info-bar {
    border: 1px solid rgba(184, 148, 77, 0.12);
    border-radius: var(--radius-field);
    background: rgba(184, 148, 77, 0.07);
}

.qty-btn {
    border-color: rgba(184, 148, 77, 0.22);
    border-radius: var(--radius-field);
    background: var(--surface-solid);
    box-shadow: var(--shadow-soft);
}

.page-events {
    --events-ink: var(--ink);
    --events-muted: var(--muted);
    --events-gold: var(--gold);
    --events-gold-deep: var(--gold-deep);
    --events-gold-pale: rgba(184, 148, 77, 0.12);
    --events-surface: var(--surface-solid);
    --events-border: var(--line-gold);
}

.page-events .app-content {
    max-width: 760px;
}

.events-welcome {
    border-color: var(--line-gold);
    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

.page-events .events-home-actions .btn {
    border: 0;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #c4a05a 0%, var(--gold-deep) 100%);
    box-shadow: var(--shadow-gold);
}

.page-events .summary-stat-card,
.page-events .event-invite-card {
    border-color: var(--line-gold);
    background: var(--surface-solid);
    box-shadow: var(--shadow-soft);
}

.wa-preview-lead,
.events-welcome p,
.public-page-meta,
.legal-intro,
.lead {
    color: var(--muted);
}

.wa-phone {
    border-color: rgba(184, 148, 77, 0.14);
    box-shadow: var(--shadow);
}

.checkin-page {
    max-width: 460px;
}

.qr-card {
    border-color: rgba(184, 148, 77, 0.3);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.checkin-success,
.checkin-countdown,
.checkin-ready {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-mobile);
}

.pager-btn {
    border-radius: var(--radius-pill);
}

@media (max-width: 767px) {
    .app-container {
        width: calc(100% - 24px);
        padding-top: 20px;
    }

    .app-content {
        max-width: 100%;
    }

    .panel,
    .ui-card,
    .card,
    .event-detail,
    .contacts-manage,
    .wa-preview-page,
    .secondary-confirm,
    .host-access-invitation-preview {
        border-radius: var(--radius-mobile);
        padding: 1.25rem 1rem;
    }

    .host-access-invitation-preview + .guest-dashboard {
        padding-top: 1.25rem;
    }

    .stat-grid,
    .summary-stats {
        gap: 0.6rem;
    }

    .guest-phone-row {
        align-items: flex-start;
    }

    .guest-status-badge {
        font-size: 0.72rem;
    }

    .contacts-footer-actions,
    .guests-send-bar {
        grid-template-columns: 1fr;
    }

    .guest-selection-actions {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 0.45rem;
    }

    .guest-selection-actions .btn {
        min-height: 46px;
        font-size: 0.84rem;
        padding: 0.55rem 0.45rem;
    }

    body.page-public:not(.page-home):not(.page-login):not(.page-start)::before {
        opacity: 0.2;
        background-size: 90px, 90px;
    }

    body.page-login .home-decor {
        background-position: left -56px top 64px, right -60px top 36px;
        background-size: min(52vw, 190px), min(52vw, 190px);
    }

    .auth-card {
        padding: 1.15rem 1.35rem 1.1rem;
    }

    .auth-phone-field input,
    .auth-otp-input {
        min-height: 52px;
    }
}

@media (max-width: 420px) {
    .public-header {
        gap: 0.35rem;
        padding-inline: 10px;
    }

    .public-header-start {
        gap: 0.3rem;
    }

    .public-header-btn {
        min-height: 38px;
        padding: 0.42rem 0.65rem;
        font-size: 0.82rem;
    }

    .public-header-icon,
    .public-header-icon svg {
        width: 18px;
        height: 18px;
    }

    .auth-botanical-branch {
        width: 126px;
    }

    .auth-botanical-branch--left {
        left: -15px;
    }

    .auth-botanical-branch--right {
        right: -15px;
    }

    .review-time-row {
        grid-template-columns: 1fr;
    }
}

.event-invite-card-wrap {
    display: grid;
    gap: 0.55rem;
}

.event-invite-session-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    margin-top: 0.45rem;
    color: var(--events-muted, #7a7164);
    font-size: 0.74rem;
}

.event-invite-session-status--active span:first-child,
.event-invite-session-status--superseded span:first-child {
    color: var(--events-gold-deep, #8a6a2f);
    font-weight: 600;
}

.event-invite-resume-btn {
    width: 100%;
    justify-content: center;
}

.whatsapp-resume-conflict-cards {
    display: grid;
    gap: 0.75rem;
    margin: 1.1rem 0 1.35rem;
}

.whatsapp-resume-conflict-card {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(117, 91, 44, 0.14);
    border-radius: 14px;
    background: rgba(255, 253, 249, 0.85);
}

.whatsapp-resume-conflict-actions {
    display: grid;
    gap: 0.65rem;
}

.whatsapp-resume-conflict-actions .btn {
    width: 100%;
    justify-content: center;
}

/* ===== Signed-in dashboard landing ===== */
body.page-dashboard::before {
    display: none;
}

body.page-dashboard,
body.page-dashboard .public-page-wrapper {
    min-height: 0;
    height: auto;
    overflow-x: hidden;
}

body.page-dashboard .public-header--home {
    width: min(100% - 28px, 1200px);
    height: auto;
    min-height: 56px;
    margin: 8px auto 0;
}

.page-dashboard .app-container {
    width: min(100% - 20px, 760px);
    flex: 0 0 auto;
    padding-top: 8px;
    overflow: visible;
}

.page-dashboard .app-content {
    position: relative;
    max-width: 520px;
    overflow: visible;
}

.dashboard-botanical {
    position: absolute;
    top: 38px;
    left: 50%;
    z-index: 0;
    width: 100vw;
    max-width: 560px;
    height: 280px;
    transform: translateX(-50%);
    overflow: hidden;
    pointer-events: none;
}

.dashboard-botanical-branch {
    position: absolute;
    top: 8px;
    width: 132px;
    height: 260px;
    stroke: #b89a62;
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.13;
}

.dashboard-botanical-branch--left {
    left: -18px;
}

.dashboard-botanical-branch--right {
    right: -18px;
    transform: scaleX(-1);
}

.dashboard-hero {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    text-align: center;
    margin-top: 8px;
}

.dashboard-logo {
    width: var(--page-logo-size);
    height: var(--page-logo-size);
    max-width: var(--page-logo-size);
    max-height: var(--page-logo-size);
    object-fit: contain;
    filter: drop-shadow(0 7px 16px rgba(143, 109, 47, 0.16));
}

.dashboard-hero h1 {
    margin: 8px 0 0;
    color: var(--gold-deep);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.dashboard-hero p {
    margin: 0.65rem 0 0;
    color: #423d36;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.75;
}

.dashboard-card {
    position: relative;
    z-index: 1;
    width: calc(100% - 18px);
    margin: 1.7rem auto 0;
    padding: 1.4rem 1rem 1.25rem;
    border: 1px solid rgba(184, 148, 77, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(45, 35, 20, 0.055);
}

.dashboard-welcome {
    text-align: right;
}

.dashboard-welcome h2 {
    margin: 0;
    color: #27231f;
    font-size: 1.45rem;
    line-height: 1.3;
}

.dashboard-welcome p {
    margin: 0.25rem 0 0;
    color: var(--gold-deep);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.dashboard-card .alert {
    margin: 0.85rem 0 0;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.05rem;
}

.dashboard-stat {
    min-height: 100px;
    display: grid;
    align-content: center;
    gap: 0.35rem;
    padding: 0.85rem 0.7rem;
    border: 1px solid rgba(184, 148, 77, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 8px 20px rgba(45, 35, 20, 0.045);
    text-align: right;
}

.dashboard-stat span {
    color: #5f584f;
    font-size: 0.9rem;
}

.dashboard-stat strong {
    color: var(--gold-deep);
    font-size: 1.4rem;
    line-height: 1;
}

.page-dashboard .dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 0.75rem;
    margin-top: 1.05rem;
}

.page-dashboard .dashboard-actions .btn {
    min-height: 50px;
    height: 50px;
    max-height: 50px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
}

.page-dashboard .dashboard-actions .btn-primary {
    background: linear-gradient(180deg, #c9a85f 0%, #9a7534 100%);
    color: #fffaf0;
    box-shadow: 0 9px 20px rgba(143, 109, 47, 0.2);
}

.page-dashboard .dashboard-actions .btn-secondary {
    background: rgba(255, 253, 249, 0.75);
    color: var(--gold-deep);
}

.pwa-status {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.86rem;
}

.pwa-status[data-tone="ok"] {
    color: #2f6b3a;
}

.pwa-status[data-tone="error"] {
    color: #9a3b2f;
}

body.page-dashboard .public-footer {
    margin-top: 22px;
    padding: 14px 0 18px;
}

@media (max-width: 767px) {
    body.page-public .public-header--home {
        width: calc(100% - 20px);
        min-height: 52px;
        padding: 0;
        margin-top: 12px;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .public-header-brand-link {
        width: 48px;
    }

    body.page-dashboard .public-header--home {
        width: calc(100% - 20px);
        min-height: 52px;
        padding: 0;
        margin-top: 12px;
        background: transparent;
        border: 0;
        box-shadow: none;
    }
}

@media (min-width: 768px) {
    .page-dashboard .app-content {
        max-width: 620px;
    }

    .dashboard-card {
        padding: 1.7rem 1.5rem 1.5rem;
        border-radius: 24px;
    }
}

.vip-entry-count {
    margin: 0 0 1rem;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold-deep, #8f6d2f);
}

.vip-entry-form {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line, #e6ddd0);
}

.vip-entry-optional {
    font-weight: 500;
    color: var(--muted);
}

.vip-entry-list {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.vip-entry-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: #f7f1ea;
}

.page-vip-guest-entry .vip-entry-head {
    text-align: center;
    margin-bottom: 1rem;
}

.page-vip-guest-entry .vip-entry-lead {
    margin: -0.35rem 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.page-vip-guest-entry .contacts-section-title {
    margin: 0;
    text-align: start;
}

.page-vip-guest-entry .vip-entry-bulk {
    background: #fff;
    border-radius: 18px;
    padding: 0.85rem 0.95rem;
}

.page-vip-guest-entry .vip-entry-bulk summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--gold-deep);
}

.page-vip-guest-entry .vip-entry-bulk .host-access-add-form {
    margin-top: 0.75rem;
    padding: 0;
    box-shadow: none;
}

.vip-follow-link {
    margin: 1rem 0 0;
    text-align: center;
}

.vip-follow-link a {
    color: var(--gold-deep);
    font-weight: 700;
    text-decoration: none;
}

.dashboard-vip-card {
    display: grid;
    gap: 0.35rem;
    margin-top: 1.05rem;
    padding: 1rem 0.95rem;
    border: 1px solid rgba(184, 148, 77, 0.16);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 250, 240, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow: 0 8px 20px rgba(45, 35, 20, 0.045);
    text-decoration: none;
    color: inherit;
}

.dashboard-vip-card-kicker,
.vip-order-kicker {
    color: #7a6f62;
    font-size: 0.8rem;
    font-weight: 700;
}

.dashboard-vip-card strong,
.vip-order-card-head h2 {
    margin: 0;
    color: #27231f;
    font-size: 1.2rem;
}

.dashboard-vip-card-hint {
    color: var(--gold-deep);
    font-size: 0.86rem;
    font-weight: 700;
}

.vip-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.vip-status-badge--new,
.vip-status-badge--awaiting {
    background: rgba(184, 148, 77, 0.14);
    color: #8f6d2f;
}

.vip-status-badge--paid,
.vip-status-badge--preparing {
    background: rgba(47, 107, 58, 0.12);
    color: #2f6b3a;
}

.vip-status-badge--completed {
    background: rgba(47, 107, 58, 0.18);
    color: #21562b;
}

.vip-status-badge--cancelled {
    background: rgba(154, 59, 47, 0.12);
    color: #9a3b2f;
}

.vip-orders-list {
    display: grid;
    gap: 1rem;
    margin-top: 0.25rem;
}

.vip-order-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.vip-order-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 1rem 0 0;
}

.vip-order-meta div {
    padding: 0.7rem 0.6rem;
    border: 1px solid rgba(184, 148, 77, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
}

.vip-order-meta dt {
    color: #5f584f;
    font-size: 0.78rem;
}

.vip-order-meta dd {
    margin: 0.2rem 0 0;
    color: var(--gold-deep);
    font-size: 0.95rem;
    font-weight: 700;
}

.vip-order-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}

.vip-order-steps.is-single {
    grid-template-columns: 1fr;
}

.vip-order-step {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    text-align: center;
}

.vip-order-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #d8c7a4;
}

.vip-order-step.is-done .vip-order-step-dot,
.vip-order-step.is-current .vip-order-step-dot {
    background: #9a7534;
}

.vip-order-step.is-current .vip-order-step-dot {
    box-shadow: 0 0 0 4px rgba(154, 117, 52, 0.16);
}

.vip-order-step.is-current .vip-order-step-label {
    color: var(--gold-deep);
    font-weight: 800;
}

.vip-order-step-label {
    color: #7a6f62;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
}

.vip-orders-empty {
    margin: 0.85rem 0 0;
    color: #5f584f;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .vip-order-meta {
        grid-template-columns: 1fr;
    }

    .vip-order-steps {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .vip-order-step {
        grid-template-columns: 12px 1fr;
        justify-items: start;
        align-items: center;
        text-align: start;
    }
}

.invoice-list {
    display: grid;
    gap: 0.7rem;
}

.invoice-list-item {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem 0.85rem;
    border: 1px solid rgba(184, 148, 77, 0.12);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.8);
}

.invoice-list-item strong {
    color: #27231f;
}

.invoice-list-item span,
.invoice-list-item em {
    color: #6b6258;
    font-style: normal;
    font-size: 0.86rem;
}

.invoice-doc {
    margin-top: 1.2rem;
    padding: 1.4rem 1.1rem 1.25rem;
    border: 1px solid rgba(184, 148, 77, 0.14);
    border-radius: 20px;
    background: #fffdf8;
    box-shadow: 0 14px 34px rgba(45, 35, 20, 0.05);
}

.invoice-doc-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.invoice-doc-head img {
    width: 56px;
    height: 56px;
}

.invoice-doc-head h1 {
    margin: 0;
    color: var(--gold-deep, #8f6d2f);
    font-size: 1.45rem;
}

.invoice-doc-head p {
    margin: 0.15rem 0 0;
    color: #6b6258;
}

.invoice-doc-paid {
    margin-inline-start: auto;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(47, 107, 58, 0.12);
    color: #2f6b3a;
    font-size: 0.8rem;
    font-weight: 800;
}

.invoice-doc-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 1.1rem 0 0;
}

.invoice-doc-meta div {
    padding: 0.7rem 0.65rem;
    border: 1px solid rgba(184, 148, 77, 0.1);
    border-radius: 14px;
}

.invoice-doc-meta dt {
    color: #6b6258;
    font-size: 0.78rem;
}

.invoice-doc-meta dd {
    margin: 0.2rem 0 0;
    color: var(--gold-deep, #8f6d2f);
    font-weight: 800;
}

.invoice-doc-table {
    width: 100%;
    margin-top: 1.1rem;
    border-collapse: collapse;
}

.invoice-doc-table th,
.invoice-doc-table td {
    padding: 0.7rem 0.45rem;
    border-bottom: 1px solid rgba(184, 148, 77, 0.12);
    text-align: start;
}

.invoice-doc-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.85rem;
    color: var(--gold-deep, #8f6d2f);
    font-weight: 800;
}

.invoice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.1rem 0 0;
}

.invoice-return-meta {
    margin: 0.85rem 0;
    color: #5f584f;
}

.vip-order-invoice {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    font-weight: 700;
}

.vip-order-invoice a {
    color: var(--gold-deep, #8f6d2f);
    text-decoration: none;
}

@media (max-width: 640px) {
    .invoice-doc-meta {
        grid-template-columns: 1fr;
    }
}

@media print {
    .public-header,
    .public-footer,
    .invoice-actions,
    .dashboard-botanical,
    .admin-topbar,
    .admin-nav {
        display: none !important;
    }

    .invoice-doc {
        box-shadow: none;
        border-color: #ddd;
    }
}
