/* ==========================================================================
   Stillwater Compliance Redesign - Cosmic Cyber Design System (theme.css)
   ========================================================================== */

@import url('https://fonts.googleapis.cn/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --primary: #f97316;
    /* Brand Amber-Orange */
    --primary-end: #ef4444;
    /* Gradient Red */
    --primary-glow: rgba(249, 115, 22, 0.15);
    --secondary-glow: rgba(99, 102, 241, 0.12);
    --bg-page: #030712;
    --bg-card: rgba(17, 24, 39, 0.45);
    --bg-input: rgba(10, 15, 30, 0.6);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-focus: rgba(249, 115, 22, 0.6);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-light: #4b5563;

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Prevent Flash of Unstyled Icons (FOUC) */
body.js-loading i[class^="ri-"],
body.js-loading i[class*=" ri-"] {
    opacity: 0 !important;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    padding-top: 100px;
    position: relative;
    overflow-x: hidden;
}

/* Cosmic Cyber Background Grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -2;
}

/* Ambient Radial Glow Blobs */
.bg-glow-1,
.bg-glow-2 {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.25;
    pointer-events: none;
    z-index: -1;
}

.bg-glow-1 {
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.bg-glow-2 {
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
}

/* Floating Island Top Navigation */
.top-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1040px;
    height: 64px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.nav-container {
    width: 100%;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.nav-logo i {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px var(--primary-glow));
}

.nav-logo span {
    background: linear-gradient(90deg, #ffffff, #e5e7eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid transparent;
}

.nav-link i {
    font-size: 16px;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-end) 100%);
    box-shadow: 0 0 20px var(--primary-glow);
    border-color: transparent;
}

/* Page Wrapper */
.checkout-wrapper {
    display: flex;
    width: 100%;
    max-width: 1040px;
    margin: 40px auto;
    gap: 60px;
    align-items: flex-start;
    padding: 0 24px;
}

/* Left Side - Brand Column */
.brand-column {
    flex: 1;
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.brand-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.18);
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.brand-column h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: #ffffff;
}

.brand-column h1 span.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px var(--primary-glow));
}

.brand-column p.subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

/* Cyber Terminal Console (Signature Element) */
.cyber-terminal {
    background: rgba(8, 10, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.terminal-buttons span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-buttons .red {
    background-color: #ef4444;
}

.terminal-buttons .yellow {
    background-color: #f59e0b;
}

.terminal-buttons .green {
    background-color: #10b981;
}

.terminal-title {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.terminal-body {
    padding: 18px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: #38bdf8;
    line-height: 1.6;
    height: 160px;
    overflow-y: auto;
}

/* Custom Scrollbar for Terminal Console & IP Tag Container */
.terminal-body::-webkit-scrollbar,
.ip-tags-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.terminal-body::-webkit-scrollbar-track,
.ip-tags-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.terminal-body::-webkit-scrollbar-thumb,
.ip-tags-container::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.35);
    border-radius: 10px;
    transition: var(--transition);
}

.terminal-body::-webkit-scrollbar-thumb:hover,
.ip-tags-container::-webkit-scrollbar-thumb:hover {
    background: rgba(249, 115, 22, 0.65);
}

.terminal-line {
    margin-bottom: 4px;
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-line .command {
    color: #f43f5e;
}

.terminal-line .success {
    color: #10b981;
}

.terminal-line .info {
    color: #94a3b8;
}

.terminal-line .cursor {
    display: inline-block;
    width: 6px;
    height: 14px;
    background: #38bdf8;
    margin-left: 2px;
    animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
    50% {
        opacity: 0;
    }
}

/* Feature list */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.feature-item .f-icon {
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.1));
}

.feature-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.feature-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Cyber Shield Logo Animation Container */
.cyber-shield-container {
    width: 80px;
    height: 80px;
    position: relative;
    margin-bottom: 8px;
    perspective: 800px;
}

.cyber-shield-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.4));
}

/* Right Side - Checkout Card Container */
.checkout-card {
    flex: 0 0 520px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Card glowing top edge */
.checkout-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.4), transparent);
}

/* Product header */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.product-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.product-header p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.product-header .price-display {
    text-align: right;
}

.product-header .price-val {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    display: block;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-header .price-label {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 14px;
    color: #ffffff;
    font-family: var(--font-mono);
    line-height: 1.5;
    transition: var(--transition);
}

.form-input::placeholder {
    font-family: inherit;
    color: var(--text-muted);
    opacity: 0.5;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
    background: rgba(10, 15, 30, 0.85);
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
}

/* IP Chip Container */
.ip-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    max-height: 120px;
    overflow-y: auto;
}

.ip-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    transition: var(--transition);
}

