/* ============================================================
   Stephen's Speakeasy — Art Deco Theme
   Colors: Black #0A0A0A, Green #00C853, Gold #D4AF37, Off-white #F5F5F0
   Fonts: Poiret One (headings), Raleway (body)
   ============================================================ */

:root {
    --black: #0A0A0A;
    --black-light: #141414;
    --black-lighter: #1E1E1E;
    --green: #00C853;
    --green-dim: #00A844;
    --green-glow: rgba(0, 200, 83, 0.15);
    --gold: #D4AF37;
    --gold-dim: #B8962F;
    --gold-glow: rgba(212, 175, 55, 0.15);
    --cream: #F5F5F0;
    --cream-dim: #C8C8C0;
    --danger: #E53935;
    --danger-dim: rgba(229, 57, 53, 0.15);
    --font-heading: 'Poiret One', cursive;
    --font-body: 'Raleway', sans-serif;
    --radius: 4px;
    --transition: 0.2s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-weight: 400;
    background: var(--black);
    color: var(--cream);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Layout
   ============================================================ */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding-bottom: 32px;
}

/* ============================================================
   Header — Art Deco
   ============================================================ */
.site-header {
    text-align: center;
    padding: 24px 0 16px;
    position: relative;
}

.deco-border-top {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin-bottom: 20px;
}

.header-content {
    position: relative;
    border: 1px solid var(--gold-dim);
    padding: 20px 16px 16px;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.site-title .amp {
    color: var(--green);
    font-size: 0.85em;
}

.featuring-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cream-dim);
    margin: 0 0 4px;
}

.venue-name {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cream-dim);
    margin-top: 6px;
}

.venue-name .amp {
    color: var(--green);
    font-size: 0.9em;
}

.site-subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--cream-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Decorative corners */
.deco-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--gold);
    border-style: solid;
}
.deco-corner-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.deco-corner-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }

/* Status light */
.status-light {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.6rem;
    line-height: 1;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.status-light.online {
    filter: hue-rotate(90deg) saturate(5) brightness(0.7);
    opacity: 0.8;
}
.status-light.offline {
    filter: grayscale(1) brightness(0.5);
    opacity: 0.4;
}

/* Diamond divider */
.diamond-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 12px 0;
}

.diamond {
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.diamond-line {
    height: 1px;
    width: 60px;
    background: var(--gold-dim);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    padding: 16px 0 24px;
    text-align: center;
}

.footer-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--cream-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
}

.footer-updated {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: var(--cream-dim);
    opacity: 0;
    margin-top: 6px;
    transition: opacity 0.6s ease;
}

.footer-updated.visible {
    opacity: 0.3;
}

.footer-version {
    font-family: var(--font-body);
    font-size: 0.6rem;
    color: var(--cream-dim);
    opacity: 0.25;
    margin-top: 4px;
    letter-spacing: 0.05em;
}

/* ============================================================
   Typography
   ============================================================ */
h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--cream);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn-primary {
    background: var(--green);
    color: var(--black);
    border-color: var(--green);
}
.btn-primary:hover, .btn-primary:active {
    background: var(--green-dim);
    border-color: var(--green-dim);
}

.btn-gold {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}
.btn-gold:hover, .btn-gold:active {
    background: var(--gold-glow);
}

.btn-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: var(--green);
    border: 1px solid var(--green);
    color: var(--dark);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    -webkit-tap-highlight-color: transparent;
    overflow: visible;
}
.btn-tip:hover, .btn-tip:active {
    background: var(--green-glow);
    border-color: var(--green);
}
.btn-tip::before,
.btn-tip::after {
    content: '\25C6';
    position: absolute;
    font-size: 0.5rem;
    color: var(--green);
    animation: sparkle 2s ease-in-out infinite;
}
.btn-tip::before {
    top: -6px;
    left: -6px;
}
.btn-tip::after {
    top: -6px;
    right: -6px;
}
@keyframes sparkle {
    0%, 100% { opacity: 0.2; transform: scale(0.7); }
    50% { opacity: 1; transform: scale(1.3); }
}

