:root {
    --gold: #e6b800;
    --gold-glow: rgba(230, 184, 0, 0.4);
    --bg-dark: #050505;
    --bg-panel: rgba(20, 20, 20, 0.7);
    --text-main: #e0e0e0;
    --text-muted: #808080;
    --red-alert: #ff3333;
    --green-safe: #00cc66;
    
    --f-head: 'Teko', sans-serif;
    --f-body: 'Rajdhani', sans-serif;


      
  --ash-gray: #2b2b2f;          /* burnt stone */
  --faded-ivory: #e8e2cf;       /* ancient parchment */
  --curse-violet: #3b2f4a;      /* dark arcane hue */
  --fog-silver: #9a9a9f;        /* ghostly metal */
  --deep-moss: #1f2a1f;         /* damp decay green */
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--f-body);
    overflow-x: hidden;
    position: relative;
    padding-bottom: 0px; 
}
/* Enhanced UnderArc Gold Selection */
::selection {
    background-color: rgba(255, 215, 0, 0.99); /* Neon Gold with tiny transparency */
    color: #000000; /* Pitch Black text */
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.4); /* Subtle inner-glow effect */
}
::-moz-selection { 
    background-color: rgba(255, 215, 0, 0.99);
    color: #000000;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.4);
}
.scanlines {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.2));
    background-size: 100% 4px; z-index: 10; pointer-events: none; opacity: 0.6;
}
.vignette {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle, transparent 50%, #000 120%);
    z-index: 11; pointer-events: none; opacity: 0.8;
}
.noise {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    z-index: 9; pointer-events: none;
}

