/* Aviation HSI Theme */
body {
    background-color: #000;
    color: white;
    font-family: 'Roboto', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Dark mode for Leaflet tiles */
.leaflet-tile {
    filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3) brightness(0.7);
}

.leaflet-container {
    background: #000;
}

/* Map Controls (Floating Top-Right) */
.map-control-btn {
    position: absolute;
    right: 15px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.35);
    color: #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
    user-select: none;
}

.map-control-btn:active {
    transform: scale(0.92);
    background: rgba(255, 215, 0, 0.25);
}

.map-control-btn.active {
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

#center-map {
    top: 15px;
}

#center-map span {
    font-size: 1.4rem;
}

#toggle-hsi-size {
    top: 75px;
}

#toggle-hsi-size span {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main UI App Container */
.app-container {
    position: relative;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: 500px;
    background: transparent;
    box-sizing: border-box;
}

/* HSI Area */
.instrument-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    position: relative;
    padding: 10px;
    min-height: 0;
}

#hsi-display {
    width: 100%;
    max-width: 380px;
    max-height: 100%;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.85));
    pointer-events: auto;
    transition: max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.instrument-container.shrunk #hsi-display {
    max-width: 180px;
    opacity: 0.95;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
}

.instrument-container.shrunk {
    position: fixed;
    top: 130px;
    left: 20px;
    flex: none;
    width: 190px;
    height: 190px;
    z-index: 1500;
    pointer-events: auto;
    cursor: grab;
    touch-action: none;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.85);
    transition: transform 0.1s ease-out;
}

.instrument-container.shrunk:active {
    cursor: grabbing;
}

.drag-handle {
    display: none;
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFD700;
    color: black;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0.85;
}

.instrument-container.shrunk .drag-handle {
    display: block;
}

/* Info Panel (Aviation Glass Cockpit) */
.info-panel {
    background: rgba(10, 10, 10, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 14px;
    border-top: 1px solid #333;
    font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif;
    pointer-events: auto;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
    white-space: nowrap;
    user-select: none;
}

.info-panel.compact {
    padding: 3px 10px;
}

.info-row {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    min-width: 0;
}

.info-row.left {
    align-items: flex-start;
    flex: 0 0 auto;
    min-width: 85px;
    text-align: left;
}

.info-row.center {
    justify-content: center;
    align-items: center;
    flex: 1 1 auto;
    padding: 0 6px;
    overflow: hidden;
    text-align: center;
}

.info-row.right {
    align-items: flex-end;
    flex: 0 0 auto;
    min-width: 80px;
    text-align: right;
}

.label {
    font-size: 0.75rem;
    color: #888;
    white-space: nowrap;
}

.value {
    color: white;
    white-space: nowrap;
}

.gps-alt-label {
    font-size: 0.75rem;
    color: #888;
    font-weight: bold;
    white-space: nowrap;
    line-height: 1.25;
}

.value.big-text {
    font-size: 1.6rem;
    font-weight: bold;
    color: #FFD700;
    line-height: 1.1;
    white-space: nowrap;
}

.info-panel.compact .value.big-text {
    font-size: 1.3rem;
}

.station-name {
    font-size: 1.05rem;
    color: white;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    display: block;
    line-height: 1.2;
}

.info-panel.compact .station-name {
    font-size: 0.95rem;
}

.station-altitude {
    font-size: 0.8rem;
    color: #aaa;
    white-space: nowrap;
    line-height: 1.2;
}

.unit {
    font-size: 0.85rem;
    color: #FFF;
    white-space: nowrap;
}

/* Knob Panel */
.knob-panel {
    display: flex;
    justify-content: space-around;
    padding: 8px 10px;
    background-color: rgba(17, 17, 17, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid #333;
    pointer-events: auto;
    box-sizing: border-box;
    width: 100%;
}

.knob-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.knob-group label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
    font-weight: bold;
}

.knob-control {
    display: flex;
    align-items: center;
    background: #222;
    border-radius: 25px;
    padding: 3px 5px;
    border: 1px solid #333;
}

.knob-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #444;
    background-color: #333;
    color: #FFA500;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    transition: all 0.15s ease;
}

.knob-btn:active {
    background-color: #555;
    transform: scale(0.92);
}

