/* ═══════════════════════════════════════════════════════════
   RoomFlow OS v25 — DND Guest Page
   Premium dark-native design
   ═══════════════════════════════════════════════════════════ */

/* Hide staff UI on DND guest page */
html.dnd-mode #chatFab,
html.dnd-mode #chatPanel,
html.dnd-mode #pushBtn { display: none !important; }

/* ── Page root ── */
#dndGuestPage {
    min-height: 100dvh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #06081A;
    overflow-y: auto;
}

/* ── Wrapper ── */
.dg-wrap {
    width: 100%;
    max-width: 440px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ═══════════════════════════════════════
   TOP BAR — logo left, lang right
   ═══════════════════════════════════════ */
.dg-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 0;
    flex-shrink: 0;
    gap: 12px;
}

.dg-hotel-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
}

.dg-hotel-logo {
    max-height: 28px;
    max-width: 110px;
    object-fit: contain;
    border-radius: 6px;
    filter: brightness(1) invert(0);
}

.dg-hotel-name-text {
    font-family: var(--fd, system-ui);
    font-size: .75rem;
    font-weight: 700;
    color: rgba(255,255,255,.38);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .2px;
}

.dg-lang-bar {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.dg-lang-btn {
    padding: 5px 10px;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,.10);
    background: none;
    color: rgba(255,255,255,.28);
    font-family: var(--fd, system-ui);
    font-size: .68rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    letter-spacing: .4px;
}
.dg-lang-btn:hover  { color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.18); }
.dg-lang-btn.active { background: rgba(255,255,255,.09); color: #fff; border-color: rgba(255,255,255,.18); }

/* ═══════════════════════════════════════
   HERO — centered, takes all flex space
   ═══════════════════════════════════════ */
.dg-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 24px 32px;
    text-align: center;
    gap: 0;
}

/* Moon / sleep icon */
.dg-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(124,106,248,.10);
    border: 1px solid rgba(124,106,248,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
    box-shadow: 0 0 32px rgba(124,106,248,.12);
}

.dg-icon-wrap--active {
    background: rgba(251,191,36,.08);
    border-color: rgba(251,191,36,.20);
    box-shadow: 0 0 32px rgba(251,191,36,.10);
    animation: dgIconPulse 3s ease-in-out infinite;
}

@keyframes dgIconPulse {
    0%, 100% { box-shadow: 0 0 24px rgba(251,191,36,.10); }
    50%       { box-shadow: 0 0 48px rgba(251,191,36,.22); }
}

.dg-room-label {
    font-family: var(--fd, system-ui);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,.22);
    margin-bottom: 5px;
}

.dg-room-nr {
    font-family: var(--fm, monospace);
    font-size: clamp(3.8rem, 15vw, 6rem);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: .9;
    color: #fff;
    margin-bottom: 16px;
}

.dg-hero-title {
    font-family: var(--fd, system-ui);
    font-size: .96rem;
    font-weight: 600;
    color: rgba(255,255,255,.45);
    letter-spacing: -.1px;
}

/* Active DnD status pill */
.dg-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(251,191,36,.09);
    border: 1px solid rgba(251,191,36,.22);
    border-radius: 99px;
    padding: 7px 16px;
    font-size: .78rem;
    font-weight: 700;
    color: #fbbf24;
    margin-top: 12px;
    letter-spacing: .1px;
}

.dg-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fbbf24;
    animation: dgDotPulse 1.8s ease-in-out infinite;
}

@keyframes dgDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .4; transform: scale(.7); }
}

/* ═══════════════════════════════════════
   SHEET — frosted glass bottom panel
   ═══════════════════════════════════════ */
.dg-sheet {
    background: #100b2a;
    border-radius: 28px 28px 0 0;
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 10px 22px 44px;
    flex-shrink: 0;
    box-shadow: 0 -2px 20px rgba(0,0,0,.5);
}

.dg-sheet-handle {
    width: 36px;
    height: 3px;
    background: rgba(255,255,255,.13);
    border-radius: 99px;
    margin: 0 auto 24px;
}

/* Warning banner */
.dg-warn {
    background: rgba(217,119,6,.10);
    border: 1px solid rgba(252,211,77,.18);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: .78rem;
    font-weight: 600;
    color: #FCD34D;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.45;
}

/* Time label */
.dg-time-label {
    font-family: var(--fd, system-ui);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: rgba(255,255,255,.24);
    margin-bottom: 11px;
}

/* ── Time chips — horizontal scroll ── */
.dg-time-scroll-wrap {
    overflow-x: auto;
    margin: 0 -22px 18px;
    padding: 0 22px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.dg-time-scroll-wrap::-webkit-scrollbar { display: none; }

.dg-time-scroll {
    display: flex;
    gap: 7px;
    width: max-content;
    padding-bottom: 2px;
}

.dg-time-chip {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.04);
    font-family: var(--fm, monospace);
    font-size: .9rem;
    font-weight: 700;
    color: rgba(255,255,255,.55);
    cursor: pointer;
    transition: all .13s;
    user-select: none;
    white-space: nowrap;
}

