:root {
    --primary: #2B55ED;
    --primary-dark: #1A3EBF;
    --bg-dark: #0B1C3F;
    --bg-light: #1A2E5A;
    --surface: #FFFFFF;
    --text-main: #FFFFFF;
    --text-muted: #B0BACC;
    --accent: #E53935;
    --success: #4CAF50;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.05);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Transitions */
#app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

#main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
}

.view {
    display: none;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.view.active { display: flex; }

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

.hidden { display: none !important; }

/* Login View */
#login-view {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light) 100%);
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.logo-large {
    margin-bottom: 40px;
}

.logo-large .logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-large .accent { color: var(--primary); }

.login-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    margin-left: 4px;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}

.input-group input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
}

/* Header */
header {
    height: 70px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    justify-content: space-between;
}

.btn-icon {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
    min-width: 44px;
    min-height: 44px;
}

.header-title {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.status-indicators {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 4px;
}
.status-dot.offline { background: #E53935; }
.status-dot.online { background: #4CAF50; box-shadow: 0 0 8px #4CAF50; }

.printer-btn {
    position: relative;
    display: flex;
    align-items: center;
}

/* Dashboard */
.welcome-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-dark) 100%);
    margin: 20px;
    padding: 24px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    color: white;
}

.welcome-card h2 { color: white; font-size: 1.4rem; }

.area-badge {
    background: var(--bg-dark);
    padding: 10px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 20px;
}

.dash-item {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.dash-item:active { transform: scale(0.95); background: rgba(255,255,255,0.1); }

.dash-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(43, 85, 230, 0.3);
}

.dash-item:hover .dash-icon {
    transform: scale(1.1);
}