.date-tip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.date-tip-row .btn-appearances,
.date-tip-row .btn-tip {
    flex: 1;
    justify-content: center;
    text-align: center;
}
@media (max-width: 480px) {
    .date-tip-row .btn-appearances,
    .date-tip-row .btn-tip {
        font-size: 0.75rem;
        padding: 10px 8px;
    }
}

.btn-outline {
    background: transparent;
    color: var(--cream);
    border-color: var(--cream-dim);
}
.btn-outline:hover, .btn-outline:active {
    background: rgba(245, 245, 240, 0.08);
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border-color: var(--danger);
}
.btn-danger:hover, .btn-danger:active {
    background: var(--danger-dim);
}

.btn-sm {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn.btn-not-ready {
    opacity: 0.5;
}

/* ============================================================
   Forms
   ============================================================ */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cream-dim);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    background: var(--black-lighter);
    border: 1px solid #333;
    border-radius: var(--radius);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 2px var(--green-glow);
}

.form-input::placeholder {
    color: #666;
}

textarea.form-input {
    min-height: 80px;
    resize: vertical;
}

.form-input.field-highlight {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--gold-glow);
    animation: fieldPulse 1.5s ease-in-out;
}

@keyframes fieldPulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--gold-glow); }
    50% { box-shadow: 0 0 0 4px var(--gold-glow), 0 0 12px var(--gold-glow); }
}

/* ============================================================
   Tabs
   ============================================================ */
.tabs {
    display: flex;
    border-bottom: 1px solid #333;
    margin-bottom: 16px;
    gap: 0;
}

.tab {
    flex: 1;
    min-height: 48px;
    padding: 12px 8px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--cream-dim);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.tab:hover {
    color: var(--cream);
}

.tab.active {
    color: var(--green);
    border-bottom-color: var(--green);
}

/* ============================================================
   Accordion
   ============================================================ */
.accordion-section {
    border-bottom: 1px solid #222;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 12px 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1rem;
}

.accordion-arrow {
    color: var(--gold);
    transition: transform var(--transition);
    font-size: 0.8rem;
}

.accordion-section.open .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-section.open .accordion-body {
    max-height: 2000px;
}

/* ============================================================
   Song List
   ============================================================ */
.song-item {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 12px;
    margin: 2px 0;
    background: var(--black-light);
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.song-item:hover {
    border-color: #333;
    background: var(--black-lighter);
}

.song-item.selected {
    border-color: var(--green);
    background: var(--green-glow);
}

.song-title {
    font-weight: 500;
    color: var(--cream);
}

.song-artist {
    font-size: 0.85rem;
    color: var(--cream-dim);
    margin-left: 8px;
}

/* ============================================================
   Request Cards (Stephen's Dashboard)
   ============================================================ */
.request-card {
    background: var(--black-light);
    border: 1px solid #333;
    border-left: 4px solid var(--cream-dim);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    transition: all var(--transition);
    -webkit-tap-highlight-color: transparent;
}

#pending-list .request-card {
    cursor: grab;
}

#pending-list .request-card:active {
    cursor: grabbing;
}

.request-card.status-pending {
    border-left-color: var(--cream-dim);
}

.request-card.status-will_do {
    border-left-color: var(--green);
}

.request-card.status-now_singing {
    border-left-color: var(--gold);
    border-color: var(--gold);
    background: var(--gold-glow);
}

.request-card.status-completed {
    border-left-color: #555;
    opacity: 0.5;
}

.request-card.status-will_not_do {
    border-left-color: var(--danger);
    opacity: 0.4;
}

.request-card .card-song {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 4px;
}

.duplicate-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
    border: 1px solid var(--green);
    border-radius: 3px;
    padding: 1px 6px;
    margin-left: 8px;
    vertical-align: middle;
}

