:root {
    --red: #e53935;
    --red-dark: #c62828;
    --red-soft: #ffebee;
    --accent: #e53935;
    --bg: #f4f4f6;
    --card: #ffffff;
    --text: #1a1a2e;
    --muted: #6b7280;
    --border: #ececf1;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.14);
    --radius: 20px;
    --radius-sm: 14px;
    --max-width: 480px;
    --hero-height: 220px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text);
}

body {
    min-height: 100vh;
}

.app-shell {
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    overflow-x: hidden;
}

#view {
    min-height: calc(100vh - 80px);
    padding-bottom: 96px;
}

/* ── Hero ── */
.menu-hero {
    position: relative;
    min-height: var(--hero-height);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.menu-hero--compact {
    min-height: 180px;
}

.menu-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.menu-hero-content {
    position: relative;
    z-index: 1;
    padding: 20px 20px 24px;
    width: 100%;
    color: #fff;
}

.menu-hero-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

.menu-hero-logo--placeholder {
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    font-size: 1.75rem;
}

.menu-hero-content h1 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.menu-hero-sub {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.88;
}

.menu-chip {
    display: inline-flex;
    align-items: center;
    background: var(--red);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    margin-left: 6px;
    margin-top: 4px;
}

.menu-chip--light {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

/* ── Toolbar & search ── */
.menu-toolbar {
    padding: 14px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: var(--shadow-sm);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 12px 16px;
    border: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
    border-color: rgba(229, 57, 53, 0.35);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
    background: #fff;
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--muted);
    flex-shrink: 0;
}

.search-box input {
    border: none;
    background: transparent;
    width: 100%;
    font: inherit;
    outline: none;
    font-size: 0.95rem;
}

/* ── Section head ── */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 10px;
}

.section-head h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.section-head span {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 600;
}

/* ── Category grid ── */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px 16px 20px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: var(--radius-sm);
    min-height: 130px;
    cursor: pointer;
    text-align: right;
    color: #fff;
    padding: 0;
    background: #222;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:active {
    transform: scale(0.97);
}

.category-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.35s ease;
}

.category-card:hover .category-card-bg {
    transform: scale(1.06);
}

.category-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.category-card-body {
    position: relative;
    z-index: 1;
    padding: 14px;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-family: 'Cairo', sans-serif;
}

.category-card h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.category-arrow {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

/* ── Branch picker ── */
.branch-list {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.branch-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    background: var(--card);
    cursor: pointer;
    text-align: right;
    font: inherit;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.branch-card:active {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.branch-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

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

.branch-info strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}

.branch-info span {
    font-size: 0.85rem;
    color: var(--muted);
}

.branch-arrow {
    color: var(--red);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

/* ── Page header (inner pages) ── */
.page-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--card);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.page-header--simple {
    gap: 0;
    padding-block: 14px;
}

.page-header--title-only {
    gap: 0;
    padding-block: 16px;
}

.page-header--title-only h1 {
    font-size: 1.25rem;
}

.page-header h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.3;
}

.back-btn {
    align-self: flex-start;
    border: none;
    background: var(--red-soft);
    font: inherit;
    color: var(--red);
    cursor: pointer;
    padding: 8px 14px 8px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
    transition: background 0.2s ease, transform 0.15s ease;
}

.back-btn:active {
    transform: scale(0.97);
}

.back-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.back-btn-icon svg {
    width: 18px;
    height: 18px;
}

.back-btn-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.page-header--simple .back-btn {
    font-size: 1rem;
    font-weight: 800;
    padding: 10px 16px 10px 12px;
}

.page {
    padding: 16px;
}

/* ── Products ── */
.product-list {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.product-list--search {
    padding-top: 0;
}

.product-card-category {
    margin: 0 0 4px;
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 700;
}

.product-card {
    display: flex;
    flex-direction: row;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    align-items: stretch;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
}

.product-card:active {
    transform: scale(0.98);
}

.product-card img {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
    background: #eee;
    flex-shrink: 0;
}

.product-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    margin: 0 0 4px;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
}

.product-card p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.product-card-hint {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
}

.product-card.out-of-stock {
    opacity: 0.72;
}

.price {
    color: var(--red);
    font-weight: 800;
    font-size: 1rem;
}

.product-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}

.btn:active:not(:disabled) {
    transform: scale(0.95);
}

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

.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 999px;
}

.btn-add {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: var(--red-soft);
    color: var(--red);
    font-size: 1.25rem;
    line-height: 1;
    display: grid;
    place-items: center;
    border: 2px solid rgba(229, 57, 53, 0.2);
}

.btn-outline {
    background: #fff;
    color: var(--red);
    border: 1px solid var(--red);
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    border-radius: 16px;
}

/* ── Cart & checkout ── */
.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.delivery-option {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.delivery-option.active {
    border-color: var(--red);
    background: var(--red-soft);
}

.delivery-option .icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.92rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.form-group textarea {
    min-height: 90px;
    resize: vertical;
}

.section-title {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 800;
}

.summary-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 16px 0;
    box-shadow: var(--shadow-sm);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--muted);
}

.summary-row.total {
    color: var(--text);
    font-weight: 800;
    font-size: 1.1rem;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.summary-row.total span:last-child {
    color: var(--red);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 4px 8px;
}

.qty-controls button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.qty-controls button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.qty-controls--sheet button {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
}

.qty-controls--sheet span {
    min-width: 28px;
    text-align: center;
    font-weight: 800;
    font-size: 1.05rem;
}

/* ── Product detail sheet ── */
body.sheet-open {
    overflow: hidden;
}

#product-sheet {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

#product-sheet.hidden {
    display: none;
}