.btn-logout-slim {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-logout-slim:hover {
    background: rgba(229, 57, 53, 0.1);
    color: var(--accent);
    border-color: var(--accent);
}

.form-row {
    display: flex;
    gap: 12px;
}
.flex-1 { flex: 1; }

.select-field {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    color: white;
    width: 100%;
}

.valve-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.valve-grid input {
    text-align: center;
    padding: 12px 5px !important;
}

/* Header Fix */
header {
    pointer-events: auto !important;
}

.btn-icon {
    position: relative;
    pointer-events: auto !important;
}

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

.field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.glass-input {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    color: white;
    font-size: 1rem;
    width: 100%;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.select-wrapper.glass-input {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.select-wrapper.glass-input select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    height: 100%;
    padding: 16px;
    padding-right: 40px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    border-radius: 14px;
}

.select-wrapper.glass-input select option {
    background: #0f172a; /* Solid dark background for options */
    color: white;
}

.select-wrapper.glass-input::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="rgba(255,255,255,0.5)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

.glass-input:focus-within, .glass-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(43, 85, 230, 0.1);
}

.input-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plate-input-group {
    display: flex;
    gap: 8px;
}

.plate-input {
    flex: 1;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
}

.btn-check {
    width: 56px;
    background: var(--primary);
    border: none;
    border-radius: 14px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clickable-input {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.clickable-input .value-display {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.action-footer {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 12px;
    margin-top: 20px;
    padding-bottom: 30px;
}

.btn.primary-action {
    background: var(--primary);
    color: white;
    font-weight: 800;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(43, 85, 230, 0.3);
}

.btn.secondary-action {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: white;
    font-weight: 600;
}

.clickable { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }

/* Observation & Photos */
.observation-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.photo-add, .photo-item {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#obs-notes {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    padding: 15px;
    min-height: 100px;
    resize: none;
}

/* Camera Modal Custom */
.camera-content {
    padding: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    background: black;
    display: flex;
    flex-direction: column;
}

#camera-preview {
    flex: 1;
    width: 100%;
    object-fit: cover;
}

.camera-ui {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-capture {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 5px solid white;
    background: transparent;
    cursor: pointer;
}

.btn-close {
    position: absolute;
    right: 30px;
    background: transparent;
    border: none;
    color: white;
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 18px;
    border-radius: 16px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: 0.2s;
}

.btn.primary { background: var(--primary); color: white; box-shadow: 0 8px 20px var(--primary-glow); }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; border: 1px solid var(--border); padding: 14px; border-radius: 12px; font-weight: 600; }

.btn:disabled { opacity: 0.3; cursor: not-allowed; }
.drawer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #0f172a; /* Solid dark for drawers */
    border-radius: 30px 30px 0 0;
    height: 75%;
    z-index: 1000;
    padding: 24px;
    border-top: 1px solid var(--border);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.area-badge-home {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px 15px;
    margin-top: 10px;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}
.area-badge-home .label {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05rem;
}
.area-badge-home .area-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

.drawer.hidden { transform: translateY(100%); }

.drawer-header {
    padding: 0 0 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.drawer-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.drawer-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.area-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.area-item:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.98);
}

.area-item .code-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.area-item .code {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
}

.area-item .name {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 999;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    padding: 32px;
    color: var(--bg-dark);
    text-align: center;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    color: #000;
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: 700;
    z-index: 3000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* History */
.history-item {
    background: var(--glass);
    margin-bottom: 12px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plate { font-weight: 800; font-size: 1.1rem; }
.time { font-size: 0.8rem; color: var(--text-muted); }

/* Scanner */
.viewfinder-container {
    width: 100%;
    aspect-ratio: 1;
    background: #000;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--primary);
}

#reader { width: 100% !important; height: 100% !important; }

.scanner-controls-top {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.btn-scan-util {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-scan-util:active {
    transform: scale(0.9);
}

.btn-scan-util.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

/* Observations v2 */
.overview-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    margin: 15px;
    border-radius: 12px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(43, 85, 230, 0.3);
}

.tab-content.hidden {
    display: none;
}
.obs-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Observation Card ───────────────────────────────────────── */
.obs-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Top row: plate + timer */
.obs-card .obs-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.obs-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.obs-card-left .plate {
    font-size: 1.4rem;
    font-weight: 900;
    color: white;
    display: block;
    letter-spacing: 1px;
    line-height: 1.1;
}

.obs-card-left .car-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: block;
}

.obs-card-left .area-mini {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(43, 85, 230, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

.obs-timer {
    text-align: right;
    flex-shrink: 0;
}

.timer-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    display: block;
    line-height: 1;
}

.timer-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    display: block;
    margin-top: 3px;
}

.obs-card.ready {
    border-color: rgba(76, 175, 80, 0.4);
    background: rgba(76, 175, 80, 0.03);
}

.obs-card.ready .timer-value {
    color: #4CAF50;
}

.ready {
    border: 1px solid rgba(76, 175, 80, 0.4) !important;
    background: rgba(76, 175, 80, 0.03) !important;
}

/* Cause row */
.obs-cause-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.obs-cause-text {
    font-size: 0.8rem;
    color: #A0B4CC;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.obs-cause-missing .obs-cause-text {
    color: #F6AD55;
}

/* Action buttons row */
.obs-actions {
    display: flex;
    gap: 8px;
    padding: 12px 18px;
    align-items: center;
}

.btn-micro {
    padding: 7px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: #A0B4CC;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.15s;
}

.btn-micro:active {
    background: rgba(255, 255, 255, 0.14);
}

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

.btn-micro.secondary {
    background: rgba(255, 255, 255, 0.07);
    color: #A0B4CC;
}

.btn-micro.danger {
    background: rgba(229, 57, 53, 0.12);
    color: #EF5350;
    border-color: rgba(229, 57, 53, 0.2);
}

.btn-micro.hidden {
    display: none;
}

/* Premium Printer Hub */
.settings-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.premium-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.card-header .icon-box {
    width: 40px;
    height: 40px;
    background: rgba(43, 85, 230, 0.15);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.title-status {
    flex: 1;
}

.status-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 4px;
    text-transform: uppercase;
}

.status-badge.offline { background: rgba(229, 57, 53, 0.1); color: var(--accent); }
.status-badge.online { background: rgba(76, 175, 80, 0.1); color: var(--success); }

.card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn.secondary-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: white;
}

.btn.secondary-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Help Section */
.help-section {
    background: rgba(43, 85, 230, 0.05);
    border: 1px solid rgba(43, 85, 230, 0.2);
    border-radius: 20px;
    padding: 24px;
}

.help-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.help-grid {
    display: grid;
    gap: 16px;
}

.help-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.help-item strong {
    font-size: 0.85rem;
    color: white;
}

.help-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Ticket Preview Modal ───────────────────────────────────── */
.ticket-preview-content {
    background: #0D1527;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
    max-width: 420px;
    width: 94%;
    max-height: 90dvh;
    border-radius: 28px;
    text-align: left;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ticket-header {
    background: linear-gradient(135deg, rgba(43, 85, 230, 0.15) 0%, rgba(43, 85, 230, 0.03) 100%);
    padding: 20px 24px 18px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.ticket-header h2 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    color: white;
}

.ticket-status-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(43, 85, 230, 0.2);
    border: 1px solid rgba(43, 85, 230, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #7BA7FF;
}

.ticket-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Plate section */
.ticket-section {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ticket-section:last-of-type {
    border-bottom: none;
}

.ticket-section .label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #5A7099;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.ticket-section .value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #E8EFF8;
}

.ticket-section .value.plate-display {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 3px;
    line-height: 1;
}

.ticket-section .value.highlight {
    color: #63B3ED;
    font-size: 0.95rem;
}

/* Grid: Køretøj + Område */
.ticket-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ticket-item {
    padding-right: 12px;
}

.ticket-item + .ticket-item {
    padding-right: 0;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.ticket-item .label,
.ticket-item > span.label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #5A7099;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.ticket-item .value,
.ticket-item > span.value {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #E8EFF8;
}

.ticket-divider {
    display: none;
}

/* Time box */
.ticket-time-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 14px 0;
}

.time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.time-row + .time-row {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 6px;
    padding-top: 6px;
}

.label-mini {
    font-size: 0.75rem;
    color: #5A7099;
    font-weight: 600;
}

.value-mini {
    font-size: 0.88rem;
    font-weight: 700;
    color: #E8EFF8;
}

.amount-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(43, 85, 230, 0.12), rgba(43, 85, 230, 0.04));
    border: 1px solid rgba(43, 85, 230, 0.25);
    padding: 16px 20px;
    border-radius: 16px;
    margin: 14px 0 4px;
}

.amount-box span:first-child {
    font-size: 0.72rem;
    font-weight: 800;
    color: #5A7099;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.amount-box .amount {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
}

.modal-actions-stacked {
    padding: 16px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-actions-stacked .btn {
    width: 100%;
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px;
    cursor: pointer;
}

/* Online Check Results */
.check-result {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

.check-result.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.check-result.fail {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.check-result svg {
    flex-shrink: 0;
}

/* Inline Edit Helpers */
.preview-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.edit-btn-mini {
    background: rgba(71, 107, 255, 0.15);
    border: none;
    padding: 5px 12px;
    border-radius: 8px;
    color: #63B3ED;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.edit-btn-mini:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.timer-ready-btn {
    background: #4CAF50 !important;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

/* Logbook Styles */
.logbook-container {
    padding: 20px;
}
.area-selection-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.log-entries {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.log-entry {
    background: #1A2B4C;
    border-radius: 10px;
    padding: 12px;
    border-left: 4px solid #5C6A89;
    animation: slideUpLog 0.3s ease-out;
}
.log-entry.type-ticket {
    border-left-color: #E53935;
}
.log-entry.type-obs {
    border-left-color: #4CAF50;
}
.entry-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.entry-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #8C99B4;
}
.entry-time {
    font-size: 0.75rem;
    color: #8C99B4;
}
.entry-plate {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.entry-info {
    font-size: 0.85rem;
    color: #D1D8E5;
}
.empty-msg {
    text-align: center;
    color: #8C99B4;
    padding: 40px;
    font-style: italic;
}

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

/* Area Info Box */
.area-info-box {
    background: linear-gradient(135deg, #FFF9C4 0%, #FFEB3B 100%);
    border: 2px solid #FBC02D;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    color: #455A64;
    box-shadow: 0 4px 12px rgba(251, 192, 45, 0.2);
}
.area-info-box .field-label {
    color: #F57C00;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.05rem;
}
.area-info-box .info-content {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}
.area-info-box.hidden {
    display: none !important;
}

/* Search in Drawer */
.search-box {
    margin: 10px 0 15px;
}
.search-box input {
    background: rgba(255, 255, 255, 0.05) !important;
}

.logbook-tabs {
    margin: 10px 0 15px;
}

.drawer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
}
.drawer-overlay.hidden {
    display: none !important;
}

/* Scanner Status Overlay */
.scanner-status-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    padding: 1.5rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 250px;
    white-space: pre-line;
}

.scanner-status-overlay.info {
    background: rgba(43, 108, 176, 0.8); /* Primary Blue */
}

.scanner-status-overlay.success {
    background: rgba(56, 161, 105, 0.9); /* Green */
    box-shadow: 0 0 30px rgba(56, 161, 105, 0.5);
    border-color: rgba(255,255,255,0.6);
}

.scanner-status-overlay.danger {
    background: rgba(229, 62, 62, 0.9); /* Red */
    box-shadow: 0 0 30px rgba(229, 62, 62, 0.5);
    border-color: rgba(255,255,255,0.6);
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate(-50%, -55%); }
  20%, 80% { transform: translate(-50%, -45%); }
  30%, 50%, 70% { transform: translate(-52%, -50%); }
  40%, 60% { transform: translate(-48%, -50%); }
}

#reader {
    position: relative;
    overflow: hidden;
    flex: 1; /* Take all available space */
    background: #000;
}

#reader::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%; /* Slightly wider for mobile */
    height: 30%; /* Shorter for better targeting */
    border: 3px solid rgba(0, 255, 0, 0.6);
    border-radius: 12px;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 10;
}

#reader .scan-line {
    position: absolute;
    width: 80%;
    height: 2px;
    background: #00ff00;
    left: 10%;
    top: 30%;
    z-index: 11;
    box-shadow: 0 0 15px #00ff00;
    animation: scanMove 2s infinite ease-in-out;
}

@keyframes scanMove {
    0%, 100% { top: 30%; }
    50% { top: 70%; }
}

/* Printer Stats Grid */
.printer-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-light);
}

