/**
 * VIP Members Club - Modern Minimal Design
 * Inspired by contemporary UI/UX patterns
 */

:root {
    --bg-primary: #111112;
    --bg-secondary: #252525;
    --bg-tertiary: #2f2f2f;
    --bg-elevated: #353535;
    --brand-color: #33c100;
    --accent: #ffffff;
    --accent-muted: #888888;
    --text-primary: #efefef;
    --text-secondary: #a0a0a0;
    --text-tertiary: #707070;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-y: contain!important;
    -webkit-overflow-scrolling: touch;  /* smooth on iOS */
}

body {
    overflow-x: hidden;
    width: 100%;
    background: var(--bg-primary);
    color: #efefef;
    margin: 0;
    padding: 0;
}

/* Registration Form */
.vip-registration-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 24px 16px;
    background: var(--bg-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
}

.vip-registration-form h2 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

#vip-registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.vip-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding-bottom: 15px;
}

.vip-form-row label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-left: 2px;
}

.vip-form-row input[type="text"],
.vip-form-row input[type="email"],
.vip-form-row input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 400;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.vip-form-row input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-tertiary);
}

.vip-form-row input::placeholder {
    color: var(--text-tertiary);
}

.vip-form-row input[type="file"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.vip-form-row input[type="file"]:hover {
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
}

.vip-form-row label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
    font-weight: 400;
    margin-left: 0;
    font-size: 16px;
}

.vip-form-row label:has(input[type="checkbox"]):hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
}

.vip-form-row label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.vip-payment-section {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
}

.vip-payment-section h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.vip-payment-section p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.vip-payment-section p strong {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

#card-element {
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    width: 100%;
}

#card-element.StripeElement--focus {
    border-color: var(--accent);
}

#card-errors {
    color: #ff4444;
    font-size: 12px;
    margin-top: 8px;
    min-height: 18px;
    font-weight: 500;
}

#vip-registration-form button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    color: var(--bg-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 24px;
    letter-spacing: -0.2px;
}

#vip-registration-form button[type="submit"]:active {
    transform: scale(0.98);
}

#vip-registration-form button[type="submit"]:disabled {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    cursor: not-allowed;
    opacity: 0.5;
}

#registration-message {
    margin-top: 20px;
    width: 100%;
}

/* Manager Dashboard */
.vip-manager-dashboard-frontend {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
}

.vip-dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.vip-dashboard-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.vip-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

.vip-dashboard-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.vip-action-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    width: 100%;
}

.vip-action-card::before {
    display: none;
}

.vip-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 24px;
}

.vip-action-card h2 {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.vip-action-card p {
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    font-size: 13px;
    line-height: 1.5;
}

.vip-btn-primary,
.vip-btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}

.vip-btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.vip-btn-primary:active {
    transform: scale(0.98);
}

.vip-btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.vip-btn-secondary:active {
    transform: scale(0.98);
}

/* Modal */
.vip-modal-frontend {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.vip-modal-content-frontend {
    position: relative;
    background: var(--bg-secondary);
    margin: 0;
    padding: 24px 16px;
    width: 100%;
    min-height: 100vh;
    border: none;
}

.vip-modal-close {
    position: fixed;
    right: 16px;
    top: 16px;
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.vip-modal-close:active {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.vip-modal-content-frontend h2 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 24px 0;
    padding-right: 50px;
    letter-spacing: -0.4px;
}

.vip-tabs-frontend {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: var(--radius-md);
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.vip-tab-frontend {
    flex: 1;
    min-width: 100px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.vip-tab-frontend.active {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.vip-tab-content-frontend {
    display: none;
    width: 100%;
}

.vip-tab-content-frontend.active {
    display: block;
}

.vip-search-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

.vip-search-box input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
    -webkit-appearance: none;
}

.vip-search-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-elevated);
}

#vip-scanner-container-frontend {
    background: var(--bg-tertiary);
    padding: 24px 16px;
    border-radius: var(--radius-lg);
    text-align: center;
    width: 100%;
    overflow: hidden;
}

#vip-scanner-status-frontend {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
}