.dg-time-chip:hover {
    border-color: rgba(124,106,248,.45);
    background: rgba(124,106,248,.10);
    color: #c4b5fd;
}

.dg-time-chip.active {
    background: rgba(124,106,248,.20);
    border-color: rgba(124,106,248,.55);
    color: #fff;
    box-shadow: 0 2px 14px rgba(124,106,248,.25);
}

.dg-time-chip--allday {
    font-family: var(--fd, system-ui);
    font-size: .82rem;
    letter-spacing: -.1px;
    padding: 10px 20px;
}

/* ── Buttons ── */
.dg-btn {
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    border: none;
    font-family: var(--fd, system-ui);
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .05px;
    cursor: pointer;
    transition: all .16s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.dg-btn--dnd {
    background: linear-gradient(135deg, #4f33e8 0%, #7c6af8 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(79,51,232,.30);
}
.dg-btn--dnd:not(:disabled) { animation: dgPulse 3s ease-in-out infinite; }
.dg-btn--dnd:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(79,51,232,.45);
    filter: brightness(1.06);
}
.dg-btn--dnd:active:not(:disabled) { transform: none; animation: none; }
.dg-btn--dnd:disabled { opacity: .28; cursor: not-allowed; animation: none; box-shadow: none; }

@keyframes dgPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(79,51,232,.30); }
    50%       { box-shadow: 0 6px 30px rgba(79,51,232,.52); }
}

.dg-btn--allow {
    background: linear-gradient(135deg, #12a094 0%, #1db954 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(18,160,148,.25);
}
.dg-btn--allow:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(18,160,148,.40); }

.dg-btn--ghost {
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.35);
    border: 1px solid rgba(255,255,255,.08);
    margin-top: 9px;
}
.dg-btn--ghost:hover { background: rgba(255,255,255,.09); color: rgba(255,255,255,.6); }

.dg-deactivate-sub {
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.30);
    margin-bottom: 0;
    line-height: 1.5;
    font-weight: 500;
}

/* ═══════════════════════════════════════
   GUEST INFO CARD
   ═══════════════════════════════════════ */
.dg-info-card {
    background: #100b2a;
    margin: 12px 16px 32px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
    overflow: hidden;
}

.dg-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.dg-info-icon {
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(124,106,248,.12);
    display: flex; align-items: center;
    justify-content: center; font-size: .84rem; flex-shrink: 0;
}

.dg-info-title {
    font-size: .6rem; font-weight: 800; letter-spacing: .7px;
    text-transform: uppercase; color: rgba(255,255,255,.24);
}

.dg-info-row {
    display: flex; align-items: center; gap: 14px;
    padding: 11px 20px; transition: background .12s;
}
.dg-info-row:hover { background: rgba(255,255,255,.03); }

.dg-info-badge {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.dg-info-content { flex: 1; min-width: 0; }

.dg-info-label {
    font-size: .58rem; font-weight: 700; color: rgba(255,255,255,.24);
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px;
}

.dg-info-val {
    font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.82);
    font-family: var(--fd, system-ui); line-height: 1.35;
}

/* WiFi */
.dg-info-row--wifi { align-items: flex-start; }
.dg-wifi-ssid-inline {
    font-size: .92rem; font-weight: 700; color: rgba(255,255,255,.82);
    margin-bottom: 8px; line-height: 1.3;
}
.dg-wifi-pass-row { display: flex; flex-direction: column; gap: 4px; }
.dg-wifi-pass-inline {
    font-family: var(--fm, monospace); font-size: 1rem; font-weight: 700;
    color: #c4b5fd; letter-spacing: 1.5px; word-break: break-all;
    background: rgba(124,106,248,.10); padding: 6px 10px; border-radius: 8px;
    border: 1px solid rgba(124,106,248,.20);
}
.dg-wifi-copy-sm {
    align-self: flex-start; padding: 6px 13px; border-radius: 8px;
    border: none; background: rgba(124,106,248,.20); color: #c4b5fd;
    font-family: var(--fd, system-ui); font-size: .76rem; font-weight: 700;
    cursor: pointer; transition: background .15s; margin-top: 4px;
}
.dg-wifi-copy-sm:hover { background: rgba(124,106,248,.34); }

.dg-info-link {
    font-size: .86rem; font-weight: 700; color: #a78bfa;
    text-decoration: none; display: flex; align-items: center; gap: 4px;
    font-family: var(--fd, system-ui);
}
.dg-info-link::after { content: '↗'; font-size: .7rem; opacity: .6; }
.dg-info-link:hover  { text-decoration: underline; }

/* ── Safe-area for iPhone home bar ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .dg-sheet { padding-bottom: max(44px, env(safe-area-inset-bottom, 20px)); }
}
