/* ===== Reset & Design Tokens ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* — Warm palette inspired by premium travel apps — */
    --bg: #FBF8F5;
    --bg-card: #ffffff;
    --bg-hover: #F5F0EB;
    --bg-subtle: #F7F3EF;
    --text: #1C1917;
    --text-secondary: #57534E;
    --text-muted: #A8A29E;
    --accent: #003580;
    --accent-hover: #002860;
    --accent-soft: rgba(0, 53, 128, 0.08);
    --accent-ring: rgba(0, 53, 128, 0.15);
    --green: #16A34A;
    --green-soft: rgba(22, 163, 74, 0.08);
    --yellow: #CA8A04;
    --yellow-soft: rgba(202, 138, 4, 0.08);
    --red: #DC2626;
    --red-soft: rgba(220, 38, 38, 0.08);
    --border: #E7E0D9;
    --border-light: #F0EBE5;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --radius-full: 9999px;
    --shadow-xs: 0 1px 2px rgba(28, 25, 23, 0.04);
    --shadow: 0 1px 3px rgba(28, 25, 23, 0.06), 0 1px 2px rgba(28, 25, 23, 0.03);
    --shadow-md: 0 4px 16px rgba(28, 25, 23, 0.08), 0 1px 3px rgba(28, 25, 23, 0.04);
    --shadow-lg: 0 12px 40px rgba(28, 25, 23, 0.12), 0 4px 12px rgba(28, 25, 23, 0.04);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Header — frosted glass ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border-bottom: 1px solid var(--border-light);
}
.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.4px;
    transition: opacity var(--transition);
}
.logo:hover { opacity: 0.8; }
.logo-icon { font-size: 22px; }

/* — Nav dropdown — */
.nav-menu { position: relative; }
.nav-avatar {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: var(--radius-full);
    border: 1.5px solid var(--border); background: var(--bg-subtle);
    color: var(--text-muted); cursor: pointer;
    transition: all var(--transition);
}
.nav-avatar:hover {
    border-color: var(--accent); color: var(--accent); background: var(--accent-soft);
    transform: scale(1.05);
}
.nav-avatar:active { transform: scale(0.95); }
.nav-dropdown {
    display: none; position: absolute; right: 0; top: calc(100% + 8px);
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    min-width: 210px; z-index: 200; overflow: hidden;
    animation: dropIn 0.18s ease-out;
}
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.nav-dropdown.open { display: block; }
.nav-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; font-size: 14px; font-weight: 500;
    color: var(--text); text-decoration: none;
    transition: all 0.15s;
}
.nav-dropdown-item:hover { background: var(--accent-soft); color: var(--accent); }
.nav-dropdown-item svg { flex-shrink: 0; opacity: 0.5; transition: opacity 0.15s; }
.nav-dropdown-item:hover svg { opacity: 1; }

/* ===== Layout ===== */
main { max-width: 1000px; margin: 32px auto; padding: 0 20px; }

.page-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 12px; margin-bottom: 28px;
}
.page-header h1 {
    font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
    color: var(--text);
}
.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin: 28px 0 14px;
}
.section-header h2 { font-size: 16px; font-weight: 700; color: var(--text); }