#vip-scanner-frontend {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
}

#vip-club-selector-frontend {
    margin-bottom: 24px;
    width: 100%;
}

#vip-club-selector-frontend label {
    display: block;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

#vip-select-club-frontend {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    -webkit-appearance: none;
}

/* VIP Card Display */
.vip-card-display {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 24px 0;
}

.vip-card-glow {
    display: none;
}

.vip-card-inner {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    box-shadow: var(--shadow-md);
    width: 100%;
    overflow: hidden;
}

.vip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}

.vip-card-header h3 {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
    margin: 0;
    text-transform: uppercase;
    font-weight: 500;
}

.vip-card-status {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.vip-card-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.vip-card-photo {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.vip-card-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.vip-card-photo-ring {
    display: none;
}

.vip-card-info {
    width: 100%;
}

.vip-card-info h2 {
    font-size: 22px;
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.4px;
}

.vip-card-id {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 8px 0;
    font-family: 'SF Mono', 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.vip-card-clubs {
    color: var(--text-tertiary);
    font-size: 12px;
    margin: 0;
}

.vip-card-qr {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    width: 100%;
}

.vip-card-qr img {
    width: 100%;
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.vip-card-qr p {
    color: var(--bg-primary);
    font-size: 11px;
    font-weight: 600;
    margin: 12px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Email Verification */
#email-verification-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

#verify-email-btn {
    width: 100%;
    transition: var(--transition);
}

#verification-code {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 18px;
    letter-spacing: 3px;
    text-align: center;
    font-family: 'SF Mono', 'Courier New', monospace;
}

#form-fields-container {
    transition: opacity 0.2s ease;
}

#verification-status {
    min-height: 24px;
}

/* Tablet and Up */
@media (min-width: 768px) {
    .vip-registration-form {
        padding: 40px 24px;
        margin: 0 auto;
        max-width: 520px;
    }

    .vip-registration-form h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    #vip-registration-form {
        gap: 24px;
    }

    .vip-form-row input {
        padding: 16px 18px;
        font-size: 16px;
    }

    .vip-payment-section {
        padding: 32px;
    }

    .vip-payment-section h3 {
        font-size: 20px;
    }

    #vip-registration-form button[type="submit"] {
        padding: 18px;
        font-size: 15px;
    }

    #vip-registration-form button[type="submit"]:hover {
        opacity: 0.9;
    }

    .vip-manager-dashboard-frontend {
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 24px;
    }

    .vip-dashboard-header h1 {
        font-size: 36px;
    }

    .vip-subtitle {
        font-size: 15px;
    }

    .vip-dashboard-cards {
        flex-direction: row;
        gap: 20px;
    }

    .vip-action-card {
        padding: 32px;
    }

    .vip-action-card:hover {
        border-color: var(--border-hover);
        box-shadow: var(--shadow-lg);
    }

    .vip-card-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .vip-action-card h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .vip-btn-primary:hover,
    .vip-btn-secondary:hover {
        opacity: 0.9;
    }

    .vip-modal-content-frontend {
        margin: 5vh auto;
        padding: 40px;
        border-radius: var(--radius-xl);
        width: 90%;
        max-width: 700px;
        min-height: auto;
        border: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .vip-modal-close {
        position: absolute;
        right: 24px;
        top: 24px;
    }

    .vip-modal-close:hover {
        background: var(--bg-elevated);
        color: var(--text-primary);
    }

    .vip-modal-content-frontend h2 {
        font-size: 28px;
        margin-bottom: 32px;
        padding-right: 0;
    }

    .vip-tabs-frontend {
        gap: 8px;
        margin-bottom: 32px;
    }

    .vip-tab-frontend {
        padding: 12px 20px;
        font-size: 14px;
    }

    .vip-search-box {
        flex-direction: row;
        gap: 12px;
    }

    .vip-search-box input {
        padding: 14px 18px;
    }

    #vip-scanner-container-frontend {
        padding: 32px;
    }

    #vip-scanner-status-frontend {
        font-size: 14px;
        margin-bottom: 20px;
    }

    #vip-scanner-frontend {
        max-width: 450px;
    }

    .vip-card-display {
        max-width: 560px;
        margin: 40px auto;
    }

    .vip-card-inner {
        padding: 40px;
        border-radius: var(--radius-xl);
    }

    .vip-card-header {
        margin-bottom: 32px;
        padding-bottom: 20px;
    }

    .vip-card-header h3 {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .vip-card-status {
        padding: 8px 16px;
        font-size: 12px;
    }

    .vip-card-profile {
        flex-direction: row;
        text-align: left;
        gap: 32px;
    }

    .vip-card-photo {
        width: 112px;
        height: 112px;
    }

    .vip-card-info h2 {
        font-size: 28px;
    }

    .vip-card-id {
        font-size: 14px;
    }

    .vip-card-clubs {
        font-size: 13px;
    }

    .vip-card-qr {
        padding: 24px;
    }

    .vip-card-qr img {
        width: 200px;
        height: 200px;
    }

    .vip-card-qr p {
        font-size: 12px;
        margin-top: 16px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .vip-registration-form {
        padding: 60px 40px;
        max-width: 560px;
    }

    .vip-registration-form h2 {
        font-size: 36px;
        margin-bottom: 48px;
    }
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    .vip-card-display,
    .vip-card-display * {
        visibility: visible;
    }
    .vip-card-display {
        position: absolute;
        left: 0;
        top: 0;
    }
}

/**
 * VIP Members Club - Mobile Manager App Styles
 * Mobile-First Design
 */

/* Manager App Container */
.vip-manager-app {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background: #000000;
    color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page System */
.vip-page {
    display: none;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 16px 80px 16px;
}

.vip-page.active {
    display: flex;
    flex-direction: column;
}

.vip-page-header {
    margin-bottom: 24px;
}

.vip-page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

/* Mobile Tabs */
.vip-tabs-mobile {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: #1C1C1E;
    padding: 4px;
    border-radius: 10px;
}

.vip-tab-mobile {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: #8E8E93;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.vip-tab-mobile.active {
    background: #2C2C2E;
    color: #FFFFFF;
}

.vip-tab-mobile-content {
    display: none;
}

.vip-tab-mobile-content.active {
    display: block;
}

/* Scanner Container */
#scanner-container {
    background: #1C1C1E;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

#scanner-status {
    text-align: center;
    color: #8E8E93;
    font-size: 14px;
    margin-bottom: 16px;
}

#scanner {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000000;
}

