/* ==========================================================================
   POWERLIFE DESIGN SYSTEM - LUXURY GOLD & BLACK GAMING MLM PLATFORM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #08080b;
    --bg-card: #111116;
    --bg-card-elevated: #171720;
    --bg-glass: rgba(18, 18, 25, 0.75);
    --bg-glass-strong: rgba(24, 24, 34, 0.9);
    
    --gold: #d4af37;
    --gold-light: #f5d77f;
    --gold-bright: #ffd700;
    --gold-dark: #9a781b;
    --gold-glow: rgba(212, 175, 55, 0.35);
    --gold-glow-strong: rgba(255, 215, 0, 0.55);
    
    --gold-grad: linear-gradient(135deg, #f7df87 0%, #d4af37 50%, #9e7a18 100%);
    --gold-grad-hover: linear-gradient(135deg, #fff1a8 0%, #f3c945 50%, #b28a1c 100%);
    --dark-grad: linear-gradient(180deg, #121218 0%, #09090c 100%);
    --card-grad: linear-gradient(145deg, rgba(26, 26, 36, 0.8) 0%, rgba(14, 14, 20, 0.95) 100%);
    
    --text-white: #ffffff;
    --text-dim: #c8c9d8;
    --text-muted: #9a9cb2;

    /* Bootstrap's default text colour is near-black (#212529) and leaks
       into every .card on this dark theme - override it globally */
    --bs-body-bg: #0e0e14;
    --bs-body-color: #f2f2f7;
    --bs-body-emphasis-color: #ffffff;
    --bs-secondary-color: #b8bacb;
    --bs-tertiary-color: #9496aa;
    --bs-link-color: var(--gold);
    --bs-link-color-rgb: 212, 175, 55;
    --bs-link-hover-color: var(--gold-light);
    --bs-link-hover-color-rgb: 245, 215, 127;
    --bs-link-decoration: none;
    --bs-link-hover-decoration: none;
    
    --border-subtle: rgba(212, 175, 55, 0.18);
    --border-highlight: rgba(212, 175, 55, 0.45);
    
    --cyan-accent: #00d2ff;
    --emerald-accent: #00e676;
    --danger-accent: #ff3366;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-gold: 0 10px 30px -10px rgba(212, 175, 55, 0.3);
    --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.25);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dim);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 65%, rgba(212, 175, 55, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(26, 26, 40, 0.5) 0%, transparent 60%);
    background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #09090c;
}
::-webkit-scrollbar-thumb {
    background: #2a2a38;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: all 0.25s ease;
}
a:hover {
    color: var(--gold-light);
}

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

.text-gradient-gold {
    background: var(--gold-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-white {
    color: #ffffff !important;
}

.text-dim {
    color: var(--text-dim) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary,
.text-body-secondary {
    color: var(--text-dim) !important;
}

.text-cyan {
    color: var(--cyan-accent) !important;
}

.hover-gold:hover {
    color: var(--gold-light) !important;
}

/* Keep copy inside Bootstrap cards readable on the black theme */
.card,
.card-header,
.card-body,
.list-group-item,
.modal-content,
.toast,
.dropdown-menu {
    color: var(--text-white);
}

/* Navbar - transparent, no visible container/border */
.pl-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: none;
    box-shadow: none;
}

.pl-navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: none;
    background: transparent;
    border-bottom: none;
}

.pl-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pl-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pl-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.pl-brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px var(--gold-glow));
    transition: transform 0.3s ease;
}

.pl-brand:hover img {
    transform: scale(1.05);
}

.pl-brand-text {
    display: flex;
    flex-direction: column;
}

.pl-brand-name {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.pl-brand-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pl-nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.8rem;
}

.pl-nav-link {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.4rem 0;
}

.pl-nav-link:hover, .pl-nav-link.active {
    color: var(--gold-light);
}

.pl-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold-grad);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.pl-nav-link:hover::after, .pl-nav-link.active::after {
    width: 100%;
}

.pl-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Compact header buttons (navbar only) */
.pl-nav-actions .btn-gold,
.pl-nav-actions .btn-gold-outline {
    font-size: 0.82rem;
    padding: 0.55rem 1.05rem;
    gap: 0.4rem;
    white-space: nowrap;
}

/* Custom Buttons */
.btn-gold {
    background: var(--gold-grad);
    color: #0c0c10 !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px var(--gold-glow);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-gold:hover {
    background: var(--gold-grad-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--gold-glow-strong);
}

.btn-gold-outline {
    background: rgba(212, 175, 55, 0.05);
    color: var(--gold-light) !important;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-highlight);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-gold-outline:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.2);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.04);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

