/* Modern CSS for ArtyX Platform */

:root {
    --bg-main: #06070d;
    --bg-card: rgba(17, 19, 30, 0.65);
    --bg-card-hover: rgba(26, 29, 46, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-focus: rgba(234, 88, 12, 0.4);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary: #ea580c;
    --primary-hover: #c2410c;
    --primary-glow: rgba(234, 88, 12, 0.3);
    
    --secondary: #f97316;
    --secondary-hover: #ea580c;
    
    --accent: #16a34a;
    --accent-hover: #15803d;
    --accent-glow: rgba(22, 163, 74, 0.2);
    
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(16px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Scrollbar customizations */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background glowing orbs */
.bg-glow {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}
.bg-glow-1 {
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -10vw;
    left: -10vw;
}
.bg-glow-2 {
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: 10vw;
    right: -10vw;
}

/* Header Section */
.main-header {
    background: rgba(6, 7, 13, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}
.logo span {
    background: linear-gradient(135deg, #fff 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover {
    color: var(--text-primary);
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
}
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
}
.btn-secondary {
    background: rgba(234, 88, 12, 0.12);
    color: var(--text-primary);
    border: 1px solid var(--primary);
}
.btn-secondary:hover {
    background: rgba(234, 88, 12, 0.2);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-outline:hover {
    background: rgba(234, 88, 12, 0.05);
    border-color: var(--primary-hover);
}
.btn-icon {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.6rem;
    border-radius: 8px;
}
.btn-icon:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}
.btn-block {
    width: 100%;
}
.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover {
    background: var(--danger-hover);
}
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(234, 88, 12, 0.1);
    border: 1px solid rgba(234, 88, 12, 0.2);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-accent {
    padding: 0.25rem 0.6rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

/* Main layouts and Sections */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem 2rem;
}

/* Hero Section Split Layout */
.hero-split-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
    padding: 2rem 0;
}
.hero-info h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}
.hero-info h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}
.cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Value metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    backdrop-filter: var(--glass-blur);
}
.metric-val {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.metric-lbl {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Simulator Wrapper and Phone Container */
.simulator-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.phone-frame {
    width: 320px;
    height: 640px;
    background: #0f1016;
    border: 10px solid #272935;
    border-radius: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.15);
    position: relative;
    overflow: hidden;
    transform: rotate(0deg);
    transition: var(--transition);
}
.phone-frame:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 50px rgba(139, 92, 246, 0.25);
    transform: translateY(-5px);
}
.phone-notch {
    width: 120px;
    height: 18px;
    background: #272935;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 50;
}
.phone-screen {
    width: 100%;
    height: 100%;
    background: #0f1015;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Inside Phone App Styling */
.restaurant-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding-bottom: 80px;
}
.restaurant-header {
    position: relative;
    width: 100%;
}
.restaurant-banner {
    width: 100%;
    height: 120px;
}
.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.restaurant-info-card {
    position: relative;
    margin: 12px 12px 0 12px;
    background: #191b26;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 0.8rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10;
}
.restaurant-info-card h3 {
    font-size: 1rem;
    font-weight: 700;
}
.restaurant-meta {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 2px;
}
.restaurant-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid rgba(22, 163, 74, 0.3);
    color: var(--accent);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Categories Scroller */
.menu-categories {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 12px 12px 10px 12px;
    scrollbar-width: none;
    flex-shrink: 0;
}
.menu-categories::-webkit-scrollbar {
    display: none;
}
.category-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Products Section */
.products-section {
    padding: 0 12px;
}
.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.products-list {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}
.product-item {
    display: flex;
    gap: 0.85rem;
    background: #171923;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}
.product-item:hover {
    background: #1c1e2b;
    border-color: rgba(255,255,255,0.1);
}
.product-img-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-name {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.product-desc {
    font-size: 0.65rem;
    color: var(--text-secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}
.product-tag {
    font-size: 0.55rem;
    background: var(--primary-glow);
    color: var(--primary);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Floating Cart Trigger inside simulator */
.floating-cart-bar {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: var(--primary);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    z-index: 40;
    animation: slideUpCart 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUpCart {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cart-bar-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cart-count {
    background: white;
    color: var(--primary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-total {
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
}
.btn-cart-trigger {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: var(--transition);
}
.btn-cart-trigger:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Custom Bottom Sheets inside Phone Screen */
.bottom-sheet {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: none;
    pointer-events: none;
}
.bottom-sheet.open {
    display: block;
    pointer-events: auto;
}
.bottom-sheet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.bottom-sheet.open .bottom-sheet-overlay {
    opacity: 1;
}
.bottom-sheet-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 85%;
    background: #181a25;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.bottom-sheet.open .bottom-sheet-content {
    transform: translateY(0);
}
.bottom-sheet-drag-handle {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    margin: 8px auto;
    flex-shrink: 0;
}
.bottom-sheet-body {
    overflow-y: auto;
    padding: 0 16px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Modal Product Info */
.modal-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.modal-product-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
}
.modal-product-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
}
.modal-product-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.options-group {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 0.75rem;
}
.options-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.03);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}
.option-item.selected {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
}
.option-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.option-radio {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.option-item.selected .option-radio {
    border-color: var(--primary);
    background: var(--primary);
}
.option-item.selected .option-radio::after {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}
.option-checkbox {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.option-item.selected .option-checkbox {
    border-color: var(--accent);
    background: var(--accent);
}
.option-item.selected .option-checkbox::after {
    content: '✓';
    font-size: 10px;
    color: #06070d;
    font-weight: 900;
}
.option-price {
    font-weight: 600;
    color: var(--text-secondary);
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 0.75rem;
}
.quantity-controller {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 2px;
}
.quantity-btn {
    background: transparent;
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    cursor: pointer;
}
.quantity-val {
    font-size: 0.8rem;
    font-weight: 700;
    width: 24px;
    text-align: center;
}
.btn-add-to-cart {
    flex-grow: 1;
    font-size: 0.8rem;
    padding: 0.6rem;
}

/* Cart Specific Bottom Sheet styling */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.cart-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
}
.btn-clear-cart {
    background: transparent;
    border: none;
    color: var(--danger);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
}
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 180px;
    overflow-y: auto;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.02);
    padding: 0.5rem;
    border-radius: 8px;
}
.cart-item-details {
    display: flex;
    flex-direction: column;
}
.cart-item-name {
    font-size: 0.75rem;
    font-weight: 600;
}
.cart-item-desc {
    font-size: 0.6rem;
    color: var(--text-secondary);
}
.cart-item-price-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cart-item-price {
    font-size: 0.75rem;
    font-weight: 700;
}
.btn-remove-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px;
}
.btn-remove-item:hover {
    color: var(--danger);
}
.cart-totals {
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    padding: 0.6rem;
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}
.cart-total-row.total {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    margin-top: 0.25rem;
}
.divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin: 4px 0;
}
.checkout-form-section h4 {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}
.form-group-compact {
    margin-bottom: 0.5rem;
}
.form-group-compact input,
.form-group-compact textarea {
    width: 100%;
    background: #232532;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 0.5rem;
    color: white;
    font-size: 0.75rem;
    font-family: var(--font-body);
}
.form-group-compact textarea {
    height: 48px;
    resize: none;
}
.form-group-compact input:focus,
.form-group-compact textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
}
.btn-submit-order {
    font-size: 0.75rem;
    padding: 0.6rem;
    width: 100%;
    margin-top: 0.25rem;
}