h2 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px; background: var(--accent); color: #fff;
    border: none; border-radius: var(--radius-full); cursor: pointer;
    text-decoration: none; font-size: 14px; font-weight: 600;
    white-space: nowrap; transition: all var(--transition);
    letter-spacing: -0.01em;
}
.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 53, 128, 0.25);
}
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-outline {
    background: var(--bg-card); color: var(--text-secondary);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    background: var(--bg-hover); border-color: var(--accent); color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 53, 128, 0.1);
}
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #B91C1C; box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25); }
.btn-nav { background: var(--accent); color: #fff; border: none; }
.btn-nav:hover { background: var(--accent-hover); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ===== Status badges ===== */
.status {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: var(--radius-full);
    font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
}
.status::before {
    content: ''; display: inline-block;
    width: 6px; height: 6px; border-radius: 50%;
}
.status-active { background: var(--green-soft); color: var(--green); }
.status-active::before { background: var(--green); }
.status-paused { background: var(--yellow-soft); color: var(--yellow); }
.status-paused::before { background: var(--yellow); }
.status-error { background: var(--red-soft); color: var(--red); }
.status-error::before { background: var(--red); }

/* ===== Watcher meta line ===== */
.watcher-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
    font-size: 13px; color: var(--text-muted);
}
.meta-sep { color: var(--border); margin: 0 2px; }

/* ===== DASHBOARD — Watcher cards ===== */
.watcher-list { display: flex; flex-direction: column; gap: 12px; }

.watcher-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 24px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    padding: 18px 22px;
    transition: all var(--transition);
    box-shadow: var(--shadow-xs);
}
.watcher-row:hover {
    border-color: var(--accent-ring);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.watcher-inactive { opacity: 0.45; }

.watcher-title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.watcher-title a {
    font-weight: 600; font-size: 16px; color: var(--text);
    text-decoration: none; transition: color var(--transition);
}
.watcher-title a:hover { color: var(--accent); }

.watcher-stats { display: flex; gap: 28px; }
.stat { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.stat-value { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1.2; letter-spacing: -0.5px; }
.stat-value-sm { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; font-weight: 600; }
.stat-time { align-items: flex-end; }

.watcher-actions { display: flex; gap: 6px; flex-shrink: 0; }
.watcher-actions form { display: inline; }

/* ===== RESULTS — Accommodation cards ===== */
.acc-list { display: flex; flex-direction: column; gap: 8px; }

.date-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 4px 10px; margin-top: 20px;
    border-bottom: 2px solid var(--border-light);
}
.date-header:first-child { margin-top: 0; }
.date-title { font-size: 13px; font-weight: 700; color: var(--text-secondary); letter-spacing: -0.01em; }
.date-meta { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.acc-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    padding: 14px 20px;
    transition: all var(--transition);
    box-shadow: var(--shadow-xs);
}
.acc-row:not(:has(.acc-thumb)) {
    grid-template-columns: 1fr auto;
}
.acc-row:hover {
    border-color: var(--accent-ring);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.acc-thumb {
    width: 80px; height: 60px; border-radius: var(--radius-sm);
    overflow: hidden; flex-shrink: 0;
}
.acc-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; transition: transform 0.4s ease;
}
.acc-row:hover .acc-thumb img { transform: scale(1.06); }

.acc-name a {
    font-weight: 600; font-size: 15px; color: var(--text);
    text-decoration: none; transition: color var(--transition);
}
.acc-name a:hover { color: var(--accent); }
.ext-icon {
    opacity: 0.3; margin-left: 3px; vertical-align: -1px;
    transition: opacity 0.15s;
}
.acc-name a:hover .ext-icon { opacity: 0.6; }
.acc-location { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.acc-details { display: flex; align-items: center; gap: 20px; }

.acc-price { display: flex; flex-direction: column; align-items: flex-end; min-width: 96px; }
.price-amount { font-weight: 700; font-size: 15px; color: var(--text); white-space: nowrap; letter-spacing: -0.02em; }
.price-label { font-size: 11px; color: var(--text-muted); }

.acc-rating { display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.rating-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 32px; padding: 0 8px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 800; letter-spacing: -0.02em;
}
.rating-top { background: var(--green-soft); color: var(--green); }
.rating-good { background: var(--accent-soft); color: var(--accent); }
.rating-mid { background: var(--yellow-soft); color: var(--yellow); }
.rating-none { background: var(--bg-hover); color: var(--text-muted); font-size: 13px; font-weight: 500; }
.review-count { font-size: 11px; color: var(--text-muted); white-space: nowrap; margin-top: 2px; }
.price-original { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.acc-new { border-left: 3px solid var(--green); background: linear-gradient(90deg, rgba(22, 163, 74, 0.04) 0%, transparent 40%); }
.badge-new {
    display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--radius-full);
    font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
    text-transform: uppercase; background: var(--green); color: #fff;
    margin-right: 6px; vertical-align: middle;
}
.filter-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }

.acc-seen { display: flex; flex-direction: column; align-items: flex-end; min-width: 80px; }
.seen-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.seen-date { font-size: 13px; color: var(--text-secondary); }

/* ===== SORT & FILTER CONTROLS ===== */
.controls-bar {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 8px;
    background: var(--bg-card); border: 1.5px solid var(--border-light); border-radius: var(--radius);
    padding: 10px 16px; margin-bottom: 12px;
    box-shadow: var(--shadow-xs);
}
.sort-controls { display: flex; align-items: center; gap: 4px; }
.controls-label {
    font-size: 11px; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.06em; margin-right: 4px; font-weight: 700;
}
.sort-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 12px; border-radius: var(--radius-full);
    font-size: 13px; color: var(--text-muted); text-decoration: none;
    border: 1px solid transparent; transition: all var(--transition);
    font-weight: 500; cursor: pointer; background: none;
}
.sort-btn:hover { background: var(--bg-hover); color: var(--text); }
.sort-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; border-color: transparent; }
.sort-arrow { font-size: 10px; }

