/* Сторінка активації ліцензії */
html.license-pending body {
    visibility: hidden;
}

body.page-activate {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.activate-page {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.activate-stack {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activate-card {
    width: 100%;
    max-width: 420px;
    padding: 32px 28px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.activate-card h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
}

.activate-card h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.activate-hint {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

.activate-subtitle {
    margin: 0 0 20px;
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.5;
}

.activate-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.activate-field span {
    font-size: 0.85rem;
    color: #cbd5e1;
}

.activate-field input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(0, 0, 0, 0.25);
    color: inherit;
    font-size: 1rem;
    font-family: ui-monospace, monospace;
    letter-spacing: 0.05em;
}

.activate-field input:focus {
    outline: none;
    border-color: #03DAC6;
    box-shadow: 0 0 0 2px rgba(3, 218, 198, 0.2);
}

.activate-field textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(0, 0, 0, 0.25);
    color: inherit;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 72px;
}

.activate-field textarea:focus {
    outline: none;
    border-color: #03DAC6;
    box-shadow: 0 0 0 2px rgba(3, 218, 198, 0.2);
}

.admin-request-card {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.15);
}

.admin-request-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.admin-request-meta {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 10px;
}

.admin-request-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-btn-approve {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
}

.admin-gist-box {
    width: 100%;
    margin-top: 16px;
    font-family: ui-monospace, monospace;
    font-size: 0.78rem;
    min-height: 120px;
}

.admin-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.88rem;
}

.admin-nav-links a {
    color: #7dd3fc;
}

.activate-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #03DAC6, #00a896);
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
}

.activate-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.activate-submit-secondary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
}

.activate-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    font-size: 0.88rem;
}

.activate-success {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    font-size: 0.88rem;
}

.activate-takeover {
    margin: 0 0 16px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.12);
}

.activate-takeover-title {
    margin: 0 0 8px;
    font-weight: 600;
    color: #fcd34d;
}

.activate-takeover-device {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fef3c7;
}

.activate-takeover-text {
    margin: 0 0 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #fde68a;
}

.activate-takeover-actions button {
    min-height: 44px;
}

.activate-takeover-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.activate-takeover-actions .activate-submit {
    flex: 1 1 120px;
    margin: 0;
}

.activate-note {
    margin: 0 0 10px;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}

.activate-contact-inline {
    margin-top: 16px;
}

.activate-nav {
    margin-top: 16px;
    text-align: center;
}

.activate-nav a {
    color: #94a3b8;
    font-size: 0.88rem;
    text-decoration: none;
}

.activate-nav a:hover {
    color: #03DAC6;
}

.activate-link-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 0;
    border: none;
    background: none;
    color: #94a3b8;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
}

.activate-link-btn:hover {
    color: #03DAC6;
}

.activate-link-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.activate-contact {
    text-align: center;
    padding: 20px 28px;
}

.activate-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: border-color 0.15s, background 0.15s;
}

.activate-telegram:hover {
    border-color: #38bdf8;
    background: rgba(14, 165, 233, 0.22);
    color: #bae6fd;
}

.activate-note:last-child {
    margin-bottom: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    text-align: left;
}

.admin-done-btn {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: transparent;
    color: inherit;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.78rem;
}

.admin-done-btn:hover {
    border-color: #03DAC6;
    color: #03DAC6;
}

.license-offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 8px 16px;
    text-align: center;
    font-size: 0.85rem;
    background: #78350f;
    color: #fef3c7;
}

.license-user-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    font-size: 0.82rem;
    color: #94a3b8;
}

.license-user-bar button {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: transparent;
    color: inherit;
    border-radius: 8px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.78rem;
}

.license-user-bar button:hover {
    border-color: #03DAC6;
    color: #03DAC6;
}