.customer-count-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5BA8FF;
    border: 1px solid #5BA8FF;
    border-radius: 3px;
    padding: 1px 6px;
    margin-left: 4px;
    vertical-align: middle;
}

.tip-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 3px;
    padding: 1px 6px;
    margin-left: 4px;
    vertical-align: middle;
}

.tip-badge-tonight {
    color: #1a1a1a;
    background: var(--gold);
    border-color: var(--gold);
}

.request-card .card-artist {
    font-size: 0.9rem;
    color: var(--cream-dim);
    margin-bottom: 4px;
}

.request-card .card-customer {
    font-size: 0.85rem;
    color: var(--gold);
}

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

.request-card .card-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

/* Now Singing — enlarged sticky card */
.now-singing-card {
    background: var(--black-lighter);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.now-singing-card .card-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.now-singing-card .card-song {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 4px;
}

.now-singing-card .card-artist {
    font-size: 1rem;
    color: var(--cream-dim);
    margin-bottom: 4px;
}

.now-singing-card .card-customer {
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.now-singing-card .card-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ============================================================
   Sortable.js ghost/drag states
   ============================================================ */
.sortable-ghost {
    opacity: 0.3;
}

.sortable-chosen {
    box-shadow: 0 4px 16px rgba(0, 200, 83, 0.2);
}

.sortable-drag {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   Search Bar
   ============================================================ */
.search-bar {
    position: relative;
    margin-bottom: 16px;
}

.search-bar .form-input {
    padding-left: 40px;
}

.search-bar .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 0.9rem;
    pointer-events: none;
}

/* ============================================================
   Coming Up Section
   ============================================================ */
.coming-up {
    margin-top: 32px;
}

.coming-up-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #222;
}

.coming-up-item.now-singing {
    background: var(--gold-glow);
    padding: 12px;
    border-radius: var(--radius);
    border-bottom: none;
    margin-bottom: 4px;
}

.coming-up-new {
    animation: comingUpFadeIn 0.6s ease-out;
}

@keyframes comingUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coming-up-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.15);
    padding: 2px 8px;
    border-radius: 2px;
    margin-left: auto;
    flex-shrink: 0;
}

.coming-up-song {
    font-weight: 500;
    color: var(--cream);
}

.coming-up-detail {
    font-size: 0.85rem;
    color: var(--cream-dim);
    margin-left: 8px;
}

/* ============================================================
   Status sections
   ============================================================ */
.status-section {
    margin-bottom: 24px;
}

.status-section-header {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream-dim);
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
    margin-bottom: 12px;
}

.status-count {
    color: var(--green);
    font-family: var(--font-body);
    font-weight: 600;
}

/* ============================================================
   Thank You Message
   ============================================================ */
.thank-you {
    text-align: center;
    padding: 32px 16px;
    animation: fadeIn 0.4s ease;
}

.thank-you .check-icon {
    font-size: 3rem;
    color: var(--green);
    margin-bottom: 16px;
}

.thank-you h2 {
    color: var(--green);
    margin-bottom: 8px;
}

.thank-you p {
    color: var(--cream-dim);
}

.tip-cta {
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 20px 24px;
    background: rgba(212, 175, 55, 0.08);
}
.tip-message {
    color: var(--cream) !important;
    font-size: 1rem;
    margin-bottom: 16px;
    font-style: italic;
}
.btn-tip {
    display: inline-block;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark);
    background: var(--green);
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    animation: tipGlow 2s ease-in-out infinite;
}
.btn-tip:hover {
    background: #5ddb6d;
    transform: scale(1.04);
}
@keyframes tipGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(76, 175, 80, 0.3); }
    50% { box-shadow: 0 0 20px rgba(76, 175, 80, 0.6); }
}

/* ============================================================
   Tip Options (modal + /tip page)
   ============================================================ */
