/* --- PHP WARNING ISOLATION INTERCEPTOR --- */
font[size="1"], font[color="#ff0000"], pre, xmp, .php-error, br[clear="all"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- PREMIUM GAMIFIED FINTECH UI IMPLEMENTATION --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body { 
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; 
    background: radial-gradient(130% 100% at top left, #121824 0%, #080b11 100%); 
    padding: 40px 20px; 
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f3f4f6;
    box-sizing: border-box;
    transition: background 0.8s ease;
    background-image: url('https://smilitary.xyz/image/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-blend-mode: overlay;
}

.container { 
    width: 100%;
    max-width: 440px; 
    background: linear-gradient(145deg, rgba(26, 34, 50, 0.7) 0%, rgba(15, 22, 36, 0.9) 100%); 
    padding: 32px; 
    border-radius: 24px; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

h2 {
    font-size: 26px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 30%, #a7f3d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 40px;
}

h2::before {
    content: '⚡';
    -webkit-text-fill-color: initial;
    font-size: 24px;
}

.tier-dashboard {
    background: rgba(10, 15, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 24px;
}

.tier-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.current-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.next-tier-hint {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    transition: all 0.3s ease;
}

.progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.perks-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.perks-preview span, .perk-chip {
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px;
    border-radius: 8px;
    color: #6b7280;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.perks-preview span.active, .perk-chip.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.05);
}

.withdrawal-limits-grid {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.withdrawal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.15);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}
.withdrawal-row.highlighted-benefit {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.06);
}
.withdrawal-label {
    color: #8a94a6;
    font-weight: 500;
}
.withdrawal-value {
    font-weight: 700;
    color: #e5e7eb;
}
.withdrawal-row.highlighted-benefit .withdrawal-label {
    color: #38bdf8;
}
.withdrawal-row.highlighted-benefit .withdrawal-value {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* --- COMMAND BAR & CHAT STYLES --- */
.command-bar { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.cmd-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #10b981; padding: 4px 10px; border-radius: 6px; font-size: 11px; cursor: pointer; transition: 0.2s; }
.cmd-btn:hover { background: rgba(16, 185, 129, 0.2); }

.ai-chat-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 24px;
}
.ai-chat-header { font-size: 12px; color: #10b981; font-weight: 700; margin-bottom: 8px; display: block; }

/* --- COMMENTS FEED --- */
.comments-section-container { margin-bottom: 24px; }
.comments-list-box {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 12px;
    padding-right: 4px;
}
.comments-list-box::-webkit-scrollbar { width: 4px; }
.comments-list-box::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
.comments-list-box::-webkit-scrollbar-thumb { background: rgba(16, 185, 129, 0.3); border-radius: 4px; }
.comment-input-row { display: flex; gap: 8px; }
.comment-input-row input { padding: 10px 14px; font-size: 13px; border-radius: 10px; }
.btn-send-comment { width: auto; margin-top: 0; padding: 0 16px; border-radius: 10px; font-size: 14px; display: flex; align-items: center; justify-content: center; }

.testimonial-ticker {
    background: rgba(16, 185, 129, 0.03);
    border: 1px dashed rgba(16, 185, 129, 0.4);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.avatar-circle {
    width: 48px;
    height: 48px;
    border: 2px solid #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    flex-shrink: 0;
    text-transform: uppercase;
}
.content-area { flex-grow: 1; }
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.user-name { color: #fff; font-weight: 600; font-size: 16px; }
.tier-badge-label { color: #10b981; font-weight: 800; font-size: 11px; }
.comment-body { color: #9ca3af; font-style: italic; font-size: 14px; margin-top: 4px; }
.comment-controls { margin-top: 8px; font-size: 11px; }
.comment-controls span { color: #6b7280; cursor: pointer; margin-right: 10px; text-decoration: underline; }

/* --- UI ELEMENTS --- */
.form-group { margin-bottom: 22px; position: relative; }
label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 13px; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.75px; }
input, select { 
    width: 100%; padding: 14px 16px; background: rgba(10, 15, 26, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; box-sizing: border-box; 
    color: #ffffff; font-size: 15px; font-family: inherit; font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
input::placeholder { color: #4b5563; }
input:focus, select:focus { outline: none; border-color: #10b981; background: rgba(10, 15, 26, 0.95); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), inset 0 2px 4px rgba(0,0,0,0.2); }
button { 
    width: 100%; padding: 16px; background: linear-gradient(135deg, #10b981 0%, #059669 100%); 
    color: #ffffff; border: none; border-radius: 14px; font-size: 16px; font-weight: 700;
    cursor: pointer; transition: all 0.2s ease; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    margin-top: 8px; text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
button:hover { background: linear-gradient(135deg, #059669 0%, #047857 100%); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5); }

.burger-menu { position: absolute; top: 32px; right: 32px; display: flex; flex-direction: column; justify-content: space-between; width: 24px; height: 18px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 10; }
.burger-menu span { width: 24px; height: 2px; background-color: #ffffff; border-radius: 2px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: left center; }
.burger-menu.open span:nth-child(1) { transform: rotate(45deg); position: relative; top: -1px; }
.burger-menu.open span:nth-child(2) { width: 0%; opacity: 0; }
.burger-menu.open span:nth-child(3) { transform: rotate(-45deg); position: relative; top: 1px; }

.mobile-nav-panel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(145deg, #0f1624 0%, #080b11 100%); z-index: 5; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px; transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 24px; }
.mobile-nav-panel.active { transform: translateY(0); }
.page-content { display: none; }
.page-content.active { display: block; }

/* --- ANIMATIONS --- */
@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); } 70% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
@keyframes pulseSim { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes rotateAccess { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes cycleTierColors { 0% { width: 0%; background: #cd7f32; } 33% { width: 33%; background: #cd7f32; } 34% { width: 34%; background: #c0c0c0; } 66% { width: 66%; background: #c0c0c0; } 67% { width: 67%; background: #ffd700; } 100% { width: 100%; background: #ffd700; } }
@keyframes tierTextFade { 0%, 33% { content: "BRONZE - LEVEL 1"; } 34%, 66% { content: "SILVER - LEVEL 2"; } 67%, 100% { content: "GOLD - LEVEL 3"; } }
@keyframes floatMonitor { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes pulseManager { 0%, 100% { box-shadow: 0 0 10px #10b981; } 50% { box-shadow: 0 0 30px #10b981; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes bounceRobot { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px) scale(1.05); } }
@keyframes colorShift { 0% { filter: hue-rotate(0deg); } 50% { filter: hue-rotate(180deg); } 100% { filter: hue-rotate(360deg); } }

.ai-manager-bubble { 
    position: fixed; bottom: 30px; right: 30px; background: rgba(10, 15, 26, 0.9);
    border: 1px solid #10b981; padding: 5px 15px; border-radius: 50px;
    display: flex; align-items: center; gap: 8px; max-width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); z-index: 9999;
    animation: pulseManager 1.5s infinite; cursor: pointer; backdrop-filter: blur(5px);
}
.manager-avatar { animation: colorShift 5s infinite linear, bounceRobot 1.5s infinite ease-in-out; display: inline-block; font-size: 20px; }
.manager-text { font-size: 13px; color: #e5e7eb; }

/* Unified Monitor Card Styles */
.monitor-card {
    background: rgba(10, 15, 26, 0.9);
    border: 1px solid #10b981;
    padding: 25px;
    border-radius: 16px;
    width: 260px;
    text-align: center;
    color: white;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    margin: 20px auto;
}

.sync-circle {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #10b981;
    margin: 20px auto;
    animation: spin 2s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.percentage-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #10b981;
}

.tier-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #e5e7eb;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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