/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007AFF;
    --secondary-color: #34C759;
    --danger-color: #FF3B30;
    --warning-color: #FF9500;
    --background: #F2F2F7;
    --surface: #FFFFFF;
    --text-primary: #000000;
    --text-secondary: #666666;
    --border-color: #D1D1D6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #F2F2F7;
    color: #000000;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Loading Screen
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-screen p {
    margin-top: 16px;
    color: #666666;
}

/* ============================================
   App Container
   ============================================ */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Header
   ============================================ */
.app-header {
    background: #FFFFFF;
    border-bottom: 1px solid #D1D1D6;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    color: #000000;
}

.header-spacer {
    flex: 1;
}

.header-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.header-btn:hover {
    background-color: rgba(0, 122, 255, 0.1);
}

.back-btn {
    margin-right: auto;
}

.header-app-store-link {
    margin-left: 8px;
    display: flex;
    align-items: center;
}

.header-app-store-link img {
    transition: opacity 0.2s;
}

.header-app-store-link:hover img {
    opacity: 0.8;
}

.settings-btn {
    margin-left: 8px;
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    flex: 1;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================
   Main View
   ============================================ */
.main-view {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px 0;
}

.main-header {
    text-align: center;
    padding: 20px;
}

.app-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

.app-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.app-subtitle {
    color: #666666;
    font-size: 16px;
}

.main-actions {
    display: flex;
    gap: 16px;
}

.main-btn {
    background: #FFFFFF;
    border: 2px solid #D1D1D6;
    border-radius: 16px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
}

.main-btn .btn-icon {
    margin-bottom: 16px;
    color: #000000;
}

.main-btn h2 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #000000;
}

.main-btn p {
    color: #666666;
    font-size: 14px;
}

.admin-btn:hover {
    border-color: var(--primary-color);
}

.customer-btn:hover {
    border-color: var(--secondary-color);
}

.main-footer {
    text-align: center;
    padding: 20px;
}

.version-info {
    color: #666666;
    font-size: 12px;
}

/* ============================================
   Admin Login View
   ============================================ */
.admin-login-view {
    padding: 20px 0;
}

.mode-container {
    animation: fadeIn 0.3s;
}

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

.select-mode, .create-mode, .login-mode {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mode-header, .form-header {
    text-align: center;
    padding: 20px;
}

.icon-large {
    font-size: 64px;
    margin-bottom: 16px;
}

.mode-header h2, .form-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.mode-header p {
    color: #666666;
}

.mode-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mode-btn {
    background: #FFFFFF;
    border: 2px solid #D1D1D6;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #000000;
}

.mode-btn:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.mode-btn .btn-icon {
    flex-shrink: 0;
}

.mode-btn h3 {
    font-size: 18px;
    margin-bottom: 4px;
    color: #000000;
}

.mode-btn p {
    font-size: 14px;
    color: #666666;
}

.create-btn:hover {
    border-color: var(--primary-color);
}

.login-btn:hover {
    border-color: var(--secondary-color);
}

/* ============================================
   Forms
   ============================================ */
.admin-form, .customer-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #000000;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid #D1D1D6;
    border-radius: 12px;
    font-size: 16px;
    background: #FFFFFF;
    color: #000000;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-hint {
    font-size: 12px;
    color: #666666;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary, .btn-secondary, .btn-text {
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #0051D5;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-secondary {
    background: #FFFFFF;
    color: #000000;
    border: 2px solid #D1D1D6;
}

.btn-secondary:hover {
    background: #F2F2F7;
}

.btn-text {
    background: none;
    color: var(--primary-color);
    padding: 12px;
}

.btn-text:hover {
    background: rgba(0, 122, 255, 0.1);
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 18px 32px;
    font-size: 18px;
}

.btn-issue-ticket {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    margin: 0 auto;
    display: flex;
    width: 300px;
    border: 3px solid var(--primary-color);
    padding: 24px;
}

.btn-icon-small {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--danger-color);
    border-radius: 8px;
}

.btn-icon-small:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--danger-color);
}

/* ============================================
   History Section
   ============================================ */
.history-section {
    margin-top: 32px;
}

.history-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #666666;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    background: #FFFFFF;
    border: 1px solid #D1D1D6;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #000000;
}

.history-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.history-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: #000000;
}

.history-date {
    font-size: 12px;
    color: #666666;
}

.ticket-badge {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.no-ticket {
    font-size: 14px;
    color: var(--warning-color);
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #666666;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

/* ============================================
   Admin View
   ============================================ */
.admin-view {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.event-info-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    color: #000000;
}

.event-icon {
    font-size: 48px;
}

.event-detail h2 {
    font-size: 20px;
    margin-bottom: 4px;
    color: #000000;
}

.event-id {
    font-size: 12px;
    color: #666666;
    font-family: monospace;
}

.ticket-status-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    color: #000000;
}

.status-item {
    flex: 1;
    text-align: center;
}

.status-label {
    display: block;
    font-size: 12px;
    color: #666666;
    margin-bottom: 8px;
}

.status-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.status-value.large {
    font-size: 48px;
}

#current-number {
    color: var(--text-primary);
}

#waiting-count {
    color: var(--text-primary);
    font-size: 48px;
}

.status-divider {
    width: 1px;
    height: 60px;
    background: #D1D1D6;
}

.btn-refresh, .btn-refresh-small {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--primary-color);
    border-radius: 8px;
    transition: background-color 0.2s;
    position: absolute;
    top: 12px;
    right: 12px;
}

.btn-refresh:hover, .btn-refresh-small:hover {
    background: rgba(0, 122, 255, 0.1);
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-call-next {
    background: var(--warning-color);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.btn-call-next:hover {
    background: #E68A00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    background: #FFFFFF;
    border: 1px solid #D1D1D6;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #000000;
}

.menu-item:hover {
    background: #F2F2F7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-item.danger {
    color: var(--danger-color);
}

.menu-item.danger:hover {
    background: rgba(255, 59, 48, 0.1);
}

/* ============================================
   Customer View
   ============================================ */
.customer-view {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.customer-header {
    text-align: center;
    padding: 20px;
}

.join-form-container {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ticket-view {
    animation: fadeIn 0.3s;
}

.event-info-header {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #000000;
}

.event-info-header .event-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.event-info-header h2 {
    font-size: 20px;
    color: #000000;
}

.ticket-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 3px solid #D1D1D6;
    transition: all 0.3s;
    color: #000000;
}

.ticket-card.your-turn {
    border-color: var(--warning-color);
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE6CC 100%);
    animation: pulse 2s infinite;
}

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

.ticket-label {
    font-size: 14px;
    color: #666666;
    margin-bottom: 16px;
}

.ticket-number-large {
    font-size: 80px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin: 16px 0;
}

.ticket-card.your-turn .ticket-number-large {
    color: var(--warning-color);
}

.ticket-status {
    font-size: 16px;
    font-weight: 600;
    margin-top: 16px;
}

.your-turn-text {
    color: var(--warning-color);
    font-size: 20px;
    animation: bounce 1s infinite;
}

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

.issue-ticket-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.issue-ticket-card p {
    margin-bottom: 20px;
    color: #666666;
}

.current-number-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    color: #000000;
}

.current-number-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.current-number-header h3 {
    font-size: 16px;
    color: #000000;
}

.current-number-display {
    text-align: center;
    padding: 24px;
}

.current-number-value {
    font-size: 64px;
    font-weight: 700;
    color: var(--text-primary);
}

.waiting-info {
    text-align: center;
    margin-top: 16px;
    font-size: 16px;
    color: #666666;
}

.customer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ============================================
   Modal
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFFFFF;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s;
    color: #000000;
}

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

.modal-medium {
    max-width: 400px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #D1D1D6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2, .modal-header h3 {
    font-size: 18px;
    color: #000000;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #666666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.modal-body {
    padding: 20px;
}

.settings-section {
    margin-bottom: 24px;
}

.settings-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #000000;
}

.language-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #D1D1D6;
    background: #FFFFFF;
    color: #000000;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 600;
}

.lang-btn:hover {
    background: #F2F2F7;
}

.lang-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.app-version {
    font-size: 14px;
    color: #666666;
    margin-bottom: 4px;
}

.app-description {
    font-size: 14px;
    color: #666666;
}

/* QR Code */
.qr-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.qr-tab {
    flex: 1;
    padding: 12px;
    border: 2px solid #D1D1D6;
    background: #FFFFFF;
    color: #000000;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 600;
}

.qr-tab:hover {
    background: #F2F2F7;
}

.qr-tab.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.qr-display {
    text-align: center;
}

#qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

#qr-code-container canvas {
    border-radius: 12px;
}

.btn-save-qr {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.btn-save-qr svg {
    width: 16px;
    height: 16px;
}

.qr-description {
    font-size: 14px;
    color: #666666;
}

/* QR Code Scanner */
.qr-scan-mode {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.qr-scanner-container {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

#qr-reader {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

#qr-reader video {
    border-radius: 12px;
}

#qr-reader__scan_region {
    background: transparent !important;
    position: relative;
}

#qr-reader__scan_region video {
    border-radius: 12px;
}

#qr-reader__scan_region::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    pointer-events: none;
    z-index: 10;
}

#qr-reader__dashboard {
    padding: 10px 0;
}

#qr-reader__dashboard_section {
    padding: 10px;
}

#qr-reader__dashboard_section_csr button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
}

#qr-reader__dashboard_section_swaplink {
    color: var(--primary-color);
    text-decoration: underline;
}

.qr-scanner-status {
    text-align: center;
    padding: 16px;
    color: var(--text-secondary);
}

.qr-scanner-status p.error {
    color: var(--danger-color);
}

.qr-scan-help {
    background: rgba(0, 122, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.qr-scan-help p {
    font-size: 14px;
    color: var(--primary-color);
}

.qr-scan-btn:hover {
    border-color: #9B59B6;
}

.qr-scan-btn .btn-icon {
    color: #9B59B6;
}

/* Customer QR Scan Styles */
.qr-scan-section {
    text-align: center;
    margin-bottom: 20px;
}

.btn-qr-scan {
    background: #FFFFFF;
    border: 2px solid #34C759;
    border-radius: 12px;
    padding: 14px 24px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #34C759;
    font-weight: 600;
}

.btn-qr-scan:hover {
    background: rgba(52, 199, 89, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-qr-scan svg {
    width: 20px;
    height: 20px;
}

.qr-scan-hint {
    font-size: 14px;
    color: #666666;
    margin-top: 16px;
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-join {
    flex: 1;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    min-height: 48px;
}

.btn-join:hover:not(:disabled) {
    background: #0051D5;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-qr-scan {
    flex: 0 0 100px;
    background: #FFFFFF;
    border: 2px solid #34C759;
    border-radius: 12px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #34C759;
    font-weight: 600;
    font-size: 14px;
    min-height: 80px;
}

.btn-qr-scan:hover {
    background: rgba(52, 199, 89, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* QR Scan Modal */
.qr-scan-modal .modal-content {
    max-width: 500px;
    width: 95%;
}

.qr-scan-modal-content .modal-body {
    padding: 20px;
}

#customer-qr-reader {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

#customer-qr-reader video {
    border-radius: 12px;
}

#customer-qr-reader__scan_region {
    background: transparent !important;
    position: relative;
}

#customer-qr-reader__scan_region video {
    border-radius: 12px;
}

#customer-qr-reader__scan_region::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    pointer-events: none;
    z-index: 10;
}

#customer-qr-reader__dashboard {
    padding: 10px 0;
}

#customer-qr-reader__dashboard_section {
    padding: 10px;
}

#customer-qr-reader__dashboard_section_csr button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
}

#customer-qr-reader__dashboard_section_swaplink {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    color: #FFFFFF;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideUp 0.3s;
    max-width: 90%;
}

.toast-success {
    background: var(--secondary-color);
}

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

.toast-info {
    background: var(--primary-color);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 480px) {
    .main-content {
        padding: 12px;
    }

    .app-icon {
        font-size: 60px;
    }

    .app-title {
        font-size: 24px;
    }

    .main-btn {
        padding: 24px;
    }

    .icon-large {
        font-size: 48px;
    }

    .ticket-number-large {
        font-size: 64px;
    }

    .current-number-value {
        font-size: 48px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .btn-join, .btn-qr-scan {
        flex: none;
        width: 100%;
    }

    .modal-content {
        margin: 20px;
        border-radius: 16px;
        max-height: 80vh;
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
    }
}

@media (min-width: 768px) {
    .main-actions {
        flex-direction: row;
        justify-content: space-between;
    }

    .mode-actions {
        flex-direction: row;
    }
}

/* ============================================
   Event Info Modal
   ============================================ */
.event-info-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #D1D1D6;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #000000;
    font-size: 14px;
}

.info-value {
    color: #666666;
    font-size: 14px;
    font-family: monospace;
    flex: 1;
    word-break: break-all;
    min-width: 0;
}

.info-value-with-copy {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

.copy-btn {
    background: none;
    border: 1px solid #D1D1D6;
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: rgba(0, 122, 255, 0.1);
    border-color: var(--primary-color);
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.mb-16 {
    margin-bottom: 16px;
}

.mt-16 {
    margin-top: 16px;
}

.gap-8 {
    gap: 8px;
}

.gap-16 {
    gap: 16px;
}

/* ============================================
   App Store Banner
   ============================================ */
.app-store-banner {
    display: inline-flex;
    justify-content: flex-start;
    align-items: flex-end;
    background-color: #000;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid #333;
    transition: opacity 0.2s;
    margin-left: 12px;
}
.app-store-banner:hover {
    opacity: 0.8;
}
.app-store-banner img {
    height: 24px;
    width: auto;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.x-label {
    font-size: 8px;
    text-transform: uppercase;
    opacity: 0.8;
}
.x-brand {
    font-size: 14px;
    font-weight: bold;
}