#scanner video {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* Search Box */
.search-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 14px 16px;
    background: #1C1C1E;
    border: 1px solid #2C2C2E;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 16px;
    -webkit-appearance: none;
}

.search-box input:focus {
    outline: none;
    border-color: var(--brand-color);
}

.search-box input::placeholder {
    color: #636366;
}

/* Search Results */
.search-results-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-search-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #1C1C1E;
    border-radius: 12px;
    border: 1px solid #2C2C2E;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
}

.member-search-card:active {
    transform: scale(0.98);
    background: #2C2C2E;
}

.member-search-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-color);
    flex-shrink: 0;
}

.member-search-info {
    flex: 1;
    min-width: 0;
}

.member-search-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #FFFFFF;
}

.member-id-small {
    font-size: 13px;
    color: #8E8E93;
    margin: 0 0 8px 0;
    display: block;
    font-family: 'SF Mono', 'Courier New', monospace;
}

/* Member Card */
.member-card {
    background: #1C1C1E;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.member-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-color);
    margin-bottom: 16px;
}

.member-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.member-id {
    font-size: 14px;
    color: #8E8E93;
    margin: 0 0 12px 0;
    font-family: 'SF Mono', 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #34C759;
    color: #000000;
}

.status-badge.inactive {
    background: #FF3B30;
    color: #FFFFFF;
}

/* Clubs List */
.clubs-list {
    margin-bottom: 24px;
}

.clubs-list h4 {
    font-size: 14px;
    font-weight: 600;
    color: #8E8E93;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.club-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #2C2C2E;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.club-option:has(input:checked) {
    background: rgba(0, 122, 255, 0.15);
    border-color: var(--brand-color);
}

