/* ═══════════════════════════════════════════════
   DELIVERY ONLINE - Clean Minimalist Design
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap');

:root {
    --primary: #16a34a;
    --primary-light: #22c55e;
    --primary-dark: #15803d;
    --primary-bg: #f0fdf4;
    --text: #1a1a1a;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg: #ffffff;
    --bg-gray: #f8f9fa;
    --bg-card: #ffffff;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --max-width: 640px;
    --transition: 0.2s ease;
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg-gray);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ─── Layout ─── */
.app-container {
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--bg);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.06);
}

@media (min-width: 768px) {
    .app-container { border-radius: 0; }
    body { background: #eef1f5; }
}

/* ─── Header ─── */
.store-header {
    background: var(--bg);
    color: var(--text);
    padding: 16px 16px 16px;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

.store-header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.store-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-logo .logo-placeholder {
    font-size: 1.8rem;
}

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

.store-status {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: 0.74rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.store-status.open-status { color: var(--primary); }

.store-status.closed-status {
    color: #ef4444;
}

.store-header-info h1 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-header-info .store-location {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Info Bar (unified) */
.store-info-bar {
    display: flex;
    align-items: stretch;
    margin-top: 14px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.info-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    text-align: center;
    gap: 1px;
}

.info-bar-item + .info-bar-item {
    border-left: 1px solid var(--border);
}

.info-bar-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.2;
}

.info-bar-value {
    font-size: 0.78rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.2;
}

.info-bar-value.cashback {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
}

@media (max-width: 380px) {
    .info-bar-label { font-size: 0.65rem; }
    .info-bar-value { font-size: 0.72rem; }
    .store-logo {
        width: 54px;
        height: 54px;
        border-radius: 12px;
    }
}

/* Banner */
.store-banner {
    margin-top: 14px;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.store-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* ─── Sticky Search + Categories (hidden initially) ─── */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    width: 100%;
    max-width: var(--max-width);
    z-index: 300;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.25s ease;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.sticky-nav.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ─── Mais Pedidos Carousel ─── */
.featured-section {
    padding: 20px 0 8px;
}

.featured-section .section-header {
    padding: 0 16px 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.featured-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 16px 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-padding-left: 16px;
}

.featured-carousel::-webkit-scrollbar { display: none; }

.featured-card {
    flex-shrink: 0;
    width: 150px;
    scroll-snap-align: start;
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.featured-card-image {
    width: 100%;
    height: 120px;
    background: var(--bg-gray);
    overflow: hidden;
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: var(--primary);
}

.featured-card-body {
    padding: 10px;
}

.featured-card-body h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-body .featured-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* ─── Search Bar ─── */
.search-bar {
    padding: 10px 16px;
    background: var(--bg);
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1.5px solid var(--border);
    border-radius: 24px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    background: var(--bg-gray);
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--primary);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}

.search-bar .search-icon {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

/* ─── Category Nav ─── */
.category-nav {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: var(--bg);
}

.category-nav::-webkit-scrollbar { display: none; }

.category-nav button {
    flex-shrink: 0;
    padding: 12px 16px;
    border: none;
    background: none;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    font-weight: 500;
}

.category-nav button:hover { color: var(--text); }

.category-nav button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* ─── Menu Section ─── */
.menu-section { padding: 0 0 100px; }

.category-title {
    padding: 20px 16px 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.category-description {
    padding: 0 16px 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ─── Product Card ─── */
.product-card {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition);
    align-items: flex-start;
}

.product-card:hover { background: var(--bg-gray); }

.product-card:active { background: #f0f0f0; }

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

.product-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.product-info .product-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.product-info .product-serves {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.product-info .product-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.product-info .product-price small {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.product-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: var(--primary);
}

/* ─── Product Detail Full Page ─── */
.product-page {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 500;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
    max-width: var(--max-width);
    margin: 0 auto;
    left: 0; right: 0;
    display: flex;
    flex-direction: column;
}

.product-page.active {
    transform: translateX(0);
}

.product-page-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.45);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.product-page-close:hover { background: rgba(0,0,0,0.65); }

/* Product Detail - Imagem ajustada para mostrar completa */
.product-detail-image {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 360px;
    background: var(--bg-gray);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    display: block;
}

.product-detail-image .no-image {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: var(--primary);
}

.product-detail-body { padding: 20px 16px; }

.product-detail-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-detail-body .detail-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.product-detail-body .detail-serves {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.product-detail-body .detail-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

/* Addon Groups */
.addon-group {
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.addon-group-header {
    background: var(--bg-gray);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.addon-group-header h4 {
    font-size: 0.85rem;
    font-weight: 600;
}

.addon-group-header .badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}

.addon-group-header .badge.required {
    background: #fef2f2;
    color: #ef4444;
}

.addon-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    gap: 10px;
    cursor: pointer;
    transition: background var(--transition);
}

.addon-item:last-child { border-bottom: none; }
.addon-item:hover { background: var(--bg-gray); }

.addon-item input { accent-color: var(--primary); }

.addon-item .addon-name { flex: 1; font-size: 0.85rem; }

.addon-item .addon-price {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Quantity */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 20px 0;
    justify-content: center;
}

.quantity-control button {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--primary);
}

.quantity-control button:first-child { border-radius: 10px 0 0 10px; }
.quantity-control button:last-child { border-radius: 0 10px 10px 0; }
.quantity-control button:hover { background: var(--primary-bg); }

.quantity-control span {
    width: 50px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    border-top: 1.5px solid var(--border);
    border-bottom: 1.5px solid var(--border);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    margin-bottom: 8px;
}

.add-to-cart-btn:hover { background: var(--primary-dark); }
.add-to-cart-btn:active { transform: scale(0.98); }

/* ─── Cart Bar - Botão flutuante arredondado ─── */
.cart-bar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 16px));
    width: calc(100% - 32px);
    max-width: calc(var(--max-width) - 32px);
    background: var(--primary);
    color: white;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    z-index: 200;
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 4px 24px rgba(22, 163, 74, 0.35), 0 2px 8px rgba(0,0,0,0.12);
    border-radius: 50px;
}

.cart-bar.visible { transform: translateX(-50%) translateY(0); }

.cart-bar .cart-count {
    background: rgba(255,255,255,0.2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.cart-bar .cart-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-bar .cart-total {
    font-weight: 700;
    font-size: 0.95rem;
}

/* ─── Cart / Checkout Panels ─── */
.panel-page {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 400;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    max-width: var(--max-width);
    margin: 0 auto;
    left: 0; right: 0;
}

.panel-page.active { transform: translateX(0); }

.panel-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 10;
    gap: 12px;
}

.panel-header .back-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--text);
}

.panel-header .back-btn:hover { background: var(--bg-gray); }

.panel-header h2 {
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.panel-header .clear-btn {
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.panel-header .clear-btn:hover { color: #ef4444; }

.panel-body { flex: 1; padding: 0; }

.panel-footer {
    padding: 16px;
    border-top: 1px solid var(--border-light);
    background: var(--bg);
    position: sticky;
    bottom: 0;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-gray);
}

.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }

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

.cart-item-info h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.cart-item-addons {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.cart-item-remove {
    border: none;
    background: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.cart-item-remove:hover { color: #ef4444; }

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-qty button {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-qty span {
    width: 28px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Suggest section */
.suggest-section { padding: 16px; }
.suggest-section h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

/* ─── Checkout Steps ─── */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: var(--transition);
}

.step-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

.step-dot.completed { background: var(--primary); }

/* ─── Forms ─── */
.form-group {
    padding: 0 16px;
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    background: var(--bg);
    transition: var(--transition);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}

.form-group input::placeholder { color: var(--text-light); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 16px;
}

.form-row .form-group { padding: 0; margin: 0; }

/* Radio/Check options */
.option-group { padding: 0 16px; margin-bottom: 16px; }

.option-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    cursor: pointer;
    gap: 10px;
    transition: var(--transition);
}

.option-item:hover { border-color: var(--primary-light); }
.option-item.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.option-item input { accent-color: var(--primary); }

.option-item .option-label {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 500;
}

.option-item .option-sublabel {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ─── Order Summary ─── */
.summary-section {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
}

.summary-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1rem;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

/* ─── PIX Payment ─── */
.pix-section {
    text-align: center;
    padding: 20px 16px;
}

.pix-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary-dark);
}

.pix-section .pix-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.pix-qr {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 2px dashed var(--border);
}

.pix-code-box {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 12px;
    font-size: 0.72rem;
    word-break: break-all;
    color: var(--text-secondary);
    line-height: 1.4;
    max-height: 80px;
    overflow: hidden;
}

.pix-timer {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.pix-timer strong { color: #ef4444; }

/* ─── Buttons ─── */
.btn-primary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-outline {
    width: 100%;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover { border-color: var(--text-light); }

.btn-copy {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

/* ─── Toast ─── */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a1a;
    color: white;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 0.82rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ─── Closed Banner ─── */
.closed-banner {
    background: #fef3c7;
    color: #92400e;
    text-align: center;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ─── Empty State ─── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

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

.empty-state h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.empty-state p { font-size: 0.85rem; }

/* ─── Loading ─── */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading-spinner::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ─── Section label ─── */
.section-label {
    padding: 12px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ─── Scheduling ─── */
.schedule-box {
    margin: 0 16px 16px;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius);
    padding: 14px;
    background: var(--primary-bg);
}

.schedule-box .schedule-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.schedule-box .schedule-time {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ─── Notes ─── */
.notes-box {
    margin: 0 16px 16px;
}

.notes-box textarea {
    width: 100%;
    padding: 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.85rem;
    resize: vertical;
    min-height: 60px;
    outline: none;
}

.notes-box textarea:focus {
    border-color: var(--primary);
}

/* ─── Responsive ─── */
@media (min-width: 768px) {
    :root { --max-width: 480px; }

    .app-container {
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }
}

@media (min-width: 1024px) {
    :root { --max-width: 480px; }
}

/* ─── Animations ─── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in { animation: fadeIn 0.3s ease; }
.slide-up { animation: slideUp 0.4s ease; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }