/* SPLTTR - Mobile-First Styles */

:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --secondary: #6B7280;
    --background: #F9FAFB;
    --surface: #FFFFFF;
    --text: #111827;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --error: #EF4444;
    --success: #10B981;
    --warning: #F59E0B;
    --claimed-bg: #ECFDF5;
    --subtotal-progress-bg: #D1FAE5;
    --subtotal-complete-start: #FEF3C7;
    --subtotal-complete-end: #FDE68A;
    --warning-bg: #FEF3C7;
    --warning-border: #FCD34D;
    --warning-text: #92400E;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);

    --radius: 12px;
    --radius-lg: 20px;

    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
}

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

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--background);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

#app {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Screens */
.screen {
    display: none;
    flex-direction: column;
    height: 100%;
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
}

.screen.active {
    display: flex;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    min-height: 56px;
}

header h1 {
    font-size: 18px;
    font-weight: 600;
}

.back-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
}

.icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-primary:hover, .btn-primary:active {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover, .btn-secondary:active {
    background: var(--background);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    width: 100%;
}

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

/* Loading Screen */
#loading-screen {
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-content .logo {
    font-size: 64px;
    margin-bottom: 16px;
}

.loading-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.spinner.large {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

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

/* Home Screen */
.home-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}

.hero {
    text-align: center;
    padding: 40px 0;
}

.hero h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.hero p {
    color: var(--text-muted);
    font-size: 16px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.auth-section {
    text-align: center;
    padding: 24px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.auth-section p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

.auth-section.hidden {
    display: none;
}

/* Avatar */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar.large {
    width: 80px;
    height: 80px;
}

.avatar.hidden {
    display: none;
}

#profile-icon {
    font-size: 24px;
}

/* Scan Screen */
.scan-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.scan-prompt {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    gap: 16px;
}

.scan-prompt.hidden {
    display: none;
}

.scan-icon {
    font-size: 64px;
    margin-bottom: 8px;
}

.scan-prompt h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.scan-prompt p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.scan-prompt .btn {
    width: 100%;
    max-width: 280px;
}

.scan-preview {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.scan-preview.hidden {
    display: none;
}

#preview-image {
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    background: #000;
    border-radius: 8px;
}

.preview-actions {
    display: flex;
    gap: 12px;
    padding: 16px 0;
}

.preview-actions .btn {
    flex: 1;
}

/* Processing Screen */
#processing-screen {
    justify-content: center;
    align-items: center;
}

.processing-content {
    text-align: center;
    padding: 24px;
}

.processing-content h2 {
    margin: 24px 0 8px;
}

.processing-content p {
    color: var(--text-muted);
}

/* Upload Progress Bar */
.upload-progress {
    margin-top: 24px;
    width: 100%;
    max-width: 280px;
}

.upload-progress-track {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 4px;
    transition: width 0.2s ease-out;
}

.upload-progress-text {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-muted);
    min-height: 20px;
}

/* Bill Screen */
.bill-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Scan Quality Warning */
.scan-quality-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--warning-bg);
    border-bottom: 1px solid var(--warning-border);
    color: var(--warning-text);
    font-size: 13px;
}

.scan-quality-warning.hidden {
    display: none;
}

.scan-quality-warning .warning-icon {
    flex-shrink: 0;
}

.scan-quality-warning .warning-text {
    flex: 1;
}

.participants-bar {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    overflow-x: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.participant-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--background);
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
}

.participant-chip .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.participant-chip.owner {
    border: 2px solid var(--primary);
}

.items-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
}

.item-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--surface);
    border-radius: var(--radius);
    margin-bottom: 6px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.item-card:active {
    transform: scale(0.98);
}

.item-card.claimed {
    border-left: 4px solid var(--text);
}

.item-card.claimed-by-me {
    border-left-color: var(--primary);
    background: var(--claimed-bg);
}

.item-card.suspect {
    border-left: 4px solid var(--warning, #F59E0B);
    background: var(--warning-bg);
}

.item-issue {
    font-size: 11px;
    color: var(--warning-text);
    margin-top: 2px;
}

.item-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.item-card.claimed .item-checkbox {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.item-checkbox::after {
    content: '✓';
    display: none;
}

.item-card.claimed .item-checkbox::after {
    display: block;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-claimer {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.item-price-area {
    text-align: right;
    flex-shrink: 0;
}

.item-price {
    font-weight: 600;
    color: var(--text);
}

.item-unit-price {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.item-qty {
    color: var(--primary);
    font-weight: 600;
}

/* Share link on claimed items */
.share-item-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.share-item-link:active {
    opacity: 0.7;
}

/* Split Sheet */
.split-sheet-content {
    padding-bottom: calc(16px + var(--safe-bottom));
}

.split-sheet-item {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 16px;
}

.split-sheet-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.split-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
}

.split-option:active {
    transform: scale(0.98);
}

.split-option.active {
    border-color: var(--primary);
    background: var(--claimed-bg, #ECFDF5);
}

.split-option-label {
    font-weight: 500;
    color: var(--text);
}

.split-option-price {
    color: var(--text-muted);
    font-weight: 600;
}

.split-option.active .split-option-label {
    color: var(--primary);
}

.split-option.active .split-option-price {
    color: var(--primary);
}

/* Bill Summary */
.bill-summary {
    padding: 8px 12px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
}

.compact-row {
    font-size: 13px;
    color: var(--text-muted);
}

.compact-row .total-label {
    color: var(--text);
    font-size: 15px;
}

/* Subtotal Progress Bar */
.subtotal-row {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    padding: 6px 12px;
    margin: 0 -8px;
    width: calc(100% + 16px);
}

.subtotal-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--subtotal-progress-bg);
    transition: width 0.3s ease-out, background-color 0.3s ease-out;
    z-index: 0;
}

.subtotal-progress.complete {
    background: linear-gradient(90deg, var(--subtotal-complete-start) 0%, var(--subtotal-complete-end) 100%);
}

.subtotal-row > span {
    position: relative;
    z-index: 1;
}

.tip-selector {
    display: flex;
    gap: 6px;
}

.tip-btn {
    flex: 1;
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.tip-btn.active {
    background: white;
    color: var(--primary);
    border-color: white;
    font-weight: 600;
}

.tip-custom-btn {
    flex: 0.8;
    font-size: 11px;
}

.tip-custom-input {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}

.tip-custom-input.hidden {
    display: none;
}

.tip-custom-input input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    font-size: 13px;
    max-width: 80px;
    background: rgba(255,255,255,0.15);
    color: white;
}

.tip-custom-input input::placeholder {
    color: rgba(255,255,255,0.5);
}

.tip-custom-input input:focus {
    outline: none;
    border-color: white;
}

.tip-custom-apply {
    padding: 6px 14px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

/* Reset test bill button */
.reset-btn {
    padding: 4px 10px;
    border: 1px solid var(--warning);
    border-radius: 6px;
    background: var(--warning-bg);
    color: var(--warning-text);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reset-btn:active {
    opacity: 0.7;
}

/* Header share button - matches tip button style */
.share-btn {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:active {
    background: var(--background);
}

.total-row {
    font-size: 14px;
    font-weight: 600;
    padding-top: 4px;
}

/* My Share */
.my-share {
    padding: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.my-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.my-share-label {
    display: flex;
    flex-direction: column;
}

.my-share h3 {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 0;
}

.tip-label {
    font-size: 12px;
    opacity: 0.75;
}

.share-amount {
    font-size: 32px;
    font-weight: 700;
}

.my-share-tip {
    margin-bottom: 10px;
}

.my-share .btn {
    background: white;
    color: var(--primary);
    width: 100%;
}

/* Join Screen */
.join-main {
    flex: 1;
    padding: 24px;
}

.join-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.join-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 500;
}

.join-form input {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
}

.join-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 100;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 24px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding-bottom: calc(24px + var(--safe-bottom));
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal h2 {
    margin-bottom: 20px;
    text-align: center;
}

/* Share Modal */
.share-qr {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.share-qr canvas {
    border-radius: var(--radius);
}

.share-code {
    text-align: center;
    font-size: 18px;
    margin-bottom: 16px;
}

.share-link {
    display: flex;
    gap: 8px;
}

.share-link input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}

/* Payment Modal */
.payment-amount {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin: 16px 0;
}

.payment-qr {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#payment-recipient, #payment-method-text {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 8px;
}

#payment-link {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 16px;
}

/* Profile Modal */
.profile-info {
    text-align: center;
    margin-bottom: 24px;
}

.profile-info h3 {
    margin-top: 12px;
}

.profile-info p {
    color: var(--text-muted);
}

.payment-settings h4 {
    margin-bottom: 12px;
}

.payment-options {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.payment-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--claimed-bg);
}

.payment-option input {
    display: none;
}

.payment-input {
    margin-bottom: 16px;
}

.payment-input.hidden {
    display: none;
}

.payment-input label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-input input {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
}

#logout-btn {
    width: 100%;
    margin-top: 16px;
    color: var(--error);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    z-index: 200;
    animation: slideUp 0.3s ease;
}

.toast.hidden {
    display: none;
}

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

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

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

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Admin Screen */
.admin-main {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.admin-section {
    margin-bottom: 32px;
}

.admin-section h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.admin-section > p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.admin-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-card-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-card-info p {
    color: var(--text-muted);
    font-size: 14px;
}

.admin-card-info .admin-card-desc {
    font-size: 12px;
    margin-top: 4px;
}

.admin-card .btn {
    flex-shrink: 0;
}

.admin-status {
    padding: 16px;
    border-radius: var(--radius);
    margin-top: 16px;
}

.admin-status.loading {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.admin-status.success {
    background: var(--claimed-bg);
    color: var(--success-text, #065F46);
}

.admin-status.success a {
    color: var(--primary-dark);
    font-weight: 600;
}

.admin-status.error {
    background: var(--error-bg, #FEE2E2);
    color: var(--error-text, #991B1B);
}

/* Responsive */
@media (min-width: 480px) {
    .modal-content {
        max-width: 420px;
        margin: auto;
        border-radius: var(--radius-lg);
        margin-bottom: 20px;
    }

    .modal {
        align-items: center;
    }
}

/* Dark Mode Toggle */
.dark-toggle {
    font-size: 18px;
    transition: transform 0.3s;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Dark Mode Variables - applied via html.dark class */
html.dark {
    --primary: #34D399;
    --primary-dark: #10B981;
    --secondary: #9CA3AF;
    --background: #111827;
    --surface: #1F2937;
    --text: #F9FAFB;
    --text-muted: #9CA3AF;
    --border: #374151;
    --error: #F87171;
    --success: #34D399;
    --warning: #FBBF24;
    --claimed-bg: rgba(52, 211, 153, 0.12);
    --subtotal-progress-bg: rgba(52, 211, 153, 0.15);
    --subtotal-complete-start: rgba(251, 191, 36, 0.15);
    --subtotal-complete-end: rgba(251, 191, 36, 0.25);
    --warning-bg: rgba(251, 191, 36, 0.15);
    --warning-border: rgba(251, 191, 36, 0.3);
    --warning-text: #FBBF24;
    --success-text: #34D399;
    --error-bg: rgba(248, 113, 113, 0.15);
    --error-text: #F87171;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 4px 6px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
}

/* Dark mode element overrides */
html.dark #preview-image {
    background: #000;
}

html.dark .join-form input,
html.dark .payment-input input,
html.dark .share-link input {
    background: var(--background);
    color: var(--text);
    border-color: var(--border);
}

html.dark .join-form input:focus,
html.dark .payment-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

html.dark .join-form input::placeholder,
html.dark .payment-input input::placeholder {
    color: var(--text-muted);
}

html.dark .modal {
    background: rgba(0,0,0,0.7);
}

html.dark .toast {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

html.dark .toast.error {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

html.dark .toast.success {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

html.dark .payment-amount {
    color: var(--primary);
}

html.dark .tip-btn {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

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

html.dark .tip-custom-input input {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: white;
}

html.dark .tip-custom-input input::placeholder {
    color: rgba(255,255,255,0.4);
}

html.dark .tip-custom-apply {
    background: white;
    color: var(--primary-dark);
}

html.dark #loading-screen {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #065F46 100%);
}

html.dark .my-share {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #065F46 100%);
}

html.dark .my-share .btn {
    background: white;
    color: var(--primary-dark);
}

html.dark .split-option {
    background: var(--surface);
    border-color: var(--border);
}

html.dark .split-option.active {
    border-color: var(--primary);
    background: var(--claimed-bg);
}

html.dark .share-btn {
    color: var(--text);
}

html.dark .item-checkbox {
    border-color: var(--border);
}

html.dark .item-card.claimed {
    border-left-color: var(--text-muted);
}

html.dark .payment-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--claimed-bg);
}

html.dark #logout-btn {
    color: var(--error);
}

html.dark .share-qr canvas,
html.dark .payment-qr canvas {
    border-radius: var(--radius);
    padding: 8px;
    background: white;
}
