/* --- BASE VARIABLES --- */
:root {
    --primary-color: #d4af37;
    --bg-color: #121212;
    --card-bg: rgba(30, 30, 30, 0.95);
    --text-color: #fff;
    --radius: 16px;
}

#nx-barber-client-app {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    max-width: 500px; /* Mobile width default */
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

/* Glass Card */
.nx-client-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

/* Header */
.nx-client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* --- MOBILE FIRST GRIDS --- */
/* Services: Stack on mobile, grid on larger */
#services-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to 1 col (Mobile) */
    gap: 12px;
}

/* Time Slots: 3 cols on mobile, 4 on desktop */
.nx-time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

/* Inputs & Buttons */
.nx-client-input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 16px; /* Prevents zoom on iPhone */
}

.button {
    width: 100%;
    padding: 16px; /* Fat finger friendly */
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.button-primary {
    background: var(--primary-color);
    color: #000;
}

.button-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Payment Selector (New) */
.nx-payment-option {
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.nx-payment-option.selected {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
}

/* RTL Support */
.rtl { direction: rtl; }
.rtl .nx-client-header { flex-direction: row-reverse; }

/* Desktop Enhancements */
@media (min-width: 768px) {
    #nx-barber-client-app { max-width: 800px; }
    #services-grid { grid-template-columns: repeat(2, 1fr); }
    .nx-time-grid { grid-template-columns: repeat(5, 1fr); }
}