/* --- COLD WORKS HQ CENTRAL THEME --- */
:root {
    --bg-dark: #08080a;
    --card-bg: #111116;
    --card-inner: #16161d;
    --border-color: #23232f;
    --border-hover: #8b5cf6;
    --accent-purple: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.15);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    --status-amber: #f59e0b;
    --status-green: #10b981;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    padding-bottom: 3rem;
}

/* NAVBAR */
.hq-navbar {
    background: rgba(17, 17, 22, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 38px;
    height: 38px;
    border: 2px solid var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .main-title {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 1.5px;
}

.logo-text .sub-title {
    font-size: 0.65rem;
    color: var(--accent-purple);
    font-weight: 600;
    letter-spacing: 2px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-inner);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-family: 'Fira Code', monospace;
    color: var(--text-muted);
}

.status-indicator {
    width: 7px;
    height: 7px;
    background-color: var(--status-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--status-green);
}

/* MAIN CONTENT */
.main-content {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* HERO SECTION */
.hq-hero {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2rem 1rem;
    background: radial-gradient(circle at top, var(--accent-glow) 0%, transparent 70%);
}

.hero-badge {
    display: inline-block;
    background: var(--card-inner);
    border: 1px solid var(--border-color);
    color: var(--accent-purple);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hq-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.hero-motto {
    font-family: 'Fira Code', monospace;
    color: var(--accent-purple);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.hero-description {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CARDS & GRID */
.hq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.hq-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s ease;
}

.hq-card:hover {
    border-color: var(--border-hover);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    color: var(--accent-purple);
}

.clearance-tag {
    font-size: 0.65rem;
    font-family: 'Fira Code', monospace;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* DIVISION LIST */
.division-item {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
}

.division-item i {
    color: var(--accent-purple);
    margin-top: 4px;
    font-size: 1.1rem;
}

.division-item h4 {
    font-size: 0.9rem;
    color: var(--text-main);
}

.division-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-box {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

.contact-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.contact-email {
    color: var(--accent-purple);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
}

/* VIOLET BIO ID CARD DESIGN */
.bio-card-wrapper {
    background: var(--card-inner);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.bio-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 0.8rem;
}

.bio-card-header .company-tag { color: var(--text-muted); }
.bio-card-header .card-type { color: var(--accent-purple); }

.bio-card-body {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.bio-avatar {
    width: 90px;
    text-align: center;
}

.bio-avatar img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--accent-purple);
}

.subject-tag {
    font-size: 0.6rem;
    font-family: 'Fira Code', monospace;
    color: var(--accent-purple);
    display: block;
    margin-top: 4px;
}

.bio-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    flex-grow: 1;
}

.bio-field label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-dark);
    font-weight: 700;
}

.bio-field span {
    font-size: 0.75rem;
    color: var(--text-main);
    font-weight: 600;
}

.bio-card-footer {
    margin-top: 0.8rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Fira Code', monospace;
}

/* TRADEMARK CARD */
.sub-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--status-amber);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: var(--status-amber);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.tm-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.tm-item label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: 1px;
}

.tm-item span {
    font-size: 0.9rem;
    font-weight: 600;
}

.tm-item .highlight {
    color: var(--accent-purple);
    font-weight: 700;
}

.tm-item.full-width {
    grid-column: 1 / -1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.action-btn {
    background: var(--accent-purple);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.action-btn:hover {
    background: #7c3aed;
}

.authority-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* FOOTER */
.hq-footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-dark);
    font-size: 0.8rem;
}

/* MODAL STYLES */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 580px;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.dossier-list {
    list-style: none;
}

.dossier-list li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.85rem;
}

.dossier-list li:last-child {
    border-bottom: none;
}

.dossier-list strong {
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
}

.dossier-list span {
    color: var(--text-main);
}