.club-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    accent-color: var(--brand-color);
}

.club-option span {
    flex: 1;
    font-size: 16px;
    color: #FFFFFF;
}

/* Buttons */
.btn-admit,
.btn-primary,
.btn-secondary,
.btn-back {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
#scan-another-btn{
    margin: 32px auto!important;
}
.btn-admit,
.btn-primary {
    background: var(--brand-color);
    color: #FFFFFF;
}

.btn-admit:active,
.btn-primary:active {
    transform: scale(0.98);
    opacity: 0.9;
}

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

.btn-secondary {
    background: #2C2C2E;
    color: #FFFFFF;
    border: 1px solid #3A3A3C;
    margin-top: 12px;
}

.btn-secondary:active {
    transform: scale(0.98);
    background: #3A3A3C;
}

.btn-back {
    background: #2C2C2E;
    color: var(--brand-color);
    margin-bottom: 20px;
    justify-content: flex-start;
}

.btn-back:active {
    background: #3A3A3C;
}

/* Club Selector */
.club-selector {
    margin-bottom: 24px;
}

.club-selector select {
    width: 100%;
    padding: 14px 16px;
    background: #1C1C1E;
    border: 1px solid #2C2C2E;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 16px;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238E8E93' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.club-selector select:focus {
    outline: none;
    border-color: var(--brand-color);
}

/* Members Grid */
.members-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.member-grid-card {
    background: #1C1C1E;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid #2C2C2E;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
}

.member-grid-card:active {
    transform: translateY(-4px);
    border-color: var(--brand-color);
    box-shadow: 0 8px 16px rgba(0, 122, 255, 0.2);
}

.member-grid-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-color);
    margin-bottom: 12px;
}

.member-grid-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #FFFFFF;
}

/* Profile Header */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #2C2C2E;
}

.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-color);
    margin-bottom: 16px;
}

.profile-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #FFFFFF;
}

.profile-detail {
    font-size: 14px;
    color: #8E8E93;
    margin: 4px 0;
}

/* Profile Sections */
.profile-section {
    margin-bottom: 32px;
}

.profile-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 16px 0;
}

/* Baller Status */
.baller-selector {
    margin-bottom: 12px;
}

.baller-selector select {
    width: 100%;
    padding: 14px 16px;
    background: #1C1C1E;
    border: 1px solid #2C2C2E;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 18px;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238E8E93' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.baller-display {
    padding: 16px;
    background: #1C1C1E;
    border-radius: 12px;
    text-align: center;
    font-size: 32px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.baller-display.updated {
    background: rgba(52, 199, 89, 0.2);
    transform: scale(1.05);
}

/* Visits List */
.visits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 225px;
  overflow: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;  /* smooth on iOS */
}

.visits-list li {
    padding: 12px 16px;
    background: #1C1C1E;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #FFFFFF;
    border-left: 3px solid var(--brand-color);
}

.visits-list li strong {
    color: var(--brand-color);
}

/* Notes List */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    margin-bottom: 20px;
}

.note-item {
    background: #1C1C1E;
    border-radius: 12px;
    padding: 16px;
    border-left: 3px solid var(--brand-color);
}

.note-header {
    font-size: 12px;
    color: #8E8E93;
    margin-bottom: 8px;
}

.note-text {
    font-size: 14px;
    color: #FFFFFF;
    line-height: 1.5;
}

.note-image {
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

/* Add Note Form */
#add-note-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#add-note-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px 16px;
    background: #1C1C1E;
    border: 1px solid #2C2C2E;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

#add-note-form textarea:focus {
    outline: none;
    border-color: var(--brand-color);
}

#add-note-form textarea::placeholder {
    color: #636366;
}

#add-note-form input[type="file"] {
    padding: 14px 16px;
    background: #1C1C1E;
    border: 1px dashed #2C2C2E;
    border-radius: 12px;
    color: #8E8E93;
    font-size: 16px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #1C1C1E;
    border-top: 1px solid #2C2C2E;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    background: transparent;
    border: none;
    color: #8E8E93;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-item.active {
    color: var(--brand-color);
}