/* Success page inside Simulator */
.phone-success-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0f1015;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    text-align: center;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.success-icon-wrapper {
    margin-bottom: 1.5rem;
}
.success-icon-wrapper.large {
    margin-bottom: 2rem;
}
.success-checkmark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--accent);
    animation: fillSuccess .4s ease-in-out .4s forwards, scaleSuccess .3s ease-in-out .9s both;
}
.success-icon-wrapper.large .success-checkmark {
    width: 80px;
    height: 80px;
}
.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--accent);
    fill: none;
    animation: strokeSuccess 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: white;
    animation: strokeSuccess 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}
@keyframes strokeSuccess {
    100% { stroke-dashoffset: 0; }
}
@keyframes fillSuccess {
    100% { box-shadow: inset 0px 0px 0px 40px var(--accent); }
}
@keyframes scaleSuccess {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}
.phone-success-screen h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.phone-success-screen p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}
.order-summary-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    width: 100%;
    padding: 0.8rem;
    font-size: 0.7rem;
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    max-height: 120px;
    overflow-y: auto;
}

/* Features Grid Section */
.features-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}
.section-title-center {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
}
.section-desc-center {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
    backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}
.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(234, 88, 12, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Lead Onboarding Form Section */
.leads-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}
.leads-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}
.leads-info h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.leads-info p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}
.bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.bullet-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 1rem;
}
.leads-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.form-header {
    margin-bottom: 2rem;
}
.form-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.form-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}
.form-group input {
    background: #111320;
    border: 1px solid var(--border-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}
.lead-success-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 350px;
    animation: fadeIn 0.4s ease;
}
.lead-success-card h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.lead-success-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
}
.lead-success-card .secondary-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Admin Dashboard Portal styling */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    background: rgba(4, 5, 8, 0.85);
    backdrop-filter: var(--glass-blur);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}
.admin-container {
    width: 100%;
    max-width: 1100px;
    max-height: 85vh;
    background: #0d0f17;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: #111320;
}
.admin-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.admin-title h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
}
.btn-close-admin {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.btn-close-admin:hover {
    color: white;
}

/* Admin KPIs */
.admin-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: #0f111c;
    border-bottom: 1px solid var(--border-color);
}
.kpi-card {
    background: #141724;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 12px;
}
.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.kpi-icon {
    font-size: 1rem;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.color-indigo { background: rgba(99,102,241,0.1); }
.color-green { background: rgba(16,185,129,0.1); }
.kpi-val {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 0.5rem;
}
.kpi-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 1rem;
    padding: 1rem 2rem 0 2rem;
    background: #0d0f17;
    border-bottom: 1px solid var(--border-color);
}
.tab-btn {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
}
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Tab Content and Tables */
.tab-content {
    display: none;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}
.tab-content.active {
    display: flex;
}
.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
}
.table-actions h3 {
    font-size: 1rem;
    font-weight: 700;
}
.action-buttons {
    display: flex;
    gap: 0.75rem;
}
.table-responsive {
    overflow-y: auto;
    flex-grow: 1;
    padding: 0 2rem 2rem 2rem;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}
.admin-table th {
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border-color);
    background: #111320;
}
.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}
.admin-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* Confetti System */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 200;
}
.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd300;
    top: -10px;
    opacity: 0.8;
    animation: fall 3s infinite linear;
}
@keyframes fall {
    0% { top: -10px; transform: translateX(0) rotate(0deg); opacity: 1; }
    100% { top: 105vh; transform: translateX(100px) rotate(360deg); opacity: 0; }
}

/* Footer Section */
.main-footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}
.main-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive Adaptation (Mobile-First details) */
@media (max-width: 1024px) {
    .hero-split-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-info h1 {
        font-size: 2.75rem;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .cta-group {
        justify-content: center;
    }
    .leads-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .admin-kpis {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links a {
        display: none; /* Hide standard links to focus on mobile experience */
    }
    .nav-links a.btn {
        display: inline-flex;
    }
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .admin-container {
        max-height: 95vh;
        border-radius: 12px;
    }
    .admin-kpis {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .table-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Custom CSS for Plans Calculator and visual Credit Card */

.calc-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}
@media (max-width: 768px) {
    .calc-layout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

/* Sliders custom styles */
.slider {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    transition: background 0.3s;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: transform 0.1s ease;
}
.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: transform 0.1s ease;
}
.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Radio Option Cards */
.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.radio-card {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.radio-card:has(input[type="radio"]:checked) {
    background: rgba(234, 88, 12, 0.1) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(234, 88, 12, 0.2);
}

/* Credit Card Front View Visual */
.credit-card {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.visual-card-wrapper {
    perspective: 1000px;
}

/* Styling for plan details bullet list */
.bullet-list-pricing {
    padding-left: 0;
}
.bullet-list-pricing li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.bullet-list-pricing li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 900;
    font-size: 1rem;
}

/* Responsive adjustment for pricing output card */
.pricing-output-card {
    min-height: 400px;
}

/* Checkout form styles inside admin/checkout modal */
.checkout-grid {
    max-height: calc(85vh - 75px);
}
@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 1rem !important;
    }
}

/* Demo Pointer Bubble CSS */
.demo-pointer-bubble {
    position: absolute;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4), 0 0 0 4px rgba(139, 92, 246, 0.2);
    z-index: 90;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    
    /* Position desktop: left of the phone, pointing right */
    top: 30%;
    left: -125px;
    
    animation: bounceHorizontal 2s infinite ease-in-out;
}

/* Pseudo-element arrow pointing to the phone (right) */
.demo-pointer-bubble::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent var(--secondary);
}

