/*
    AlphaKOTH - Tactical Tebex Template
    Designed to match in-game HUD and menus.
    Glassmorphism | Tactical HUD | Gold Accents
*/

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Share+Tech+Mono&family=Inter:wght@300;400;700&display=swap');

:root {
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --dark: rgba(10, 10, 12, 0.95);
    --darker: rgba(5, 5, 7, 0.98);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --danger: #ff3c3c;
    --success: #00ff00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050507;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .tactical-font {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mono-font {
    font-family: 'Share Tech Mono', monospace;
}

/* --- HUD BACKGROUND EFFECTS --- */

.hud-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at center, #0a0a0f 0%, #050507 100%);
}

.scanlines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.2) 1px,
        transparent 1px,
        transparent 3px
    );
    z-index: 2;
}

.tactical-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(10deg);
    opacity: 0.3;
    z-index: 1;
}

.hex-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--gold-glow) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: 1;
}

.scanning-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    top: 0;
    opacity: 0.2;
    animation: scan 4s linear infinite;
    z-index: 3;
}

@keyframes scan {
    0% { top: -10%; }
    100% { top: 110%; }
}

.vignette {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.9) 100%);
    z-index: 2;
}

/* --- ANIMATIONS & EFFECTS --- */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.anim-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.7s; }

/* --- UI COMPONENTS --- */

.glass-panel {
    background: rgba(10, 10, 15, 0.82);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--gold);
    padding: 25px 25px 45px; /* Increased bottom padding for clip-path safety */
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.glass-panel::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 40px;
    height: 40px;
    background: linear-gradient(225deg, var(--gold) 0.5px, transparent 0.5px);
    pointer-events: none;
}

.btn-tactical {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 12px 24px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-tactical::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    transition: 0.6s;
    z-index: 1;
}

.btn-tactical:hover::before {
    left: 150%;
}

.btn-tactical:hover {
    background: var(--gold);
    color: var(--dark);
    box-shadow: 0 0 15px var(--gold-glow);
}

.btn-tactical.primary {
    background: var(--gold);
    color: var(--dark);
}

.btn-tactical.primary:hover {
    filter: brightness(1.2);
}


/* --- NAVIGATION --- */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: linear-gradient(180deg, var(--dark) 0%, transparent 100%);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 100;
    gap: 20px;
}

.logo {
    flex: 1;
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--gold-glow);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo img {
    max-height: 65px;
    filter: drop-shadow(0 0 5px var(--gold-glow));
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-telemetry {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.nav-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    transition: color 0.3s;
    letter-spacing: 1px;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--gold);
}

/* --- DROPDOWN NAV --- */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--darker);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 100;
    border: 1px solid var(--glass-border);
    border-top: 2px solid var(--gold);
    top: 100%;
    left: 0;
    margin-top: 10px;
}

.dropdown-content a {
    color: var(--text-secondary) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 11px !important;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-content a:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold) !important;
    padding-left: 20px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInUp 0.3s ease forwards;
}

/* --- PRODUCT CARDS --- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.product-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 20px rgba(212, 175, 55, 0.2);
    z-index: 10;
}

.product-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}


.product-info {
    padding: 20px;
    background: var(--darker);
}

.product-title {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 18px;
}

.product-price {
    font-family: 'Share Tech Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold);
    color: var(--dark);
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

/* --- TELEMETRY / STATS --- */

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    color: var(--gold);
    margin-bottom: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--success);
    animation: blink 2s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* --- FOOTER --- */

footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 5%;
    margin-top: 80px;
    background: var(--darker);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-logo {
    color: var(--gold);
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
}

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

/* --- HERO SECTION --- */

.hero-section {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 60px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    filter: brightness(0.8) contrast(1.2);
    z-index: -1;
    transition: transform 10s linear;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
    mask-image: linear-gradient(to right, transparent 0%, black 30%);
}

.hero-section:hover .hero-background {
    transform: scale(1.1);
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.hero-tag {
    background: var(--gold);
    color: var(--dark);
    display: inline-block;
    padding: 5px 15px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 10px;
    margin-bottom: 20px;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.hero-title {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 0 30px rgba(0,0,0,1);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.hero-stat-item {
    border-left: 2px solid var(--gold);
    padding-left: 15px;
}

.stat-value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 24px;
    color: var(--gold);
    display: block;
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Responsiveness */
@media (max-width: 900px) {
    .nav-links { 
        flex-wrap: wrap; 
        gap: 15px; 
        justify-content: center; 
    }
    nav {
        flex-direction: column;
        gap: 15px;
    }
    .product-grid { grid-template-columns: 1fr; }
    .hero-title-v2 { font-size: 36px; }
    .hero-stats { flex-direction: column; gap: 20px; }
}

/* =========================================
   NEXT-GEN CYBER-TACTICAL UI 
========================================= */

.text-gold { color: var(--gold); }

/* HERO SECTION V2 */
.tactical-hero-container {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 40px 60px;
    margin-bottom: 60px;
    border: 1px solid var(--glass-border);
    border-bottom: 2px solid var(--gold);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
    background: rgba(10, 10, 15, 0.6);
    overflow: hidden;
}

.hero-bg-v2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    filter: brightness(0.5) contrast(1.2);
    z-index: 0;
    transition: transform 15s ease-out;
}
.tactical-hero-container:hover .hero-bg-v2 {
    transform: scale(1.05);
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, var(--dark) 0%, rgba(10,10,15,0.8) 50%, transparent 100%);
    z-index: 1;
}

.hero-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.3) 2px, rgba(0,0,0,0.3) 4px);
    z-index: 1;
    pointer-events: none;
}