.ip-tag.valid {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.18);
    color: #34d399;
}

.ip-tag.warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

.ip-tag.invalid {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.18);
    color: #f87171;
}

/* Discount Rules Box */
.discount-rules-panel {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 24px;
}

.discount-rules-panel .panel-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.rule-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 10px 4px;
    text-align: center;
    transition: var(--transition);
    cursor: default;
}

.rule-card .qty {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.rule-card .discount {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}

.rule-card.highlight {
    border-color: rgba(249, 115, 22, 0.4);
    background: rgba(249, 115, 22, 0.06);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.1);
    transform: scale(1.04);
}

.rule-card.highlight .discount {
    color: var(--primary);
}

/* Billing details */
.billing-details {
    background: rgba(249, 115, 22, 0.02);
    border: 1px solid rgba(249, 115, 22, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row.total-row {
    border-top: 1px solid rgba(249, 115, 22, 0.18);
    padding-top: 12px;
    margin-top: 12px;
    font-weight: 700;
    color: #ffffff;
}

.detail-row.total-row #bulkTotal {
    color: var(--primary);
    font-size: 15px;
}

/* Submit section */
.submit-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.total-pay-box .label {
    font-size: 13px;
    color: var(--text-muted);
}

.total-pay-box .pay-amount {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-end) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 28px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 15px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.submit-btn:hover:not(:disabled)::before {
    left: 150%;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.submit-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

/* Trust seals */
.trust-guarantees {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
    font-size: 11px;
    color: var(--text-muted);
}

.trust-guarantees .g-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.trust-guarantees .g-item i {
    font-size: 13px;
}

/* Query Link */
.query-links {
    text-align: center;
    margin-top: 24px;
    font-size: 13.5px;
}

.query-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.query-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.query-links .dot {
    color: var(--text-light);
    margin: 0 10px;
}

/* Alerts */
.alert {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    line-height: 1.5;
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.06);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.18);
}

/* Modals & Pay Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: #0f172a;
    width: 90%;
    max-width: 440px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
}

.modal-title {
    font-weight: 700;
    color: #ffffff;
    font-size: 15px;
    letter-spacing: -0.2px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-body {
    position: relative;
    background: #090d16;
}

.modal-loading {
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

/* High-tech QR Code Box with Scan Effect */
.qr-code-box {
    position: relative;
    display: inline-block;
    padding: 14px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    overflow: hidden;
}

.qr-code-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: laser-scan 2.5s ease-in-out infinite;
    z-index: 10;
}

@keyframes laser-scan {

    0%,
    100% {
        top: 0%;
    }

    50% {
        top: 100%;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Auxiliary Pages Layout (Centered layouts like order query, change ip) */
.centered-layout {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 24px;
    width: 100%;
}

.centered-layout .action-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.centered-layout .action-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.4), transparent);
}

.centered-layout .card-header {
    text-align: center;
    margin-bottom: 28px;
}

.centered-layout .card-header .brand {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.centered-layout h1 {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.centered-layout p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Order query outputs, list details */
.status-section {
    text-align: center;
    margin-bottom: 24px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
}

.status-badge.processing {
    background: rgba(99, 102, 241, 0.08);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.18);
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.info-list {
    margin-top: 24px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    font-size: 13.5px;
}

.info-row .label {
    color: var(--text-muted);
    font-weight: 500;
}

.info-row .value {
    color: #ffffff;
    font-weight: 600;
    font-family: var(--font-mono);
    text-align: right;
}

.btn-secondary {
    display: block;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    color: #ffffff;
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

.card-footer {
    margin-top: 24px;
    text-align: center;
}

.card-footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition);
}

.card-footer a:hover {
    color: #ffffff;
}

/* License Type Selection Grid */
.license-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 12px;
}

.license-type-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 6px;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.license-type-card:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.license-type-card.active {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.04);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.1), inset 0 1px 0 rgba(249, 115, 22, 0.15);
}

.license-type-card .card-icon {
    font-size: 18px;
    color: var(--text-muted);
}

.license-type-card.active .card-icon {
    color: var(--primary);
}

.license-type-card .card-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.license-type-card .card-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.license-type-card .card-desc.desc-highlight-red {
    font-size: 11px;
    font-weight: 600;
    color: #f87171;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.12);
    padding: 3px 10px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 6px 0;
}

.license-type-card .card-desc.desc-highlight-green {
    font-size: 11px;
    font-weight: 600;
    color: #34d399;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.12);
    padding: 3px 10px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 6px 0;
}

.limit-badge {
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1px 6px;
    border-radius: 100px;
    margin: 0 4px;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
}

.license-type-card .card-price {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin-top: auto;
    padding-top: 8px;
}

