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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    background: #F5F5F7;
    color: #1D1D1F;
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: #1D1D1F; text-decoration: none; }

/* Layout */
.container {
    max-width: 540px;
    margin: 0 auto;
    padding: 0 20px 56px;
}

/* Header */
.site-header {
    text-align: center;
    padding: 52px 20px 20px;
}
.site-header img.logo {
    width: 92px;
    height: 92px;
    display: block;
    margin: 0 auto 22px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 24px rgba(0,0,0,.13);
}
.site-subtitle {
    font-size: 1rem;
    color: #6E6E73;
    line-height: 1.7;
    max-width: 360px;
    margin: 0 auto;
    font-weight: 400;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .88rem;
    font-weight: 500;
    color: #6E6E73;
    text-decoration: none;
    margin-top: 20px;
    padding: 6px 0;
    transition: color .15s;
}
.back-link:hover { color: #1D1D1F; }

/* Event Cards */
.event-list { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }

.event-card {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE8A8 100%);
    border-radius: 18px;
    padding: 22px 24px;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease;
    display: block;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(191,154,63,.35);
}
.event-card-soldout {
    opacity: .55;
    cursor: default;
}
.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(191,154,63,.15);
    text-decoration: none;
}
.event-card-title {
    font-size: 1.12rem;
    font-weight: 600;
    color: #1D1D1F;
    margin-bottom: 6px;
    letter-spacing: -.01em;
}
.event-card-date {
    font-size: .92rem;
    color: #6E6E73;
    margin-bottom: 14px;
    font-weight: 400;
}
.event-card-meta {
    display: flex;
    gap: 7px;
    font-size: .82rem;
}
.event-card-meta span {
    background: rgba(191,154,63,.1);
    color: #6E6E73;
    padding: 4px 11px;
    border-radius: 20px;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 72px 16px;
    color: #8E8E93;
    font-size: .97rem;
}

/* Booking Steps */
.booking-header {
    text-align: center;
    padding: 36px 0 14px;
}
.booking-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1D1D1F;
    letter-spacing: -.025em;
}
.booking-date {
    font-size: .95rem;
    color: #6E6E73;
    margin-top: 6px;
    font-weight: 400;
}