.hero-content-v2 {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin-left: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 6px 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--text-primary);
    margin-bottom: 20px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.blinking-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
    animation: blink 1s infinite alternate;
}
@keyframes blink { from { opacity: 0.3; } to { opacity: 1; } }

.hero-title-v2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 55px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.hero-terminal {
    background: rgba(5,5,7,0.8);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--gold);
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.terminal-header {
    background: rgba(255,255,255,0.05);
    padding: 5px 10px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
}
.terminal-body {
    padding: 15px;
    color: #00ff00;
    line-height: 1.6;
}

/* Cyber Buttons */
.btn-cyber {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: 0.3s;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}
.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--gold);
    transition: 0.4s ease-in-out;
    z-index: -1;
}
.btn-cyber:hover::before { left: 0; }
.btn-cyber:hover { color: var(--dark); box-shadow: 0 0 20px rgba(212,175,55,0.4); }

.btn-cyber.primary {
    background: rgba(212,175,55,0.15);
    backdrop-filter: blur(5px);
}
.btn-cyber.primary:hover {
    background: var(--gold);
}
.btn-cyber-small {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-primary);
    padding: 8px 16px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px; font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-cyber-small:hover { border-color: var(--gold); color: var(--gold); background: rgba(212,175,55,0.05); }

/* Floating Widgets */
.hud-widget {
    position: absolute;
    background: rgba(10,10,15,0.7);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 15px;
    font-family: 'Share Tech Mono', monospace;
    z-index: 10;
}
.hud-top-right {
    top: 50px;
    right: 5%;
    border-right: 2px solid var(--gold);
}
.hud-bottom-right {
    bottom: 50px;
    right: 15%;
    border-bottom: 2px solid #00ff00;
}
.widget-title { font-size: 10px; color: var(--text-secondary); margin-bottom: 5px; }
.widget-value { font-size: 24px; font-weight: bold; }

/* CYBER GRID */
.section-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 60px 0 40px;
    font-family: 'Orbitron', sans-serif;
    color: var(--gold);
}
.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cyber-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.cyber-card {
    position: relative;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    clip-path: polygon(0 20px, 20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    transition: 0.3s;
}
.cyber-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(212,175,55,0.15); }

.cyber-card-inner {
    background: var(--dark);
    height: 100%;
    display: flex;
    flex-direction: column;
    clip-path: polygon(0 20px, 20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.cyber-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cyber-image {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: 0.5s;
    filter: grayscale(20%);
}
.cyber-card:hover .cyber-image { transform: scale(1.05); filter: grayscale(0%); }

.cyber-tag {
    position: absolute;
    top: 15px; right: 15px;
    background: var(--gold);
    color: var(--dark);
    font-family: 'Orbitron', sans-serif;
    font-size: 10px; font-weight: bold;
    padding: 4px 10px;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.cyber-info { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.cyber-title { font-family: 'Orbitron', sans-serif; font-size: 18px; margin-bottom: 15px; color: var(--text-primary); text-transform: uppercase; }
.cyber-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; height: 60px; overflow: hidden; }

.cyber-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px dashed rgba(255,255,255,0.1);
}
.cyber-price { font-family: 'Share Tech Mono', monospace; font-size: 18px; color: var(--gold); }

/* Corner Decorations */
.corner { position: absolute; width: 6px; height: 6px; border: 1px solid var(--gold); z-index: 5; pointer-events: none; opacity: 0; transition: 0.3s; }
.cyber-card:hover .corner { opacity: 1; }
.top-left { top: 5px; left: 5px; border-right: none; border-bottom: none; }
.top-right { top: 5px; right: 5px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 5px; left: 5px; border-right: none; border-top: none; }
.bottom-right { bottom: 5px; right: 5px; border-left: none; border-top: none; }

.cyber-support-panel {
    display: flex; align-items: center; gap: 30px;
    background: linear-gradient(90deg, rgba(212,175,55,0.05) 0%, rgba(10,10,15,0.8) 100%);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--gold);
    padding: 30px; margin-top: 60px;
}
.support-icon { width: 40px; height: 40px; flex-shrink: 0; }
.support-text { flex: 1; }
.support-text h3 { font-family: 'Orbitron', sans-serif; margin-bottom: 5px; }
.support-text p { color: var(--text-secondary); font-size: 14px; }

/* Package Description Fixes */
.package-description, 
.package-description * {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
    word-break: normal !important;
    max-width: 100% !important;
    display: block !important;
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.2), inset 0 0 5px rgba(212, 175, 55, 0.1); }
    50% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.6), inset 0 0 15px rgba(212, 175, 55, 0.3); }
    100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.2), inset 0 0 5px rgba(212, 175, 55, 0.1); }
}

.elite-glow {
    animation: pulse-gold 3s infinite ease-in-out;
    border-color: rgba(212, 175, 55, 0.8) !important;
    position: relative;
}

.elite-glow::after {
    content: 'ELITE STATUS';
    position: absolute;
    bottom: -12px;
    right: 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 8px;
    color: var(--gold);
    letter-spacing: 2px;
    opacity: 0.6;
}
