@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap");

:root {
    --bg: #f2f4fb;
    --card: #ffffff;
    --text: #1e1f2b;
    --muted: #6a6f85;
    --primary: #6a4cff;
    --primary-dark: #4d35d8;
    --accent: #5fd68f;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 12px 30px rgba(31, 33, 53, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #e4e7ff 0%, #f7f9ff 45%, #f2f4fb 100%);
    color: var(--text);
}

.app {
    max-width: 720px;
    margin: 0 auto;
    padding: 18px;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-badge {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #8f6bff, #4a2ff2);
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
}

.bot-link {
    font-size: 13px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #3f79ff, #2a5adb);
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(42, 90, 219, 0.25);
}

.card {
    background: var(--card);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 14px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--muted);
}

.info-row strong {
    color: var(--text);
}

.status {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.status--active {
    background: rgba(95, 214, 143, 0.2);
    color: #1f8b4c;
}

.status--inactive {
    background: rgba(238, 95, 95, 0.2);
    color: #b82424;
}

.traffic-card h3 {
    margin: 0 0 12px;
    font-size: 15px;
}

.traffic-block {
    margin-bottom: 12px;
}

.traffic-head {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

.traffic-meta {
    color: var(--text);
    font-weight: 600;
}

.traffic-bar {
    height: 10px;
    border-radius: 999px;
    background: #eceffc;
    overflow: hidden;
}

.traffic-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6b4cff, #9d6bff);
    border-radius: 999px;
    transition: width 0.5s ease;
}

.traffic-bar--alt span {
    background: linear-gradient(90deg, #35b2ff, #4fddc4);
}

.traffic-note {
    font-size: 12px;
    color: var(--muted);
}

.link-row {
    display: flex;
    gap: 10px;
}

.link-row input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    font-size: 12px;
    color: var(--muted);
}

.link-row button {
    background: #3f6bff;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
}

.cta {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.cta-btn {
    border: none;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.cta-btn small {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.85;
}

.cta-btn--primary {
    background: linear-gradient(135deg, #3b69ff, #2d56d5);
    color: #fff;
}

.cta-btn--secondary {
    background: linear-gradient(135deg, #9a5bff, #6b3cff);
    color: #fff;
}

.cta-hint {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.deeplink-hint {
    margin: 2px 0 0;
    font-size: 11px;
    color: var(--text);
}

.instructions-card h4 {
    margin-top: 0;
}

.instruction-section {
    margin-bottom: 20px;
}

.instruction-section h4 {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 16px;
}

.instruction-section ol {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.instruction-section li {
    margin-bottom: 6px;
    line-height: 1.4;
}

.instruction-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}

.instruction-divider::before,
.instruction-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
}

.instruction-section .instruction-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.instruction-section .instruction-links a {
    color: #5a5be6;
    text-decoration: none;
    font-size: 14px;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tab {
    border: none;
    background: #f0f2ff;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
}

.tab.active {
    background: #6a4cff;
    color: #fff;
}

.tab-content {
    display: none;
    font-size: 13px;
    color: var(--muted);
}

.tab-content.active {
    display: block;
}

.tab-content a {
    color: #4a6fff;
    text-decoration: none;
}

@media (max-width: 600px) {
    .link-row {
        flex-direction: column;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