/* Expert Mode Toggle */
.diag-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.switch-expert {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Printer Terminal */
.printer-terminal {
    background: #000;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
    margin-top: 20px;
}
.terminal-header {
    background: #1a1a1a;
    padding: 8px 12px;
    font-size: 0.7rem;
    color: #888;
    font-weight: 700;
    letter-spacing: 0.05rem;
    border-bottom: 1px solid #333;
}
/* Terminal Adjustments */
.terminal-log {
    height: 180px;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    overflow-y: auto;
    color: #0f0;
}
.terminal-line { margin-bottom: 4px; }
.terminal-line.error { color: #f87171; }
.terminal-line.info { color: #60a5fa; }

.command-input-group {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-refresh {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4CAF50;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-refresh:active {
    background: #4CAF50;
    color: white;
    transform: scale(0.92);
}

.version-tag {
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.7;
}

/* v1.5.0 Dashboard Scanner */
.scanner-dashboard {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    background: var(--bg-dark);
}

.scanner-header-compact {
    text-align: center;
}

.scanner-title {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.scanner-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.reader-container-card {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#reader {
    width: 100%;
    height: 100%;
}

.viewfinder-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

.viewfinder-overlay .viewport-box {
    display: none;
}

.floating-torch {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    backdrop-filter: blur(5px);
}

.floating-torch.active {
    background: #FFD700;
    color: black;
}

.scanning-status-text {
    text-align: center;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 15px;
    animation: pulseText 2s infinite;
}

@keyframes pulseText {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}



.scanner-actions-row {
    display: flex;
    gap: 12px;
}

.btn-action-outline {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: white;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-action-outline:active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(0.95);
}

.anpr-results-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0; /* Allow scrolling */
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.anpr-live-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ANPR Feed Items */
.anpr-feed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 14px;
    border-left: 5px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    animation: slideIn 0.25s ease;
}
.anpr-feed-item:active { transform: scale(0.97); }

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

/* Red — no license */
.anpr-feed-item.danger {
    background: rgba(220, 38, 38, 0.15);
    border-left-color: #DC2626;
}
/* Green — valid license */
.anpr-feed-item.success {
    background: rgba(22, 163, 74, 0.15);
    border-left-color: #16A34A;
}
/* Yellow — guest permit */
.anpr-feed-item.guest {
    background: rgba(202, 138, 4, 0.15);
    border-left-color: #CA8A04;
}

.plate-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plate-box .country {
    font-size: 0.65rem;
    font-weight: 800;
    background: rgba(255,255,255,0.12);
    padding: 3px 6px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.7);
}

.plate-box .plate {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
}

.status-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 20px;
}

.danger  .status-badge { background: #DC2626; color: #fff; }
.success .status-badge { background: #16A34A; color: #fff; }
.guest   .status-badge { background: #CA8A04; color: #fff; }

.plate-meta {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
}

/* ── Session counter bar ───────────────────────────────────── */
.session-counter-bar {
    display: flex;
    gap: 12px;
}

.session-stat {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.session-stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    letter-spacing: -1px;
}

.session-stat-number.danger {
    color: #DC2626;
}

.violation-stat.has-violations {
    border-color: rgba(220, 38, 38, 0.5);
    background: rgba(220, 38, 38, 0.1);
}

.session-stat-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ── Detection flash overlay ───────────────────────────────── */
.scan-flash {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.scan-flash.danger.visible  { background: rgba(220, 38, 38, 0.35); opacity: 1; }
.scan-flash.success.visible { background: rgba(22, 163, 74, 0.25); opacity: 1; }
.scan-flash.guest.visible   { background: rgba(202, 138, 4, 0.25);  opacity: 1; }

/* ── Zoom slider ───────────────────────────────────────────── */
.zoom-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
}

.zoom-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,0.15);
    outline: none;
}

.zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FFD700;
    cursor: pointer;
    border: 2px solid rgba(0,0,0,0.3);
}

/* ── Widen scanner actions row for 4 buttons ───────────────── */
.scanner-actions-row {
    display: flex;
    gap: 8px;
}

.scanner-actions-row .btn-action-outline {
    font-size: 0.75rem;
    padding: 10px 6px;
}

/* ── New Ticket View (nt-*) ─────────────────────────────────── */
#new-ticket-view {
    background: #0f172a;
}

.nt-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Observation timer card */
.nt-obs-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #1A2E5A 100%);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary);
}

.nt-obs-type {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.nt-obs-plate {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 6px;
}

.nt-obs-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.nt-obs-right {
    text-align: right;
}

.nt-obs-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.nt-obs-timer-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 4px;
}

.nt-obs-timer-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Form card */
.nt-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nt-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nt-field-row {
    display: flex;
    gap: 12px;
}

.nt-field-half {
    flex: 1;
}

.nt-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.nt-required {
    color: var(--accent);
}

.nt-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    width: 100%;
    transition: border-color 0.2s;
}