@keyframes bounceHorizontal {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-10px); }
}

/* Mobile responsive styles for the pointer bubble */
@media (max-width: 1024px) {
    .demo-pointer-bubble {
        top: -55px;
        left: 50%;
        transform: translateX(-50%);
        animation: bounceVertical 2s infinite ease-in-out;
    }
    
    .demo-pointer-bubble::after {
        top: auto;
        bottom: -8px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        border-width: 8px 8px 0 8px;
        border-color: var(--secondary) transparent transparent transparent;
    }
    
    @keyframes bounceVertical {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        50% { transform: translateX(-50%) translateY(-8px); }
    }
}

/* ============================================================
   GLOW TRACE ANIMATION — surrounds the phone simulator
   ============================================================ */
.phone-glow-wrapper {
    position: relative;
    display: inline-flex;
    border-radius: 44px;
    padding: 4px;          /* creates the border space */
    background: transparent;
}

/* Rotating light sweep layer */
.phone-glow-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 46px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        #ea580c 40deg,
        #f97316 80deg,
        #16a34a 120deg,
        #f97316 160deg,
        #ea580c 200deg,
        transparent 240deg,
        transparent 360deg
    );
    animation: rotateGlow 2.5s linear infinite;
    opacity: 1;
    transition: opacity 0.7s ease;
    z-index: 0;
}

/* Dark fill mask so only a thin glowing edge is visible */
.phone-glow-wrapper::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 40px;
    background: #0f1016;
    z-index: 1;
}

/* Phone frame must sit on top */
.phone-glow-wrapper .phone-frame {
    position: relative;
    z-index: 2;
    margin: 0 !important;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Fade out on interaction */
.phone-glow-wrapper.glow-off::before {
    opacity: 0;
    animation-play-state: paused;
}


/* ============================================================
   PRODUCT COMMENT INPUT — inside product detail bottom sheet
   ============================================================ */
.comment-group {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 0.75rem;
}
.comment-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
    display: block;
}
.comment-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.7rem;
    font-family: var(--font-body);
    padding: 0.5rem 0.6rem;
    resize: none;
    outline: none;
    transition: border-color 0.25s ease;
    line-height: 1.4;
}
.comment-input::placeholder {
    color: var(--text-muted);
}
.comment-input:focus {
    border-color: var(--border-color-focus);
    background: rgba(234, 88, 12, 0.06);
}

/* Cart comment badge shown inside cart item */
.cart-item-comment {
    font-size: 0.58rem;
    color: var(--primary);
    font-style: italic;
    margin-top: 1px;
}

/* ================================================================
   ONBOARDING WIZARD — Post-payment restaurant configuration
   ================================================================ */
.onboarding-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(6, 7, 13, 0.97);
    backdrop-filter: blur(24px);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    animation: obFadeIn 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes obFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}
.onboarding-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.onboarding-left {
    display: flex;
    flex-direction: column;
    padding: 2.5rem 3rem;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.06);
}
.onboarding-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.onboarding-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}
.onboarding-welcome h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}
.ob-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.ob-sub #ob-active-plan { color: var(--primary); font-weight: 700; }

/* Onboarding Header Compact Grid */
.ob-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 0.85rem;
    align-items: stretch;
}
.ob-header-grid .onboarding-welcome {
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ob-header-grid .onboarding-welcome h2 {
    font-size: 0.95rem !important;
    margin-bottom: 0.15rem !important;
}
.ob-header-grid .onboarding-welcome .ob-sub {
    font-size: 0.68rem !important;
    margin-top: 0 !important;
}
.ob-header-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.45rem 0.65rem !important;
    font-size: 0.65rem !important;
    line-height: 1.35 !important;
    border-radius: 6px;
    margin-top: 0 !important;
    box-sizing: border-box;
}
.ob-header-alert.ob-warning {
    background: rgba(234, 88, 12, 0.06) !important;
    border: 1px solid rgba(234, 88, 12, 0.2) !important;
    color: #ea580c !important;
}
.ob-header-alert.ob-info {
    background: rgba(99, 102, 241, 0.06) !important;
    border: 1px dashed rgba(99, 102, 241, 0.2) !important;
    color: #a5b4fc !important;
}
@media (max-width: 992px) {
    .ob-header-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Progress */
.ob-progress-bar-wrap { margin-bottom: 1.25rem; }
.ob-progress-track {
    height: 4px;
    background: rgba(255,255,255,0.07);
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.ob-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
    width: 0%;
}
.ob-steps-indicators {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}
.ob-step-dot {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    color: var(--text-muted);
    transition: color 0.3s;
    white-space: nowrap;
}
.ob-step-dot-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.58rem;
    font-weight: 700;
    transition: all 0.3s;
    flex-shrink: 0;
}
.ob-step-dot.active .ob-step-dot-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 12px var(--primary-glow);
}
.ob-step-dot.done .ob-step-dot-circle {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}
.ob-step-dot.active { color: var(--primary); font-weight: 600; }
.ob-step-sep { width: 14px; height: 1px; background: rgba(255,255,255,0.1); flex-shrink: 0; }

/* Step content */
.ob-step-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-bottom: 0.5rem;
}
.ob-step-panel { animation: obStepIn 0.3s ease; }
@keyframes obStepIn {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}
.ob-step-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ob-step-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
}

