/* ═══════════════════════════════════════════════
   DAILY REPORT VISITS - Salesman PWA
   Modern Card Design System
   ═══════════════════════════════════════════════ */

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

:root {
    --primary: #076F4F;
    --primary-dark: #053d2c;
    --primary-light: #e0f3ea;
    --primary-gradient: linear-gradient(135deg, #0b8a62, #064e3b);
    --danger: #ea4335;
    --danger-light: #fce8e6;
    --success: #16a34a;
    --success-light: #e6f4ea;
    --warning: #f59e0b;
    --warning-light: #fef7e0;
    --orange: #fa7b17;
    --bg: #eef3f9;
    --card: #ffffff;
    --text: #16181d;
    --text-secondary: #3f464e;
    --text-light: #6b7686;
    --border: #c3cad4;
    --shadow-sm: 0 2px 8px rgba(16,42,30,0.07), 0 1px 2px rgba(16,42,30,0.05);
    --shadow-md: 0 8px 24px rgba(16,42,30,0.12), 0 2px 6px rgba(16,42,30,0.06);
    --shadow-lg: 0 16px 40px rgba(16,42,30,0.16), 0 4px 12px rgba(16,42,30,0.08);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50px;
    --nav-h: 64px;
    --header-h: 56px;
}

html { height: 100%; }
body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background:
        radial-gradient(1000px 520px at 88% -8%, rgba(15,158,96,.14), transparent 60%),
        radial-gradient(900px 500px at -12% 22%, rgba(13,148,136,.10), transparent 55%),
        radial-gradient(800px 600px at 50% 110%, rgba(7,111,79,.09), transparent 60%),
        linear-gradient(180deg, #f2f7f3 0%, #ecf2f0 45%, #eef3f9 100%);
    background-attachment: fixed;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* ═══ SCREEN SYSTEM ═══ */
.screen { display: none; min-height: 100vh; min-height: 100dvh; flex-direction: column; position: relative; }
.screen.active { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes scaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ═══ HEADER ═══ */
.header {
    position: sticky; top: 0; z-index: 100;
    background: linear-gradient(180deg, #04402d 0%, #076F4F 55%, #0b8a62 100%);
    color: #fff; padding: 0 16px;
    height: var(--header-h);
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 4px 14px rgba(7,111,79,0.35), inset 0 1px 0 rgba(255,255,255,0.14);
}
.header h1 { font-size: 18px; font-weight: 600; flex: 1; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.header-back {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); color: #fff;
    font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
.header-back:active { background: rgba(255,255,255,0.3); }

/* ═══ CONTENT ═══ */
.content { flex: 1; padding: 16px; padding-bottom: calc(var(--nav-h) + 24px); overflow-y: auto; }

/* ═══ BOTTOM NAV ═══ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    background: rgba(255,255,255,0.86);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(7,111,79,0.12);
    display: none;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -6px 24px rgba(16,42,30,0.10);
}
.bottom-nav.show {
    display: flex;
}
.nav-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: 6px 0; border-radius: 12px; cursor: pointer;
    transition: all 0.2s; border: none; background: none;
    color: #6b7686; font-size: 10px; font-weight: 600;
}
.nav-item .nav-icon { font-size: 22px; transition: transform 0.2s; filter: drop-shadow(0 1px 2px rgba(16,42,30,0.12)); }
.nav-item.active { color: var(--primary); font-weight: 700; }
.nav-item.active .nav-icon { transform: scale(1.12); filter: drop-shadow(0 0 6px rgba(15,158,96,0.45)); }

/* ═══ CARDS ═══ */
.card {
    background: linear-gradient(180deg, #ffffff, #f7faf8);
    border: 1px solid #dbe8e0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.9);
    margin-bottom: 12px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}
.card-body { padding: 16px; }
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px; border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #f2f8f4, #eaf3ee);
}
.card-header h3 { font-size: 15px; font-weight: 700; color: var(--primary-dark); }
.card-title { font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.card-title::before { content: ''; width: 3px; height: 13px; border-radius: 2px; background: linear-gradient(180deg, #0f9e60, #064e3b); }
.section-title { font-size: 14px; font-weight: 700; color: var(--primary-dark); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.section-title::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, #0f9e60, #064e3b); }

/* ═══ STAT GRID ═══ */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.stat-box {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg,#fff,#f2faf6);
    border: 1px solid #d8e9df;
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
    text-align: center;
    animation: scaleIn 0.3s ease;
}
.stat-box::after {
    content: ''; position: absolute; top: -20px; right: -20px; width: 60px; height: 60px; border-radius: 50%;
    background: radial-gradient(circle, rgba(15,158,96,.14), transparent 70%);
}
.stat-box .stat-value { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1.2; }
.stat-box .stat-label { font-size: 11px; color: var(--text-secondary); margin-top: 2px; font-weight: 600; }
.stat-box.blue { background: linear-gradient(180deg, #e7f5ee, #dcefe4); }
.stat-box.blue .stat-value { color: var(--primary-dark); }
.stat-box.green { background: var(--success-light); }
.stat-box.green .stat-value { color: var(--success); }
.stat-box.orange { background: var(--warning-light); }
.stat-box.orange .stat-value { color: var(--orange); }
.stat-box.red { background: var(--danger-light); }
.stat-box.red .stat-value { color: var(--danger); }

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 24px; border-radius: var(--radius-full);
    font-size: 14px; font-weight: 700; cursor: pointer;
    border: none; transition: all 0.15s; text-decoration: none;
    position: relative;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary {
    background: linear-gradient(180deg, #0f9e60 0%, #076F4F 52%, #064e3b 100%);
    color: #fff;
    border: 1px solid #045a3e;
    border-bottom: 3px solid rgba(0,0,0,0.25);
    box-shadow: 0 5px 14px rgba(7,111,79,0.35), inset 0 1px 0 rgba(255,255,255,0.28);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.btn-primary:active { box-shadow: 0 2px 6px rgba(7,111,79,0.3), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-success { background: linear-gradient(180deg, #22c55e 0%, #16a34a 52%, #15803d 100%); color: #fff; border-bottom: 3px solid rgba(0,0,0,0.22); box-shadow: 0 5px 14px rgba(22,163,74,0.32), inset 0 1px 0 rgba(255,255,255,0.28); }
.btn-danger { background: linear-gradient(180deg, #ef5350 0%, #e11d48 55%, #be123c 100%); color: #fff; border-bottom: 3px solid rgba(0,0,0,0.22); box-shadow: 0 5px 14px rgba(225,29,72,0.32), inset 0 1px 0 rgba(255,255,255,0.22); }
.btn-warning { background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%); color: #3d2200; border-bottom: 3px solid rgba(0,0,0,0.18); box-shadow: 0 5px 14px rgba(245,158,11,0.3), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn-outline { background: rgba(7,111,79,0.05); border: 2px solid var(--primary); color: var(--primary); box-shadow: inset 0 1px 0 rgba(255,255,255,0.6); }
.btn-outline:active { background: var(--primary-light); }
.btn-full { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-icon {
    width: 48px; height: 48px; padding: 0; border-radius: var(--radius-md);
    font-size: 20px;
}
.btn-group { display: flex; gap: 8px; }
.btn-group-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ═══ WELCOME CARD ═══ */
.welcome-card {
    background: linear-gradient(135deg, #0b8a62 0%, #076F4F 55%, #04402d 100%);
    border-radius: var(--radius-md);
    padding: 20px;
    color: #fff;
    margin-bottom: 12px;
    box-shadow: 0 6px 20px rgba(7,111,79,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid #055a3f;
}
.welcome-card .wc-greeting { font-size: 14px; opacity: 0.9; }
.welcome-card .wc-name { font-size: 22px; font-weight: 700; margin-top: 2px; text-shadow: 0 1px 3px rgba(0,0,0,0.25); }

/* ═══ ACTIVE VISIT CARD ═══ */
.active-visit-card {
    background: linear-gradient(180deg,#fff7e6,#fef3d8);
    border: 2px solid var(--warning);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(245,158,11,0.18);
    animation: scaleIn 0.3s ease;
}
.active-visit-card .avc-label { font-size: 11px; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: 0.5px; }
.active-visit-card .avc-store { font-size: 18px; font-weight: 700; color: var(--text); margin: 4px 0; }
.active-visit-card .avc-timer { font-size: 28px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.active-visit-card .avc-detail { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ═══ PROGRESS BAR ═══ */
.progress-container { margin-bottom: 12px; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12px; font-weight: 500; }
.progress-track { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-fill {
    height: 100%; border-radius: 4px;
    background: var(--primary-gradient);
    transition: width 0.5s ease;
}

/* ═══ FORMS ═══ */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px; }
.form-input {
    width: 100%; padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px; color: var(--text);
    background: var(--card);
    transition: border-color 0.2s;
    outline: none;
}
.form-input:focus { border-color: var(--primary); background: #fff; }
.form-input::placeholder { color: var(--text-light); }
textarea.form-input { resize: vertical; min-height: 80px; line-height: 1.5; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235f6368'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* ═══ BUTTON GROUP (Kategori/Status) ═══ */
.btn-option-group { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-option {
    flex: 1; min-width: calc(50% - 4px);
    padding: 10px 8px; border-radius: var(--radius-sm);
    border: 2px solid var(--border); background: var(--card);
    font-size: 12px; font-weight: 600; cursor: pointer;
    text-align: center; transition: all 0.2s;
    color: var(--text-secondary);
}
.btn-option:active { transform: scale(0.97); }
.btn-option.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.btn-option .opt-icon { font-size: 18px; display: block; margin-bottom: 2px; }
.btn-option .opt-label { font-size: 11px; }

/* ═══ PRODUCT CHECKLIST ═══ */
.chip-list { display: flex; flex-direction: column; gap: 8px; }
.chip {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    border: 2px solid var(--border); background: var(--card);
    cursor: pointer; transition: all 0.2s;
}
.chip:active { transform: scale(0.98); }
.chip.checked { border-color: var(--success); background: var(--success-light); }
.chip-code {
    font-family: monospace; font-weight: 700; font-size: 13px;
    background: var(--bg); border-radius: 6px; padding: 4px 8px;
    color: var(--primary); white-space: nowrap;
}
.chip.checked .chip-code { background: #fff; }
.chip-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); }
.chip-unit { font-size: 11px; color: var(--text-secondary); border: 1px solid var(--border); border-radius: 20px; padding: 2px 10px; white-space: nowrap; }
.chip.checked .chip-unit { border-color: var(--success); color: var(--success); }

/* ═══ COMPETITOR PRODUCT REPEATER ═══ */
.comp-row {
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 10px;
    background: var(--card);
}
.comp-row-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.comp-row-title { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.3px; }
.comp-remove {
    background: var(--danger-light); color: var(--danger);
    border: none; width: 26px; height: 26px; border-radius: 50%;
    font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.comp-remove:active { transform: scale(0.9); }
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.comp-grid .comp-brand { grid-column: 1 / -1; font-weight: 600; }
.comp-grid .comp-promo { grid-column: 1 / -1; }

/* ═══ GPS INFO ═══ */
.gps-info-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    background: var(--success-light);
    font-size: 12px; font-weight: 500;
    margin-bottom: 12px;
}
.gps-info-bar.warning { background: var(--warning-light); color: var(--orange); }
.gps-info-bar.error { background: var(--danger-light); color: var(--danger); }
.gps-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.gps-dot.warning { background: var(--warning); }
.gps-dot.error { background: var(--danger); }

/* ═══ PHOTO CAPTURE ═══ */
.photo-capture {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.photo-capture:active { border-color: var(--primary); background: var(--primary-light); }
.photo-capture .pc-icon { font-size: 36px; margin-bottom: 4px; }
.photo-capture .pc-text { font-size: 12px; color: var(--text-secondary); }
.photo-capture input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-capture.has-photo { border-style: solid; border-color: var(--success); padding: 4px; }
.photo-capture.has-photo img { width: 100%; border-radius: var(--radius-sm); max-height: 200px; object-fit: cover; }
.photo-capture.has-photo .pc-overlay {
    position: absolute; bottom: 8px; left: 8px; right: 8px;
    background: rgba(0,0,0,0.6); color: #fff;
    padding: 6px 10px; border-radius: 8px;
    font-size: 11px; display: flex; align-items: center; gap: 4px;
}

/* ═══ STEP INDICATOR ═══ */
.steps { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 0; margin-bottom: 12px; }
.step-dot {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    background: var(--border); color: var(--text-light);
    transition: all 0.3s;
}
.step-dot.active { background: linear-gradient(180deg, #0f9e60, #064e3b); color: #fff; box-shadow: 0 3px 10px rgba(7,111,79,0.4); border: 1px solid #045a3e; }
.step-dot.done { background: linear-gradient(180deg, #22c55e, #16a34a); color: #fff; }
.step-line { width: 24px; height: 3px; border-radius: 2px; background: var(--border); }
.step-line.done { background: var(--success); }

/* ═══ VISIT LIST ═══ */
.visit-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}
.visit-item:active { background: var(--bg); }
.visit-item:last-child { border-bottom: none; }
.visit-num {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.visit-num.active { background: var(--warning); color: #fff; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.visit-info { flex: 1; min-width: 0; }
.visit-store { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visit-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.visit-badge {
    padding: 4px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600; flex-shrink: 0;
}
.visit-badge.active { background: var(--warning-light); color: var(--orange); }
.visit-badge.done { background: var(--success-light); color: var(--success); }
.visit-badge.offline { background: var(--danger-light); color: var(--danger); }

/* ═══ CALENDAR ═══ */
.calendar-header { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; margin-bottom: 12px; }
.calendar-header h3 { font-size: 16px; font-weight: 600; }
.cal-nav { width: 36px; height: 36px; border-radius: 10px; border: none; background: var(--bg); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cal-nav:active { background: var(--border); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-day-name { font-size: 11px; font-weight: 600; color: var(--text-light); padding: 4px 0; }
.cal-day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all 0.15s;
}
.cal-day:active { background: var(--bg); }
.cal-day.today { background: linear-gradient(180deg, #0f9e60, #064e3b); color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(7,111,79,0.35); }
.cal-day.has-data { background: var(--success-light); color: var(--success); font-weight: 600; }
.cal-day.has-data::after { content: ''; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--success); position: relative; top: 4px; }
.cal-day.empty { visibility: hidden; }
.cal-day.selected { background: linear-gradient(180deg, #0f9e60, #064e3b); color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(7,111,79,0.35); }
.cal-day.selected.has-data::after { background: #fff; }
.cal-count { position: absolute; top: 3px; right: 3px; font-size: 9px; font-weight: 700; color: #fff; background: var(--danger); border-radius: 8px; padding: 0 4px; line-height: 13px; }
.cal-day { position: relative; }

/* ═══ DEMO CALENDAR LIST ═══ */
.cal-demo-card { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--border); border-left: 4px solid var(--primary); }
.cal-demo-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cal-demo-head b { font-size: 14px; }
.cal-demo-meta { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.cal-st { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.cal-st.b { background: #e0f3ea; color: #0a6e52; }
.cal-st.g { background: var(--success-light); color: var(--success); }
.cal-st.gr { background: #e6f4ea; color: #137333; }
.cal-st.r { background: var(--danger-light); color: var(--danger); }
.cal-st.y { background: #fef7e0; color: #b06000; }

/* ═══ ATTENDANCE DETAIL ═══ */
.att-detail { padding: 16px; }
.att-detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.att-detail-row:last-child { border: none; }
.att-detail-row .adr-label { color: var(--text-secondary); }
.att-detail-row .adr-value { font-weight: 600; }

/* ═══ PREMIUM LOGIN ═══ */
.premium-login {
    position: relative; display: flex; align-items: center; justify-content: center;
    min-height: 100vh; min-height: 100dvh;
    background: linear-gradient(145deg, #2E2018, #3A281F 40%, #4A3428 70%, #2E2018);
    overflow: hidden;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0));
}

/* Brushed metal texture overlay */
.premium-login::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(184,115,51,0.03) 2px,
        rgba(184,115,51,0.03) 4px
    );
    pointer-events: none;
}

/* Radial light from top-left */
.premium-login::after {
    content: ''; position: absolute; top: -30%; left: -20%;
    width: 80%; height: 80%;
    background: radial-gradient(ellipse, rgba(184,115,51,0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Particles Canvas */
.particles-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 1;
}

/* Floating Light Orbs */
.light-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); pointer-events: none; z-index: 0;
}
.light-orb-1 {
    width: 200px; height: 200px; top: 10%; left: 5%;
    background: rgba(184,115,51,0.12);
    animation: orbFloat1 8s ease-in-out infinite;
}
.light-orb-2 {
    width: 150px; height: 150px; bottom: 20%; right: 10%;
    background: rgba(212,175,55,0.08);
    animation: orbFloat2 10s ease-in-out infinite;
}
.light-orb-3 {
    width: 120px; height: 120px; top: 50%; left: 60%;
    background: rgba(13,110,253,0.06);
    animation: orbFloat3 12s ease-in-out infinite;
}
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 40px) scale(1.2); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, -30px) scale(1.15); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

/* ═══ SPLASH INTRO ═══ */
.splash-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(145deg, #2E2018, #3A281F 40%, #4A3428);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash-overlay.fade-out { opacity: 0; visibility: hidden; }
.splash-content { text-align: center; animation: splashIn 0.8s ease; }
.splash-logo {
    width: 100px; height: 100px; margin: 0 auto 20px;
    animation: splashLogoFloat 2s ease-in-out infinite;
}
.splash-logo-img {
    width: 100%; height: 100%; object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(184,115,51,0.4)) drop-shadow(0 0 40px rgba(212,175,55,0.2));
    animation: splashGlow 2s ease-in-out infinite alternate;
}
@keyframes splashLogoFloat {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-8px) rotateY(5deg); }
}
@keyframes splashGlow {
    from { filter: drop-shadow(0 0 20px rgba(184,115,51,0.4)) drop-shadow(0 0 40px rgba(212,175,55,0.2)); }
    to { filter: drop-shadow(0 0 30px rgba(184,115,51,0.6)) drop-shadow(0 0 60px rgba(212,175,55,0.3)); }
}
@keyframes splashIn { from { opacity: 0; transform: scale(0.8) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.splash-company {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 28px; font-weight: 700; color: #fff;
    letter-spacing: 3px; text-transform: uppercase;
    margin-bottom: 6px;
    text-shadow: 0 0 20px rgba(184,115,51,0.3);
}
.splash-subtitle {
    font-size: 12px; color: rgba(255,255,255,0.5);
    letter-spacing: 4px; text-transform: uppercase;
    margin-bottom: 40px;
}
.splash-loader {
    width: 200px; height: 2px; margin: 0 auto 16px;
    background: rgba(255,255,255,0.1); border-radius: 2px;
    overflow: hidden;
}
.splash-loader-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #B87333, #D4AF37, #B87333);
    border-radius: 2px;
    animation: splashLoad 2.2s ease forwards;
}
@keyframes splashLoad { 0% { width: 0%; } 100% { width: 100%; } }
.splash-dots { display: flex; justify-content: center; gap: 6px; }
.splash-dots span {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(184,115,51,0.4);
    animation: dotPulse 1.4s ease-in-out infinite;
}
.splash-dots span:nth-child(2) { animation-delay: 0.2s; }
.splash-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

/* ═══ LOGIN CARD ═══ */
.premium-login-card {
    position: relative; z-index: 10;
    width: 100%; max-width: 380px;
    background: rgba(15,15,18,0.85);
    backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 30px;
    padding: 40px 30px 30px;
    box-shadow:
        0 8px 32px rgba(0,0,0,0.6),
        0 2px 8px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 -1px 0 rgba(0,0,0,0.3);
    animation: cardEnter 0.8s ease 2.5s both;
    perspective: 1000px;
}
@keyframes cardEnter {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo */
.plc-logo {
    width: 130px; height: 130px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    animation: logoFloat 3s ease-in-out infinite;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.plc-logo-img {
    width: 130px; height: 130px; object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4)) drop-shadow(0 0 40px rgba(13,110,253,0.2));
}

/* Title */
.plc-title {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 26px; font-weight: 700; color: #fff;
    text-align: center; margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.plc-subtitle {
    font-size: 12px; color: rgba(255,255,255,0.45);
    text-align: center; margin-bottom: 32px;
    letter-spacing: 1px;
}

/* Input Groups */
.plc-input-group {
    position: relative; margin-bottom: 20px;
}
.plc-input-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,0.25); z-index: 2;
    transition: color 0.3s;
}
.plc-input {
    width: 100%; height: 56px;
    padding: 20px 48px 8px 50px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    color: #fff; font-size: 15px; font-weight: 500;
    outline: none; transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.plc-input:focus {
    border-color: #0D6EFD;
    background: rgba(13,110,253,0.06);
    box-shadow: 0 0 0 3px rgba(13,110,253,0.15), inset 0 2px 4px rgba(0,0,0,0.1);
}
.plc-input:focus ~ .plc-input-icon { color: #0D6EFD; }
.plc-input::placeholder { color: transparent; }
.plc-label {
    position: absolute; left: 50px; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,0.4); font-size: 15px; font-weight: 500;
    pointer-events: none; transition: all 0.2s ease;
    transform-origin: left center;
}
.plc-input:focus + .plc-label,
.plc-input:not(:placeholder-shown) + .plc-label {
    transform: translateY(-50%) scale(0.75);
    color: rgba(255,255,255,0.5); top: 12px; left: 48px;
}
.plc-input:focus + .plc-label { color: #3EA6FF; }
.plc-input-border {
    position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
    background: linear-gradient(90deg, #0D6EFD, #3EA6FF);
    border-radius: 1px; transition: all 0.3s ease;
    transform: translateX(-50%);
}
.plc-input:focus ~ .plc-input-border { width: 100%; }

/* Password toggle */
.plc-toggle-pass {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: rgba(255,255,255,0.3);
    cursor: pointer; padding: 4px; z-index: 2;
    transition: color 0.2s;
}
.plc-toggle-pass:hover { color: rgba(255,255,255,0.6); }

/* Submit Button */
.plc-submit {
    width: 100%; height: 56px;
    background: linear-gradient(135deg, #0D6EFD, #0a58ca);
    border: none; border-radius: 18px;
    color: #fff; font-size: 16px; font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer; position: relative;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(13,110,253,0.35), 0 2px 4px rgba(0,0,0,0.2);
    margin-top: 4px;
}
.plc-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(13,110,253,0.45), 0 4px 8px rgba(0,0,0,0.3);
}
.plc-submit:active { transform: translateY(0) scale(0.98); }

/* Ripple */
.plc-submit::after {
    content: ''; position: absolute;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: scale(0); opacity: 0;
    transition: transform 0.5s, opacity 0.3s;
}
.plc-submit:active::after { transform: scale(2.5); opacity: 1; transition: 0s; }

.plc-submit-text { transition: opacity 0.3s; }
.plc-submit-arrow { transition: opacity 0.3s, transform 0.3s; }
.plc-submit.loading .plc-submit-text,
.plc-submit.loading .plc-submit-arrow { opacity: 0; }
.plc-submit.loading .plc-submit-spinner { opacity: 1; }

.plc-submit-spinner {
    position: absolute; width: 24px; height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%; opacity: 0;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Error */
.login-error {
    color: #ea4335; font-size: 12px; text-align: center;
    margin-top: 12px; min-height: 18px;
    font-weight: 500;
}

/* GPS Indicator */
.plc-gps {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 20px; padding: 10px 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.06);
    font-size: 12px; font-weight: 500;
    color: rgba(255,255,255,0.4);
}
.plc-gps-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #fbbc04; flex-shrink: 0;
    animation: gpsPulse 2s ease-in-out infinite;
}
.plc-gps-dot.ready { background: #34a853; animation: gpsPulseGood 1.5s ease-in-out infinite; }
.plc-gps-dot.error { background: #ea4335; animation: none; }
@keyframes gpsPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251,188,4,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(251,188,4,0); }
}
@keyframes gpsPulseGood {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52,168,83,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(52,168,83,0); }
}

/* Footer */
.plc-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.plc-version { font-size: 11px; color: rgba(255,255,255,0.2); }
.plc-badge {
    font-size: 10px; color: rgba(255,255,255,0.2);
    letter-spacing: 0.5px; font-weight: 500;
}

/* ═══ TOAST ═══ */
.toast {
    position: fixed; bottom: calc(var(--nav-h) + 20px); left: 50%; transform: translateX(-50%);
    background: #323232; color: #fff;
    padding: 10px 20px; border-radius: var(--radius-full);
    font-size: 13px; font-weight: 500;
    z-index: 999; opacity: 0; transition: opacity 0.3s;
    pointer-events: none; white-space: nowrap;
    box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; }

/* ═══ MODAL ═══ */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 998; display: none; align-items: center; justify-content: center;
    padding: 24px;
}
.modal-overlay.show { display: flex; }
.modal-box {
    background: var(--card); border-radius: var(--radius-lg);
    width: 100%; max-width: 320px; text-align: center;
    padding: 24px; box-shadow: var(--shadow-lg);
    animation: scaleIn 0.2s ease;
}
.modal-box .mb-icon { font-size: 40px; margin-bottom: 12px; }
.modal-box .mb-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.modal-box .mb-text { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }
.modal-box .btn { width: 100%; }

/* ═══ SYNC BAR ═══ */
.sync-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 999;
    padding: 4px 12px; font-size: 11px; font-weight: 600;
    text-align: center; display: none;
    transition: all 0.3s;
}
.sync-bar.show { display: block; }
.sync-bar.online { background: var(--success); color: #fff; }
.sync-bar.offline { background: var(--danger); color: #fff; }
.sync-bar.syncing { background: var(--warning); color: #333; }
.sync-bar.pending { background: var(--orange); color: #fff; }

/* ═══ GPS STATUS ═══ */
.gps-bar {
    position: fixed; bottom: calc(var(--nav-h) + 4px); left: 16px; right: 16px;
    z-index: 150; padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 11px; font-weight: 500;
    display: none; align-items: center; gap: 6px;
    box-shadow: var(--shadow-md);
}
.gps-bar.show { display: flex; }
.gps-bar.good { background: var(--success-light); color: var(--success); border: 1px solid var(--success); }
.gps-bar.bad { background: var(--danger-light); color: var(--danger); border: 1px solid var(--danger); }

/* ═══ DETAIL PAGE ═══ */
.detail-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border: none; }
.detail-label { font-size: 11px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 4px; }
.detail-value { font-size: 14px; color: var(--text); line-height: 1.5; }
.detail-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.detail-photos img { width: 100%; border-radius: var(--radius-sm); max-height: 160px; object-fit: cover; }
.detail-map { height: 200px; border-radius: var(--radius-sm); overflow: hidden; margin-top: 8px; }
.detail-link { color: var(--primary); text-decoration: none; font-weight: 500; }

/* ═══ ROUTE MAP ═══ */
.route-map { flex: 1; min-height: 300px; border-radius: 0; overflow: hidden; }
.route-legend { display: flex; gap: 12px; padding: 12px 16px; font-size: 12px; font-weight: 500; }
.route-legend span { display: flex; align-items: center; gap: 4px; }
.rl-dot { width: 10px; height: 10px; border-radius: 50%; }
.rl-dot.start { background: var(--success); }
.rl-dot.visit { background: var(--primary); }
.rl-dot.end { background: var(--danger); }

/* ═══ EMPTY STATE ═══ */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-light); }
.empty-state .es-icon { font-size: 48px; margin-bottom: 8px; }
.empty-state .es-text { font-size: 14px; }

/* ═══ SETTINGS ═══ */
.setting-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.setting-item:last-child { border: none; }
.setting-item .si-label { font-size: 13px; color: var(--text-secondary); }
.setting-item .si-value { font-size: 14px; font-weight: 600; text-align: right; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ═══ RESPONSIVE ═══ */
@media (min-width: 768px) {
    .content { max-width: 480px; margin: 0 auto; }
    .bottom-nav { max-width: 480px; left: 50%; transform: translateX(-50%); border-radius: 16px 16px 0 0; }
    .gps-bar { max-width: 448px; left: 50%; transform: translateX(-50%); }
    .toast { max-width: 400px; }
}

/* ═══ PRINT ═══ */
@media print {
    .bottom-nav, .sync-bar, .gps-bar, .toast, .modal-overlay, .header { display: none !important; }
    .content { padding: 0; padding-bottom: 0; }
    .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ===== EMERALD FIELD LOGIN OVERRIDE ===== */
:root {
    --access-accent: #7fe0b8;
    --access-accent-2: #e2f5ea;
    --metal-ink: #071f16;
    --metal-panel: rgba(4, 40, 28, 0.86);
    --metal-border: rgba(80, 170, 130, 0.35);
}

.premium-login {
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(130% 90% at 50% 0%, rgba(15,158,96,0.28), transparent 55%),
        linear-gradient(180deg, #0b412f 0%, #0a3a2a 46%, #052016 100%);
    color: #eef7f1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    isolation: isolate;
    padding: 28px;
}

.premium-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(140,255,205,0.03) 0 1px, transparent 1px 5px),
        repeating-linear-gradient(0deg, rgba(140,255,205,0.022) 0 1px, transparent 1px 7px),
        linear-gradient(120deg, transparent 0 22%, rgba(160,255,215,0.05) 23%, transparent 24% 100%);
    opacity: 0.42;
    pointer-events: none;
    z-index: 0;
}

.premium-login::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(160,255,215,0.07), transparent 12% 86%, rgba(0,0,0,0.35)),
        radial-gradient(ellipse at 50% 108%, rgba(50,180,125,0.20), transparent 42%);
    pointer-events: none;
    z-index: 0;
}

.light-orb { display: none; }

.plc-access-chip,
.plc-badge,
.plc-version,
.plc-secure-note {
    letter-spacing: 0;
}

/* ═══ EMERALD MATTE PLATE ON DARK GREEN METAL ═══ */
.premium-login-card {
    position: relative; z-index: 10;
    width: 100%;
    max-width: 430px;
    margin: auto;
    border-radius: 26px;
    background:
        radial-gradient(120% 90% at 15% 0%, rgba(255,255,255,0.06) 0%, transparent 52%),
        linear-gradient(160deg, #0c4a37 0%, #0e5c45 22%, #10704f 45%, #0d5b42 66%, #0a3a29 100%);
    border: 1px solid rgba(0,0,0,0.55);
    box-shadow:
        0 24px 64px rgba(0,0,0,0.82),
        0 10px 24px rgba(0,0,0,0.55),
        0 0 40px rgba(127,224,184,0.10),
        inset 0 1px 0 rgba(255,255,255,0.12),
        inset 0 -2px 4px rgba(2,24,16,0.5),
        inset 0 0 40px rgba(2,24,16,0.38);
    padding: 40px 30px 30px;
    transform: none;
    transition: box-shadow 0.4s ease;
    animation: cardEnter 0.55s ease 0.38s both;
}

.premium-login-card > * {
    position: relative;
    z-index: 2;
}

/* Brushed matte streaks + soft pressed corner indentations (lekukan halus) */
.premium-login-card::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 21px;
    background:
        radial-gradient(circle at 0 0, rgba(16,22,25,0.5) 0 12px, transparent 26px),
        radial-gradient(circle at 100% 0, rgba(16,22,25,0.5) 0 12px, transparent 26px),
        radial-gradient(circle at 0 100%, rgba(16,22,25,0.5) 0 12px, transparent 26px),
        radial-gradient(circle at 100% 100%, rgba(16,22,25,0.5) 0 12px, transparent 26px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 4px);
    pointer-events: none;
    z-index: 1;
}

/* Machined edge sheen (diagonal light) */
.premium-login-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 27px;
    background: linear-gradient(160deg, rgba(255,255,255,0.18), transparent 42%, rgba(16,22,25,0.55) 62%, rgba(255,255,255,0.08));
    pointer-events: none;
    z-index: 0;
}

.premium-login-card:hover {
    box-shadow:
        0 28px 72px rgba(0,0,0,0.9),
        0 12px 28px rgba(0,0,0,0.6),
        0 0 50px rgba(127,224,184,0.16),
        inset 0 1px 0 rgba(255,255,255,0.14),
        inset 0 -2px 4px rgba(2,24,16,0.5),
        inset 0 0 40px rgba(2,24,16,0.38);
}

@keyframes cardEnter {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

.otp-card {
    max-width: 420px;
    margin: auto;
}

.otp-boxes-group {
    margin-bottom: 18px;
}

.otp-label {
    display: block;
    text-align: center;
    color: rgba(255,255,255,0.62);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0 auto 10px;
}

.otp-box {
    width: 50px;
    height: 62px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #eef3f4;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.22);
    border-radius: 14px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.45), inset 0 -1px 0 rgba(255,255,255,0.05);
    outline: none;
    transition: all 0.2s ease;
}

.otp-box:focus {
    border-color: #8fe3ba;
    background: rgba(3,32,22,0.75);
    box-shadow:
        0 0 0 3px rgba(127,224,184,0.16),
        0 0 22px rgba(127,224,184,0.14),
        inset 0 2px 5px rgba(0,0,0,0.45);
}

.otp-box.filled {
    border-color: rgba(127,224,184,0.7);
}

@media (max-width: 480px) {
    .otp-box {
        width: 44px;
        height: 56px;
        font-size: 22px;
    }

    .otp-boxes {
        gap: 8px;
    }
}

.plc-access-chip {
    width: fit-content;
    margin: 0 auto 18px;
    padding: 7px 12px;
    border: 1px solid rgba(127,224,184,0.28);
    background: linear-gradient(180deg, #0e5c45, #07382a);
    color: #d9f5e6;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.plc-logo {
    width: 108px;
    height: 108px;
    margin-bottom: 16px;
}

.plc-logo-img {
    width: 108px;
    height: 108px;
    filter: drop-shadow(0 16px 26px rgba(0,0,0,0.55)) drop-shadow(0 0 26px rgba(127,224,184,0.18));
}

.plc-title {
    font-size: 28px;
    color: #f2fbf6;
    letter-spacing: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.plc-subtitle {
    margin-bottom: 26px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0;
}

.plc-input-group {
    margin-bottom: 16px;
}

.plc-input {
    height: 58px;
    border-radius: 14px;
    background: rgba(2,28,19,0.55);
    border: 1.5px solid rgba(0,0,0,0.5);
    color: #f2fbf6;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.45);
}

.plc-input:focus {
    border-color: #8fe3ba;
    background: rgba(3,32,22,0.75);
    box-shadow:
        0 0 0 3px rgba(127,224,184,0.16),
        0 0 22px rgba(127,224,184,0.14),
        inset 0 2px 5px rgba(0,0,0,0.45);
}

.plc-input-icon {
    color: rgba(255,255,255,0.4);
}

.plc-input-group:focus-within .plc-input-icon {
    color: #a8e6c6;
}

.plc-label,
.plc-input:focus + .plc-label,
.plc-input:not(:placeholder-shown) + .plc-label {
    letter-spacing: 0;
    color: rgba(255,255,255,0.5);
}

.plc-input:focus + .plc-label {
    color: #d9f5e6;
}

.plc-input-border {
    background: linear-gradient(90deg, transparent, rgba(127,224,184,0.75), transparent);
}

.plc-caps-warning {
    display: none;
    margin: 6px 0 0 50px;
    color: #ffd98f;
    font-size: 11px;
    font-weight: 800;
}

.plc-caps-warning.show {
    display: block;
}

.plc-toggle-pass {
    color: rgba(255,255,255,0.4);
}

.plc-toggle-pass:hover,
.plc-toggle-pass.is-visible {
    color: #a8e6c6;
}

.plc-toggle-pass .icon-eye-off,
.plc-toggle-pass.is-visible .icon-eye {
    display: none;
}

.plc-toggle-pass.is-visible .icon-eye-off {
    display: block;
}

.plc-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 18px;
}

.plc-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    font-weight: 650;
}

.plc-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plc-check span {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 5px;
    background: rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

.plc-check input:checked + span {
    border-color: #8fe3ba;
    background:
        linear-gradient(135deg, transparent 0 38%, #e2f7ec 39% 52%, transparent 53%),
        #0e5c45;
}

.plc-check em {
    font-style: normal;
}

.plc-secure-note {
    color: rgba(217,245,230,0.9);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.plc-submit {
    height: 58px;
    border-radius: 14px;
    color: #ffffff;
    background:
        linear-gradient(180deg, #17a06a 0%, #0b6b4a 46%, #064e3b 100%);
    border: 1px solid rgba(0,0,0,0.5);
    box-shadow:
        0 12px 24px rgba(0,0,0,0.45),
        0 0 22px rgba(127,224,184,0.14),
        inset 0 1px 0 rgba(255,255,255,0.24),
        inset 0 -2px 0 rgba(0,0,0,0.4);
    letter-spacing: 0;
}

.plc-submit:hover {
    transform: translateY(-1px);
    box-shadow:
        0 16px 30px rgba(0,0,0,0.50),
        0 0 30px rgba(127,224,184,0.22),
        inset 0 1px 0 rgba(255,255,255,0.28),
        inset 0 -2px 0 rgba(0,0,0,0.42);
}

.plc-submit:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.login-error {
    color: #ff7b6b;
    font-size: 12px;
    font-weight: 700;
}

.plc-gps {
    border-radius: 10px;
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.55);
}

.plc-footer {
    border-top-color: rgba(255,255,255,0.12);
}

.splash-overlay {
    background: linear-gradient(90deg, rgba(4,32,22,0.97), rgba(6,44,30,0.95), rgba(3,26,18,0.98));
}

.splash-company,
.splash-subtitle {
    letter-spacing: 0;
}

.splash-logo-img {
    filter: drop-shadow(0 0 20px rgba(127,224,184,0.35)) drop-shadow(0 0 40px rgba(160,255,215,0.12));
}

.splash-company {
    text-shadow: 0 0 20px rgba(127,224,184,0.25);
}

.splash-dots span {
    background: rgba(127,224,184,0.45);
}

.splash-loader-bar {
    background: linear-gradient(90deg, transparent, var(--access-accent), #ffffff, var(--access-accent), transparent);
    animation-duration: 1.1s;
}

@media (max-width: 480px) {
    .premium-login-card {
        padding: 30px 22px 24px;
        border-radius: 22px;
    }

    .plc-logo,
    .plc-logo-img {
        width: 92px;
        height: 92px;
    }

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