.filter-controls { display: flex; align-items: center; gap: 8px; }
.filter-label { font-size: 13px; color: var(--text-muted); white-space: nowrap; font-weight: 500; }
.filter-toggle {
    display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
    font-size: 13px; color: var(--text-muted); font-weight: 500; white-space: nowrap;
    user-select: none;
}
.filter-toggle input[type="checkbox"] {
    width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer;
}
.filter-toggle-label { pointer-events: none; }
.filter-input {
    width: 64px; padding: 5px 8px; border: 1.5px solid var(--border);
    border-radius: var(--radius-xs); font-size: 13px; text-align: center;
    transition: all var(--transition); background: var(--bg-card);
}
.filter-input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.filter-select {
    padding: 5px 8px; border: 1.5px solid var(--border);
    border-radius: var(--radius-xs); font-size: 13px;
    background: var(--bg-card); color: var(--text); cursor: pointer;
    transition: all var(--transition);
}
.filter-select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }

/* ===== FORM ===== */
.form { max-width: 580px; }
fieldset {
    border: 1.5px solid var(--border-light); border-radius: var(--radius);
    padding: 22px 24px 18px; margin-bottom: 16px;
    background: var(--bg-card); box-shadow: var(--shadow-xs);
    transition: border-color var(--transition), box-shadow var(--transition);
}
fieldset:focus-within {
    border-color: var(--accent-ring);
    box-shadow: var(--shadow);
}
legend {
    font-size: 11px; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 0 8px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-weight: 600; margin-bottom: 6px;
    font-size: 14px; color: var(--text);
}
.form-group input, .form-group select {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 15px;
    transition: all var(--transition);
    background: var(--bg-card); color: var(--text);
    font-family: inherit;
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--accent); outline: none;
    box-shadow: 0 0 0 3px var(--accent-ring);
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group small {
    color: var(--text-muted); font-size: 12px; margin-top: 4px; display: block;
}
.form-group small a { color: var(--accent); text-decoration: none; }
.form-group small a:hover { text-decoration: underline; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.checkbox-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 4px;
}
.checkbox-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 400; cursor: pointer;
    padding: 6px 8px; border-radius: var(--radius-sm);
    transition: background 0.15s;
}
.checkbox-label:hover { background: var(--bg-hover); }
.checkbox-label input[type="checkbox"] {
    width: 16px; height: 16px; margin: 0;
    accent-color: var(--accent);
}

/* Filter chips (compact toggle pills) */
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip { cursor: pointer; }
.filter-chip input { display: none; }
.filter-chip-face {
    display: inline-block;
    padding: 4px 12px; border-radius: var(--radius-full);
    border: 1px solid var(--border);
    font-size: 12px; font-weight: 500; color: var(--text-muted);
    background: var(--bg-card);
    transition: all 0.15s ease;
    user-select: none; white-space: nowrap;
}
.filter-chip:hover .filter-chip-face {
    border-color: var(--accent-ring); color: var(--text-secondary);
}
.filter-chip input:checked + .filter-chip-face {
    background: var(--accent); color: #fff; border-color: var(--accent);
}
.filter-chip input[type="radio"] { display: none; }