/* Form fields */
.ob-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}
.ob-form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}
.ob-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}
.ob-inline-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0.5rem;
    align-items: center;
}
@media (max-width: 576px) {
    .ob-form-row-2col, .ob-inline-row {
        grid-template-columns: 1fr;
    }
}
.ob-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.ob-form-grid.single { grid-template-columns: 1fr; }
.ob-field { display: flex; flex-direction: column; gap: 0.4rem; }
.ob-field.span-2 { grid-column: span 2; }
.ob-label { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.ob-input, .ob-textarea, .ob-select {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-body);
    padding: 0.5rem 0.7rem;
    outline: none;
    transition: border-color 0.25s, background 0.25s;
    width: 100%;
}
.ob-textarea { resize: vertical; min-height: 80px; }
.ob-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2rem;
}
.ob-input:focus, .ob-textarea:focus, .ob-select:focus {
    border-color: var(--primary);
    background: rgba(234, 88, 12, 0.06);
}
.ob-input::placeholder, .ob-textarea::placeholder { color: var(--text-muted); }

/* Image upload */
.ob-upload-area {
    border: 2px dashed rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s;
    position: relative;
    overflow: hidden;
}
.ob-upload-area:hover { border-color: var(--primary); background: rgba(234, 88, 12, 0.05); }
.ob-upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ob-upload-icon { font-size: 2rem; margin-bottom: 0.4rem; display: block; }
.ob-upload-text { font-size: 0.78rem; color: var(--text-secondary); }
.ob-upload-text strong { color: var(--primary); }
.ob-upload-preview { width: 100%; max-height: 110px; object-fit: cover; border-radius: 6px; margin-top: 0.5rem; display: none; }

/* Menu builder */
.ob-limit-bar {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
}
.ob-limit-text { color: var(--text-secondary); }
.ob-limit-text span { color: var(--primary); font-weight: 700; }
.ob-cats-scroller {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    margin-bottom: 0.75rem;
    scrollbar-width: none;
}
.ob-cats-scroller::-webkit-scrollbar { display: none; }
.ob-cat-chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}
.ob-cat-chip.active {
    background: rgba(234, 88, 12, 0.2);
    border-color: rgba(234, 88, 12, 0.5);
    color: var(--primary);
}
.ob-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    max-height: 230px;
    overflow-y: auto;
    padding-right: 2px;
}
.ob-menu-item-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: obItemIn 0.25s ease;
}
@keyframes obItemIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ob-menu-item-info { display: flex; flex-direction: column; flex-grow: 1; }
.ob-menu-item-name { font-size: 0.8rem; font-weight: 600; color: white; }
.ob-menu-item-cat { font-size: 0.62rem; color: var(--text-muted); }
.ob-menu-item-price { font-size: 0.8rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.ob-btn-remove-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.ob-btn-remove-item:hover { color: var(--danger); background: rgba(239,68,68,0.1); }

.ob-add-item-form {
    background: rgba(234, 88, 12, 0.05);
    border: 1px solid rgba(234, 88, 12, 0.18);
    border-radius: 10px;
    padding: 0.85rem;
    margin-top: 0.25rem;
}
.ob-add-item-form .ob-form-grid { grid-template-columns: 2fr 1fr 1fr; gap: 0.5rem; }
.ob-btn-add-product {
    background: rgba(234, 88, 12, 0.12);
    border: 1px dashed rgba(234, 88, 12, 0.4);
    color: var(--primary);
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}
.ob-btn-add-product:hover { background: rgba(234, 88, 12, 0.22); border-color: var(--primary); }

/* Hours */
.ob-hours-grid { display: flex; flex-direction: column; gap: 0.4rem; }
.ob-hours-row {
    display: grid;
    grid-template-columns: 105px 1fr 1fr auto;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    transition: opacity 0.2s;
}
.ob-hours-row.closed { opacity: 0.38; }
.ob-hours-day { font-size: 0.78rem; font-weight: 600; color: white; }
.ob-hours-toggle {
    width: 36px;
    height: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
    transition: background 0.2s;
}
.ob-hours-toggle.on { background: var(--accent); }
.ob-hours-toggle::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: left 0.2s;
}
.ob-hours-toggle.on::after { left: 19px; }

/* Delivery zones */
.ob-zones-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; min-height: 32px; }
.ob-zone-tag {
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.3);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: obItemIn 0.2s ease;
}
.ob-zone-tag button { background: transparent; border: none; color: var(--accent); cursor: pointer; font-size: 0.6rem; opacity: 0.7; padding: 0; }
.ob-zone-tag button:hover { opacity: 1; }
.ob-zone-input-row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.ob-zone-input-row .ob-input { flex-grow: 1; }
.ob-btn-add-zone {
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.3);
    color: var(--accent);
    padding: 0 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}
.ob-btn-add-zone:hover { background: rgba(16,185,129,0.22); }

/* Social */
.ob-social-list { display: flex; flex-direction: column; gap: 0.65rem; }
.ob-social-row { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 0.65rem; }
.ob-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.ob-social-icon.wa  { background: rgba(37,211,102,0.15); }
.ob-social-icon.ig  { background: rgba(225,48,108,0.15); }
.ob-social-icon.fb  { background: rgba(24,119,242,0.15); }
.ob-social-icon.web { background: rgba(139,92,246,0.15); }

/* Lock overlay for premium features */
.ob-locked-field { position: relative; }
.ob-locked-field .ob-input,
.ob-locked-field .ob-textarea,
.ob-locked-field .ob-upload-area {
    opacity: 0.35;
    pointer-events: none;
    filter: blur(2px);
}
.ob-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(6,7,13,0.55);
    border-radius: 8px;
    border: 1px solid rgba(234, 88, 12, 0.3);
    z-index: 2;
}
.ob-lock-badge {
    background: rgba(234, 88, 12, 0.2);
    border: 1px solid rgba(234, 88, 12, 0.4);
    color: var(--primary);
    font-size: 0.63rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Nav */
.ob-nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 1rem;
    flex-shrink: 0;
}
.ob-nav #ob-btn-next, .ob-nav #ob-btn-finish { flex-grow: 1; }
.ob-hidden { display: none !important; }

