@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@400;600;700;800&display=swap');

.serp-tracker-wrap {
    font-family: 'Syne', sans-serif;
    color: #e8e8f0;
    max-width: 1050px;
    margin: 0 auto;
}

/* Card */
.st-card {
    background: #111118;
    border: 1px solid #2a2a40;
    border-radius: 18px;
    padding: 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.st-card-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #7b61ff, #00ff88, transparent);
}

/* Form grid */
.st-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}
@media (max-width: 600px) {
    .st-form-grid { grid-template-columns: 1fr; }
}
.st-field { display: flex; flex-direction: column; gap: 7px; }
.st-field-full { grid-column: 1 / -1; }

.st-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6b6b8a;
    font-family: 'Space Mono', monospace;
}
.st-label-hint { font-weight: 400; text-transform: none; letter-spacing: 0; }

.st-input {
    background: #1a1a26;
    border: 1px solid #2a2a40;
    border-radius: 9px;
    color: #e8e8f0;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    padding: 11px 14px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.st-input:focus {
    border-color: #7b61ff;
    box-shadow: 0 0 0 3px rgba(123,97,255,.15);
}
.st-textarea { min-height: 110px; resize: vertical; }

/* Form footer */
.st-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.st-hint {
    font-size: 12px;
    color: #6b6b8a;
    font-family: 'Space Mono', monospace;
}
.st-btn {
    background: #00ff88;
    color: #000;
    border: none;
    border-radius: 9px;
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .15s, box-shadow .15s, opacity .15s;
}
.st-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,255,136,.2); }
.st-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.st-btn.st-btn-stop { background: #2a2a40; color: #ff4757; }

/* Error */
.st-error {
    background: rgba(255,71,87,.08);
    border: 1px solid rgba(255,71,87,.25);
    border-radius: 9px;
    padding: 12px 16px;
    color: #ff4757;
    font-size: 13px;
    font-family: 'Space Mono', monospace;
    margin-bottom: 20px;
}

/* Status bar */
.st-status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #111118;
    border: 1px solid #2a2a40;
    border-radius: 9px;
    padding: 11px 16px;
    margin-bottom: 22px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: #6b6b8a;
}
.st-pulse-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #00ff88;
    display: inline-block;
    animation: st-pulse 1s infinite;
    flex-shrink: 0;
}
@keyframes st-pulse {
    0%,100% { opacity: 1; }
    50%      { opacity: .3; }
}

/* Stats */
.st-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
@media (max-width: 480px) { .st-stats-row { grid-template-columns: 1fr; } }
.st-stat-box {
    background: #111118;
    border: 1px solid #2a2a40;
    border-radius: 13px;
    padding: 18px;
    text-align: center;
}
.st-stat-num {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
}
.st-stat-label {
    font-size: 10px;
    color: #6b6b8a;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Space Mono', monospace;
    margin-top: 5px;
}
.st-green { color: #00ff88; }
.st-red   { color: #ff4757; }
.st-gray  { color: #6b6b8a; }

/* Table */
.st-table-wrap {
    background: #111118;
    border: 1px solid #2a2a40;
    border-radius: 14px;
    overflow: hidden;
    overflow-x: auto;
}
.st-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.st-table thead th {
    background: #1a1a26;
    padding: 13px 16px;
    text-align: left;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6b6b8a;
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    border-bottom: 1px solid #2a2a40;
}
.st-table tbody tr {
    border-bottom: 1px solid rgba(42,42,64,.5);
    transition: background .15s;
}
.st-table tbody tr:last-child { border-bottom: none; }
.st-table tbody tr:hover { background: rgba(123,97,255,.05); }
.st-table td {
    padding: 13px 16px;
    font-size: 14px;
    vertical-align: middle;
    color: #e8e8f0;
}

/* Rank badges */
.st-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 26px;
    border-radius: 7px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    padding: 0 10px;
}
.st-badge-top3  { background: rgba(0,255,136,.15);  color: #00ff88; border: 1px solid rgba(0,255,136,.3); }
.st-badge-top10 { background: rgba(255,211,42,.12); color: #ffd32a; border: 1px solid rgba(255,211,42,.3); }
.st-badge-top20 { background: rgba(255,107,53,.12); color: #ff6b35; border: 1px solid rgba(255,107,53,.3); }
.st-badge-below { background: rgba(107,107,138,.15);color: #9090aa; border: 1px solid #2a2a40; }
.st-badge-none  { background: rgba(255,71,87,.12);  color: #ff4757; border: 1px solid rgba(255,71,87,.3); }

.st-url-link {
    color: #7b61ff;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-decoration: none;
    word-break: break-all;
}
.st-url-link:hover { text-decoration: underline; }

.st-status-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    margin-right: 5px;
}
.st-dot-green { background: #00ff88; }
.st-dot-yellow{ background: #ffd32a; }
.st-dot-orange{ background: #ff6b35; }
.st-dot-red   { background: #ff4757; }
.st-dot-gray  { background: #6b6b8a; }

.st-kw { font-family: 'Space Mono', monospace; font-size: 13px; word-break: break-word; }
.st-num { color: #555; font-family: 'Space Mono', monospace; font-size: 12px; }
.st-muted { color: #555; }
.st-err-text { color: #ff4757; font-family: 'Space Mono', monospace; font-size: 11px; }
.st-wait { color: #555; font-size: 12px; }