.form-actions { display: flex; gap: 8px; margin-top: 8px; }
#submit-spinner, #scan-spinner { display: inline-flex; align-items: center; gap: 6px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== SCANNING BANNER ===== */
.scanning-banner {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; margin-bottom: 16px;
    background: var(--accent-soft); border: 1.5px solid var(--accent-ring);
    border-radius: var(--radius); color: var(--accent);
    font-size: 14px; font-weight: 500;
    animation: pulse-border 2s ease-in-out infinite;
}
@keyframes pulse-border {
    0%, 100% { border-color: var(--accent-ring); }
    50% { border-color: rgba(0, 53, 128, 0.3); }
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 20px; border-radius: var(--radius);
    font-size: 14px; font-weight: 500; margin-bottom: 16px;
}
.alert-success { background: var(--green-soft); color: var(--green); border: 1.5px solid rgba(22, 163, 74, 0.15); }
.alert-error { background: var(--red-soft); color: var(--red); border: 1.5px solid rgba(220, 38, 38, 0.15); }

/* ===== STATS BAR (accommodations header) ===== */
.stats-bar {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
    background: var(--bg-card); border: 1.5px solid var(--border-light); border-radius: var(--radius);
    padding: 16px 20px; margin: 24px 0 14px;
    box-shadow: var(--shadow-xs);
}
.stats-bar-left { display: flex; flex-direction: column; gap: 4px; }
.stats-bar-main { display: flex; align-items: baseline; gap: 8px; }
.stats-bar-number {
    font-size: 32px; font-weight: 800; color: var(--text);
    line-height: 1; letter-spacing: -1px;
    transition: all 0.3s ease;
}
.stats-bar-label { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.stats-bar-filter-hint {
    font-size: 12px; color: var(--yellow); font-weight: 500;
}
.stats-bar-coverage {
    font-size: 12px; font-weight: 600; margin-top: 2px;
}
.stats-bar-coverage a {
    color: inherit; text-decoration: underline;
    text-decoration-style: dotted; text-underline-offset: 2px;
}
.stats-bar-coverage a:hover { text-decoration-style: solid; }
.coverage-full { color: var(--green); }
.coverage-good { color: var(--accent); }
.coverage-partial { color: var(--yellow); }

/* ===== COVERAGE BANNER ===== */
.coverage-banner {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 20px; margin-bottom: 16px;
    background: var(--yellow-soft);
    border: 1.5px solid rgba(202, 138, 4, 0.2);
    border-radius: var(--radius);
}
.coverage-banner-icon {
    color: var(--yellow); flex-shrink: 0; margin-top: 1px;
}
.coverage-banner-text {
    flex: 1; display: flex; flex-direction: column; gap: 2px;
}
.coverage-banner-text strong {
    font-size: 14px; font-weight: 700; color: var(--text);
}
.coverage-banner-text span {
    font-size: 13px; color: var(--text-secondary); line-height: 1.4;
}
.coverage-banner-actions {
    display: flex; gap: 6px; flex-shrink: 0; align-self: center;
}

/* ===== DANGER ZONE ===== */
.danger-zone {
    margin-top: 48px; padding-top: 24px;
    border-top: 1.5px dashed var(--border);
}
.danger-zone-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.danger-zone-text { display: flex; flex-direction: column; gap: 2px; }
.danger-zone-label {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--red); opacity: 0.7;
}
.danger-zone-desc {
    font-size: 13px; color: var(--text-muted);
}

/* ===== TABLE (scan history) ===== */
.table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: var(--bg-card);
    border-radius: var(--radius); overflow: hidden;
    border: 1.5px solid var(--border-light); box-shadow: var(--shadow-xs);
    font-size: 13px;
}
.table th {
    background: var(--bg-subtle); text-align: left; padding: 10px 14px;
    font-weight: 700; border-bottom: 1.5px solid var(--border-light); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
}
.table td { padding: 10px 14px; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); }
.table tr:hover td { background: var(--bg-hover); }
.table tr:last-child td { border-bottom: none; }
.error-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); }