#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s;
}
.loader-box { text-align: center; width: 80%; max-width: 300px; }
.loader-glitch { 
    font-family: var(--f-head); font-size: 2rem; color: var(--gold); 
    letter-spacing: 2px; margin-bottom: 10px; animation: glitch 1s infinite;
}
.loader-bar { width: 100%; height: 2px; background: #333; margin-bottom: 5px; }
.bar-fill { width: 0%; height: 100%; background: var(--gold); animation: fillBar 2s ease-in-out forwards; }
.loader-sub { font-size: 0.7rem; color: #555; letter-spacing: 3px; }

@keyframes fillBar { 100% { width: 100%; } }

.ripple {
    position: fixed; border-radius: 50%; transform: scale(0);
    border: 1px solid var(--gold); opacity: 1; pointer-events: none; z-index: 999;
    animation: rippleAnim 0.6s linear;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

h1, h2, h3, h4 { font-family: var(--f-head); text-transform: uppercase; line-height: 0.9; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 80px 0; }
.section-dark { background: rgba(255,255,255,0.02); border-top: 1px solid #222; border-bottom: 1px solid #222; padding: 80px 0; }

.desktop-nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.main { font-family: var(--f-head); font-size: 1.5rem; letter-spacing: 1px; color: #fff; }
.sub { font-family: var(--f-head); font-size: 1rem; color: var(--gold); letter-spacing: 2px; }

.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--text-muted); font-family: var(--f-head); font-size: 1.3rem;
    transition: 0.3s; letter-spacing: 1px;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); text-shadow: 0 0 10px var(--gold-glow); }
.nav-btn { border: 1px solid var(--gold); padding: 5px 20px; color: var(--gold) !important; }
.nav-btn:hover { background: var(--gold); color: #000 !important; }

/* --- Hero css --- */
.hero-section {
    height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden;
}
.parallax-bg {
    position: absolute; top: -5%; left: -5%; width: 110%; height: 110%;
    background-image: radial-gradient(rgba(230, 184, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px; z-index: -1; transition: transform 0.1s ease-out;
}
.layer-2 { background-size: 30px 30px; opacity: 0.5; }

.hero-content { position: relative; z-index: 2; width: 100%; }
.hud-box { border-left: 2px solid var(--gold); padding-left: 15px; margin-bottom: 20px; display: flex; justify-content: space-between; max-width: 600px; }
.hud-label { font-family: var(--f-head); color: var(--gold); font-size: 1.1rem; letter-spacing: 1px; }

.hero-title { font-size: 6rem; color: #fff; margin-bottom: 20px; text-shadow: 0 0 20px rgba(0,0,0,0.5); }
.hero-desc { font-size: 1.2rem; color: var(--text-muted); max-width: 500px; margin-bottom: 40px; }

.hero-btns { display: flex; gap: 20px; }
.tac-btn {
    display: inline-block;     /* <-- THE FIX */
    box-sizing: border-box;    /* <-- THE FIX */
    text-decoration: none; 
    padding: 15px 40px; 
    font-family: var(--f-head); 
    font-size: 1.4rem;
    text-transform: uppercase; 
    letter-spacing: 1px; 
    position: relative; 
    transition: 0.3s;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}
.tac-btn.primary { background: var(--gold); color: #000; font-weight: bold; }
.tac-btn.primary:hover { background: #fff; box-shadow: 0 0 20px var(--gold-glow); }
.tac-btn.secondary { border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.tac-btn.secondary:hover { border-color: var(--gold); color: var(--gold); }

/* --- baba profile --- */
.section-head { text-align: center; display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 60px; }
.line { width: 40px; height: 2px; background: var(--gold); opacity: 0.5; }
.section-head h2 { font-size: 3rem; color: #fff; }

.profile-card {
    background: var(--bg-panel); border: 1px solid rgba(255,255,255,0.1);
    padding: 2px; position: relative; max-width: 800px; margin: 0 auto;
}
/* Scanner Line */
.profile-scanner {
    position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: rgba(230, 184, 0, 0.5); box-shadow: 0 0 10px var(--gold);
    animation: scan 4s infinite linear; opacity: 0.5; pointer-events: none;
}
@keyframes scan { 0% {top: 0;} 50% {top: 100%;} 100% {top: 0;} }

.profile-grid {
    display: flex; gap: 40px; padding: 40px; background: rgba(0,0,0,0.4);
    align-items: center;
}
.profile-pic-frame {
    width: 150px; height: 150px; border: 1px solid rgba(255,255,255,0.2);
    position: relative; display: flex; align-items: center; justify-content: center;
}
.profile-placeholder {
    font-family: var(--f-head); font-size: 3rem; color: #333; background: #111;
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}
.corner { position: absolute; width: 10px; height: 10px; border: 2px solid var(--gold); }
.t-l { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.t-r { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.b-l { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.b-r { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.profile-info { flex: 1; }
.rank { font-family: var(--f-head); color: var(--gold); font-size: 1.2rem; margin-bottom: 5px; letter-spacing: 1px; }
.name { font-size: 2.5rem; color: #fff; margin-bottom: 15px; }
.bio { color: var(--text-muted); margin-bottom: 20px; line-height: 1.4; }
.stats-row { display: flex; gap: 30px; border-top: 1px solid #333; padding-top: 15px; }
.stat { display: flex; flex-direction: column; }
.stat .val { font-family: var(--f-head); font-size: 1.5rem; color: #fff; }
.stat .lbl { font-size: 0.7rem; color: var(--gold); letter-spacing: 1px; }

/* --- GRID CARDS --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.tac-card {
    background: var(--bg-panel); padding: 30px; border: 1px solid #222;
    transition: 0.3s; position: relative; overflow: hidden;
}
.tac-card:hover { border-color: var(--gold); transform: translateY(-5px); }
.card-num { font-family: var(--f-head); font-size: 4rem; position: absolute; top: -10px; right: 10px; color: rgba(255,255,255,0.03); }
.tac-card h3 { font-size: 1.8rem; margin-bottom: 10px; color: #fff; }
.bar-contain { width: 100%; height: 3px; background: #333; margin-top: 20px; }
.bar-val { height: 100%; background: var(--gold); }

/* --- OPERATIONS (Projects) --- */

.carousel-wrapper {
    display: flex; 
    gap: 20px; 
    align-items: flex-start;
    max-width: 900px; 
    margin: 0 auto; 
    height: 350px; 
}

.carousel-line { 
    width: 2px; 
    height: 100%; 
    background: linear-gradient(to bottom, transparent, var(--gold), transparent); 
    opacity: 0.5; 
}

.carousel-view {
    flex: 1; 
    height: 100%; 
    overflow: hidden; 
    position: relative;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* The Track: Moves up and down */
.carousel-track { 
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
}

.op-row {
    display: flex; 
    align-items: center; 
    background: rgba(255,255,255,0.03); 
    padding: 25px;
    text-decoration: none; 
    border-left: 3px solid transparent; 
    transition: 0.2s;
    margin-bottom: 15px; 
    height: 100px; 
}

.op-row:hover { 
    background: rgba(255,255,255,0.06); 
    border-left-color: var(--gold); 
}

.op-status { width: 8px; height: 8px; border-radius: 50%; margin-right: 20px; box-shadow: 0 0 8px currentColor; }
.online { background: var(--green-safe); color: var(--green-safe); }
.offline { background: var(--red-alert); color: var(--red-alert); }
#op-card-disabled{
    cursor: pointer;
}
.op-info { flex: 1; }
.op-type { font-size: 0.75rem; color: var(--text-muted); font-family: var(--f-head); letter-spacing: 1px; }
.op-row h4 { font-size: 1.5rem; color: #fff; font-weight: 500; margin-top: 2px; }
.op-action { font-family: var(--f-head); color: var(--gold); font-size: 1.2rem; }
.locked { opacity: 0.5; filter: grayscale(1); cursor: not-allowed; }

.carousel-controls {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: space-between;
    height: 100%; 
    width: 40px; 
    padding: 20px 0;
}

.control-btn {
    background: transparent; 
    border: 1px solid #333; 
    color: var(--gold);
    width: 30px; 
    height: 30px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: 0.3s;
    font-size: 0.8rem;
}

.control-btn:hover { 
    border-color: var(--gold); 
    background: rgba(230, 184, 0, 0.1); 
}

/* Visual Scroll Bar Indicator */
.scroll-track-ui { 
    width: 2px; 
    height: 200px; 
    background: #222; 
    position: relative; 
    margin: 10px 0; 
}

.scroll-thumb-ui {
    width: 6px; 
    height: 30px; 
    background: var(--gold); 
    position: absolute;
    left: -2px; 
    top: 0; 
    transition: top 0.4s;
}

@media (max-width: 768px) {
    .carousel-wrapper { height: 400px; }
}


/* --- FORM --- */
#comms-form { max-width: 700px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
input, select, textarea {
    width: 100%; background: rgba(0,0,0,0.5); border: 1px solid #333; color: #fff;
    padding: 15px; font-family: var(--f-body); font-size: 1rem; margin-bottom: 20px;
} 
#emAil{
  max-width: 700px;
  margin: 0 auto;
  grid-column: 1 / -1;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
.full { width: 100%; border: none; cursor: pointer; }

/* --- MOBILE  --- */
.mobile-dock {
    display: none; 
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 400px; height: 65px;
    background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000; justify-content: space-around; align-items: center; padding: 0 10px;
}
.dock-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-decoration: none; color: #666; transition: 0.3s; width: 60px;
}
.dock-item .icon { font-size: 1.4rem; margin-bottom: 2px; }
.dock-item .label { font-size: 0.6rem; font-family: var(--f-head); letter-spacing: 1px; }

.dock-item.active, .dock-item:hover { color: var(--gold); transform: translateY(-5px); }
.dock-item.active .icon { text-shadow: 0 0 10px var(--gold-glow); }
/* Notification */


@media (max-width: 768px) {
    .desktop-nav { display: none; } 
    .mobile-dock { display: flex; } 
    
    .hero-title { font-size: 3.5rem; }
    
    /* Updated Mobile Button Fix */
    .hero-btns { flex-direction: column; width: 100%; gap: 15px; }
    .tac-btn { width: 100%; text-align: center; display: block; }
    
    .profile-grid { flex-direction: column; text-align: center; }
    .form-grid { grid-template-columns: 1fr; }
    
    body { padding-bottom: 100px; } 
}
/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- FIELD UPGRADE UI VARIABLES --- */
:root {
    --tac-gold: #FFD700;       
    --tac-dark: #0f1012;       
    --tac-font: 'Teko', sans-serif;
}

/* --- CONTAINER --- */
#mw-notify-container {
    position: fixed;
    bottom: 50px;
    right: -500px; /* Hidden */
    width: 380px;
    z-index: 10000;
    font-family: var(--tac-font);
    transition: right 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#mw-notify-container.active {
    right: 40px;
}

/* --- THE SHELL (SHAPE) --- */
.notify-shell {
    background: var(--tac-dark);
    position: relative;
    overflow: hidden;
    color: #fff;
    /* Chiseled Shape */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 92% 100%, 0 100%, 0 15%);
    border-right: 2px solid rgba(255,255,255,0.1);
    box-shadow: -10px 10px 30px rgba(0,0,0,0.8);
}

/* Radar Background */
.radar-bg {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.03) 2px, transparent 2.5px);
    background-size: 20px 20px;
    transform: rotate(15deg);
    opacity: 0.4;
    pointer-events: none;
}
#mw-notify-container.active .radar-bg {
    animation: radarMove 10s linear infinite;
}
@keyframes radarMove { 0% { transform: translateY(0) rotate(15deg); } 100% { transform: translateY(-50px) rotate(15deg); } }

/* Gold Strip */
.notify-strip {
    position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
    background: var(--tac-gold);
    z-index: 2;
    box-shadow: 2px 0 10px rgba(255, 215, 0, 0.4);
}

/* --- CONTENT --- */
.notify-content {
    padding: 15px 20px 15px 25px;
    position: relative; z-index: 2;
    background: linear-gradient(90deg, rgba(31, 33, 38, 0.9), rgba(15, 16, 18, 0.95));
}

.notify-meta {
    display: flex; justify-content: space-between;
    font-size: 0.9rem; color: #666; letter-spacing: 1px;
    margin-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.meta-tag { color: var(--tac-gold); }

.notify-main { display: flex; align-items: center; gap: 15px; margin: 10px 0; }

.icon-box {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
}
.icon-box svg { width: 24px; height: 24px; color: var(--tac-gold); }

.text-group { display: flex; flex-direction: column; }
.title-text { font-size: 1rem; color: #aaa; letter-spacing: 1px; line-height: 1; }
.msg-text { font-size: 1rem; color: #0ac723; line-height: 0.9; margin: 2px 0 0 0; text-transform: uppercase; white-space: nowrap; }

/* Footer */
.notify-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }

.action-btn {
    background: rgba(255, 215, 0, 0.1); color: var(--tac-gold); text-decoration: none;
    padding: 4px 12px; border: 1px solid var(--tac-gold); font-size: 1.1rem;
    transition: 0.2s; text-transform: uppercase; letter-spacing: 1px;
}
.action-btn:hover { background: var(--tac-gold); color: #000; }

.timer-ticks span {
    display: inline-block; width: 3px; height: 6px; background: #444; margin-left: 2px; transform: skewX(-20deg);
}
.timer-ticks span:nth-child(1), .timer-ticks span:nth-child(2) { background: var(--tac-gold); }

/* Progress Bar */
.notify-progress-track {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: #000; z-index: 3;
}
.progress-fill {
    height: 100%; width: 100%; background: var(--tac-gold); transform-origin: left;
}
.animate-bar { animation: drainBar linear forwards; }
@keyframes drainBar { to { transform: scaleX(0); } }

/* Mobile */
@media (max-width: 768px) {
    #mw-notify-container.active { right: 50%; transform: translateX(50%); width: 90%; bottom: 90px; }
}
/* --- DATABASE ARCHIVE GRID (PROJECTS PAGE) --- */
/* --- ARCHIVE GATEWAY (PROJECT LOGS TEASER) --- */
.archive-gateway {
    background: linear-gradient(135deg, rgba(15,15,15,0.9) 0%, rgba(5,5,5,0.95) 100%);
    border: 1px solid #333;
    position: relative;
    padding: 50px;
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: border-color 0.4s;
}

.archive-gateway:hover { border-color: var(--gold); }

.ag-content { display: flex; gap: 60px; align-items: center; }
.ag-left { flex: 3; }
.ag-right { flex: 2; display: flex; flex-direction: column; align-items: center; gap: 40px; }

/* Gateway Typography */
.ag-status { font-family: var(--f-head); color: var(--green-safe); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.ag-title { font-size: 3.5rem; color: #fff; margin-bottom: 15px; line-height: 1; }
.ag-desc { color: #aaa; font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; }

.ag-metrics { display: flex; gap: 40px; border-top: 1px dashed #333; padding-top: 20px; }
.metric { display: flex; flex-direction: column; }
.m-val { font-family: var(--f-head); font-size: 2.8rem; color: var(--gold); line-height: 1; }
.m-lbl { font-family: var(--f-head); font-size: 1rem; color: #666; letter-spacing: 2px; margin-top: 5px;}

/* --- ANIMATED FILE STACK VISUAL --- */
.file-stack { position: relative; width: 100%; max-width: 250px; height: 160px; }

.file { 
    position: absolute; width: 100%; height: 110px; 
    background: #111; border: 1px solid #444; border-radius: 4px; 
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s, opacity 0.3s; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    overflow: hidden;
}

/* Layer positioning */
.file.f3 { top: 0; left: 0; transform: scale(0.9) translateY(-20px); z-index: 1; opacity: 0.3; }
.file.f2 { top: 15px; left: 0; transform: scale(0.95) translateY(-10px); z-index: 2; opacity: 0.6; }
.file.f1 { 
    top: 30px; left: 0; z-index: 3; 
    background: rgba(20,20,20,0.95); border-color: var(--gold); color: var(--gold); 
    font-family: var(--f-head); font-size: 1.5rem; letter-spacing: 2px;
}

.f-icon { font-size: 2.5rem; margin-bottom: 5px; line-height: 1;}
.f-bg-text { font-family: var(--f-head); font-size: 2rem; color: #333; letter-spacing: 3px;}

/* The Hover Fan-Out Animation */
.archive-gateway:hover .file.f3 { transform: scale(0.9) translateY(-50px) rotate(-8deg); border-color: #666; opacity: 0.8; }
.archive-gateway:hover .file.f2 { transform: scale(0.95) translateY(-20px) rotate(6deg); border-color: #888; opacity: 1; }
.archive-gateway:hover .file.f1 { transform: translateY(15px); box-shadow: 0 15px 30px rgba(230, 184, 0, 0.2); }

/* Mobile Adjustments */
@media(max-width: 900px) {
    .archive-gateway { padding: 30px 20px; }
    .ag-content { flex-direction: column; gap: 40px; }
    .ag-title { font-size: 2.8rem; }
    .ag-metrics { flex-wrap: wrap; gap: 20px; }
    .ag-right { width: 100%; border-top: 1px dashed #333; padding-top: 30px; }
}









.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.op-card {
    border: 1px solid #333;
    background: var(--bg-panel);
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.op-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
    transform: translateY(-2px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

/* Variable Status Indicators */
.status-dot.online { background: var(--green-safe); box-shadow: 0 0 8px var(--green-safe); }
.status-dot.indev { background: var(--gold); box-shadow: 0 0 8px var(--gold); } 
.status-dot.offline { background: var(--red-alert); box-shadow: 0 0 8px var(--red-alert); }

.op-card-header {
    font-family: var(--f-head);
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    letter-spacing: 1px;
}

.op-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #fff;
}

.op-card p {
    font-size: 0.9rem;
    color: #aaa;
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.5;
}

.op-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-stack {
    font-family: var(--f-head);
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 1px;
}

.access-link {
    color: #fff;
    text-decoration: none;
    font-family: var(--f-head);
    font-size: 1.2rem;
    transition: color 0.3s;
    letter-spacing: 1px;
}

.access-link:hover { color: var(--gold); }
.access-link.status-indev { color: var(--gold); pointer-events: none; }

/* Filter Button Styles */
.db-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #333;
    color: var(--text-muted);
    padding: 5px 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--f-head);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: inset 0 0 10px var(--gold-glow);
}

/* --- TACTICAL PRICING GRID --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    width: 100%;
    margin-top: 40px;
}

.price-card {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #333;
    padding: 40px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 1;
}

/* Tactical glowing edge line */
.card-edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #333;
    transition: 0.4s;
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: #555;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    z-index: 2;
}

.price-card:hover .card-edge {
    background: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Featured (8000 INR) Card Styling */
.price-card.featured {
    border-color: rgba(230, 184, 0, 0.3);
    background: linear-gradient(180deg, rgba(20,20,20,0.9) 0%, rgba(30, 25, 0, 0.9) 100%);
}
.price-card.featured .card-edge { background: var(--gold); }
.price-card.featured:hover { border-color: var(--gold); box-shadow: 0 15px 40px var(--gold-glow); }

/* Dynamic / Custom Card Styling */
.price-card.special-card .card-edge { background: var(--green-safe); }
.price-card.special-card:hover { border-color: var(--green-safe); box-shadow: 0 15px 40px rgba(0, 204, 102, 0.2); }

.featured-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #000;
    font-family: var(--f-head);
    padding: 2px 15px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: bold;
}

/* Typography inside cards */
.p-tier {
    font-family: var(--f-head);
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.p-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
}

.p-desc {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 0;
    min-height: 65px; /* Keeps cards aligned */
}

.p-cost {
    font-family: var(--f-head);
    font-size: 3.5rem;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1;
    text-shadow: 0 0 15px rgba(255,255,255,0.1);
}

.p-cost .currency {
    font-size: 1.5rem;
    vertical-align: top;
    color: var(--text-muted);
    margin-right: 5px;
}

/* Feature List */
.p-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1; /* Pushes button to bottom */
}

.p-features li {
    font-family: var(--f-body);
    font-size: 0.95rem;
    color: #ddd;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: flex-start;
}

.p-features li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.p-features li span {
    color: #fff;
    font-family: var(--f-head);
    margin-right: 10px;
    font-size: 1.2rem;
    line-height: 0.8;
}

/* Button override for pricing cards */
.tac-btn.full-width {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 1.2rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .price-card { padding: 30px 20px; }
}

/* --- TERMINAL GATEWAY (HQ TO PRICING) --- */
.terminal-gateway {
    background: rgba(10, 12, 15, 0.8);
    border: 1px solid #333;
    padding: 50px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.terminal-radar {
    position: absolute;
    top: -50%; right: -20%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(230, 184, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseRadar 4s infinite linear;
    pointer-events: none;
    z-index: 0;
}
@keyframes pulseRadar { 0% { transform: scale(0.8); opacity: 0; } 50% { opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

.terminal-content { position: relative; z-index: 1; width: 100%; }

.t-status {
    font-family: var(--f-head); color: var(--green-safe);
    font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 20px;
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(0, 204, 102, 0.1); padding: 5px 20px; border: 1px solid var(--green-safe);
}
.pulse-dot { width: 10px; height: 10px; background: var(--green-safe); border-radius: 50%; animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.t-heading { font-size: 3rem; color: #fff; margin-bottom: 15px; }
.t-desc { color: #aaa; font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px auto; line-height: 1.6; }

.t-stats { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; border-top: 1px solid #333; border-bottom: 1px solid #333; padding: 20px 0; }
.t-stat-box { display: flex; flex-direction: column; align-items: center; }
.s-val { font-family: var(--f-head); font-size: 2.5rem; color: var(--gold); line-height: 1; }
.s-lbl { font-family: var(--f-head); font-size: 1rem; color: var(--text-muted); letter-spacing: 2px; }


/* --- DISCLAIMER BOX --- */
.disclaimer-box {
    background: rgba(255, 51, 51, 0.05);
    border: 1px solid var(--red-alert);
    border-left: 4px solid var(--red-alert);
    padding: 15px 20px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.warn-icon { font-family: var(--f-head); font-size: 2.5rem; color: var(--red-alert); line-height: 1; }
.warn-text { font-family: var(--f-body); font-size: 1rem; color: #ccc; line-height: 1.5; }


/* --- AAA BLACK OPS ACCORDION (UNBREAKABLE VERTICAL STACK) --- */

.mw-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* The Base Row */
.mw-row {
    background: rgba(12, 12, 14, 0.95);
    border: 1px solid #222;
    border-left: 4px solid #444;
    transition: all 0.3s ease;
    position: relative;
    /* Subtle tactical screen grid */
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 20px 20px;
}

.mw-row:hover { border-color: #555; background-color: rgba(20, 20, 22, 0.98); }

/* Active (Open) States */
.mw-row.active { border-color: #555; border-left-color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.mw-row.mw-gold.active { border-left-color: var(--gold); border-color: rgba(230, 184, 0, 0.4); box-shadow: 0 0 20px rgba(230, 184, 0, 0.1); }
.mw-row.mw-green.active { border-left-color: var(--green-safe); border-color: rgba(0, 204, 102, 0.4); box-shadow: 0 0 20px rgba(0, 204, 102, 0.1); }

/* The Always-Visible Header Bar */
.mw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 2;
}

.mw-left { display: flex; align-items: center; gap: 20px; }
.mw-sys { font-family: var(--f-head); font-size: 1.4rem; color: #555; letter-spacing: 2px; }
.mw-row.active .mw-sys { color: #fff; }
.mw-gold.active .mw-sys { color: var(--gold); }
.mw-green.active .mw-sys { color: var(--green-safe); }

.mw-title { font-family: var(--f-head); font-size: 2.2rem; color: #888; margin: 0; line-height: 1; letter-spacing: 1px; transition: color 0.3s; }
.mw-row:hover .mw-title { color: #ccc; }
.mw-row.active .mw-title { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.3); }

.mw-right { display: flex; align-items: center; gap: 20px; }
.mw-price { font-family: var(--f-head); font-size: 2.2rem; color: #ccc; line-height: 1; }
.mw-price span { font-size: 1rem; color: #666; margin-left: 5px; letter-spacing: 1px; }

/* The Crosshair Toggle Icon */
.mw-crosshair { width: 20px; height: 20px; position: relative; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.mw-crosshair::before, .mw-crosshair::after { content: ''; position: absolute; background: #666; transition: background 0.3s; }
.mw-crosshair::before { top: 9px; left: 0; width: 20px; height: 2px; }
.mw-crosshair::after { top: 0; left: 9px; width: 2px; height: 20px; }
.mw-row.active .mw-crosshair { transform: rotate(135deg); }
.mw-row.active .mw-crosshair::before, .mw-row.active .mw-crosshair::after { background: #fff; }
.mw-gold.active .mw-crosshair::before, .mw-gold.active .mw-crosshair::after { background: var(--gold); }
.mw-green.active .mw-crosshair::before, .mw-green.active .mw-crosshair::after { background: var(--green-safe); }

/* --- THE DROP-DOWN ANIMATION (GRID METHOD) --- */
.mw-drawer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.mw-row.active .mw-drawer { grid-template-rows: 1fr; }

.mw-drawer-inner { overflow: hidden; }

/* The Decrypted Content Area */
.mw-content {
    padding: 0 25px 30px 25px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-top: 1px dashed #333;
    margin: 0 25px;
    padding-top: 25px;
    position: relative;
}
.mw-row.active .mw-content { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }

/* Target Brackets */
.mw-bracket { position: absolute; width: 15px; height: 15px; border: 2px solid #444; }
.mw-bracket.tl { top: 15px; left: 0; border-right: none; border-bottom: none; }
.mw-bracket.br { bottom: 0; right: 0; border-left: none; border-top: none; }
.mw-gold .mw-bracket { border-color: rgba(230, 184, 0, 0.5); }
.mw-green .mw-bracket { border-color: rgba(0, 204, 102, 0.5); }

/* Internal Layout */
.mw-split { display: flex; gap: 40px; justify-content: space-between; }
.mw-left-col { flex: 2; }
.mw-right-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }

.mw-class { font-family: var(--f-head); font-size: 1.1rem; color: #888; letter-spacing: 3px; margin-bottom: 10px; display: inline-block; }
.mw-desc { color: #aaa; font-size: 1.05rem; line-height: 1.5; margin-bottom: 25px; border-left: 2px solid #333; padding-left: 15px;}

.mw-loadout-title { font-family: var(--f-head); font-size: 1.2rem; color: #666; margin-bottom: 15px; letter-spacing: 2px;}
.mw-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.mw-features .l-item { font-family: var(--f-body); font-size: 1rem; color: #ddd; display: flex; align-items: flex-start; }
.mw-features .l-item span { font-family: monospace; color: #666; font-weight: bold; margin-right: 10px; flex-shrink: 0; }

.mw-gold .mw-class, .mw-gold .mw-features .l-item span { color: var(--gold); }
.mw-green .mw-class, .mw-green .mw-features .l-item span { color: var(--green-safe); }

.mw-timeline { font-family: var(--f-head); font-size: 1.2rem; color: #888; letter-spacing: 2px; margin-bottom: 20px; text-align: right; }


/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .mw-header { padding: 15px 20px; flex-wrap: wrap; }
    .mw-sys { font-size: 1.2rem; }
    .mw-title { font-size: 1.6rem; }
    .mw-price { font-size: 1.6rem; }
    
    .mw-right { width: 100%; justify-content: space-between; border-top: 1px solid #222; margin-top: 10px; padding-top: 10px; }
    
    .mw-content { margin: 0 15px; padding: 20px 0; }
    .mw-split { flex-direction: column; gap: 25px; }
    
    .mw-features { grid-template-columns: 1fr; }
    .mw-timeline { text-align: left; }
    
    .btn-group { flex-direction: column; width: 100%; gap: 12px; }
    .btn-group .tac-btn { width: 100%; }
}

/* --- TACTICAL CHISELED EDGES FOR COMMAND TERMINAL --- */
.cmd-terminal {
    display: flex;
    background: var(--bg-panel);
    border: 1px solid #333;
    height: 550px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    /* NEW: Chiseled edge applied to the main container */
    clip-path: polygon(25px 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%, 0 25px);
}

/* --- TACTICAL CHISELED EDGES FOR COMMAND TERMINAL --- */
.cmd-terminal {
    display: flex;
    background: rgba(12, 12, 14, 0.95);
    border: 1px solid #333;
    height: 600px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    overflow: hidden;
    clip-path: polygon(25px 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%, 0 25px);
    /* AAA Background Texture */
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* --- LEFT SIDE: SIDEBAR NAVBAR --- */
.cmd-sidebar {
    width: 340px;
    background: rgba(5, 5, 5, 0.9);
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
}

.cmd-sidebar-header {
    font-family: var(--f-head); font-size: 1rem; color: #666;
    letter-spacing: 2px; padding: 20px; border-bottom: 1px solid #222;
}

.tier-tab {
    display: flex; align-items: center; padding: 18px 20px;
    background: transparent; border: none;
    border-bottom: 1px solid #1a1a1a; border-left: 3px solid transparent;
    cursor: pointer; text-align: left; transition: 0.2s; position: relative;
}

.tier-tab:hover { background: rgba(255,255,255,0.03); }

/* Active Tab States */
.tier-tab.active { background: rgba(255,255,255,0.05); border-left-color: #fff; }
.tier-tab.featured-tab.active { background: rgba(230, 184, 0, 0.1); border-left-color: var(--gold); }
.tier-tab.custom-tab.active { background: rgba(0, 204, 102, 0.1); border-left-color: var(--green-safe); }

.tab-num { font-family: var(--f-head); font-size: 1.5rem; color: #555; margin-right: 15px; width: 30px; }
.tier-tab.active .tab-num { color: #fff; }

.tab-info { display: flex; flex-direction: column; flex-grow: 1; }
.tab-title { font-family: var(--f-head); font-size: 1.4rem; color: #888; letter-spacing: 1px; }
.tier-tab.active .tab-title { color: #fff; }
.tab-price { font-family: var(--f-body); font-size: 1rem; color: var(--text-muted); }

.tab-badge {
    position: absolute; top: 10px; right: 10px;
    font-family: var(--f-head); font-size: 0.7rem; color: #000;
    background: var(--gold); padding: 2px 8px; letter-spacing: 1px;
}

/* --- RIGHT SIDE: DISPLAY SCREEN --- */
.cmd-screen {
    flex-grow: 1;
    position: relative; 
    background: linear-gradient(135deg, rgba(20,20,20,0.8) 0%, rgba(10,10,10,0.9) 100%);
}

.tier-data {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    padding: 40px; display: flex; flex-direction: column;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
}
.tier-data.active { opacity: 1; visibility: visible; z-index: 5; }

.d-class { font-family: var(--f-head); font-size: 1.1rem; color: var(--text-muted); letter-spacing: 3px; margin-bottom: 5px; display: block;}
.d-title { font-size: 3.5rem; color: #fff; line-height: 1; margin-bottom: 15px; }
.d-desc { color: #aaa; font-size: 1.1rem; line-height: 1.5; max-width: 90%; margin-bottom: 40px; border-left: 2px solid #333; padding-left: 15px;}

.data-split { display: flex; gap: 40px; justify-content: space-between; flex-grow: 1; }

.d-loadout { flex: 2; }
.d-loadout h4 { font-family: var(--f-head); font-size: 1.2rem; color: #777; margin-bottom: 15px; letter-spacing: 2px; }
.d-loadout ul { list-style: none; }
.d-loadout li { font-family: var(--f-body); font-size: 1rem; color: #ddd; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 12px; }
.d-loadout li span { font-family: monospace; font-weight: bold; margin-right: 10px; color: #666; }

.d-action { flex: 1; display: flex; flex-direction: column; align-items: flex-end; text-align: right; border-left: 1px dashed #333; padding-left: 40px; justify-content: flex-end;}
.d-cost { font-family: var(--f-head); font-size: 3.5rem; color: #fff; line-height: 0.9; margin-bottom: 5px; }
.d-curr { font-size: 1.2rem; color: var(--text-muted); letter-spacing: 2px; }
.d-timeline { font-family: var(--f-head); font-size: 1.1rem; color: #888; letter-spacing: 2px; margin-bottom: 20px;}

.mt-20 { margin-top: 20px; }

/* --- BUTTON FLEX & SVG ICON STYLES (CRUSH PREVENTION) --- */
.btn-group { display: flex; gap: 15px; width: 100%; }

.btn-flex {
    flex: 1; /* Forces both buttons to be equal width */
    display: flex !important; /* Forces block alignment */
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 10px;
    font-size: 1.1rem;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-icon-wrapper {
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.1); padding: 6px;
    width: 28px; height: 28px;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    transition: background 0.3s;
    flex-shrink: 0 !important; /* MAGICAL FIX: Prevents the SVG from squishing on mobile */
}

.btn-icon-wrapper svg { width: 100%; height: 100%; }

.tac-btn.primary:hover .btn-icon-wrapper { background: rgba(0,0,0,0.2); }
.tac-btn.secondary:hover .btn-icon-wrapper { background: rgba(230, 184, 0, 0.2); }
.custom-tab .tac-btn.secondary:hover .btn-icon-wrapper { background: rgba(0, 0, 0, 0.2); }

/* --- MOBILE RESPONSIVENESS FIX (VERTICAL STACK) --- */
/* --- MOBILE RESPONSIVENESS (TACTICAL CONTROL PAD NAV) --- */
@media (max-width: 900px) {
    .cmd-terminal {
        flex-direction: column;
        height: auto !important; 
        min-height: auto;
    }

    /* Transform Sidebar into a 2-Column Control Pad */
    .cmd-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 columns side-by-side */
        gap: 10px;
        padding: 15px;
        border-right: none;
        border-bottom: 2px solid #333;
        background: rgba(5, 5, 5, 0.95);
        overflow: visible;
    }

    .cmd-sidebar-header { display: none; } /* Hide to save space */

    /* Style the tabs to look like square buttons */
    .tier-tab {
        width: 100%;
        flex-direction: column; /* Stack number, title, and price vertically */
        justify-content: center;
        align-items: center;
        padding: 12px 10px;
        border: 1px solid #222;
        border-radius: 4px;
        background: rgba(20, 20, 20, 0.6);
        text-align: center;
    }
    
    /* Make the 5th Custom tab span the full width at the bottom */
    .tier-tab.custom-tab {
        grid-column: 1 / -1;
    }

    /* Re-align text inside the new square tabs */
    .tab-num { margin: 0 0 5px 0; font-size: 1.2rem; width: auto; }
    .tab-info { align-items: center; width: 100%; }
    .tab-title { font-size: 1rem; margin-bottom: 2px; text-align: center; white-space: normal; line-height: 1.2;}
    .tab-price { font-size: 1rem; }
    
    .tab-badge { position: relative; top: auto; right: auto; margin-top: 5px; display: inline-block; }

    /* Active state highlights the "button" */
    .tier-tab.active { border-color: #fff; background: rgba(255,255,255,0.05); }
    .tier-tab.featured-tab.active { border-color: var(--gold); background: rgba(230, 184, 0, 0.1); }
    .tier-tab.custom-tab.active { border-color: var(--green-safe); background: rgba(0, 204, 102, 0.1); }

    /* Fix the Display Screen so content pushes the height naturally */
    .cmd-screen { position: relative; height: auto !important; min-height: auto;}
    
    .tier-data {
        position: relative; 
        padding: 30px 20px;
        display: none; 
        opacity: 1; 
        visibility: visible;
    }
    .tier-data.active { display: block; }
    
    .d-title { font-size: 2.2rem; }
    .data-split { flex-direction: column; gap: 20px; }
    
    /* Fix alignment for dual comms buttons */
    .d-action { 
        border-left: none; 
        border-top: 1px dashed #333; 
        padding-left: 0; 
        padding-top: 25px; 
        align-items: stretch; 
        text-align: center; 
    }
    
    .btn-group { flex-direction: column; gap: 15px; }
    .btn-group .tac-btn { width: 100%; }
}




/* --- SVG CRUSH PREVENTION (Global) --- */
.btn-icon-wrapper {
    flex-shrink: 0 !important;
}

/* --- MOBILE RESPONSIVENESS (HORIZONTAL SCROLL TABS) --- */
@media (max-width: 900px) {
    .cmd-terminal {
        flex-direction: column;
        height: auto !important; 
        min-height: auto;
    }

    /* Transform Sidebar into a horizontal swipeable bar */
    .cmd-sidebar {
        width: 100%;
        flex-direction: row;
        border-right: none;
        border-bottom: 2px solid #333;
        overflow-x: auto;
        overflow-y: hidden;
        /* Smooth scrolling */
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        /* Hide scrollbar for a cleaner look */
        scrollbar-width: none; 
        -ms-overflow-style: none; 
    }
    
    .cmd-sidebar::-webkit-scrollbar {
        display: none;
    }

    .cmd-sidebar-header { display: none; } /* Hide 'Select Deployment' to save space */

    /* Ensure tabs don't shrink and sit side-by-side */
    .tier-tab {
        flex: 0 0 auto; /* Prevent shrinking */
        width: 200px; /* Fixed width for each tab */
        border-bottom: 3px solid transparent;
        border-left: none;
        padding: 15px;
    }
    
    /* Re-map active states for horizontal layout */
    .tier-tab.active { border-left-color: transparent; border-bottom-color: #fff; }
    .tier-tab.featured-tab.active { border-left-color: transparent; border-bottom-color: var(--gold); }
    .tier-tab.custom-tab.active { border-left-color: transparent; border-bottom-color: var(--green-safe); }

    /* Adjust Display Screen so content pushes the height naturally */
    .cmd-screen { position: relative; height: auto !important; min-height: auto;}
    
    .tier-data {
        position: relative; /* Must be relative to push container height */
        padding: 30px 20px;
        display: none; /* Hide inactive completely */
        opacity: 1; 
        visibility: visible;
        transform: none; /* Remove horizontal slide animation on mobile */
    }
    .tier-data.active { display: flex; }
    
    .d-title { font-size: 2.2rem; }
    .data-split { flex-direction: column; gap: 20px; }
    
    .d-action { 
        border-left: none; border-top: 1px dashed #333; 
        padding-left: 0; padding-top: 25px; 
        align-items: stretch; text-align: center; 
    }
    
    /* Stack dual buttons cleanly */
    .btn-group { flex-direction: column; gap: 15px; width: 100%; }
    .btn-group .tac-btn { width: 100%; }
}



/* ==========================================================================
   AAA VANGUARD PROTOCOL TERMINAL (ACTIVISION STYLE MASTERPIECE)
   ========================================================================== */


.vg-terminal {
    display: flex;
    background: #08080a; /* Deepest tactical black */
    border: 1px solid #222;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9), inset 0 0 100px rgba(0,0,0,0.8);
    min-height: 600px; /* <--- THE FIX: Ensures a minimum size, but allows growth */
    height: auto;      /* <--- THE FIX: Breaks the height cage */
    position: relative;
    /* Outer Chiseled Frame */
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
}

/* Background Texture for Terminal */
.vg-terminal::before {
    content: ''; position: absolute; 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: 20px 20px;
    pointer-events: none; z-index: 0;
}
/* --- THE NAVIGATION (LEFT) --- */
.vg-nav {
    width: 340px;
    background: rgba(10, 10, 12, 0.95);
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.vg-nav-header {
    padding: 25px 20px;
    font-family: var(--f-head); font-size: 0.95rem; color: #555;
    letter-spacing: 4px; text-transform: uppercase;
    border-bottom: 1px dashed #333;
}

/* Tactical Selection Tabs */
.vg-tab {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border: none; background: transparent;
    border-bottom: 1px solid #111; border-left: 4px solid transparent;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative; overflow: hidden;
}

/* Hover Glitch Effect */
.vg-tab::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transition: left 0.4s ease; pointer-events: none;
}
.vg-tab:hover::after { left: 200%; }

.vg-tab:hover { background: rgba(255,255,255,0.02); }

/* Active States */
.vg-tab.active { background: rgba(255,255,255,0.05); border-left-color: #fff; }
.vg-tab.vg-gold.active { background: rgba(230, 184, 0, 0.1); border-left-color: var(--gold); }
.vg-tab.vg-custom.active { background: rgba(0, 204, 102, 0.1); border-left-color: var(--green-safe); }

.vg-tab-left { display: flex; align-items: center; gap: 15px; }
.vg-tab-num { font-family: var(--f-head); font-size: 1.6rem; color: #444; width: 25px; transition: color 0.3s;}
.vg-tab.active .vg-tab-num { color: #fff; }
.vg-tab.vg-gold.active .vg-tab-num { color: var(--gold); }
.vg-tab.vg-custom.active .vg-tab-num { color: var(--green-safe); }

.vg-tab-title { font-family: var(--f-head); font-size: 1.4rem; color: #888; letter-spacing: 2px; text-align: left; line-height: 1.1; transition: color 0.3s;}
.vg-tab.active .vg-tab-title { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.vg-tab.vg-gold.active .vg-tab-title { color: var(--gold); text-shadow: 0 0 10px rgba(230, 184, 0, 0.3); }
.vg-tab.vg-custom.active .vg-tab-title { color: var(--green-safe); text-shadow: 0 0 10px rgba(0, 204, 102, 0.3); }

.vg-tab-price { font-family: var(--f-head); font-size: 1.4rem; color: #555; transition: color 0.3s;}
.vg-tab.active .vg-tab-price { color: #ccc; }

.vg-badge { position: absolute; top: 5px; right: 5px; background: var(--gold); color: #000; font-family: var(--f-head); font-size: 0.7rem; padding: 2px 6px; letter-spacing: 1px; font-weight: bold;}


.vg-badge-premium {
    position: absolute;
    top: 8px;
    right: 8px;

    padding: 4px 10px;

    font-family: var(--f-head);
    font-size: 0.65rem;
    letter-spacing: 2px;
    font-weight: 600;

    color: #e6d3a3;

    background: linear-gradient(
        145deg,
        #3a2f1b 0%,
        #1c150d 50%,
        #000000 100%
    );

    border: 1px solid rgba(212, 175, 55, 0.35);

    box-shadow:
        0 0 6px rgba(212, 175, 55, 0.15),
        inset 0 0 8px rgba(0, 0, 0, 0.8),
        inset 0 0 3px rgba(212, 175, 55, 0.2);

    text-shadow:
        0 0 2px rgba(255, 220, 150, 0.4),
        0 0 6px rgba(212, 175, 55, 0.2);

    backdrop-filter: blur(1px);

    border-radius: 2px;

    transition: all 0.25s ease;
}

.vg-badge-premium::before {
    content: "";
    position: absolute;
    inset: 0;

    border: 1px solid rgba(212, 175, 55, 0.15);
    pointer-events: none;

    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.1);
}

/* subtle “alive” aura */
.vg-badge-premium:hover {
    box-shadow:
        0 0 12px rgba(212, 175, 55, 0.35),
        inset 0 0 10px rgba(0, 0, 0, 0.9),
        inset 0 0 6px rgba(212, 175, 55, 0.3);

    color: #fff2c2;
}
/* --- THE DISPLAY SCREEN (RIGHT) --- */
/* --- THE DISPLAY SCREEN (RIGHT) --- */
.vg-screen {
    flex-grow: 1;
    position: relative;
    background: radial-gradient(circle at center, rgba(30,30,35,0.5) 0%, transparent 80%);
    z-index: 2;
    display: flex;
    flex-direction: column; /* <--- THE FIX: Allows panels to stack dynamically */
}

.vg-panel {
    /* REMOVED absolute positioning so the container respects its height */
    width: 100%; 
    flex-grow: 1; 
    padding: 40px 50px;
    display: none; 
}

.vg-panel.active { 
    display: flex; 
    flex-direction: column;
    z-index: 5; 
}

/* The Masterpiece "Decrypt" Boot Animation */
.vg-panel-inner {
    width: 100%; 
    flex-grow: 1; /* <--- THE FIX: Pushes the action buttons to the bottom naturally */
    display: flex; flex-direction: column;
}
.vg-panel.active .vg-panel-inner {
    animation: decryptBoot 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes decryptBoot {
    0% { opacity: 0; transform: scale(0.98) translateY(10px); filter: blur(5px); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

/* Inner Display Typography */
.vg-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 20px;}
.vg-class { font-family: var(--f-head); font-size: 1.1rem; color: #777; letter-spacing: 4px; display: block; margin-bottom: 5px;}
.vg-title { font-size: 4rem; color: #fff; line-height: 0.9; margin: 0; text-transform: uppercase; }

.vg-h-right { text-align: right; }
.vg-price-tag { font-family: var(--f-head); font-size: 3rem; color: #fff; line-height: 1; margin-bottom: 5px; }
.vg-price-tag span { font-size: 1.2rem; color: #666; letter-spacing: 2px; margin-left: 5px;}
.vg-time-tag { font-family: var(--f-head); font-size: 1.1rem; color: #888; letter-spacing: 2px; background: rgba(0,0,0,0.5); padding: 4px 12px; border: 1px solid #333; display: inline-block;}

.vg-gold .vg-class, .vg-gold .vg-title, .vg-gold .vg-price-tag { color: var(--gold); }
.vg-custom .vg-class, .vg-custom .vg-title, .vg-custom .vg-price-tag { color: var(--green-safe); }

.vg-split { display: flex; gap: 50px; justify-content: space-between; flex-grow: 1; }

.vg-desc { color: #aaa; font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; border-left: 2px solid #444; padding-left: 20px; flex: 1.5; }

.vg-loadout { flex: 2; }
.vg-loadout h4 { font-family: var(--f-head); font-size: 1.3rem; color: #666; margin-bottom: 20px; letter-spacing: 3px; }
.vg-loadout ul { list-style: none; display: grid; grid-template-columns: 1fr; gap: 15px;}
.vg-loadout li { font-family: var(--f-body); font-size: 1.05rem; color: #ddd; display: flex; align-items: flex-start; background: rgba(255,255,255,0.02); padding: 10px 15px; border: 1px solid #222;}
.vg-loadout li span { font-family: monospace; font-weight: bold; margin-right: 15px; color: #888; }

.vg-gold .vg-loadout li span { color: var(--gold); }
.vg-custom .vg-loadout li span { color: var(--green-safe); }

.vg-actions { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; margin-top: auto; padding-top: 20px;}


/* --- DUAL COMMS BUTTONS (CRUSH-PROOF) --- */
.vg-btn-group { display: flex; gap: 15px; width: 100%; }

.vg-btn-flex {
    flex: 1; display: flex !important; align-items: center; justify-content: center; gap: 12px;
    padding: 12px 10px; font-size: 1.1rem;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.vg-icon-wrapper {
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.1); padding: 6px;
    width: 30px; height: 30px;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    transition: background 0.3s;
    flex-shrink: 0 !important; /* PREVENTS CRUSHING ON MOBILE */
}
.vg-icon-wrapper svg { width: 100%; height: 100%; }

.tac-btn.primary:hover .vg-icon-wrapper { background: rgba(0,0,0,0.2); }
.tac-btn.secondary:hover .vg-icon-wrapper { background: rgba(230, 184, 0, 0.2); }
.vg-custom .tac-btn.secondary:hover .vg-icon-wrapper { background: rgba(0, 0, 0, 0.2); }


/* ==========================================================================
   MOBILE RESPONSIVENESS: THE TACTICAL CONTROL PAD
   ========================================================================== */
/* ==========================================================================
   MOBILE RESPONSIVENESS: THE TACTICAL CONTROL PAD (OVERFLOW FIX)
   ========================================================================== */
@media (max-width: 900px) {
    /* 1. Force the terminal to grow as tall as the content needs */
    .vg-terminal {
        flex-direction: column;
        height: auto !important; 
        min-height: auto !important;
        overflow: visible; /* Prevents the buttons from being swallowed */
        clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    }

    .vg-nav {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 15px;
        border-right: none;
        border-bottom: 2px solid #222;
        background: rgba(8, 8, 10, 0.95);
    }

    .vg-nav-header { display: none; }

    .vg-tab {
        flex-direction: column; justify-content: center; align-items: center;
        padding: 12px 5px;
        border: 1px solid #222; border-bottom: 2px solid transparent;
        background: rgba(20, 20, 25, 0.6); border-radius: 4px;
    }
    
    .vg-tab.vg-custom { grid-column: 1 / -1; }

    .vg-tab.active { border-bottom-color: #fff; background: rgba(255,255,255,0.05); border-left-color: transparent;}
    .vg-tab.vg-gold.active { border-bottom-color: var(--gold); background: rgba(230, 184, 0, 0.1); border-left-color: transparent;}
    .vg-tab.vg-custom.active { border-bottom-color: var(--green-safe); background: rgba(0, 204, 102, 0.1); border-left-color: transparent;}

    .vg-tab-left { flex-direction: column; gap: 5px; }
    .vg-tab-num { display: none; } 
    .vg-tab-title { font-size: 1.1rem; text-align: center; white-space: normal; margin-top: 5px; }
    .vg-tab-price { font-size: 1.2rem; margin-top: 5px; }
    .vg-badge { display: none; } 

    /* 2. Break all height limits on the screens and panels */
    .vg-screen { position: relative; height: auto !important; min-height: auto;}
    
    .vg-panel { 
        position: relative; 
        padding: 25px 20px 40px 20px; /* Extra 40px padding at the bottom so buttons don't touch the edge */
        height: auto !important; 
    }
    
    .vg-panel-inner {
        height: auto !important; /* CRITICAL: Lets the inner div grow infinitely */
        display: flex;
        flex-direction: column;
    }
    
    .vg-header { flex-direction: column; align-items: flex-start; gap: 15px; padding-bottom: 15px;}
    .vg-h-right { text-align: left; }
    .vg-title { font-size: 2.6rem; }
    .vg-price-tag { font-size: 2.2rem; }
    
    .vg-split { flex-direction: column; gap: 20px; flex-grow: 0; }
    .vg-desc { border-left: none; padding-left: 0; padding-bottom: 20px; border-bottom: 1px dashed #333; }
    
    /* 3. Give the action buttons room to breathe */
    .vg-actions { 
        margin-top: 30px; 
        padding-top: 0;
    }
    
    .vg-btn-group { flex-direction: column; gap: 15px; }
    
    .vg-btn-flex { 
        width: 100%; 
        padding: 16px; /* Taller, meatier buttons for mobile tapping */
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   AAA ENCRYPTED DATABASE TEASER (PROJECT LOGS)
   ========================================================================== */

.db-teaser-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    background: #08080a;
    border: 1px solid #222;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(25px 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%, 0 25px);
}

/* The Ghost Background Grid */
.db-ghost-grid {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 110%; /* Slightly wider to cover edges */
    opacity: 0.25;
    filter: blur(5px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none; /* Stops the background from eating clicks */
}

/* The Hover Reveal Animation */
.db-teaser-wrapper:hover .db-ghost-grid {
    opacity: 0.5;
    filter: blur(3px); /* Clears up slightly */
    transform: translate(-50%, -50%) scale(1.03); /* Slow, cinematic zoom */
}

/* The Dummy Cards in the Background */
.ghost-card {
    background: rgba(20,20,22,0.8);
    border: 1px solid #333;
    height: 280px;
    padding: 25px;
    display: flex; flex-direction: column; gap: 15px;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}
.gc-head { font-family: var(--f-head); font-size: 1.8rem; color: #555; letter-spacing: 2px; border-bottom: 1px dashed #333; padding-bottom: 10px;}
.gc-body { flex-grow: 1; background: rgba(255,255,255,0.02); }
.gc-foot { height: 35px; background: rgba(255,255,255,0.05); }

/* --- Central Glassmorphism Console --- */
.db-unlock-console {
    position: relative;
    z-index: 2;
    background: rgba(10, 10, 12, 0.85); /* Dark tint */
    backdrop-filter: blur(12px); /* Glassmorphism blur */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #444;
    border-top: 3px solid var(--gold); /* Glowing top lip */
    padding: 40px;
    text-align: center;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.unlock-icon { width: 45px; height: 45px; margin-bottom: 15px; }
.unlock-title { font-family: var(--f-head); font-size: 3.2rem; color: #fff; line-height: 1; margin-bottom: 10px; letter-spacing: 1px;}
.unlock-desc { color: #aaa; font-size: 1.1rem; line-height: 1.5; margin-bottom: 25px; }

/* The Data Stats */
.unlock-stats { display: flex; align-items: center; gap: 15px; font-family: var(--f-head); font-size: 1.3rem; color: #888; margin-bottom: 30px; letter-spacing: 2px;}
.dot-sep { width: 5px; height: 5px; background: #555; border-radius: 50%; }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .db-teaser-wrapper { height: auto; padding: 40px 20px; }
    
    /* Stack background cards vertically on mobile */
    .db-ghost-grid { grid-template-columns: 1fr; gap: 15px; width: 100%; position: absolute; }
    .ghost-card { height: 150px; } 

    .db-unlock-console { padding: 30px 20px; }
    .unlock-title { font-size: 2.5rem; }
    .unlock-stats { font-size: 1.1rem; }
}