.tip-page {
    max-width: 480px;
    margin: 0 auto;
}
.tip-page-intro {
    text-align: center;
    margin-bottom: 24px;
}
.tip-page-intro h2 {
    margin-bottom: 8px;
}
.tip-canceled-banner {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius);
    color: var(--cream);
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 0.95rem;
}
.tip-options {
    padding: 8px 4px 4px;
}
#tip-modal-body .tip-options {
    padding: 16px 20px 20px;
}
.tip-method {
    background: var(--black-light);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius);
    padding: 18px 18px 20px;
}
.tip-method-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--cream);
    letter-spacing: 0.05em;
    margin: 0 0 4px;
}
.tip-method-sub {
    font-size: 0.8rem;
    color: var(--cream-dim);
    margin: 0 0 14px;
    letter-spacing: 0.02em;
}
.tip-method-divider {
    text-align: center;
    margin: 12px 0;
    position: relative;
}
.tip-method-divider::before,
.tip-method-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--gold-dim);
}
.tip-method-divider::before { left: 0; }
.tip-method-divider::after { right: 0; }
.tip-method-divider span {
    display: inline-block;
    padding: 0 12px;
    color: var(--cream-dim);
    background: var(--black);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.tip-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.tip-amount-btn {
    padding: 12px 4px;
    border: 1px solid var(--gold-dim);
    background: transparent;
    color: var(--cream);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
    -webkit-tap-highlight-color: transparent;
}
.tip-amount-btn:hover,
.tip-amount-btn.selected {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}
.tip-amount-custom {
    display: flex;
    align-items: center;
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius);
    padding: 0 8px;
    background: transparent;
}
.tip-amount-custom-prefix {
    color: var(--cream-dim);
    font-size: 0.95rem;
    margin-right: 2px;
}
.tip-amount-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--cream);
    font-size: 0.95rem;
    padding: 12px 0;
    -moz-appearance: textfield;
}
.tip-amount-input::-webkit-outer-spin-button,
.tip-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.tip-stripe-go {
    width: 100%;
    margin-top: 4px;
}
.tip-stripe-go:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.tip-stripe-error {
    margin-top: 10px;
    color: #ff6b6b;
    font-size: 0.85rem;
    text-align: center;
}
.tip-venmo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: #008CFF;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 1rem;
    letter-spacing: 0.02em;
}
.tip-venmo-btn:hover {
    background: #0079e0;
}
.tip-venmo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    color: #008CFF;
    font-family: 'Poiret One', cursive;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}
.tip-success {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

/* Stripe Elements host + back button */
.tip-stripe-host {
    padding: 12px 4px 4px;
}
#tip-modal-body .tip-stripe-host {
    padding: 12px 16px 20px;
}
.tip-back-btn {
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 8px;
    margin-bottom: 8px;
    -webkit-tap-highlight-color: transparent;
}
.tip-back-btn:hover {
    color: var(--cream);
}
.tip-amount-display {
    text-align: center;
    color: var(--cream);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}
.tip-express-checkout {
    margin-bottom: 12px;
}
.tip-pay-divider {
    text-align: center;
    margin: 14px 0;
    position: relative;
}
.tip-pay-divider::before,
.tip-pay-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--gold-dim);
}
.tip-pay-divider::before { left: 0; }
.tip-pay-divider::after { right: 0; }
.tip-pay-divider span {
    display: inline-block;
    padding: 0 12px;
    color: var(--cream-dim);
    background: var(--black);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.tip-payment-form {
    display: block;
}
.tip-payment-element {
    margin-bottom: 14px;
}
.tip-pay-btn {
    width: 100%;
}
.tip-pay-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.tip-pay-error {
    margin-top: 10px;
    color: #ff6b6b;
    font-size: 0.85rem;
    text-align: center;
}
.tip-thanks {
    text-align: center;
    padding: 24px 16px;
}
.tip-thanks .check-icon {
    font-size: 2.4rem;
    color: var(--green);
    margin-bottom: 8px;
}
.tip-thanks h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}
.tip-thanks p {
    color: var(--cream-dim);
    margin-bottom: 20px;
}