/* Right panel */
.onboarding-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: rgba(255,255,255,0.012);
}
.ob-preview-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ob-phone-frame {
    width: 230px;
    height: 460px;
    background: #0f1016;
    border: 7px solid #272935;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 25px rgba(139,92,246,0.1);
    position: relative;
    overflow: hidden;
}
.ob-phone-notch {
    width: 80px;
    height: 12px;
    background: #272935;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 10;
}
.ob-phone-screen {
    width: 100%;
    height: 100%;
    background: #0f1015;
    border-radius: 21px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
.ob-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1.5rem;
    text-align: center;
    gap: 0.6rem;
}
.ob-preview-placeholder p { font-size: 0.63rem; color: rgba(255,255,255,0.18); line-height: 1.4; }
.ob-preview-note { font-size: 0.68rem; color: var(--text-muted); text-align: center; }

/* Live preview elements inside mini phone */
.ob-preview-banner-placeholder {
    width: 100%;
    height: 65px;
    background: linear-gradient(135deg, rgba(139,92,246,0.35), rgba(99,102,241,0.35));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.ob-preview-banner {
    width: 100%;
    height: 65px;
    object-fit: cover;
    flex-shrink: 0;
}
.ob-preview-info {
    padding: 0.45rem 0.55rem 0.35rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.ob-preview-name { font-size: 0.72rem; font-weight: 700; color: white; }
.ob-preview-meta { font-size: 0.52rem; color: var(--text-muted); margin-top: 1px; }
.ob-preview-cats {
    display: flex;
    gap: 0.3rem;
    padding: 0.35rem 0.55rem;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}
.ob-preview-cats::-webkit-scrollbar {
    display: none;
}
.ob-preview-cat {
    font-size: 0.52rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    background: var(--primary-glow);
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}
.ob-preview-products {
    padding: 0 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow-y: hidden;
    flex-grow: 1;
}
.ob-preview-product-card {
    background: rgba(255,255,255,0.03);
    border-radius: 5px;
    padding: 0.35rem 0.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.3rem;
}
.ob-preview-prod-name { font-size: 0.57rem; font-weight: 600; color: white; flex-grow: 1; }
.ob-preview-prod-price { font-size: 0.57rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.ob-preview-hours-badge {
    font-size: 0.52rem;
    background: rgba(16,185,129,0.15);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    margin: 0 0.55rem 0.35rem;
    display: inline-flex;
    align-self: flex-start;
}

/* Finish / success step */
.ob-success-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    gap: 1.5rem;
    padding: 2rem;
    animation: obFadeIn 0.5s ease;
}
.ob-success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 0 30px rgba(22,163,74,0.4);
    animation: obSuccessPop 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes obSuccessPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.ob-success-title { font-size: 1.6rem; font-weight: 800; color: white; }
.ob-success-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; max-width: 500px; }
.ob-success-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
    .onboarding-container { grid-template-columns: 1fr; }
    .onboarding-right { display: none; }
    .onboarding-left { padding: 1.5rem; }
}

/* Promotional Carousel Styling */
.promo-dots {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
    z-index: 5;
}
.promo-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.promo-dot.active {
    background: var(--accent);
    width: 12px;
    border-radius: 3px;
}

/* Branch Selector Overlay for Multi-Branch Selection */
.branch-selector-overlay {
    position: absolute;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 11, 20, 0.85);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.4s ease-out;
}

.branch-selector-container {
    width: 100%;
    max-width: 320px;
    background: rgba(20, 22, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
}

.branch-selector-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    margin: 0;
}

.branch-selector-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: -0.5rem 0 0.5rem 0;
}

.branch-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 2px;
}

/* Glassmorphic Branch Cards */
.branch-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
}

.branch-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.branch-card:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.15);
}

.branch-card:hover::before {
    opacity: 1;
}

