.v2-shell {
    position: relative;
    z-index: 1;
}

.v2-grid {
    display: grid;
    gap: 1.5rem;
}

.v2-layout {
    display: grid;
    gap: 1.5rem;
}

.v2-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    background: rgba(11, 16, 32, 0.74);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.v2-card-pad {
    padding: 1.25rem;
}

.v2-hero {
    display: grid;
    gap: 1rem;
}

.v2-kicker {
    margin: 0;
    color: var(--gold-1);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

.v2-title {
    margin: 0.4rem 0 0;
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 6vw, 3.6rem);
    line-height: 1.05;
}

.v2-copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.v2-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.v2-actions a {
    text-decoration: none;
}

.v2-pill-row,
.v2-category-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.v2-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.v2-pill.active,
.v2-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 214, 112, 0.38);
    background: rgba(255, 214, 112, 0.12);
}

.v2-menu-grid {
    display: grid;
    gap: 1rem;
}

.v2-menu-card {
    display: grid;
    gap: 0.9rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.v2-menu-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.v2-menu-body {
    padding: 1rem;
}

.v2-menu-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.v2-menu-body h3,
.v2-summary-title,
.v2-section-title {
    margin: 0;
    font-family: 'Sora', sans-serif;
}

.v2-summary-title,
.v2-section-title {
    font-size: 1.25rem;
}

.v2-menu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.v2-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff8db;
}

.v2-cart-list,
.v2-track-results,
.v2-admin-order-list,
.v2-mini-list {
    display: grid;
    gap: 0.85rem;
}

.v2-cart-item,
.v2-track-card,
.v2-order-card,
.v2-mini-item {
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.95rem 1rem;
}

.v2-cart-line,
.v2-order-head,
.v2-track-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.v2-cart-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.v2-icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
}

.v2-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.2rem 0;
    color: var(--text-muted);
}

.v2-summary-row.total {
    margin-top: 0.8rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-weight: 800;
}

.v2-success {
    margin-top: 1rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(22, 163, 74, 0.35);
    background: rgba(22, 163, 74, 0.12);
    padding: 1rem;
    color: #dcfce7;
}

.v2-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.v2-status-pill.pending {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fde68a;
}

.v2-status-pill.preparing {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #bfdbfe;
}

.v2-status-pill.delivered {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #bbf7d0;
}

.v2-status-steps {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.v2-status-step {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0.95rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}

.v2-status-step.active {
    background: rgba(255, 214, 112, 0.12);
    color: #fff8db;
}

.v2-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: currentColor;
}

.v2-empty {
    padding: 1.25rem;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 1.2rem;
    color: var(--text-muted);
    text-align: center;
}

.v2-admin-grid {
    display: grid;
    gap: 1rem;
}

.v2-admin-stats {
    display: grid;
    gap: 1rem;
}

.v2-stat-card {
    padding: 1rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.v2-stat-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.v2-stat-card strong {
    display: block;
    margin-top: 0.5rem;
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
}

.v2-chart {
    min-height: 220px;
}

.v2-chart svg {
    width: 100%;
    height: 220px;
    display: block;
}

.v2-chart-legend {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.v2-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.v2-order-items {
    margin-top: 0.85rem;
    display: grid;
    gap: 0.45rem;
}

.v2-order-meta {
    margin-top: 0.6rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.v2-auth-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.v2-auth-banner.is-ready {
    border: 1px solid rgba(22, 163, 74, 0.26);
    background: rgba(22, 163, 74, 0.1);
    color: #dcfce7;
}

.v2-auth-banner.is-error {
    border: 1px solid rgba(239, 68, 68, 0.26);
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
}

.v2-link {
    color: #fff8db;
    text-decoration: none;
}

.v2-link:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .v2-layout {
        grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
        align-items: start;
    }

    .v2-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v2-admin-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .v2-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .v2-menu-footer,
    .v2-cart-line,
    .v2-order-head,
    .v2-track-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