.knob-control span {
    margin: 0 10px;
    font-family: 'Courier New', monospace;
    font-size: 19px;
    font-weight: bold;
    color: white;
    min-width: 52px;
    text-align: center;
    transition: all 0.2s ease;
}

.knob-panel.compact {
    padding: 4px;
}

.knob-panel.compact .knob-btn {
    width: 34px;
    height: 34px;
    font-size: 15px;
}

.knob-panel.compact .knob-control span {
    font-size: 15px;
}

/* Menu Bar */
.menu-bar {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    background: rgba(17, 17, 17, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid #333;
    pointer-events: auto;
    box-sizing: border-box;
    width: 100%;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.2s;
    user-select: none;
}

.menu-item.active {
    opacity: 1;
}

.icon-circle {
    width: 38px;
    height: 38px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.menu-item.active .icon-circle {
    border-color: #FFD700;
    color: #FFD700;
}

.menu-item span {
    font-size: 0.72rem;
    text-transform: uppercase;
}

/* Modal Windows Common */
.hidden {
    display: none !important;
}

#settings-modal,
#station-info-modal,
#station-selection-modal,
#location-disclosure-modal,
#ios-install-modal,
#app-update-modal,
#country-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.modal-content {
    background: #222;
    padding: 20px;
    border-radius: 10px;
    width: 88%;
    max-width: 420px;
    text-align: center;
    border: 1px solid #444;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.modal-scroll-area {
    overflow-y: auto;
    flex: 1;
    padding-right: 5px;
    margin-bottom: 10px;
}

.modal-scroll-area::-webkit-scrollbar {
    width: 5px;
}

.modal-scroll-area::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}

/* Inputs and Forms */
.input-group {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.input-group label {
    margin-right: 10px;
}

.input-group input[type="text"],
.input-group select {
    background: #333;
    border: 1px solid #555;
    color: white;
    padding: 8px;
    border-radius: 5px;
    flex: 1;
    box-sizing: border-box;
}

.input-group button {
    margin-left: 10px;
    background: #555;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.separator {
    border: 0;
    height: 1px;
    background: #333;
    margin: 10px 0;
}

.status-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

input[type="checkbox"] {
    flex: none !important;
    width: 22px !important;
    height: 22px !important;
    appearance: auto;
    cursor: pointer;
}

button {
    background: #444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.close-btn {
    background: #800;
    margin-top: 15px;
    width: 100%;
    padding: 12px;
    font-weight: bold;
}

.close-btn:hover {
    background: #a00;
}

.ready-btn {
    width: 100%;
    margin-top: 10px;
    background: #0066cc;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.ready-btn:hover {
    background: #0052a3;
}

/* Modal and Input Refinements */
.approach-course-group {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0 15px 0 !important;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
}

.input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.input-label {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
}

.compact-input {
    width: 90px !important;
    font-size: 1rem !important;
    text-align: center !important;
    padding: 6px !important;
}

/* Info Modal Details */
.info-details {
    text-align: left;
    margin-bottom: 15px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}

.info-details p {
    margin: 8px 0;
    color: #ccc;
    font-size: 0.95rem;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.info-details strong {
    color: #888;
    min-width: 80px;
}

.info-details span {
    color: #FFD700;
    font-weight: bold;
    text-align: right;
    word-break: break-all;
}

.info-details::-webkit-scrollbar {
    width: 5px;
}

.info-details::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}

/* Selection List Styling */
.selection-list {
    max-height: 50vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 5px;
}

.selection-item {
    background: #111;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.selection-item:hover,
.selection-item:active {
    background: #222;
    border-color: #FFD700;
}

.selection-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.selection-ident {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFD700;
}

.selection-name {
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
}

.selection-meta {
    text-align: right;
    font-size: 0.8rem;
    color: #888;
}

.selection-list::-webkit-scrollbar {
    width: 5px;
}

.selection-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}

/* Tooltips */
.entry-tooltip {
    background: rgba(0, 102, 204, 0.9) !important;
    border: 1px solid #FFD700 !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 1rem !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
}

.bearing-tooltip {
    background: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid #FFD700 !important;
    color: #FFD700 !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
    pointer-events: none !important;
}

/* Contact Group Styles */
.contact-group {
    margin: 10px 0;
    text-align: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 10px 15px;
    border-radius: 6px;
    background: transparent;
    width: 100%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-link .icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-link.youtube-link {
    color: #ff4444;
}

.contact-link.youtube-link:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.2);
    color: #ff6666;
}