.nav-item svg {
    width: 28px;
    height: 28px;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #2C2C2E;
    border-top-color: var(--brand-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.loading-spinner.small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

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

/* Error Box */
.error-box {
    padding: 40px 20px;
    text-align: center;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.error-box p {
    color: #FF3B30;
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.error-box button {
    margin: 8px auto;
    max-width: 200px;
}

/* Empty State */
.empty-state {
    text-align: center;
    color: #8E8E93;
    font-size: 15px;
    padding: 40px 20px;
}

/* Error Text */
.error-text {
    color: #FF3B30;
    text-align: center;
    padding: 20px;
    font-size: 15px;
}

/* Success Toast */
.success-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #34C759;
    color: #FFFFFF;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
}

.success-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Safe Area Padding */
@supports (padding: max(0px)) {
    .vip-manager-app {
        padding-top: max(env(safe-area-inset-top), 0px);
        padding-bottom: max(env(safe-area-inset-bottom), 80px);
    }
    
    .bottom-nav {
        padding-bottom: max(env(safe-area-inset-bottom), 8px);
    }
}

/* Tablet and Up (768px+) */
@media (min-width: 768px) {
    .vip-manager-app {
        position: relative;
        height: auto;
        min-height: 100vh;
        max-width: 600px;
        margin: 0 auto;
        border-left: 1px solid #2C2C2E;
        border-right: 1px solid #2C2C2E;
    }
    
    .vip-page {
        padding: 32px 24px 100px 24px;
    }
    
    .member-card-header {
        flex-direction: row;
        text-align: left;
        gap: 24px;
    }
    
    .member-photo,
    .profile-photo {
        margin-bottom: 0;
    }
    
    .profile-header {
        flex-direction: row;
        text-align: left;
    }
    
    .members-grid-inner {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .vip-manager-app {
        max-width: 700px;
    }
    
    .vip-page {
        padding: 40px 32px 100px 32px;
    }
    
    .bottom-nav {
        border-radius: 16px 16px 0 0;
    }
}

/* Print Styles */
@media print {
    .bottom-nav {
        display: none;
    }
}

/**
 * Admin Styles Updates for Baller Status
 * Add these to admin-styles.css
 */

/* Baller Status Column in Admin */
.column-baller {
    width: 80px;
}

.vip-baller-display {
    color: #4CAF50;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Baller Status Metabox */
#vip_baller_status {
    width: 100%;
    padding: 8px 12px;
    font-size: 16px;
}

/* Manager Role Indicator */
.user-role-club_manager {
    background: var(--brand-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
#user-registration p{
    color: #fff;
}

/**
 * Registration Success Card Styles
 * Add these to frontend-styles.css
 */

.success-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    max-width: 600px;
    margin: 0 auto;
}

.success-header {
    text-align: center;
    margin-bottom: 32px;
}

.success-header svg {
    color: #34C759;
    margin-bottom: 16px;
}

.success-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.success-header p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.vip-card-display {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-color);
    margin-bottom: 16px;
}

.profile-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.profile-info .member-id {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: 'SF Mono', 'Courier New', monospace;
    margin: 0 0 8px 0;
}

.profile-info .clubs {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 0;
}

.card-qr {
    background: rgba(255, 255, 255, 0.97);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
}

.card-qr img {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.card-qr p {
    font-size: 11px;
    font-weight: 700;
    color: var(--bg-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 12px 0 0 0;
}

@media (min-width: 768px) {
    .card-profile {
        flex-direction: row;
        text-align: left;
        gap: 24px;
    }
    
    .profile-photo {
        margin-bottom: 0;
        margin-right: 15px;
    }
}

.vip-member-portal {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 16px;
    background: var(--bg-primary);
    min-height: 100vh;
}

.portal-section {
    display: none;
}

.portal-section.active {
    display: block;
}

.portal-header {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.portal-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.portal-header p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
}

.portal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.portal-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group small {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 6px;
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .form-row-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Member Info Card */
.member-info-card {
    background: linear-gradient(135deg, #1C1C1E 0%, #2C2C2E 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.member-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

@media (min-width: 768px) {
    .member-card-header {
        flex-direction: row;
        text-align: left;
    }
}

.member-headshot-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
}

.member-details h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.member-id-code {
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    letter-spacing: 1px;
}

/* Portal Tabs */
.portal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.portal-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.portal-tab.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.portal-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

.portal-tab-content {
    display: none;
}

.portal-tab-content.active {
    display: block;
}

#card-info{
    color: #fff;
}
.danger-zone p{
    color: #fff;
    font-size:: .8em;
}
.update-payment-section h4{
    color: #fff;
}
/* Headshot Upload */
.headshot-upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.headshot-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

/* Payment Method Display */
.payment-method-display {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

/* Invoices Table */
.invoices-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.invoice-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

@media (max-width: 640px) {
    .invoice-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.invoice-row strong {
    color: var(--text-primary);
}

.invoice-row small {
    color: var(--text-tertiary);
    font-size: 12px;
}

.badge-success {
    background: #34C759;
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-error {
    background: #FF3B30;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

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

/* Membership Info */
.membership-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.info-row span {
    color: var(--text-secondary);
    font-size: 14px;
}

.info-row strong {
    color: var(--text-primary);
    font-size: 15px;
}

/* Clubs List Portal */
.clubs-list-portal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.club-badge {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Danger Zone */
.danger-zone {
    border: 2px solid #FF3B30;
    background: rgba(255, 59, 48, 0.1);
}

.danger-zone h3 {
    color: #FF3B30;
}

.btn-danger {
    width: 100%;
    padding: 14px;
    background: #FF3B30;
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover {
    background: #cc0000;
}

.btn-danger:active {
    transform: scale(0.98);
}

/* Empty States */
.empty-text {
    text-align: center;
    color: var(--text-tertiary);
    padding: 40px 20px;
    font-size: 15px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-success {
    background: #34C759;
    color: #000;
}

.toast-error {
    background: #FF3B30;
    color: #fff;
}

/* Success/Error Text */
.success-text {
    color: #34C759;
    font-size: 14px;
    font-weight: 500;
}

.error-text {
    color: #FF3B30;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .vip-member-portal {
        padding: 16px;
    }
    
    .portal-header {
        flex-direction: column;
        text-align: center;
    }
    
    .portal-card {
        padding: 20px;
    }
}
/* Container */
#user-registration {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  max-width: 420px;
  margin: 2rem auto;
}

/* Labels */
#user-registration label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Inputs */
#user-registration input[type="text"],
#user-registration input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px;
  transition: var(--transition);
}

#user-registration input[type="text"]:focus,
#user-registration input[type="password"]:focus {
  outline: none;
  border-color: var(--border-hover);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

/* Checkbox + Remember Me */
#user-registration .user-registration-form__label-for-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
}

#user-registration input[type="checkbox"] {
  accent-color: var(--accent);
  width: 1rem;
  height: 1rem;
  border-radius: var(--radius-sm);
}

/* Lost Password link */
#user-registration .lost_password a {
  font-size: 0.85rem;
  color: var(--accent-muted);
  text-decoration: none;
  transition: var(--transition);
}

#user-registration .lost_password a:hover {
  color: var(--accent);
}

/* Submit Button */
#user-registration button[type="submit"] {
  width: 100%;
  padding: 0.9rem 1rem;
  margin-top: 1rem;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

#user-registration button[type="submit"]:hover {
  background: var(--text-secondary);
  color: var(--bg-primary);
  box-shadow: var(--shadow-md);
}

/* Extra spacing between rows */
#user-registration .user-registration-form-row {
  margin-bottom: 1.25rem;
}
#user-registration{
    border: none!important;
}
#ur-frontend-form{
    background: #000!important;
}
body.user-registration-page #user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid input:not([type="radio"]), body.user-registration-page #user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid input:not([type="checkbox"]), body.user-registration-page #user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid input:not([type="file"]), body.user-registration-page #user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid textarea:not([type="radio"]), body.user-registration-page #user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid textarea:not([type="checkbox"]), body.user-registration-page #user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid textarea:not([type="file"]), body.user-registration-page #user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid select:not([type="radio"]), body.user-registration-page #user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid select:not([type="checkbox"]), body.user-registration-page #user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid select:not([type="file"]), body.user-registration-page .user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid input:not([type="radio"]), body.user-registration-page .user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid input:not([type="checkbox"]), body.user-registration-page .user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid input:not([type="file"]), body.user-registration-page .user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid textarea:not([type="radio"]), body.user-registration-page .user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid textarea:not([type="checkbox"]), body.user-registration-page .user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid textarea:not([type="file"]), body.user-registration-page .user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid select:not([type="radio"]), body.user-registration-page .user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid select:not([type="checkbox"]), body.user-registration-page .user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid select:not([type="file"]), body.user-registration-membership_page_user-registration-login-forms #user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid input:not([type="radio"]), body.user-registration-membership_page_user-registration-login-forms #user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid input:not([type="checkbox"]), body.user-registration-membership_page_user-registration-login-forms #user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid input:not([type="file"]), body.user-registration-membership_page_user-registration-login-forms #user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid textarea:not([type="radio"]), body.user-registration-membership_page_user-registration-login-forms #user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid textarea:not([type="checkbox"]), body.user-registration-membership_page_user-registration-login-forms #user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid textarea:not([type="file"]), body.user-registration-membership_page_user-registration-login-forms #user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid select:not([type="radio"]), body.user-registration-membership_page_user-registration-login-forms #user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid select:not([type="checkbox"]), body.user-registration-membership_page_user-registration-login-forms #user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid select:not([type="file"]), body.user-registration-membership_page_user-registration-login-forms .user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid input:not([type="radio"]), body.user-registration-membership_page_user-registration-login-forms .user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid input:not([type="checkbox"]), body.user-registration-membership_page_user-registration-login-forms .user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid input:not([type="file"]), body.user-registration-membership_page_user-registration-login-forms .user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid textarea:not([type="radio"]), body.user-registration-membership_page_user-registration-login-forms .user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid textarea:not([type="checkbox"]), body.user-registration-membership_page_user-registration-login-forms .user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid textarea:not([type="file"]), body.user-registration-membership_page_user-registration-login-forms .user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid select:not([type="radio"]), body.user-registration-membership_page_user-registration-login-forms .user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid select:not([type="checkbox"]), body.user-registration-membership_page_user-registration-login-forms .user-registration:not(.user-registration-MyAccount):has(.ur-frontend-form--flat) .user-registration-form-login .ur-form-row .ur-form-grid select:not([type="file"]){
    background: #333!important;
}

/* QR Pass Modal Overlay */
.qr-pass-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-pass-modal {
    background: #1C1C1E;
    border-radius: 20px;
    padding: 32px 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.qr-pass-modal .modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 36px;
    height: 36px;
    background: #2C2C2E;
    border: none;
    border-radius: 50%;
    color: #8E8E93;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qr-pass-modal .modal-close:hover {
    background: #3A3A3C;
    color: #FFFFFF;
}

.qr-pass-modal h2 {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px 0;
    text-align: center;
}

.qr-pass-modal .form-group {
    margin-bottom: 20px;
}

.qr-pass-modal .form-group label {
    display: block;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.qr-pass-modal .form-group input {
    width: 100%;
    padding: 14px 16px;
    background: #2C2C2E;
    border: 1px solid #3A3A3C;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 16px;
    transition: all 0.2s ease;
}

.qr-pass-modal .form-group input:focus {
    outline: none;
    border-color: var(--brand-color);
}

.qr-pass-modal .form-group small {
    display: block;
    color: #636366;
    font-size: 12px;
    margin-top: 6px;
}

/* Guest Pass Form */
.guest-pass-form {
    background: #1C1C1E;
    border-radius: 16px;
    padding: 24px;
}

.guest-pass-form .form-group {
    margin-bottom: 16px;
}

.guest-pass-form .form-group label {
    display: block;
    color: #8E8E93;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.guest-pass-form .form-group input {
    width: 100%;
    padding: 14px 16px;
    background: #2C2C2E;
    border: 1px solid #3A3A3C;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 16px;
    transition: all 0.2s ease;
}

.guest-pass-form .form-group input:focus {
    outline: none;
    border-color: var(--brand-color);
}

/* QR Pass Display */
#qr-pass-card {
    background: linear-gradient(135deg, #1C1C1E 0%, #2C2C2E 100%);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
}

#qr-pass-card h3 {
    color: var(--brand-color);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 24px 0;
}

#qr-pass-card img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

#qr-pass-card p {
    margin: 8px 0;
}