.license-type-card.active .card-price {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Payment Method Grid */
.payment-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.payment-method-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.payment-method-card:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.payment-method-card.active {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.04);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.1);
}

.payment-method-card .card-icon {
    display: flex;
    align-items: center;
}

.payment-method-card .card-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 960px) {
    .checkout-wrapper {
        flex-direction: column;
        gap: 50px;
        align-items: center;
        padding-top: 40px;
    }

    .brand-column {
        position: static;
        width: 100%;
        max-width: 100%;
        text-align: center;
        align-items: center;
    }

    .brand-badge {
        align-self: center;
    }

    .brand-column h1 {
        font-size: 36px;
    }

    .feature-list {
        width: 100%;
        max-width: 600px;
    }

    .cyber-terminal {
        width: 100%;
        max-width: 600px;
    }

    .checkout-card {
        width: 100%;
        max-width: 600px;
        flex: auto;
    }
}

@media (max-width: 768px) {
    .top-nav {
        position: fixed;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        height: auto;
        padding: 12px 0 10px 0;
        border-radius: 0;
        border-top: none;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid var(--border);
        background: rgba(10, 15, 30, 0.85);
    }

    .nav-container {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        padding: 0 16px;
    }

    .nav-logo {
        font-size: 16px;
    }

    .nav-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        width: 100%;
    }

    .nav-link {
        font-size: 11px;
        font-weight: 700;
        padding: 8px 4px;
        flex-direction: column;
        gap: 4px;
        justify-content: center;
        text-align: center;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        white-space: nowrap;
    }

    .nav-link.active {
        box-shadow: none;
    }

    body {
        padding-top: 130px;
    }

    .centered-layout {
        padding-top: 80px;
    }
}

@media (max-width: 560px) {
    .rules-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .rules-grid .rule-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .checkout-card {
        padding: 24px 20px;
    }

    .payment-method-grid {
        grid-template-columns: 1fr;
    }

    .license-type-grid {
        grid-template-columns: 1fr;
    }

    .brand-column h1 {
        font-size: 28px;
    }

    .centered-layout .action-card {
        padding: 28px 20px;
    }
}

/* ==========================================================================
   Articles & Knowledge Base Styles (Cosmic Cyber Theme)
   ========================================================================== */

.articles-page-wrapper,
.article-detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px 60px;
    position: relative;
    z-index: 10;
}

/* Hero Header */
.articles-hero {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 50px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 40%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Search Box */
.articles-search-form {
    max-width: 640px;
    margin: 0 auto 28px;
}

.search-input-box {
    display: flex;
    align-items: center;
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px 8px 6px 18px;
    transition: var(--transition);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.search-input-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.search-icon {
    font-size: 20px;
    color: var(--text-muted);
    margin-right: 12px;
}

.search-input-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 15px;
    font-family: inherit;
}

.search-input-box input::placeholder {
    color: var(--text-light);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-end));
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* Category Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: var(--transition);
}

.category-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-color: var(--border-hover);
}

.category-pill.active {
    background: rgba(249, 115, 22, 0.15);
    color: var(--primary);
    border-color: rgba(249, 115, 22, 0.4);
    font-weight: 600;
}

.cat-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
}

/* Articles Grid */
.search-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.clear-search-btn {
    color: var(--error);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.article-card:hover {
    border-color: rgba(249, 115, 22, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.article-card:hover::before {
    opacity: 1;
}

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

.article-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(249, 115, 22, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.article-read-time {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-card-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 12px;
}

.article-card-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card-title a:hover {
    color: var(--primary);
}

.article-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    font-size: 13px;
}

.article-meta-info {
    display: flex;
    gap: 12px;
    color: var(--text-light);
}

.article-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.article-read-btn:hover {
    gap: 8px;
}

/* Empty State */
.empty-state-card {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.empty-icon {
    font-size: 54px;
    color: var(--text-light);
    margin-bottom: 16px;
    display: block;
}

.empty-state-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.btn-reset-filter {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.btn-reset-filter:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Pagination */
.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 60px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.page-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 700;
}

.page-numbers {
    display: flex;
    gap: 6px;
}

.page-ellipsis {
    color: var(--text-light);
    padding: 8px;
}

/* Bottom Global Banner CTA */
.global-cta-banner {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(17, 24, 39, 0.7) 100%);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-banner-content h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.cta-banner-content p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 18px;
    line-height: 1.6;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(249, 115, 22, 0.15);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.cta-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-main);
}

.cta-features span i {
    color: var(--success);
    margin-right: 4px;
}

.cta-banner-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-end));
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px var(--primary-glow);
    transition: var(--transition);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.4);
}

.cta-subtext {
    font-size: 12px;
    color: var(--text-light);
}