.history-section { margin-top: 36px; }
.history-section summary {
    cursor: pointer; user-select: none;
    padding: 8px 0;
    color: var(--text-muted);
    transition: color var(--transition);
    font-weight: 600;
}
.history-section summary:hover { color: var(--text); }
.history-section summary h2 { display: inline; color: inherit; font-size: 15px; }

/* ===== EMPTY STATES ===== */
.empty-state {
    text-align: center; padding: 64px 24px; color: var(--text-muted);
    background: var(--bg-card); border: 1.5px solid var(--border-light);
    border-radius: var(--radius); box-shadow: var(--shadow-xs);
}
.empty-state h2 { color: var(--text); font-size: 20px; margin-bottom: 8px; font-weight: 700; }
.empty-state p { max-width: 400px; margin: 0 auto; font-size: 15px; line-height: 1.7; color: var(--text-secondary); }
.empty-state .btn { margin-top: 24px; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-sm { padding: 32px 20px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* ===== AUTOCOMPLETE ===== */
.ac-wrap { position: relative; }
.ac-dropdown {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg-card); border: 1.5px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 100; max-height: 260px; overflow-y: auto;
}
.ac-item {
    padding: 10px 14px; font-size: 14px; cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.12s;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.active { background: var(--accent-soft); color: var(--accent); }
.ac-loading {
    padding: 12px 14px; font-size: 13px; color: var(--text-muted);
    font-style: italic;
}
.name-hint { font-weight: 400; font-size: 12px; color: var(--text-muted); }

/* ===== SLIDERS ===== */
.slider-value {
    float: right; font-weight: 700; color: var(--accent); font-size: 13px;
}

/* — Dual range (price) — */
.range-slider {
    position: relative; height: 32px; margin: 6px 0 4px;
}
.range-slider input[type="range"] {
    position: absolute; width: 100%; top: 0; height: 32px;
    -webkit-appearance: none; appearance: none; background: transparent;
    pointer-events: none; margin: 0; padding: 0;
}
.range-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 4px; background: var(--border); border-radius: 2px;
}
.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    margin-top: -8px; pointer-events: auto; cursor: pointer;
    position: relative; z-index: 2; transition: box-shadow 0.15s, transform 0.15s;
}
.range-slider input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 5px var(--accent-ring), 0 1px 4px rgba(0,0,0,0.15);
    transform: scale(1.1);
}
.range-slider input[type="range"]::-moz-range-track {
    height: 4px; background: transparent;
}
.range-slider input[type="range"]::-moz-range-thumb {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    pointer-events: auto; cursor: pointer;
}
.range-track {
    position: absolute; top: 14px; height: 4px;
    background: var(--accent); border-radius: 2px; pointer-events: none;
}

/* — Single slider (rating, schedule) — */
.single-slider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 4px; background: var(--border); border-radius: 2px;
    outline: none; margin: 10px 0 6px; cursor: pointer;
}
.single-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    cursor: pointer; transition: box-shadow 0.15s, transform 0.15s;
}
.single-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 5px var(--accent-ring), 0 1px 4px rgba(0,0,0,0.15);
    transform: scale(1.1);
}
.single-slider::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    cursor: pointer;
}

.range-labels {
    display: flex; justify-content: space-between;
    font-size: 11px; color: var(--text-muted); padding: 0 2px; font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    main { margin: 20px auto; }
    .watcher-row { grid-template-columns: 1fr; gap: 12px; padding: 14px 16px; }
    .watcher-stats { justify-content: flex-start; }
    .watcher-actions { flex-wrap: wrap; }
    .acc-row, .acc-row:not(:has(.acc-thumb)) { grid-template-columns: 1fr; gap: 8px; padding: 12px 16px; }
    .acc-thumb { width: 100%; height: 120px; }
    .acc-details { flex-wrap: wrap; gap: 12px; }
    .form-row { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 22px; }
    fieldset { padding: 16px 16px 12px; }
    .controls-bar { padding: 8px 12px; }
}
