/* ═══════════════════════════════════════════════════════════
   PDFax — License Activation & Software Security Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Activation Gate Full-Screen Overlay ── */
.activation-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 30%, rgba(30, 41, 59, 0.85) 0%, rgba(11, 17, 32, 0.96) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 24px;
    animation: fadeInGate 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInGate {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* ── Activation Card ── */
.activation-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--bg-surface, #111827);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 36px 32px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    text-align: center;
}

.activation-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.28) 0%, rgba(139, 92, 246, 0.12) 60%, transparent 80%);
    filter: blur(28px);
    pointer-events: none;
}

/* ── Icon & Header ── */
.activation-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.25));
    border: 1px solid rgba(139, 92, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A78BFA;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
    position: relative;
}

.activation-icon svg {
    width: 32px;
    height: 32px;
}

.activation-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #F1F5F9);
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.activation-header p {
    font-size: 13.5px;
    color: var(--text-secondary, #94A3B8);
    line-height: 1.55;
    margin: 0 0 24px;
}

/* ── Form Controls ── */
.activation-form {
    text-align: left;
}

.activation-form .form-group {
    margin-bottom: 18px;
}

.activation-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #94A3B8);
    margin-bottom: 8px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted, #64748B);
    pointer-events: none;
    transition: color 0.2s ease;
}

.activation-input {
    width: 100%;
    padding: 13px 14px 13px 44px;
    background: var(--bg-base, #0B1120);
    border: 1.5px solid var(--border-subtle, #1E293B);
    border-radius: 10px;
    color: var(--text-primary, #F1F5F9);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    transition: all 0.2s ease;
}

.activation-input:focus {
    outline: none;
    border-color: var(--accent-primary, #3B82F6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: #0D1526;
}

.activation-input:focus + .input-icon,
.activation-input:focus ~ .input-icon {
    color: var(--accent-primary, #3B82F6);
}

.activation-field-hint {
    font-size: 11.5px;
    color: var(--text-muted, #64748B);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.activation-field-hint code {
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 5px;
    border-radius: 4px;
    color: var(--text-secondary, #94A3B8);
    font-family: 'JetBrains Mono', monospace;
}

/* ── Workstation Fingerprint Chip ── */
.device-fingerprint-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11.5px;
}

.fingerprint-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fingerprint-item .fp-label {
    color: var(--text-muted, #64748B);
}

.fingerprint-item .fp-val {
    color: var(--text-secondary, #94A3B8);
    font-size: 11px;
}

/* ── Alerts ── */
.activation-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    margin-bottom: 18px;
    animation: fadeInAlert 0.2s ease;
}

@keyframes fadeInAlert {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.activation-alert.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

.activation-alert.error svg {
    width: 18px;
    height: 18px;
    color: #EF4444;
    flex-shrink: 0;
}

.activation-alert.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6EE7B7;
}

.activation-alert.success svg {
    width: 18px;
    height: 18px;
    color: #10B981;
    flex-shrink: 0;
}

/* ── Button Block ── */
.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    font-size: 14px;
    font-weight: 600;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.activation-footer {
    margin-top: 20px;
    font-size: 11.5px;
    color: var(--text-muted, #64748B);
    text-align: center;
}

/* ── Top Bar License Pill Badge (Executive Google style) ── */
.license-badge-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 4px 12px 4px 10px !important;
    height: 32px !important;
    width: auto !important;
    min-width: max-content !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(30, 41, 59, 0.5) 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    border-radius: 20px !important;
    color: var(--text-primary, #F1F5F9) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    user-select: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin-right: 8px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
}

.license-badge-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(30, 41, 59, 0.65) 100%) !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25) !important;
    transform: translateY(-1px) !important;
}

.license-badge-btn.unlicensed {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(30, 41, 59, 0.5) 100%) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
}

.license-badge-btn.unlicensed:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(30, 41, 59, 0.65) 100%) !important;
    border-color: rgba(245, 158, 11, 0.65) !important;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25) !important;
}

.badge-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

.badge-dot.active {
    background: #10B981 !important;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.9) !important;
}

.badge-dot.warning {
    background: #F59E0B !important;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.9) !important;
}

.license-badge-btn .lic-name {
    font-weight: 600;
    color: var(--text-primary, #F1F5F9);
    letter-spacing: -0.01em;
}

.license-badge-btn .lic-tag {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1.5px 6px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.25);
    color: #6EE7B7;
    border: 1px solid rgba(16, 185, 129, 0.4);
    margin-left: 2px;
}

.license-badge-btn.unlicensed .lic-tag {
    background: rgba(245, 158, 11, 0.25);
    color: #FCD34D;
    border-color: rgba(245, 158, 11, 0.4);
}

/* ── License Modal Details ── */
.license-status-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.license-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.license-status-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.license-status-badge.unlicensed {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.license-client-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #F1F5F9);
    letter-spacing: -0.01em;
}

.license-product-sub {
    font-size: 12.5px;
    color: var(--text-secondary, #94A3B8);
    margin-top: 2px;
}

.license-details-grid {
    background: var(--bg-base, #0B1120);
    border: 1px solid var(--border-subtle, #1E293B);
    border-radius: 10px;
    overflow: hidden;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle, #1E293B);
    font-size: 12.5px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary, #94A3B8);
}

.detail-value {
    color: var(--text-primary, #F1F5F9);
    font-weight: 500;
}