/* ==========================================================================
   Article Detail Page
   ========================================================================== */

.article-detail-container {
    max-width: 860px;
    margin: 0 auto;
}

.article-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.article-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.article-breadcrumbs a:hover {
    color: var(--primary);
}

.crumb-separator {
    color: var(--text-light);
    font-size: 12px;
}

.crumb-current {
    color: var(--text-main);
}

/* Article Header */
.article-header {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.article-tags-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.badge-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.25);
    padding: 4px 12px;
    border-radius: 6px;
}

.badge-read {
    font-size: 13px;
    color: var(--text-muted);
}

.article-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 18px;
    color: #fff;
}

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-abstract-card {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(249, 115, 22, 0.04);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    font-size: 15px;
    line-height: 1.7;
    color: #e5e7eb;
}

.abstract-icon {
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Article Content Body (Markdown Rendering) */
.article-content-body {
    font-size: 16px;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 50px;
}

.article-content-body p {
    margin-bottom: 22px;
}

.article-content-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.article-content-body h2::before {
    content: '#';
    color: var(--primary);
    font-weight: 800;
    margin-right: 10px;
    opacity: 0.8;
}

.article-content-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #f3f4f6;
    margin: 28px 0 12px;
}

.article-content-body strong {
    color: #fff;
    font-weight: 600;
}

.article-content-body .article-link {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s;
}

.article-content-body .article-link:hover {
    opacity: 0.85;
}

.article-content-body .article-ul,
.article-content-body .article-ol {
    margin: 16px 0 24px 24px;
}

.article-content-body li {
    margin-bottom: 8px;
}

.article-content-body .article-hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 36px 0;
}

/* Code Blocks */
.code-block {
    background: #090d16;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin: 24px 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.code-lang {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
}

.copy-code-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.code-block code {
    display: block;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: #e2e8f0;
    overflow-x: auto;
    line-height: 1.6;
}

.inline-code {
    font-family: var(--font-mono);
    font-size: 13px;
    background: rgba(249, 115, 22, 0.1);
    color: #fdba74;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

/* Callouts */
.callout {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin: 24px 0;
    border: 1px solid transparent;
    font-size: 15px;
    line-height: 1.6;
}

.callout-tip {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
}

.callout-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fde68a;
}

.callout-important {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.callout-info {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 24px 0;
}

.markdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.markdown-table th,
.markdown-table td {
    padding: 12px 16px;
    border: 1px solid var(--border);
}

.markdown-table th {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
    color: #fff;
}

.markdown-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* FAQ Accordion */
.article-faq-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(16px);
}

.faq-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    color: #fff;
}

.faq-header i {
    font-size: 24px;
    color: var(--primary);
}

.faq-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item[open] {
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.02);
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    color: #fff;
    list-style: none;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.q-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(249, 115, 22, 0.15);
    color: var(--primary);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

.q-text {
    flex: 1;
}

.chevron-icon {
    font-size: 20px;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.faq-item[open] .chevron-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 20px 20px 56px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* COMMERCIAL HIGH CONVERSION CTA BOX (文章底部转化卡片) */
.article-cta-box {
    position: relative;
    background: linear-gradient(145deg, #0e1628 0%, #080c14 100%);
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin: 40px 0 50px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(249, 115, 22, 0.1);
}

.cta-glow-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.cta-heading {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 12px 0 10px;
}

.cta-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.cta-perks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #e5e7eb;
}

.perk-item i {
    color: var(--success);
    font-size: 16px;
}

.cta-action-area {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.btn-purchase-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    color: #fff;
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(249, 115, 22, 0.4);
    transition: var(--transition);
}

.btn-purchase-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(249, 115, 22, 0.55);
}

.cta-guarantee {
    font-size: 13px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cta-guarantee i {
    color: var(--success);
}

/* Related Articles Section */
.related-articles-section {
    margin-bottom: 40px;
}

.section-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.section-title-row i {
    font-size: 20px;
    color: var(--primary);
}

.section-title-row h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.related-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
}

.rel-cat {
    font-size: 11px;
    color: var(--primary);
    margin-bottom: 8px;
}

.rel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.rel-date {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Bottom Actions */
.article-bottom-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.btn-back-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.btn-back-list:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: var(--border-hover);
}

/* Footer */
.articles-footer {
    border-top: 1px solid var(--border);
    padding: 30px 24px;
    background: rgba(3, 7, 18, 0.8);
    font-size: 13px;
    color: var(--text-light);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .global-cta-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 24px;
    }

    .cta-banner-action {
        width: 100%;
        align-items: stretch;
    }

    .btn-cta-primary {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 28px;
    }

    .article-title {
        font-size: 24px;
    }

    .cta-perks-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}