.nt-input:focus {
    border-color: var(--primary);
    background: rgba(43,85,237,0.08);
}

.nt-plate-input {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
}

.nt-textarea {
    resize: none;
    line-height: 1.5;
}

.nt-plate-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.nt-plate-row .nt-input {
    flex: 1;
}

.nt-check-btn {
    background: var(--primary);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.nt-check-btn:active { background: var(--primary-dark); }

.nt-trigger {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    transition: background 0.15s;
    min-height: 46px;
}

.nt-trigger:active { background: rgba(255,255,255,0.1); }

.nt-select-wrap {
    position: relative;
}

.nt-select-wrap::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(255,255,255,0.4);
    pointer-events: none;
}

.nt-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px 36px 12px 14px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    width: 100%;
    outline: none;
    cursor: pointer;
}

.nt-select option {
    background: #0f172a;
    color: #fff;
}

/* Toggle switch */
.nt-toggle-field {
    justify-content: space-between;
    flex-direction: column;
}

.nt-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    margin-top: 4px;
}

.nt-toggle input { opacity: 0; width: 0; height: 0; }

.nt-toggle-track {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 13px;
    transition: 0.3s;
    cursor: pointer;
}

.nt-toggle-track::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.nt-toggle input:checked + .nt-toggle-track {
    background: var(--primary);
}

.nt-toggle input:checked + .nt-toggle-track::before {
    transform: translateX(22px);
}

/* Photo section */
.nt-photo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nt-photo-btn {
    background: rgba(255,255,255,0.06);
    border: 1.5px dashed rgba(255,255,255,0.2);
    border-radius: 10px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: background 0.2s;
}

.nt-photo-btn:active { background: rgba(255,255,255,0.1); }

.nt-photo-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nt-photo-thumbs img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Divider */
.nt-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 4px 0;
}

/* Amount display */
.nt-amount-field {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.nt-amount-display {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.nt-currency {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.nt-amount-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

/* Action buttons */
.nt-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 10px;
}

.nt-btn-approve {
    background: var(--primary);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    font-family: inherit;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(43,85,237,0.35);
    transition: all 0.2s;
}

.nt-btn-approve:disabled {
    opacity: 0.4;
    box-shadow: none;
    cursor: not-allowed;
}

.nt-btn-approve:not(:disabled):active {
    transform: scale(0.97);
    background: var(--primary-dark);
}

.nt-btn-observe {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.nt-btn-observe:active { background: rgba(255,255,255,0.1); }