.branch-card-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.branch-card-address {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.branch-card-details {
    margin-top: 0.35rem;
    display: flex;
    gap: 12px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.branch-card-details span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ============================================================
   THEME AND VISUAL APPEARANCE STYLES (5 DARK GRADIENTS)
   ============================================================ */

/* Themes Definitions */
.theme-sleek-obsidian {
    --bg-gradient: linear-gradient(180deg, #0b0c14 0%, #06070d 100%);
    --theme-accent: #8b5cf6;
    --theme-accent-hover: #7c3aed;
    --theme-accent-glow: rgba(139, 92, 246, 0.3);
}

.theme-neon-amethyst {
    --bg-gradient: linear-gradient(180deg, #120924 0%, #07030f 100%);
    --theme-accent: #c084fc;
    --theme-accent-hover: #a855f7;
    --theme-accent-glow: rgba(192, 132, 252, 0.3);
}

.theme-sunset-glow {
    --bg-gradient: linear-gradient(180deg, #1c0f0a 0%, #0c0705 100%);
    --theme-accent: #f59e0b;
    --theme-accent-hover: #d97706;
    --theme-accent-glow: rgba(245, 158, 11, 0.3);
}

.theme-emerald-forest {
    --bg-gradient: linear-gradient(180deg, #071711 0%, #030a07 100%);
    --theme-accent: #34d399;
    --theme-accent-hover: #10b981;
    --theme-accent-glow: rgba(52, 211, 153, 0.3);
}

.theme-crimson-velvet {
    --bg-gradient: linear-gradient(180deg, #1c0a0c 0%, #0c0405 100%);
    --theme-accent: #f87171;
    --theme-accent-hover: #ef4444;
    --theme-accent-glow: rgba(248, 113, 113, 0.3);
}

/* Core Phone Container Background and Accent Color Cascading */
.phone-screen, .ob-phone-screen {
    background: var(--bg-gradient, #0f1015) !important;
    transition: background 0.5s ease;
    
    /* Override local color variables dynamically */
    --primary: var(--theme-accent, #8b5cf6);
    --primary-hover: var(--theme-accent-hover, #7c3aed);
    --primary-glow: var(--theme-accent-glow, rgba(139, 92, 246, 0.3));
    
    --accent: var(--theme-accent, #10b981);
    --accent-hover: var(--theme-accent-hover, #059669);
    --accent-glow: var(--theme-accent-glow, rgba(16, 185, 129, 0.2));
}

.restaurant-app, 
.ob-preview-placeholder {
    position: relative;
    z-index: 2;
}

/* Tech Grid Overlay */
.tech-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-size: 20px 20px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.tech-grid-overlay.active {
    opacity: 1;
}

/* Ambient Floating Mesh Glows */
.ambient-glow-wrapper {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.ambient-glow-wrapper.active {
    opacity: 0.65;
}
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(45px);
    opacity: 0.22;
}
.ambient-glow-1 {
    width: 140px;
    height: 140px;
    background: var(--theme-accent, var(--primary));
    top: -20px;
    left: -20px;
    animation: floatGlow1 16s ease-in-out infinite alternate;
}
.ambient-glow-2 {
    width: 160px;
    height: 160px;
    background: var(--secondary);
    bottom: -30px;
    right: -30px;
    animation: floatGlow2 20s ease-in-out infinite alternate;
}

@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(45px, 25px) scale(1.1); }
    100% { transform: translate(-15px, 45px) scale(0.9); }
}

@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, -35px) scale(0.95); }
    100% { transform: translate(15px, -15px) scale(1.1); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

/* ======================== METRICS DASHBOARD ======================== */

.metrics-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 11, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.metrics-modal.open {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metrics-container {
    width: 100%;
    max-width: 1100px;
    padding: 2rem 1.5rem;
    margin: 0 auto;
}

.metrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.metrics-header h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metrics-period-bar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.metrics-period-bar label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.metrics-period-bar select,
.metrics-period-bar input[type='date'] {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-body);
    outline: none;
    cursor: pointer;
}

.metrics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metrics-kpi-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.metrics-kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.25);
}

.metrics-kpi-card .kpi-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metrics-kpi-card .kpi-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-heading);
}

.metrics-kpi-card .kpi-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.metrics-kpi-card .kpi-icon {
    font-size: 1.3rem;
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    opacity: 0.5;
}

.metrics-charts-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metrics-chart-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.metrics-chart-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.metrics-chart-card canvas {
    width: 100%;
    height: 220px;
    max-height: 220px;
}

.metrics-full-chart {
    grid-column: 1 / -1;
}

.metrics-tables-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metrics-table-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.metrics-table-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.metrics-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.metrics-mini-table th {
    text-align: left;
    padding: 0.45rem 0.6rem;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.metrics-mini-table td {
    padding: 0.45rem 0.6rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.metrics-mini-table tr:hover td {
    background: rgba(139, 92, 246, 0.05);
}

.metrics-client-section {
    width: 100%;
    margin-bottom: 1.5rem;
}

.metrics-export-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.5rem;
}

.btn-export-excel {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border: none;
    color: white;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.25);
}

.btn-export-excel:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
}

.btn-close-metrics {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.btn-close-metrics:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.metrics-legend {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.4rem;
}

.metrics-legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    color: var(--text-secondary);
}

.metrics-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Metrics Dashboard — Responsive */
@media (max-width: 768px) {
    .metrics-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .metrics-charts-row {
        grid-template-columns: 1fr;
    }
    .metrics-tables-row {
        grid-template-columns: 1fr;
    }
    .metrics-container {
        padding: 1rem;
    }
    .metrics-period-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .metrics-kpi-grid {
        grid-template-columns: 1fr;
    }
    .metrics-kpi-card .kpi-value {
        font-size: 1.3rem;
    }
}

/* --- Metrics Login Card --- */
.metrics-login-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.2rem 2rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
}

.metrics-demo-accounts {
    background: rgba(234, 88, 12, 0.05);
    border: 1px solid rgba(234, 88, 12, 0.15);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

.metrics-demo-accounts strong {
    color: white;
    display: block;
    margin-bottom: 0.35rem;
}

.metrics-demo-accounts code {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.1rem 0.25rem;
    border-radius: 4px;
    font-size: 0.72rem;
}

/* Color Helpers */
.text-green {
    color: var(--accent) !important;
}

/* ======================== CONVERSION IMPROVEMENTS ======================== */

/* --- Hero Trial Banner --- */
.hero-trial-banner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.12) 0%, rgba(22, 163, 74, 0.06) 100%);
    border: 1px solid rgba(22, 163, 74, 0.35);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.trial-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.hero-trial-banner div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}
.hero-trial-banner strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: #4ade80;
    font-family: var(--font-heading);
}
.hero-trial-banner span {
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.trial-cta-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    background: rgba(22, 163, 74, 0.15);
    border-radius: 6px;
    border: 1px solid rgba(22, 163, 74, 0.3);
    transition: var(--transition);
    flex-shrink: 0;
}
.trial-cta-link:hover {
    background: rgba(22, 163, 74, 0.25);
    transform: translateX(2px);
}

/* --- WhatsApp CTA Button (Hero) --- */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}
.btn-whatsapp:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
    color: white;
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}
.testimonials-header {
    text-align: center;
    margin-bottom: 1rem;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    backdrop-filter: var(--glass-blur);
    transition: var(--transition);
    position: relative;
}
.testimonial-card:hover {
    border-color: rgba(234, 88, 12, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.testimonial-card--featured {
    border-color: rgba(234, 88, 12, 0.4);
    background: rgba(234, 88, 12, 0.05);
    box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.15), 0 8px 32px rgba(0,0,0,0.3);
    transform: translateY(-6px) scale(1.01);
}
.testimonial-card--featured::before {
    content: "⭐ Destacado";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}
.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
}
.testimonial-text {
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.65;
    font-style: italic;
    flex-grow: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(234, 88, 12, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.testimonial-name {
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--text-primary);
}
.testimonial-biz {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1px;
}
.testimonial-wa-proof {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    color: var(--accent);
    font-weight: 600;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
}

/* --- Floating WhatsApp Button --- */
.floating-whatsapp {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #16a34a;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-body);
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.5), 0 0 0 0 rgba(22, 163, 74, 0.5);
    transition: all 0.3s ease;
    animation: whatsappPulse 2.5s infinite;
}
.floating-whatsapp:hover {
    background: #15803d;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(22, 163, 74, 0.6);
    color: white;
}
.floating-whatsapp-label {
    white-space: nowrap;
}
@keyframes whatsappPulse {
    0% { box-shadow: 0 4px 20px rgba(22, 163, 74, 0.4), 0 0 0 0 rgba(22, 163, 74, 0.4); }
    70% { box-shadow: 0 4px 20px rgba(22, 163, 74, 0.4), 0 0 0 14px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 4px 20px rgba(22, 163, 74, 0.4), 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Responsive: Testimonials */
@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }
    .testimonial-card--featured {
        transform: none;
    }
}
@media (max-width: 600px) {
    .hero-trial-banner {
        flex-direction: column;
        text-align: center;
    }
    .floating-whatsapp-label {
        display: none;
    }
    .floating-whatsapp {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
    .testimonials-section {
        padding: 4rem 1rem;
    }
}

/* Validation error highlights for Onboarding fields */
.ob-input.ob-input-error, .ob-textarea.ob-input-error, .ob-select.ob-input-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.04) !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15) !important;
}