@media (max-width: 380px) {
    .tip-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   Tonight's Tips panel (Stephen's dashboard)
   ============================================================ */
.tonight-tips-panel {
    background: linear-gradient(180deg, rgba(212,175,55,0.1) 0%, rgba(212,175,55,0.04) 100%);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
}
.tonight-tips-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.tonight-tips-stat {
    text-align: center;
}
.tonight-tips-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 0.04em;
    line-height: 1.1;
}
.tonight-tips-label {
    font-size: 0.7rem;
    color: var(--cream-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

/* ============================================================
   Payouts table
   ============================================================ */
.payouts-table {
    margin-top: 8px;
}
.payouts-table th,
.payouts-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #222;
    vertical-align: middle;
}
.payouts-table th {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream-dim);
    text-align: left;
    font-weight: 600;
}
.payouts-table td.num,
.payouts-table th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.payouts-table .owed-cell {
    font-weight: 600;
}
.payouts-table .payout-row.owes .owed-cell {
    color: var(--gold);
}
.payouts-table .payout-row.settled .owed-cell {
    color: var(--cream-dim);
}
.payouts-table .last-paid {
    font-size: 0.85rem;
    color: var(--cream-dim);
}
.payouts-table .last-paid-by {
    font-size: 0.7rem;
    color: #666;
    margin-top: 2px;
}
.payout-paid-pill {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0, 200, 83, 0.12);
    border: 1px solid rgba(0, 200, 83, 0.4);
    border-radius: 12px;
    font-size: 0.75rem;
    color: #00C853;
    letter-spacing: 0.05em;
}
.mark-paid-btn {
    white-space: nowrap;
}
@media (max-width: 600px) {
    .payouts-table .last-paid {
        font-size: 0.75rem;
    }
    .payouts-table th,
    .payouts-table td {
        padding: 8px 4px;
        font-size: 0.85rem;
    }
}

/* ============================================================
   Tables (Customer Directory)
   ============================================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 12px 8px;
    border-bottom: 1px solid var(--gold-dim);
    text-align: left;
}

.data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #222;
    color: var(--cream);
}

.data-table tr:hover td {
    background: var(--black-light);
}

/* Status pills for request log */
.status-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: capitalize;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.status-pill.status-pending {
    background: rgba(200, 200, 192, 0.15);
    color: var(--cream-dim);
}

.status-pill.status-will-do {
    background: rgba(0, 200, 83, 0.15);
    color: var(--green);
}

.status-pill.status-now-singing {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
}

.status-pill.status-completed {
    background: rgba(0, 200, 83, 0.1);
    color: #6a6;
}

.status-pill.status-will-not-do {
    background: rgba(229, 57, 53, 0.15);
    color: var(--danger);
}

/* ============================================================
   Admin Charts
   ============================================================ */
.chart-container {
    background: var(--black-light);
    border: 1px solid #333;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 24px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--black-light);
    border: 1px solid #333;
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--green);
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--cream-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ============================================================
   QR Code display
   ============================================================ */
.qr-display {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    display: inline-block;
    margin: 16px auto;
}

.qr-display svg {
    display: block;
    width: 200px;
    height: 200px;
}

/* ============================================================
   Header date
   ============================================================ */
.header-date {
    color: var(--cream-dim);
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-top: 6px;
}

/* ============================================================
   Other Appearances Button (below header, beside Tip)
   ============================================================ */
.btn-appearances {
    position: relative;
    background: transparent;
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.btn-appearances:hover {
    background: var(--gold-glow);
    border-color: var(--gold);
}

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--black);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius);
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    position: relative;
    margin: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 12px;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    background: var(--black);
    z-index: 1;
}

.modal-header h2 {
    font-size: 1.2rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--cream-dim);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: color var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.modal-close:hover {
    color: var(--cream);
}

#events-modal-body {
    padding: 16px 20px 20px;
}

/* ============================================================
   Event Cards
   ============================================================ */
.event-card {
    background: var(--black-light);
    border: 1px solid var(--gold-dim);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}