.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 22px 0 30px;
}
.step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D2D2D7;
    transition: all .28s cubic-bezier(.4,0,.2,1);
}
.step-dot.active { background: #1D1D1F; width: 22px; border-radius: 3px; }
.step-dot.done   { background: #1D1D1F; opacity: .25; }

.step { display: none; }
.step.active { display: block; }

.step-title {
    font-size: .75rem;
    font-weight: 700;
    color: #8E8E93;
    text-transform: uppercase;
    letter-spacing: .09em;
    margin-bottom: 18px;
}

/* Time Slots */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 28px;
}
.slot-btn {
    padding: 12px 6px;
    border: 1.5px solid #28A745;
    background: #34C759;
    border-radius: 13px;
    font-size: .97rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all .18s ease;
    font-family: inherit;
    letter-spacing: -.01em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.slot-btn:hover:not(:disabled) {
    background: #28A745;
    border-color: #1E7E34;
}
.slot-btn.selected {
    background: #1D1D1F;
    border-color: #1D1D1F;
    color: #fff;
}
.slot-btn:disabled {
    border-color: #D1D1D6;
    color: #8E8E93;
    background: #E5E5EA;
    cursor: not-allowed;
    text-decoration: none;
}
.slot-owner {
    display: block;
    font-size: .52rem;
    font-weight: 400;
    color: #6D6D72;
    margin-top: 5px;
    line-height: 1.1;
    letter-spacing: .01em;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    color: #8E8E93;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 8px;
}
.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #E5E5EA;
    border-radius: 13px;
    font-size: 1rem;
    background: #fff;
    outline: none;
    transition: border-color .2s;
    color: #1D1D1F;
    font-family: inherit;
}
.form-group input:focus { border-color: #1D1D1F; }
.form-group input::placeholder { color: #C7C7CC; }
#customer_name { text-transform: uppercase; }

/* Pizza Cards */
.pizza-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }

.pizza-card {
    background: #fff;
    border-radius: 15px;
    border: 1.5px solid #E5E5EA;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color .18s;
}
.pizza-info { flex: 1; min-width: 0; }
.pizza-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1D1D1F;
    letter-spacing: -.01em;
}
.pizza-desc {
    font-size: .85rem;
    color: #8E8E93;
    margin: 4px 0;
    line-height: 1.55;
}
.pizza-price {
    font-size: .92rem;
    font-weight: 600;
    color: #BF9A3F;
    margin-top: 4px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #D2D2D7;
    background: #fff;
    color: #1D1D1F;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    font-family: inherit;
    line-height: 1;
}
.qty-btn:hover { border-color: #1D1D1F; background: #F5F5F7; }
.qty-btn:disabled { border-color: #E5E5EA; color: #C7C7CC; cursor: not-allowed; background: #fff; }
.qty-display {
    font-size: 1rem;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    color: #1D1D1F;
}

.total-bar {
    background: #1D1D1F;
    border-radius: 15px;
    padding: 17px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.total-label {
    font-size: .82rem;
    color: rgba(255,255,255,.5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.total-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.01em;
}

.max-warning {
    font-size: .78rem;
    color: #FF3B30;
    text-align: center;
    margin-bottom: 10px;
    display: none;
    font-weight: 500;
}

/* Summary / Step 4 */
.summary-section { margin-bottom: 24px; }
.summary-section h3 {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #8E8E93;
    font-weight: 700;
    margin-bottom: 12px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: .97rem;
    padding: 12px 0;
    border-bottom: 1px solid #F2F2F7;
}
.summary-row:last-child { border: none; }
.summary-row .label { color: #8E8E93; }
.summary-row .value { font-weight: 600; color: #1D1D1F; }

.iban-box {
    background: #F5F5F7;
    border-radius: 15px;
    padding: 18px 20px;
    margin-bottom: 16px;
    border: 1px solid #E5E5EA;
}
.iban-box .iban-label {
    font-size: .72rem;
    color: #8E8E93;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    margin-bottom: 7px;
}
.iban-box .iban-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1D1D1F;
    word-break: break-all;
    letter-spacing: .02em;
}
.iban-box .iban-name {
    font-size: .9rem;
    color: #6E6E73;
    margin-top: 7px;
}

.order-id-box {
    background: #1D1D1F;
    border-radius: 18px;
    padding: 22px 20px;
    text-align: center;
    color: #fff;
    margin-bottom: 26px;
}
.order-id-box .oid-label {
    font-size: .72rem;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    margin-bottom: 8px;
}
.order-id-box .oid-value {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: #fff;
}
.order-id-box .oid-hint {
    font-size: .77rem;
    color: rgba(255,255,255,.38);
    margin-top: 7px;
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .18s, transform .12s;
    text-align: center;
    font-family: inherit;
    letter-spacing: -.01em;
}
.btn:active { transform: scale(.985); opacity: .8; }
.btn-primary { background: #1D1D1F; color: #fff; }
.btn-primary:hover { opacity: .82; }
.btn-primary:disabled { background: #C7C7CC; cursor: not-allowed; transform: none; opacity: 1; }
.btn-secondary {
    background: transparent;
    border: 1.5px solid #D2D2D7;
    color: #1D1D1F;
    margin-top: 10px;
}
.btn-secondary:hover { background: #F5F5F7; border-color: #AEAEB2; }

/* Success Page */
.success-page {
    text-align: center;
    padding: 52px 0;
}
.success-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}
.success-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #1D1D1F;
    margin-bottom: 10px;
    letter-spacing: -.025em;
}
.success-subtitle {
    font-size: .95rem;
    color: #6E6E73;
    margin-bottom: 36px;
    line-height: 1.8;
}
.info-card {
    background: #fff;
    border-radius: 17px;
    border: 1px solid #E5E5EA;
    padding: 4px 20px;
    text-align: left;
    margin-bottom: 14px;
}
.info-card-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #F2F2F7;
    font-size: .95rem;
    gap: 12px;
}
.info-card-row:last-child { border: none; }
.info-card-row .lbl { color: #8E8E93; flex-shrink: 0; }
.info-card-row .val { font-weight: 600; color: #1D1D1F; text-align: right; }
.payment-note {
    background: #F5F5F7;
    border-radius: 13px;
    padding: 16px 18px;
    font-size: .9rem;
    color: #6E6E73;
    line-height: 1.75;
    text-align: left;
}

@media (max-width: 400px) {
    .slots-grid { grid-template-columns: repeat(2, 1fr); }
    .site-header { padding-top: 36px; }
}

/* Copy Card (success.php) */
.copy-card {
    background: #1D1D1F;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
}
.copy-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
}
.copy-divider { height: 1px; background: rgba(255,255,255,.1); margin: 0 20px; }
.copy-label {
    font-size: .72rem;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    margin-bottom: 6px;
}
.copy-value {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: #fff;
    word-break: break-all;
}
.copy-value-iban {
    font-size: .97rem;
    letter-spacing: .03em;
    word-break: break-all;
    overflow-wrap: break-word;
}
.copy-hint { font-size: .75rem; color: rgba(255,255,255,.38); margin-top: 5px; }
.copy-btn {
    flex-shrink: 0;
    align-self: center;
    background: rgba(255,255,255,.12);
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    padding: 7px 14px;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.copy-btn:active { opacity: .7; }
.copy-btn.copied { background: #25D366; }

@media (max-width: 480px) {
    .copy-value { font-size: 1.15rem; }
    .copy-value-iban { font-size: .82rem; letter-spacing: .01em; }
}

/* Mobile Social Bar */
.mobile-bar { display: none; }

@media (max-width: 768px) {
    .mobile-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 200;
        height: 58px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -1px 0 rgba(0,0,0,.1);
    }
    .container { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
}

.mobile-bar-wa,
.mobile-bar-ig {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    letter-spacing: -.01em;
    -webkit-tap-highlight-color: transparent;
}
.mobile-bar-wa { background: #25D366; }
.mobile-bar-ig {
    background: linear-gradient(135deg, #405DE6 0%, #833AB4 40%, #E1306C 75%, #FD1D1D 100%);
}