/* Badge System */
.badge-gold {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-light);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-ps {
    background: linear-gradient(135deg, rgba(0, 112, 209, 0.2), rgba(0, 112, 209, 0.05));
    color: #4da6ff;
    border: 1px solid rgba(0, 112, 209, 0.4);
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-pv {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.15), rgba(0, 230, 118, 0.05));
    color: var(--emerald-accent);
    border: 1px solid rgba(0, 230, 118, 0.35);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Cards */
.pl-card {
    background: var(--card-grad);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pl-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.15);
}

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

/* Package Plan Card (Video Game PlayStation Plans) */
.plan-card {
    background: var(--card-grad);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2.2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.35s ease;
}

.plan-card.featured {
    border-color: var(--gold);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.25);
    background: linear-gradient(150deg, rgba(32, 28, 16, 0.9) 0%, rgba(16, 16, 22, 0.95) 100%);
}

.plan-card.featured::after {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    right: 28px;
    background: var(--gold-grad);
    color: #0a0a0e;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.plan-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1.4rem;
}

.plan-price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0.8rem 0;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
}

.plan-specs {
    list-style: none;
    margin: 1.5rem 0;
    flex-grow: 1;
}

.plan-specs li {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.plan-specs li:last-child {
    border-bottom: none;
}

.plan-specs .spec-label {
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-specs .spec-val {
    font-weight: 700;
    color: #fff;
}

/* MLM Binary Tree Interactive Visualizer */
.binary-tree-container {
    background: rgba(14, 14, 20, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow-x: auto;
}

.tree-node-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.tree-node {
    background: linear-gradient(135deg, #1f1f2c, #13131a);
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.6rem;
    text-align: center;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
    position: relative;
    z-index: 2;
    min-width: 170px;
    transition: all 0.3s ease;
}

.tree-node:hover {
    transform: scale(1.04);
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.45);
}

.tree-node.left-leg {
    border-color: #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

.tree-node.right-leg {
    border-color: #ffaa00;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.2);
}

.tree-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold);
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gold-light);
}

.tree-username {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.tree-package {
    font-size: 0.75rem;
    color: var(--gold-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tree-pv-pill {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.tree-level-children {
    display: flex;
    justify-content: center;
    gap: 4rem;
    position: relative;
    margin-top: 3rem;
    width: 100%;
}

.tree-connector-v {
    width: 2px;
    height: 30px;
    background: var(--gold);
    opacity: 0.6;
    margin: 0 auto;
}

.tree-connector-h {
    position: absolute;
    top: -30px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--gold);
    opacity: 0.6;
}

/* Binary Stats Dashboard Card */
.stat-box {
    background: rgba(18, 18, 25, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--gold);
    flex-shrink: 0;
}

.stat-details {
    flex-grow: 1;
}

.stat-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
}

/* Forms */
.form-group {
    margin-bottom: 1.4rem;
}

.form-label {
    display: block;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control-pl {
    width: 100%;
    background: rgba(15, 15, 22, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.2rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control-pl:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
    background: rgba(22, 22, 32, 0.95);
}

/* Hero Section */
.hero-section {
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-glow-bg {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(8, 8, 11, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* Footer */
.pl-footer {
    background: #060608;
    border-top: 1px solid var(--border-subtle);
    padding: 4.5rem 0 2rem;
    position: relative;
}

/* Responsive */
@media (max-width: 991px) {
    .pl-nav-links {
        display: none;
    }
    .tree-level-children {
        gap: 1.5rem;
    }
}

/* ==========================================================================
   PL-ALERT — Unified dark gold-bordered alert component
   ========================================================================== */
.pl-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    line-height: 1.5;
    background: rgba(14, 14, 20, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: #e0d8b0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(212, 175, 55, 0.08);
    animation: pl-alert-in 0.3s ease;
}

.pl-alert i {
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--gold);
}

.pl-alert span {
    flex: 1;
}

/* Success variant — green tint border */
.pl-alert-success {
    border-color: rgba(80, 200, 120, 0.45);
    background: rgba(10, 28, 16, 0.88);
    color: #a8e6bb;
}

.pl-alert-success i {
    color: #5ddc7f;
}

/* Error variant — red tint border */
.pl-alert-error {
    border-color: rgba(220, 60, 80, 0.45);
    background: rgba(28, 10, 12, 0.88);
    color: #f5a0aa;
}

.pl-alert-error i {
    color: #ff6b7b;
}

/* Info variant — gold (default) */
.pl-alert-info {
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(20, 16, 4, 0.92);
    color: #e8d89a;
}

.pl-alert-info i {
    color: var(--gold);
}

/* Warning variant — amber */
.pl-alert-warning {
    border-color: rgba(255, 165, 0, 0.45);
    background: rgba(26, 18, 4, 0.9);
    color: #ffc87a;
}

.pl-alert-warning i {
    color: #ffad33;
}

@keyframes pl-alert-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