/* Perk Award Badges */
.perk-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 4px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.perk-notification {
    background: linear-gradient(135deg, #34C759 0%, #2ecc71 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    text-align: center;
    animation: perkPulse 2s ease infinite;
}

@keyframes perkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.perk-notification h3 {
    font-size: 24px;
    color: #000;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.perk-notification p {
    color: #000;
    font-size: 16px;
    margin: 0;
}

/* Award Perk Button */
.award-perk-btn {
    background: var(--brand-color);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
}

.award-perk-btn:active {
    transform: scale(0.98);
}

.award-perk-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Guest Pass Info Styles */
.guest-info-display {
    background: #2C2C2E;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.guest-info-display p {
    color: #8E8E93;
    font-size: 14px;
    margin: 8px 0;
}

.guest-info-display p strong {
    color: #FFFFFF;
}

/* QR Pass Page Specific */
#qr-pass-page .vip-page-header {
    display: block;
    margin-bottom: 24px;
}

#qr-pass-page .vip-page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

/* Form styling consistency */
#qr-pass-form input,
#guest-info-form input {
    -webkit-appearance: none;
    appearance: none;
}

#qr-pass-form input::placeholder,
#guest-info-form input::placeholder {
    color: #636366;
}

/* Success state for awarded perks */
.perk-awarded {
    background: #999 !important;
    cursor: not-allowed !important;
}