/* Leaflet Popup Overrides */
.leaflet-popup-content-wrapper {
    background: #1a1a1a !important;
    color: white !important;
    border: 1px solid #444 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-tip {
    background: #1a1a1a !important;
}

.leaflet-popup-content {
    margin: 12px 15px !important;
    line-height: 1.4 !important;
    overflow-y: auto !important;
    padding-right: 5px !important;
}

.leaflet-popup-content::-webkit-scrollbar {
    width: 6px;
}

.leaflet-popup-content::-webkit-scrollbar-track {
    background: #111;
}

.leaflet-popup-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.leaflet-popup-content::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.airport-popup {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-header {
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.popup-header h3 {
    margin: 0;
    color: #FFD700;
    font-size: 1.2rem;
}

.popup-header span {
    font-size: 0.85rem;
    color: #aaa;
    text-transform: uppercase;
}

/* Weather & NOTAM Section */
.weather-section,
.notam-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.weather-section label,
.notam-section label {
    font-size: 0.7rem;
    color: #FFD700;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.8;
}

.weather-box,
.notam-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #444;
    border-radius: 6px;
    padding: 10px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #eee;
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 10px;
    white-space: pre-wrap;
    line-height: 1.4;
}

.weather-text {
    margin: 0;
    color: #00FF00;
}

.notam-list {
    margin: 0;
    padding-left: 15px;
    list-style-type: decimal;
}

.notam-list li {
    margin-bottom: 8px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

.notam-list li:last-child {
    border-bottom: none;
}

.notam-search-btn {
    display: block;
    margin-top: 15px;
    padding: 12px;
    background: #0066cc;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.notam-search-btn:hover {
    background: #0052a3;
    box-shadow: 0 6px 15px rgba(0, 102, 204, 0.4);
    transform: translateY(-1px);
}

.loading {
    color: #888;
    font-style: italic;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Navaid Markers */
.navaid-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.navaid-marker-vor {
    font-size: 20px;
    filter: drop-shadow(0 0 2px rgba(0, 191, 235, 0.5));
}

.navaid-marker-ndb {
    font-size: 18px;
    filter: drop-shadow(0 0 2px rgba(255, 0, 255, 0.5));
}

.navaid-marker-loc {
    font-size: 22px;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.aviation-popup .leaflet-popup-content-wrapper {
    background: #111;
    color: #eee;
    padding: 0;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
}

.aviation-popup .popup-header {
    padding: 8px 12px;
    border-bottom: 1px solid #444;
    font-size: 1.1rem;
}

.aviation-popup .popup-body {
    padding: 10px 12px;
}

.aviation-popup .popup-body p {
    margin: 4px 0;
    font-size: 0.9rem;
}

.aviation-popup .set-station-btn {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.aviation-popup .set-station-btn:hover {
    background: #0052a3;
}

/* Premium & Charts */
.premium-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.premium-btn:active {
    transform: scale(0.98);
}

.notam-section, .charts-section {
    margin-top: 15px;
    border-top: 1px solid #444;
    padding-top: 10px;
}

.charts-box {
    background: #1a1a1a;
    border-radius: 5px;
    padding: 10px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-lock {
    background: rgba(255, 215, 0, 0.1);
    border: 1px dashed #FFD700;
    padding: 10px;
    border-radius: 5px;
    color: #FFD700;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.premium-lock:hover {
    background: rgba(255, 215, 0, 0.2);
}

.weather-box.locked {
    filter: blur(2px);
    pointer-events: none;
    user-select: none;
}

/* iOS Install Modal */
.ios-install-content {
    border: 2px solid #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

/* Multi-Country Picker & Chips Styling */
.country-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 95px;
    overflow-y: auto;
    padding: 8px;
    background: #151515;
    border: 1px solid #333;
    border-radius: 6px;
    margin-bottom: 10px;
    scrollbar-width: thin;
}

.country-chip {
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid #00E5FF;
    color: #fff;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.country-chip .chip-remove {
    cursor: pointer;
    font-size: 0.9rem;
    color: #ff5252;
    font-weight: bold;
    line-height: 1;
    padding: 0 2px;
}

.country-chip .chip-remove:hover {
    color: #ff1744;
}

.country-picker-btn {
    width: 100%;
    background: #222;
    border: 1px solid #00E5FF;
    color: #00E5FF;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.country-picker-btn:hover {
    background: rgba(0, 229, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.country-picker-content {
    max-width: 520px;
    width: 92%;
    max-height: 88vh;
    padding: 16px;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.25);
}

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

.country-picker-close-x {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.country-picker-close-x:hover {
    color: #fff;
}

.country-search-bar {
    display: flex;
    align-items: center;
    background: #111;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 10px;
}

.country-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.clear-search-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
}

.continent-filters {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 8px;
    scrollbar-width: thin;
}

.continent-btn {
    background: #252525;
    border: 1px solid #444;
    color: #aaa;
    font-size: 0.75rem;
    padding: 4px 9px;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.continent-btn:hover {
    color: #fff;
    border-color: #666;
}

.continent-btn.active {
    background: #00E5FF;
    color: #000;
    border-color: #00E5FF;
    font-weight: bold;
}

.country-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.quick-btn {
    background: #1e1e1e;
    border: 1px dashed #555;
    color: #bbb;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.quick-btn:hover {
    border-color: #00E5FF;
    color: #00E5FF;
}

.quick-btn.quick-clear {
    border-color: #ff5252;
    color: #ff7675;
}

.picker-selection-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #aaa;
    padding: 4px 2px;
    border-bottom: 1px solid #333;
    margin-bottom: 8px;
}

.country-checkbox-list {
    flex: 1;
    overflow-y: auto;
    max-height: 38vh;
    padding-right: 4px;
    margin-bottom: 12px;
    scrollbar-width: thin;
}

.country-item {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    background: #222;
    margin-bottom: 4px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.12s;
    border: 1px solid transparent;
}

.country-item:hover {
    background: #2c2c2c;
}

.country-item.selected {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.35);
}

.country-item input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #00E5FF;
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.country-item-name {
    flex: 1;
    font-size: 0.88rem;
    color: #e0e0e0;
}

.country-item-code {
    font-size: 0.72rem;
    color: #888;
    background: #151515;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
    margin-left: 6px;
}

.country-item-continent {
    font-size: 0.68rem;
    color: #00E5FF;
    margin-left: 5px;
    background: rgba(0, 229, 255, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

.country-picker-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

/* ============================================================
   PILOT ACCOUNT & AUTH MODAL STYLES
   ============================================================ */
.auth-modal-content {
    max-width: 380px !important;
    text-align: center;
}

.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #3c4043;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.google-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.google-btn:active {
    transform: scale(0.98);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0;
    color: #666;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #333;
}

.auth-divider span {
    padding: 0 10px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-input {
    width: 100%;
    padding: 12px;
    background: #1c1c1c;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.auth-input:focus {
    outline: none;
    border-color: #00E5FF;
}

.auth-link-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 4px;
    padding: 4px;
}

.auth-link-btn:hover {
    color: #00E5FF;
}

.account-profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.account-avatar {
    width: 46px;
    height: 46px;
    background: #222;
    border: 2px solid #00E5FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.account-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.account-badge.premium {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
}

.account-badge.free {
    background: #444;
    color: #bbb;
}

.account-sync-box {
    background: #14181f;
    border: 1px solid #28303a;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    text-align: left;
}

.auth-feedback-msg {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.84rem;
    line-height: 1.4;
    text-align: left;
}

.auth-feedback-msg.error {
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid #ff4444;
    color: #ff7b7b;
}

.auth-feedback-msg.success {
    background: rgba(0, 255, 0, 0.15);
    border: 1px solid #00C851;
    color: #00E676;
}

#account-icon-badge.logged-in {
    border-color: #00E5FF !important;
    color: #00E5FF !important;
}

#account-icon-badge.premium-pilot {
    border-color: #FFD700 !important;
    color: #FFD700 !important;
}