.event-date {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--cream);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.event-venue {
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 2px;
}

.event-address {
    font-size: 0.8rem;
    color: var(--cream-dim);
}

.event-time {
    font-size: 0.8rem;
    color: var(--green);
    margin-top: 4px;
}

/* ============================================================
   Email Status Pills (Admin)
   ============================================================ */
.status-pill.status-sent {
    background: rgba(0, 200, 83, 0.15);
    color: var(--green);
}

.status-pill.status-failed {
    background: rgba(229, 57, 53, 0.15);
    color: var(--danger);
}

.status-pill.status-test {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}

/* ============================================================
   Alerts / Toasts
   ============================================================ */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: var(--black);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    z-index: 1000;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.5s forwards;
    max-width: calc(100vw - 48px);
    text-align: center;
}

.toast.error {
    background: var(--danger);
    color: var(--cream);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

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

/* ============================================================
   Navigation (Stephen/Admin)
   ============================================================ */
.nav-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cream-dim);
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: var(--radius);
    transition: all var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--green);
    border-color: var(--green);
}

/* Admin nav dropdown groups (uses native <details>) */
.admin-nav {
    position: relative;
    align-items: center;
}

.nav-group {
    position: relative;
}

.nav-group > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;
}

.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::marker { display: none; content: ''; }

.nav-group.active > summary {
    color: var(--green);
    border-color: var(--green);
}

.nav-caret {
    font-size: 0.7em;
    line-height: 1;
    opacity: 0.7;
    transition: transform var(--transition);
}

.nav-group[open] > summary .nav-caret {
    transform: rotate(180deg);
}

.nav-group[open] > summary {
    color: var(--gold);
    border-color: var(--gold);
}

.nav-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    background: var(--black-light);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 175, 55, 0.08);
    z-index: 50;
    animation: navMenuIn 0.14s ease-out;
}

.nav-menu-right { left: auto; right: 0; }

@keyframes navMenuIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-menu-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cream-dim);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 3px;
    transition: all var(--transition);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.nav-menu-link:hover, .nav-menu-link.active {
    color: var(--green);
    background: var(--green-glow);
}

.nav-user { margin-left: auto; }

/* Dedupe modal pair rows */
.dedupe-pair {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #2a2a2a;
    border-radius: var(--radius);
    margin-bottom: 8px;
    background: var(--black-light);
}

.dedupe-pair-row {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.dedupe-pair-row > div { word-break: break-word; }

.dedupe-reason {
    color: var(--cream-dim);
    font-size: 0.8rem;
    margin-top: 4px;
    font-style: italic;
}

.alias-icon {
    background: transparent;
    border: none;
    padding: 2px 4px;
    color: var(--gold);
    font-size: 0.85em;
    margin-left: 4px;
    cursor: pointer;
    opacity: 0.8;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    transition: opacity var(--transition);
}

.alias-icon:hover { opacity: 1; }

.alias-popover {
    position: absolute;
    background: var(--black-light);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius);
    padding: 8px 4px;
    min-width: 200px;
    max-width: 320px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
    z-index: 90;
    font-size: 0.85rem;
    animation: navMenuIn 0.14s ease-out;
}

