* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    background-color: #071226;
    color: #ffffff;
    font-family: Helvetica, Arial, sans-serif;
}

.app {
    width: 690px;
    margin: 10vh auto 0 auto;
}

.title {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1d7b99;
}
.beta {
    font-size: 14px;
    font-weight: 600;
    color: #78a8ff;
    margin-left: 8px;
    vertical-align: middle;
}

.subtitle {
    margin: 0 0 18px 0;
    font-size: 15px;
    color: #aab7d4;
}

.card {
    background-color: #122554;
    border: 1px solid #2d4c86;
    border-radius: 14px;
    padding: 24px 27px 20px 27px;
    margin-top: 25px;
}

label {
    display: block;
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

input {
    width: 100%;
    height: 48px;
    margin: 0 0 10px 0;
    padding: 0 12px;
    background-color: #0b1a36;
    border: 1px solid #52698f;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
}

input::placeholder {
    color: #8fa2c8;
}

select {
    width: 100%;
    height: 48px;
    margin: 0 0 10px 0;
    padding: 0 40px 0 12px;
    background-color: #0b1a36;
    border: 1px solid #52698f;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    outline: none;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg fill='white' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

input:hover,
select:hover {
    border-color: #6c83ad;
}

input:focus,
select:focus {
    border-color: #5b8def;
}

.buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn {
    flex: 1;
    height: 42px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: #ffffff;
}

.btn.secondary {
    background-color: #17396d;
    border: 1px solid #52698f;
}

.btn.secondary:hover {
    background-color: #1d457f;
}

.btn.primary {
    background-color: #5b8def;
    border: none;
}

.btn.primary:hover {
    background-color: #4e82e3;
}

/* =========================
   STATUS (FIXED)
========================= */

.status {
    margin-top: 18px;
    font-size: 17px;
    font-weight: 700;
    color: #78a8ff;
}

/* GRADIENT ONLY ON TEXT */

#statusText {
    background: linear-gradient(
        135deg,
        #78a8ff,
        #1d7b99,
        #78a8ff
    );
    background-size: 200% 200%;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: statusTextGradient 6s ease infinite;
}

@keyframes statusTextGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========================= */

.live-dots {
    display: none;
}

.live-dots span {
    animation: liveDot 1.2s infinite;
}

.live-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.live-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes liveDot {
    0%, 20% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

.download-info {
    margin-top: 12px;
    color: #78a8ff;
    font-size: 13px;
    font-weight: 700;
}

.download-warning {
    margin-top: 10px;
    min-height: 22px;
    color: #A7C7E7;
    font-size: 13px;
    font-weight: 700;
}

.history {
    margin-top: 20px;
}

.history-toggle {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    background-color: #1a2742;
    border: 1px solid #344867;
    border-radius: 8px;
    color: #aab7d4;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-panel {
    margin-top: 10px;
    padding: 12px 14px;
    background-color: #0b1a36;
    border: 1px solid #2d4c86;
    border-radius: 8px;
}
.history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.history-name {
    font-size: 8px;
    color: #aab7d4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.history-size {
    font-size: 10px;
    color: #78a8ff;
    flex-shrink: 0;
}
.history-empty,
.history-total {
    font-size: 11px;
    line-height: 1.25;
    color: #8fa2c8;
    font-weight: 600;
}

.history-total {
    margin-top: 4px;
    color: #78a8ff;
}



/* =========================
   FREE RADAR
========================= */

.free-radar {
    margin-top: 25px;
}

.radar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.radar-header h3 {
    margin: 0;
    font-size: 16px;
    color: #78a8ff;
}

.radar-header button {
    background: none;
    border: none;
    color: #aab7d4;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.radar-header button:hover {
    color: #78a8ff;
}

.radar-carousel {
    width: 100%;
    overflow: hidden;
    padding-bottom: 6px;
    position: relative;
    scroll-behavior: auto;
}

.radar-track {
    display: flex;
    gap: 14px;
    width: max-content;
}

.radar-card {
    flex: 0 0 124px;
    width: 124px;
    background: #0b1a36;
    border: 1px solid #2d4c86;
    border-radius: 12px;
    padding: 7px;
    position: relative;
}

.radar-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: 9px;
    cursor: pointer;
    background-color: #071226;
    display: block;
}

.radar-card img:hover {
    opacity: 0.92;
}

.radar-platform {
    font-size: 11px;
    margin-top: 7px;
    color: #78a8ff;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radar-type {
    font-size: 10px;
    margin-top: 2px;
    color: #aab7d4;
    font-weight: 700;
}

.radar-price {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #5b8def;
    color: #ffffff;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
}

/* =========================
   RADAR SLIDER
========================= */

.radar-slider-wrap {
    margin-top: 8px;
    padding: 0 4px;
}

.radar-slider {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 4px;
    background: #2d4c86;
    outline: none;
    cursor: pointer;
}

.radar-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #78a8ff;
    cursor: pointer;
    border: none;
}

.radar-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #78a8ff;
    cursor: pointer;
    border: none;
}