/* ======================== INTERACTIVE PREVIEW SIMULATOR ======================== */

/* Animations */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Category Chips in Preview */
.ob-preview-cat {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.ob-preview-cat:hover {
    opacity: 1 !important;
    transform: scale(1.05);
}
.ob-preview-cat.active {
    box-shadow: 0 2px 8px var(--theme-accent-glow, rgba(139, 92, 246, 0.3));
    transform: scale(1.03);
}

/* Product Cards in Preview */
.ob-preview-product-card {
    transition: all 0.2s ease;
}
.ob-preview-product-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Product Details Drawer styling overrides */
#ob-preview-detail-drawer {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#ob-preview-detail-drawer select,
#ob-preview-detail-drawer input[type="radio"],
#ob-preview-detail-drawer input[type="checkbox"] {
    cursor: pointer;
}

/* Socials Footer */
.ob-preview-socials-footer a {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Hover effects for brand specific social icons */
.ob-preview-socials-footer a[href*="instagram.com"]:hover {
    background: rgba(225, 48, 108, 0.15) !important;
    color: #e1306c !important;
    border-color: rgba(225, 48, 108, 0.3) !important;
    box-shadow: 0 0 10px rgba(225, 48, 108, 0.3);
}

.ob-preview-socials-footer a[href*="facebook.com"]:hover {
    background: rgba(24, 119, 242, 0.15) !important;
    color: #1877f2 !important;
    border-color: rgba(24, 119, 242, 0.3) !important;
    box-shadow: 0 0 10px rgba(24, 119, 242, 0.3);
}

.ob-preview-socials-footer a[href*="tiktok.com"]:hover {
    background: rgba(0, 0, 0, 0.4) !important;
    color: #00f2fe !important; /* TikTok cyan */
    border-color: rgba(255, 0, 80, 0.3) !important; /* TikTok magenta */
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.ob-preview-socials-footer a:not([href*="instagram.com"]):not([href*="facebook.com"]):not([href*="tiktok.com"]):hover {
    background: var(--primary-glow) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Scrollbar customizations inside the simulator phone screen */
.ob-phone-screen *::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}
.ob-phone-screen *::-webkit-scrollbar-track {
    background: transparent;
}
.ob-phone-screen *::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.ob-phone-screen *::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ob-phone-screen input.ob-input-error,
.ob-phone-screen textarea.ob-input-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.04) !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15) !important;
}

/* ======================== CUSTOMER MENU MODE (WHITE-LABEL MOBILE OPTIMIZATION) ======================== */
body.customer-menu-mode {
    background: #06070d;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

body.customer-menu-mode .main-header,
body.customer-menu-mode .hero-info,
body.customer-menu-mode #beneficios,
body.customer-menu-mode #testimonios,
body.customer-menu-mode #planes-section,
body.customer-menu-mode .main-footer,
body.customer-menu-mode #demo-pointer {
    display: none !important;
}

body.customer-menu-mode .main-content {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.customer-menu-mode .hero-split-section {
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    min-height: 100vh;
}

body.customer-menu-mode .simulator-wrapper {
    width: 100%;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    background: #08090f; /* Dark background for desktop sides */
    display: flex;
    justify-content: center;
    align-items: stretch;
}

body.customer-menu-mode .phone-glow-wrapper {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

body.customer-menu-mode .phone-glow-wrapper::before,
body.customer-menu-mode .phone-glow-wrapper::after {
    display: none !important;
}

body.customer-menu-mode .phone-frame {
    width: 100% !important;
    height: 100vh !important;
    max-width: 480px !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

body.customer-menu-mode .phone-notch {
    display: none !important;
}

body.customer-menu-mode .phone-screen {
    border-radius: 0 !important;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   MENU STANDALONE — Estilos para menu.html (modo app nativa)
   ============================================================ */

/* Success screen inside standalone menu */
body.menu-standalone .phone-success-screen {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: var(--bg-primary, #0a0b14);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    gap: 1rem;
}

body.menu-standalone .phone-success-screen.active {
    display: flex;
}

body.menu-standalone .phone-success-screen h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    margin-top: 0.5rem;
}

body.menu-standalone .phone-success-screen p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 280px;
    line-height: 1.5;
}

/* Categories scroll without clip on standalone */
body.menu-standalone .menu-categories {
    padding: 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

body.menu-standalone .menu-categories::-webkit-scrollbar {
    display: none;
}

/* Products section padding */
body.menu-standalone .products-section {
    padding: 0 12px 100px 12px; /* bottom pad for floating cart */
}

/* Floating cart stays above content properly */
body.menu-standalone .floating-cart-bar {
    position: fixed;
    bottom: env(safe-area-inset-bottom, 1rem);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 448px;
    z-index: 200;
    margin-bottom: 0;
}

/* Bottom sheets need fixed positioning */
body.menu-standalone .bottom-sheet {
    position: fixed;
}

/* Standalone: ensure body doesn't double-clip */
body.menu-standalone {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile: no outer bg visible, 100% viewport */
@media (max-width: 480px) {
    body.menu-standalone .restaurant-app {
        max-width: 100%;
    }

    body.menu-standalone .floating-cart-bar {
        width: calc(100% - 1.5rem);
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ======================== EXPIRACIÓN DE PRUEBA Y PLANES ======================== */
.expired-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
    width: 100%;
}

.expired-plan-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.expired-plan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(234, 88, 12, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.expired-plan-card.featured {
    background: rgba(234, 88, 12, 0.03);
    border: 2px solid var(--primary);
    box-shadow: 0 8px 30px rgba(234, 88, 12, 0.15);
}

.expired-plan-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    margin: 0.5rem 0 0.25rem 0;
    font-family: var(--font-heading);
}

.plan-header-badge {
    position: absolute;
    top: -0.6rem;
    left: 1rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.plan-header-badge.popular {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
}

.plan-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
    margin: 0.5rem 0 1rem 0;
    font-family: var(--font-heading);
}

.plan-price span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.72rem;
    color: var(--text-primary);
    text-align: left;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    line-height: 1.3;
}

.plan-features li span {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.plan-features li.disabled-feat {
    color: var(--text-muted);
}

.plan-features li.limit-feat {
    color: #ea580c;
    font-weight: 600;
}

@media (max-width: 768px) {
    .expired-plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ======================== REDISEÑO DE PASARELA Y FACTURACIÓN MULTI-MES ======================== */

.billing-period-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 3px;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.billing-period-tab {
    flex: 1;
    background: none;
    border: none;
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.45rem 0.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    outline: none;
}

.billing-period-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.04);
}

.billing-period-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.35);
}

.billing-period-tab .tab-discount {
    font-size: 0.58rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 800;
}

.billing-period-tab.active .tab-discount {
    background: white;
    color: var(--primary);
}

.trust-badges-container {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02) !important;
}

.trust-badge-item {
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}

.trust-badge-item:hover {
    transform: translateY(-1px);
    opacity: 1;
}

.secure-alert-banner {
    animation: securePulseGlow 3s infinite;
}

@keyframes securePulseGlow {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.4)); }
}