.alias-popover-header {
    color: var(--cream-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px 6px;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 4px;
}

.alias-popover-item {
    padding: 4px 12px;
    color: var(--cream);
    word-break: break-word;
}

@media (max-width: 600px) {
    .nav-menu { min-width: 140px; }
    .nav-user { margin-left: auto; }
}

/* ============================================================
   Login page
   ============================================================ */
.login-container {
    max-width: 320px;
    margin: 40px auto;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 24px;
}

/* ============================================================
   Empty states
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 40px 16px;
    color: var(--cream-dim);
}

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

/* ============================================================
   Section spacing
   ============================================================ */
.section {
    margin-bottom: 32px;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #333, transparent);
    margin: 32px 0;
}


/* ============================================================
   Custom Song Option (legacy)
   ============================================================ */
.custom-song-option {
    display: none;
    align-items: center;
    min-height: 48px;
    padding: 12px;
    margin: 12px 0;
    background: transparent;
    border: 1px dashed var(--gold-dim);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    color: var(--gold);
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
}

.custom-song-option:hover, .custom-song-option.selected {
    border-color: var(--gold);
    background: var(--gold-glow);
}

/* ============================================================
   Loading spinner
   ============================================================ */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #333;
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 600px) {
    .app-container {
        padding: 0 24px;
    }

    .site-title {
        font-size: 2.5rem;
    }

    .request-card .card-actions {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .app-container {
        max-width: 768px;
    }

    .stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .app-container {
        max-width: 960px;
    }
}

/* ============================================================
   Tonight's Tips panel (Stephen dashboard)
   ============================================================ */
#tips-layout {
    display: flex;
    flex-direction: column;
}
#requests-column { min-width: 0; }

#tips-panel {
    order: -1; /* narrow: sit above the request queue */
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 20px;
    background: rgba(212, 175, 55, 0.04);
}

#tips-panel-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
#tips-total {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    color: var(--gold);
    line-height: 1;
}
#tips-count { font-size: 0.8rem; }

#tips-surface {
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}
#tips-surface.tip-surface-show {
    animation: tipSurface 5s ease forwards;
}

@keyframes tipSurface {
    0%   { opacity: 0; transform: translateY(-4px); }
    8%   { opacity: 1; transform: translateY(0); }
    85%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-2px); }
}

#tips-list { margin-top: 10px; }
.tip-row {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 10px;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 1px solid rgba(245, 245, 240, 0.06);
    font-size: 0.9rem;
}
.tip-row:last-child { border-bottom: 0; }
.tip-row-time { color: var(--cream-dim); font-size: 0.78rem; min-width: 62px; }
.tip-row-amt  { color: var(--gold); font-weight: 600; }
.tip-row-name { color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tips-empty { margin-top: 10px; font-size: 0.85rem; }

/* Narrow / on-stage phone: keep it compact so the queue isn't pushed
   far down — cap the list and scroll inside. */
#tips-list { max-height: 32vh; overflow-y: auto; }

@media (min-width: 1024px) {
    body.tips-dashboard .app-container { max-width: 1180px; }
    #tips-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
    }
    #requests-column { flex: 1; }
    #tips-panel {
        order: 0;
        flex: 0 0 280px;
        width: 280px;
        margin-bottom: 0;
        position: sticky;
        top: 16px;
    }
    #tips-list { max-height: calc(100vh - 220px); }
}

@media (prefers-reduced-motion: reduce) {
    #tips-surface.tip-surface-show { animation: none; }
}

/* ============================================================
   Print (for QR codes)
   ============================================================ */
@media print {
    body { background: #fff; color: #000; }
    .site-header, .site-footer, .nav-bar { display: none; }
    .qr-display { box-shadow: none; border: 1px solid #ccc; }
}

/* ============================================================
   Utilities
   ============================================================ */
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-muted { color: var(--cream-dim); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
/* Song request status badges */
.song-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}
.song-badge.badge-requested {
    color: var(--gold);
    border: 1px solid var(--gold-dim);
    background: var(--gold-glow);
}
.song-badge.badge-completed {
    color: #6a6;
    border: 1px solid #4a4;
    background: rgba(0,200,83,0.1);
}

/* Your Requests list */
.your-request-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: var(--black-light);
    border: 1px solid #333;
    border-left: 3px solid var(--cream-dim);
    border-radius: var(--radius);
}
.your-request-item.your-now-singing {
    border-left-color: var(--gold);
    border-color: var(--gold);
    background: var(--gold-glow);
}
.your-request-item .your-request-info {
    flex: 1;
}

.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-notice { font-size: 11px; color: var(--cream-dim); margin-top: 8px; }
.recaptcha-notice a { color: var(--cream-dim); text-decoration: underline; }