.product-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.product-sheet-panel {
    position: relative;
    width: 100%;
    max-width: var(--max-width);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--card);
    border-radius: 24px 24px 0 0;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: sheet-up 0.28s ease;
}

@keyframes sheet-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.product-sheet-close {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.product-sheet-gallery {
    background: #f3f4f6;
}

.product-sheet-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.product-sheet-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 16px 12px;
    overflow-x: auto;
}

.product-sheet-thumb {
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
}

.product-sheet-thumb.active {
    border-color: var(--red);
}

.product-sheet-thumb img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.product-sheet-body {
    padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
}

.product-sheet-body h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
}

.product-sheet-category {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.product-sheet-desc {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.product-sheet-vars {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.product-sheet-vars li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 12px;
    font-size: 0.88rem;
}

.product-sheet-vars span {
    color: var(--muted);
}

.product-sheet-price,
.product-sheet-qty,
.product-sheet-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.product-sheet-price strong,
.product-sheet-total strong {
    color: var(--red);
    font-size: 1.1rem;
}

.product-sheet-total strong {
    font-size: 1.2rem;
}

.product-sheet-actions {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.product-sheet-unavailable {
    margin: 12px 0 0;
    color: #b91c1c;
    font-weight: 700;
    text-align: center;
}

.checkout-product {
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    background: var(--card);
}

.checkout-product img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.order-success-page {
    min-height: calc(100dvh - 120px);
    display: grid;
    place-items: center;
    padding: 24px 16px 32px;
}

.order-success-card {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.order-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    border: 2px solid rgba(5, 150, 105, 0.2);
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 800;
}

.order-success-title {
    margin: 0 0 8px;
    font-size: 1.6rem;
    font-weight: 800;
}

.order-success-subtitle {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.6;
}

.order-success-number {
    background: var(--red-soft);
    border: 1px dashed rgba(229, 57, 53, 0.35);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.order-success-number-label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.order-success-number strong {
    font-size: 1.8rem;
    color: var(--red);
    letter-spacing: 0.02em;
}

.order-success-total {
    margin: 0 0 20px;
    font-weight: 700;
}

/* ── Bottom nav ── */
.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    max-width: calc(100% - 32px);
    padding: 6px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    z-index: 30;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-item {
    border: none;
    background: transparent;
    font: inherit;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
    min-width: 96px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.nav-item:active {
    transform: scale(0.96);
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    box-shadow: 0 6px 18px rgba(229, 57, 53, 0.35);
}

.nav-icon-wrap {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
}

.nav-icon-wrap svg {
    width: 22px;
    height: 22px;
    transition: stroke 0.2s ease;
}

.nav-item.active .nav-icon-wrap svg {
    stroke: #fff;
}

.cart-badge {
    position: absolute;
    top: 4px;
    inset-inline-end: 14px;
    background: var(--red);
    color: #fff;
    font-size: 0.62rem;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    font-weight: 800;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-item.active .cart-badge {
    background: #fff;
    color: var(--red);
    border-color: var(--red);
}

/* ── Toast & states ── */
.toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    z-index: 100;
    max-width: calc(var(--max-width) - 32px);
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
}

.toast.success {
    background: #15803d;
}

.toast.error {
    background: var(--red-dark);
}

.hidden {
    display: none !important;
}

.loading {
    text-align: center;
    padding: 64px 16px;
    color: var(--muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--red);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--muted);
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.product-card.out-of-stock {
    opacity: 0.75;
}

.stock-badge {
    display: inline-block;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 6px;
}

/* ── Menu background ── */
.menu-bg-layer {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.app-shell.has-menu-bg {
    background: var(--bg);
}

.app-shell.has-menu-bg #view,
.app-shell.has-menu-bg .menu-toolbar {
    position: relative;
    z-index: 1;
}

.app-shell.has-menu-bg .bottom-nav {
    z-index: 30;
}

/* Legacy compat */
.restaurant-list,
.category-list {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.restaurant-card,
.pill,
.restaurant-brand,
.restaurant-logo,
.nav-icon {
    /* kept for any legacy renders */
}

@media (min-width: 481px) {
    body {
        padding: 20px 0;
    }

    .app-shell {
        border-radius: 24px;
        box-shadow: var(--shadow-lg);
        min-height: calc(100vh - 40px);
    }
}

/* ── Subscription page ── */
.subscription-page {
    padding: 20px 16px 32px;
    background: var(--card);
    min-height: 100vh;
}

.subscription-hero {
    text-align: center;
    margin-bottom: 24px;
}

.subscription-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fee2e2, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid rgba(229, 57, 53, 0.15);
}

.subscription-hero h1 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.5;
}

.subscription-hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.subscription-note {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 0.92rem;
    line-height: 1.6;
}

.subscription-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.subscription-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.subscription-form label span {
    font-size: 0.9rem;
    font-weight: 700;
}

.subscription-form input,
.subscription-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
}

.subscription-form input:focus,
.subscription-form textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.subscription-form small {
    color: var(--muted);
    font-size: 0.78rem;
}

.subscription-form .btn-primary.full {
    width: 100%;
    margin-top: 8px;
    padding: 16px;
    border-radius: 16px;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
}