/* Responsive adjustments for QR Pass */
@media (max-width: 640px) {
    .qr-pass-modal {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .qr-pass-modal h2 {
        font-size: 20px;
    }
}

/* Loading state for buttons in modal */
.qr-pass-modal .loading-spinner.small {
    width: 16px;
    height: 16px;
    border-width: 2px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

/* Print styles for guest passes */
@media print {
    .qr-pass-modal-overlay {
        background: #fff;
    }
    
    .qr-pass-modal .modal-close,
    .qr-pass-modal button {
        display: none !important;
    }
    
    #qr-pass-card {
        box-shadow: none;
    }
}

/* Enhanced status badges for guests */
.guest-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guest-status-badge.converted {
    background: #34C759;
    color: #000;
}

.guest-status-badge.pending {
    background: #FF9500;
    color: #000;
}

/* Perk details in admission screen */
.perk-details {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.perk-details h3 {
    color: #000;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.perk-item {
    background: #fff;
    color: #000;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.perk-item h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.perk-item p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

/* Enhanced button styles for perk actions */
.btn-perk {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-perk:active {
    transform: scale(0.98);
}

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

/* SMS Verification Styles */

.verification-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.verification-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: 120px;
}

.verification-method-btn svg {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.verification-method-btn small {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 400;
    margin-top: 4px;
}

.verification-method-btn:hover {
    border-color: var(--accent);
    background: var(--bg-elevated);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.verification-method-btn:active {
    transform: translateY(0);
}

.verification-method-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.verification-status {
    padding: 12px 16px;
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.verification-status p {
    margin: 0;
    color: #34C759;
    font-size: 14px;
    font-weight: 500;
}

/* Loading spinner for buttons */
.loading-spinner.small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

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

/* Button spacing */
#resend-code-btn,
#change-method-btn {
    margin-top: 8px;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .verification-methods {
        grid-template-columns: 1fr;
    }
    
    .verification-method-btn {
        min-height: 100px;
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    .verification-methods {
        max-width: 500px;
        margin: 0 auto 16px;
    }
}