
:root {
    --pill-orange: #f9a363;
    --pill-gold: #f8be62;
    --text-dark: #181512;
    --text-muted: #4a423b;
    --card-radius: clamp(16px, 1.6vw, 24px);
    --inner-radius: clamp(10px, 1vw, 16px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #d6a489;
    background-image: url('images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    padding: clamp(10px, 1.3vw, 18px) clamp(14px, 2.4vw, 36px);
    overflow-x: hidden;
}

.app-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.1vw, 15px);
}

/* ================= THANH CÔNG CỤ PHÍA TRÊN ================= */
.top-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: clamp(8px, 0.9vw, 12px);
    flex-wrap: wrap;
}

.search-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    width: clamp(235px, 24vw, 330px);
    height: clamp(36px, 2.7vw, 42px);
    padding: 0 16px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.search-pill:focus-within {
    background: rgba(255, 255, 255, 0.28);
    border-color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.search-icon-btn {
    background: none;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

#searchInput {
    width: 100%;
    border: none;
    background: transparent;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(12.5px, 0.92vw, 14px);
    font-weight: 600;
    outline: none;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.btn-toolbar {
    height: clamp(36px, 2.7vw, 42px);
    padding: 0 clamp(14px, 1.5vw, 22px);
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(12.5px, 0.92vw, 14px);
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    white-space: nowrap;
}

.btn-toolbar:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
    filter: brightness(1.03);
}

.btn-toolbar:active {
    transform: translateY(0);
}

.btn-360-render {
    background: linear-gradient(135deg, #fbd7be 0%, #f7c7a5 100%);
}

.btn-360-real {
    background: linear-gradient(135deg, #fdf0e4 0%, #f9e1cc 100%);
}

.btn-export {
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-dark);
}

.status-toast {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(24, 21, 18, 0.48);
    padding: 5px 12px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

/* ================= THẺ CHÍNH (GỌN GÀNG VỪA KHÍT 1 MÀN HÌNH) ================= */
.main-card {
    width: 100%;
    border-radius: var(--card-radius);
    padding: clamp(16px, 1.8vw, 24px) clamp(18px, 2.2vw, 30px);
    background-color: #fdf7ee;
    background-image:
        url('images/card.png'),
        linear-gradient(155deg, #fffdf9 0%, #fdf7ee 42%, #f8c67e 78%, #ea7f4d 100%);
    background-size: 100% 100%, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    box-shadow: 0 18px 46px rgba(45, 22, 10, 0.22);
    position: relative;
    overflow: hidden;
}

.card-grid {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: clamp(16px, 2vw, 28px);
    align-items: stretch;
    position: relative;
    z-index: 2;
}

/* ================= CỘT TRÁI ================= */
.left-column {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.1vw, 14px);
    position: relative;
    z-index: 3;
}

.unit-header-block {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.7vw, 10px);
}

.unit-code-row {
    display: flex;
    align-items: center;
    gap: clamp(8px, 0.9vw, 12px);
    flex-wrap: wrap;
}

.unit-code-label {
    font-size: clamp(18px, 1.65vw, 24px);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.unit-code-pill {
    background-color: var(--pill-orange);
    color: var(--text-dark);
    font-size: clamp(17px, 1.55vw, 23px);
    font-weight: 800;
    padding: clamp(3px, 0.35vw, 5px) clamp(15px, 1.6vw, 24px);
    border-radius: 999px;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.top-meta-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 245px;
}

.top-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: clamp(11.5px, 0.88vw, 13px);
    color: var(--text-dark);
}

.top-meta-row span {
    font-weight: 500;
    color: var(--text-muted);
}

.top-meta-row strong {
    font-weight: 700;
    text-align: right;
}

/* KHUNG PHỐI CẢNH 3D TÒA NHÀ */
.building-3d-card {
    flex: 1;
    min-height: 300px;
    border-radius: var(--inner-radius);
    overflow: hidden;
    position: relative;
    background: #2b2725;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.building-3d-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* CHẤM ĐỎ + ĐƯỜNG LINE + NHÃN MÃ CĂN TRÊN 3D */
.marker-3d-wrapper {
    position: absolute;
    transform: translate(0, -50%);
    display: flex;
    align-items: center;
    z-index: 10;
    pointer-events: none;
    transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1), top 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.marker-3d-wrapper .marker-dot {
    width: clamp(10px, 0.95vw, 14px);
    height: clamp(10px, 0.95vw, 14px);
    background-color: #d92626;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(217, 38, 38, 0.9);
    transform: translateX(-50%);
    flex-shrink: 0;
}

.marker-3d-wrapper .marker-line {
    width: clamp(26px, 3vw, 46px);
    height: 2px;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    margin-left: -5px;
    flex-shrink: 0;
}

.marker-3d-wrapper .marker-pill {
    background-color: var(--pill-orange);
    color: var(--text-dark);
    border: 1.5px solid #ffffff;
    border-radius: 999px;
    padding: 2px 11px;
    font-size: clamp(10.5px, 0.85vw, 12.5px);
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

.marker-3d-wrapper.flip-left {
    flex-direction: row-reverse;
    transform: translate(-100%, -50%);
}

.marker-3d-wrapper.flip-left .marker-dot {
    transform: translateX(50%);
}

.marker-3d-wrapper.flip-left .marker-line {
    margin-left: 0;
    margin-right: -5px;
}

/* ================= CỘT PHẢI ================= */
.right-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(10px, 1.1vw, 14px);
    position: relative;
    z-index: 2;
}

/* MẶT BẰNG TẦNG SVG (MỞ RỘNG NHẸ SANG TRÁI ĐỂ LA BÀN KHỚP ĐÚNG DEMO) */
.floorplan-section {
    position: relative;
    width: 111%;
    margin-left: -11%;
    aspect-ratio: 2.55 / 1;
    min-height: 165px;
    max-height: 215px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.svg-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.svg-container svg {
    width: 100% !important;
    height: 100% !important;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.svg-callout-badge {
    position: absolute;
    transform: translate(-50%, -100%);
    padding-bottom: 4px;
    z-index: 15;
    pointer-events: none;
}

.svg-callout-pill {
    display: inline-block;
    background-color: var(--pill-orange);
    color: var(--text-dark);
    font-size: clamp(10.5px, 0.85vw, 12.5px);
    font-weight: 800;
    padding: 2px 13px;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
    white-space: nowrap;
}

/* KHỐI GIỮA: THÔNG SỐ KỸ THUẬT & BẢNG GIÁ PTTT */
.middle-info-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(14px, 1.6vw, 24px);
    align-items: start;
}

.middle-info-grid.no-payment-card {
    grid-template-columns: 1fr;
}

.middle-info-grid.no-payment-card .specs-list {
    max-width: 440px;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: clamp(5px, 0.55vw, 8px);
    padding-top: 2px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: clamp(12px, 0.95vw, 13.5px);
    line-height: 1.3;
}

.spec-label {
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
}

.spec-value {
    font-weight: 700;
    color: var(--text-dark);
    text-align: right;
}

/* BẢNG GIÁ THEO PHƯƠNG ÁN THANH TOÁN */
.payment-card {
    background: rgba(255, 255, 255, 0.58);
    border-radius: var(--inner-radius);
    padding: clamp(10px, 1.05vw, 14px) clamp(12px, 1.25vw, 18px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.payment-card-title {
    font-size: clamp(11px, 0.88vw, 12.5px);
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-bottom: clamp(7px, 0.75vw, 10px);
}

.payment-list {
    display: flex;
    flex-direction: column;
    gap: clamp(5px, 0.5vw, 7px);
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-height: clamp(23px, 1.9vw, 27px);
    position: relative;
}

.payment-name {
    font-size: clamp(11.5px, 0.88vw, 13px);
    font-weight: 600;
    color: var(--text-dark);
}

.payment-pill-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.payment-price-pill {
    background: linear-gradient(90deg, var(--pill-orange) 0%, var(--pill-gold) 100%);
    color: var(--text-dark);
    font-size: clamp(12px, 0.96vw, 14px);
    font-weight: 800;
    padding: 2.5px clamp(12px, 1.1vw, 16px);
    border-radius: 999px;
    min-width: clamp(120px, 10.5vw, 148px);
    text-align: center;
    letter-spacing: 0.2px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.payment-row.is-hidden .payment-price-pill {
    display: none;
}

.btn-toggle-price {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    background-color: #2b241f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.24);
    transition: transform 0.15s ease, background-color 0.15s ease;
    z-index: 5;
}

.payment-row.is-hidden .btn-toggle-price {
    position: static;
}

.btn-toggle-price:hover {
    transform: scale(1.15);
    background-color: #000000;
}

/* TRẠNG THÁI KHI XUẤT ẢNH: ẨN TOÀN BỘ NÚT (+/-) VÀ ẨN HẲN CÁC DÒNG ĐANG TẮT */
.exporting-mode .btn-toggle-price {
    display: none !important;
}

.exporting-mode .payment-row.is-hidden {
    display: none !important;
}

/* KHỐI DƯỚI: LAYOUT NỘI THẤT & DIỄN HỌA NỘI THẤT */
.bottom-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 1.6vw, 22px);
}

.media-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.media-title {
    font-size: clamp(12px, 0.96vw, 13.5px);
    font-weight: 600;
    color: var(--text-dark);
}

.media-card {
    width: 100%;
    aspect-ratio: 16 / 8.8;
    max-height: 165px;
    border-radius: var(--inner-radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

.layout-card {
    background-color: #ffffff;
    padding: clamp(6px, 0.8vw, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.interior-card {
    background-color: #2c2520;
}

.interior-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.zoom-hint-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(24, 21, 18, 0.72);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.media-card:hover .zoom-hint-badge {
    opacity: 1;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #8c7d70;
    font-size: 12px;
    font-weight: 600;
    padding: 12px;
}

/* ================= WATERMARK KHI TẢI ẢNH ================= */
.export-watermark {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 30;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
}

.watermark-center {
    margin: auto 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    opacity: 0.14;
}

.watermark-center img {
    height: 54px;
    object-fit: contain;
}

.watermark-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(24, 21, 18, 0.15);
    opacity: 0.85;
}

.watermark-footer img {
    height: 18px;
    object-fit: contain;
}

.watermark-footer span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
    color: var(--text-dark);
}

/* ================= CHÂN TRANG ================= */
.site-footer {
    margin-top: 10px;
    padding: 14px 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.footer-logo {
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
    pointer-events: none;
}

.footer-project-name {
    font-size: clamp(12px, 1vw, 14.5px);
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.footer-disclaimer {
    font-size: clamp(10.5px, 0.88vw, 12.5px);
    line-height: 1.6;
    max-width: 900px;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

/* ================= HỆ THỐNG POPUP MODALS ================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 12, 10, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-overlay.is-open {
    display: flex;
}

/* LIGHTBOX PHÓNG TO & KÉO THẢ LAYOUT */
.lightbox-dialog {
    width: min(1240px, 94vw);
    height: min(820px, 90vh);
    background: #1b1816;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lightbox-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #25201d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.lightbox-title {
    font-size: 16px;
    font-weight: 700;
}

.lightbox-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lb-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    height: 34px;
    min-width: 34px;
    padding: 0 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.lb-btn:hover {
    background: rgba(255, 255, 255, 0.24);
}

.lb-btn-reset {
    font-size: 13px;
}

.lb-btn-close {
    background: rgba(231, 76, 60, 0.85);
    border-color: transparent;
    font-size: 20px;
}

.lb-btn-close:hover {
    background: #e74c3c;
}

.lb-zoom-label {
    font-size: 13px;
    font-weight: 700;
    min-width: 48px;
    text-align: center;
    color: var(--pill-orange);
}

.lightbox-viewport {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    touch-action: none;
}

.lightbox-viewport:active {
    cursor: grabbing;
}

.lightbox-viewport img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.08s ease-out;
    user-select: none;
}

.lightbox-hint {
    background: #25201d;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    text-align: center;
    padding: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* POPUP IFRAME 360 THỰC TẾ */
.iframe-dialog {
    width: min(1360px, 95vw);
    aspect-ratio: 16 / 9;
    max-height: 88vh;
    background: #000000;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
}

.iframe-dialog iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-close-circle {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background 0.2s;
}

.modal-close-circle:hover {
    background: #e74c3c;
}

/* POPUP THÔNG BÁO 360 DIỄN HỌA */
.notice-dialog {
    width: min(440px, 90vw);
    background: linear-gradient(155deg, #fffdf9 0%, #fce8d2 100%);
    color: var(--text-dark);
    border-radius: 22px;
    padding: 36px 26px;
    text-align: center;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.notice-close {
    background: rgba(24, 21, 18, 0.1);
    color: var(--text-dark);
    border: none;
}

.notice-close:hover {
    background: #e74c3c;
    color: #ffffff;
}

.notice-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(249, 163, 99, 0.28);
    color: #d96b27;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-text {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-dark);
}

/* LÁ CHẮN BẢO MẬT KHI PHÁT HIỆN MỞ DEVTOOLS */
#devtoolsSecurityShield {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(24, 18, 14, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 99998;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

#devtoolsSecurityShield.is-blocked {
    display: flex;
}

.shield-box {
    max-width: 480px;
    background: #251d18;
    border: 1.5px solid rgba(249, 163, 99, 0.5);
    border-radius: 22px;
    padding: 36px 28px;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.shield-box h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--pill-orange);
    letter-spacing: 0.4px;
}

.shield-box p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* CẢNH BÁO XOAY ĐIỆN THOẠI */
#rotateDeviceWarning {
    display: none;
    position: fixed;
    inset: 0;
    background: #241914;
    color: #ffffff;
    z-index: 99999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    gap: 20px;
}

#rotateDeviceWarning p {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--pill-orange);
}

.rotate-icon {
    animation: rotatePhoneAnim 2s infinite ease-in-out;
}

@keyframes rotatePhoneAnim {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-90deg); }
    100% { transform: rotate(-90deg); }
}

@media screen and (max-width: 820px) and (orientation: portrait) {
    #rotateDeviceWarning {
        display: flex;
    }
    body {
        overflow: hidden;
    }
}