/* ======================== INTERACTIVE MAPS (LEAFLET) DESIGN OVERRIDES ======================== */

#ob-delivery-map, #checkout-map {
    width: 100%;
    background: #0b0d16 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Custom dark theme adjustments for Leaflet controls */
.leaflet-container {
    font-family: inherit !important;
}

.leaflet-bar {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4) !important;
}

.leaflet-bar a {
    background-color: #1a1d30 !important;
    color: white !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: background-color 0.2s ease;
}

.leaflet-bar a:hover {
    background-color: var(--primary) !important;
    color: white !important;
}

.leaflet-bar a.leaflet-disabled {
    background-color: #111320 !important;
    color: rgba(255, 255, 255, 0.2) !important;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: #111320 !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.leaflet-popup-content {
    font-size: 0.72rem !important;
    font-weight: 600;
}

/* ======================== EXPANDABLE MAP ENHANCEMENTS ======================== */

/* Wrapper that holds the map + overlay controls */
.map-expandable-wrap {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.map-expandable-wrap .leaflet-container {
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.map-expandable-wrap.expanded .leaflet-container {
    cursor: grab;
}

/* "Click to expand" hint overlay */
.map-expand-hint {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 11, 20, 0.75);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.58rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 800;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.map-expandable-wrap.expanded .map-expand-hint {
    opacity: 0;
    pointer-events: none;
}

/* Custom zoom controls */
.map-custom-zoom {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 800;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.map-expandable-wrap.expanded .map-custom-zoom {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.map-custom-zoom button {
    width: 28px;
    height: 28px;
    background: rgba(10, 11, 20, 0.8);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    line-height: 1;
    padding: 0;
}

.map-custom-zoom button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Confirm location button */
.map-confirm-btn {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--primary);
    color: white;
    border: none;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 800;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.map-expandable-wrap.expanded .map-confirm-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.map-confirm-btn:hover {
    filter: brightness(1.15);
}

/* ======================== ONBOARDING RESPONSIVE STYLES (MOBILE-FIRST) ======================== */

.ob-btn-toggle-preview {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.7rem 1.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    display: none; /* Visible only on mobile (<850px) */
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.45);
    cursor: pointer;
    z-index: 10008;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--font-body);
}

.ob-btn-toggle-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.55);
}

.ob-btn-close-preview {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: none; /* Visible only on mobile overlay */
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    z-index: 10012;
    transition: background 0.2s;
    outline: none;
    padding: 0;
}

.ob-btn-close-preview:hover {
    background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 850px) {
    .onboarding-container {
        grid-template-columns: 1fr !important;
        position: relative;
    }
    .onboarding-left {
        border-right: none !important;
        padding: 1.5rem 1.25rem 5rem 1.25rem !important; /* Extra bottom padding for floating toggle */
    }
    .onboarding-right {
        position: fixed !important;
        inset: 0 !important;
        z-index: 10010 !important;
        background: rgba(10, 11, 20, 0.98) !important;
        display: none !important; /* Managed by JS Class .open */
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 2.5rem 1rem 1rem 1rem !important;
        box-sizing: border-box !important;
    }
    .onboarding-right.open {
        display: flex !important;
    }
    .ob-btn-toggle-preview {
        display: flex !important;
    }
    .ob-btn-close-preview {
        display: flex !important;
    }
    .ob-preview-note {
        margin-top: 0.5rem;
    }
    /* Fixed navigation buttons on mobile */
    .ob-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(10, 11, 20, 0.9);
        backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding: 0.85rem 1.25rem;
        z-index: 10006;
        margin: 0 !important;
    }
}

/* ======================== STOREFRONT DYNAMIC CATEGORY GRID & SUBPAGE NAVIGATION ======================== */

.category-selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
}

.category-grid-btn {
    background: #191b26;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px 8px;
    color: white;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-grid-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(234, 88, 12, 0.45);
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.15);
}

.category-grid-btn .cat-icon {
    font-size: 1.5rem;
}

/* Onboarding Preview Phone Category Grid */
.ob-preview-cats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px 10px;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 100%;
}

.ob-preview-cat-grid-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
    color: white;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-heading);
}

.ob-preview-cat-grid-btn:hover {
    border-color: var(--primary);
    background: rgba(234, 88, 12, 0.1);
}

/* Subpage Detail Header */
.category-detail-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 12px 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.75rem;
}

.category-detail-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    margin: 0;
}

.btn-back-to-categories {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    outline: none;
    width: 100%;
}

.btn-back-to-categories:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}


