/* 
 * Premium Web3 CSS Design Framework
 * Styled for CryptoGlow Faucet
 * Optimized for Hostinger Node.js deployments
 */

:root {
    /* Color Palette System */
    --bg-darker: #05060b;
    --bg-dark: #0a0b12;
    --bg-card: rgba(16, 17, 30, 0.6);
    --bg-glass: rgba(10, 11, 22, 0.5);
    
    --primary: #7f00ff;
    --primary-glow: rgba(127, 0, 255, 0.4);
    --secondary: #00f2fe;
    --secondary-glow: rgba(0, 242, 254, 0.3);
    
    --success: #00ff87;
    --success-glow: rgba(0, 255, 135, 0.2);
    --danger: #ff0055;
    --danger-glow: rgba(255, 0, 85, 0.2);
    --warning: #ffb700;
    
    --text-primary: #f5f6fa;
    --text-secondary: #8b92b6;
    --text-muted: #575d7e;
    --border-glow: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(127, 0, 255, 0.15);
    
    --gradient-primary: linear-gradient(135deg, #7f00ff 0%, #00f2fe 100%);
    --gradient-card: linear-gradient(135deg, rgba(20, 21, 38, 0.8) 0%, rgba(10, 11, 20, 0.8) 100%);
    --gradient-glow: linear-gradient(90deg, #7f00ff, #00f2fe, #7f00ff);
    
    --shadow-neon: 0 0 15px var(--primary-glow);
    --shadow-cyan: 0 0 15px var(--secondary-glow);
    --shadow-green: 0 0 15px var(--success-glow);
    
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Immediate Visual State Overrides (Eliminates unauthenticated flicker) */
html.user-logged-in #auth-container,
html.user-logged-in #landing-container {
    display: none !important;
}
html.user-logged-in #app-container {
    display: flex !important;
}
html.user-logged-out #app-container {
    display: none !important;
}

/* Global Reset & Base Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-glow) var(--bg-darker);
}

body {
    background-color: var(--bg-darker);
    background-image: 
        radial-gradient(at 10% 20%, rgba(127, 0, 255, 0.08) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(0, 242, 254, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Glassmorphism Panel styles */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Glowing Typography */
.glow-text {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.4));
}

.accent-text {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
}

.btn-secondary {
    background: rgba(127, 0, 255, 0.15);
    border: 1px solid var(--primary);
    color: #fff;
    box-shadow: var(--shadow-neon);
}

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--secondary);
    color: #fff;
    box-shadow: var(--shadow-cyan);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.9rem;
}

/* Glowing Pulse Buttons */
.glowing-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.glowing-btn:hover::after {
    left: 120%;
    opacity: 1;
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(8, 9, 16, 0.8);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: var(--shadow-cyan);
}

/* Toast Alerts Container */
.toast-area {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast-success {
    background: rgba(0, 255, 135, 0.15);
    border: 1px solid var(--success);
    box-shadow: var(--shadow-green);
}

.toast-error {
    background: rgba(255, 0, 85, 0.15);
    border: 1px solid var(--danger);
    box-shadow: var(--shadow-neon);
}

.toast-warning {
    background: rgba(255, 183, 0, 0.15);
    border: 1px solid var(--warning);
}

/* Authentication Page CSS */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.auth-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-color: var(--border-accent);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .logo {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.auth-header .subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-tabs {
    display: flex;
    background: rgba(8, 9, 16, 0.6);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-neon);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* App Main Layout Grid */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar navigation */
.sidebar {
    width: 260px;
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--border-glow);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    background: rgba(10, 11, 22, 0.85);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth kinetic scroll for touch viewports */
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.sidebar-header .logo {
    font-size: 1.8rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
    background: rgba(127, 0, 255, 0.1);
    color: #fff;
    border-left: 3px solid var(--secondary);
}

.nav-item.active {
    background: rgba(127, 0, 255, 0.15);
    box-shadow: inset 5px 0 10px rgba(0, 242, 254, 0.05);
}

.badge {
    margin-left: auto;
    padding: 2px 8px;
    background: var(--danger);
    border-radius: 12px;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 700;
}

.badge-pulse {
    animation: alertPulse 1.5s infinite;
}

/* Main Area Structure */
.main-layout {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

/* Top Navbar Panel */
.navbar {
    height: 75px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(8, 9, 16, 0.8);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Level Metrics Card */
.user-level-card {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 250px;
    border-color: rgba(255, 255, 255, 0.04);
    height: 48px;
    box-sizing: border-box;
}

.level-info {
    display: flex;
    flex-direction: column;
}

.level-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.level-value {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
}

.xp-progress-bar {
    width: 90px;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    box-shadow: var(--shadow-cyan);
    transition: width 0.5s ease;
}

.xp-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Balance display card */
.user-balance-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    background: rgba(127, 0, 255, 0.06);
    height: 48px;
    box-sizing: border-box;
}

.glowing-border {
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow-neon);
}

#header-launch-autofaucet {
    transition: var(--transition);
}

#header-launch-autofaucet:hover {
    transform: translateY(-2px) scale(1.03);
    border-color: var(--secondary) !important;
    box-shadow: 0 0 15px var(--shadow-cyan) !important;
}

#header-launch-autofaucet:active {
    transform: translateY(0) scale(0.97);
}

.balance-icon {
    font-size: 1.4rem;
}

.balance-details {
    display: flex;
    flex-direction: column;
}

.balance-amount {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--success);
    letter-spacing: 0.5px;
}

.balance-token {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 700;
}

/* Main Content Area */
.content-wrapper {
    padding: 35px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
    overflow: hidden;
}

/* Cards system */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-info p {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-card:hover {
    transform: translateY(-3px);
}

/* Card details and views */
.view-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
    animation: fadeIn 0.4s ease forwards;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Standard visual list structures */
.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 14px 18px;
    font-size: 0.9rem;
}

th {
    background: rgba(8, 9, 16, 0.8);
    font-family: var(--font-heading);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-completed { background: rgba(0, 255, 135, 0.15); color: var(--success); border: 1px solid var(--success); }
.status-pending { background: rgba(255, 183, 0, 0.15); color: var(--warning); border: 1px solid var(--warning); }
.status-rejected { background: rgba(255, 0, 85, 0.15); color: var(--danger); border: 1px solid var(--danger); }

/* Faucet claim page detailed styles */
.faucet-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    text-align: center;
    position: relative;
}

.timer-box {
    margin: 25px 0;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid var(--primary-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-neon);
    animation: shadowPulse 2s infinite;
}

.timer-box.cooldown {
    border-color: var(--danger-glow);
    box-shadow: 0 0 15px var(--danger-glow);
    animation: shadowPulseRed 2s infinite;
}

.timer-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
}

.timer-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
}

.claim-values {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.value-badge {
    padding: 8px 18px;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

.value-badge span {
    display: block;
}

.val-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.val-num {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
}

/* Captcha & Antibot structures */
.antibot-box {
    width: 100%;
    max-width: 450px;
    background: rgba(8, 9, 16, 0.6);
    border: 1px dashed var(--border-accent);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.antibot-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.antibot-sequence {
    font-weight: bold;
    color: var(--secondary);
    font-size: 1.1rem;
    background: rgba(0, 242, 254, 0.08);
    padding: 4px 12px;
    border-radius: 4px;
}

.antibot-options {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.antibot-btn {
    padding: 8px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.antibot-btn:hover {
    border-color: var(--secondary);
    background: rgba(0, 242, 254, 0.1);
}

.antibot-btn.clicked {
    opacity: 0.2;
    pointer-events: none;
    border-color: transparent;
}

/* SVG Captcha selection highlight */
.captcha-container {
    width: 100%;
    max-width: 320px;
    margin-bottom: 25px;
    text-align: center;
}

.captcha-container svg {
    margin-top: 10px;
    display: block;
}

.captcha-option:hover {
    filter: brightness(1.3) drop-shadow(0 0 6px rgba(0, 242, 254, 0.8));
}

.captcha-option.selected rect {
    stroke: var(--secondary);
    stroke-width: 1.5;
    fill: rgba(0, 242, 254, 0.1);
}

/* PTC Ads Grid style */
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.sponsor-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.sponsor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

.sponsor-card-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.sponsor-card-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.sponsor-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.sponsor-meta {
    display: flex;
    flex-direction: column;
}

.sponsor-reward {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
}

.sponsor-duration {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Overlay panel for PTC countdown ads */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-darker);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.overlay-header {
    height: 75px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
    background: rgba(8, 9, 16, 0.95);
}

.overlay-logo {
    font-size: 1.8rem;
}

.timer-seconds {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary);
    text-shadow: var(--shadow-cyan);
    margin-left: 8px;
}

.overlay-frame-container {
    flex: 1;
    position: relative;
    background: #000;
}

#ptc-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

.barrier-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(5,6,11,0.9);
    z-index: 5;
    text-align: center;
    padding: 20px;
    pointer-events: none;
}

.barrier-text h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.ad-link-display {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* Modals system */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    width: 100%;
    max-width: 420px;
    padding: 35px;
    text-align: center;
}

.modal-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.modal-buttons {
    margin-top: 25px;
}

/* Withdrawal Interactive Coin Grid */
.coin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.coin-card {
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    background: var(--bg-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.coin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 242, 254, 0.03), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.coin-card:hover {
    border-color: var(--primary-glow);
    background: rgba(127, 0, 255, 0.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.coin-card.selected {
    border-color: var(--secondary);
    background: rgba(0, 242, 254, 0.06);
    box-shadow: var(--shadow-cyan), inset 0 0 12px rgba(0, 242, 254, 0.05);
    transform: scale(1.03);
}

.coin-logo-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    z-index: 2;
}

.coin-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.coin-card:hover .coin-logo {
    transform: scale(1.15) rotate(5deg);
}

.coin-badge-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    text-transform: uppercase;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.coin-symbol {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    z-index: 2;
}

.coin-price {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
    z-index: 2;
}

/* Reserves Section styles */
.coin-reserve-section {
    margin-top: 12px;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.coin-reserve-bar-bg {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.01);
}

.coin-reserve-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--gradient-primary);
    box-shadow: 0 0 6px var(--secondary-glow);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.coin-reserve-text {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coin-reserve-value {
    color: var(--text-secondary);
    font-weight: 700;
}

.coin-reserve-percent {
    color: var(--secondary);
    font-weight: 700;
}

.withdraw-form-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 1100px) {
    .withdraw-form-card {
        grid-template-columns: 1fr;
    }
}

/* Admin layout views */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.admin-tab {
    padding: 10px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
}

.admin-tab:hover, .admin-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
}

.admin-content {
    animation: fadeIn 0.3s ease;
}

/* Utility Hidden & Animations */
.hidden {
    display: none !important;
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes alertPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,0,85,0.6); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(255,0,85,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,0,85,0); }
}

@keyframes shadowPulse {
    0% { box-shadow: 0 0 5px var(--primary-glow); }
    50% { box-shadow: 0 0 20px var(--primary); }
    100% { box-shadow: 0 0 5px var(--primary-glow); }
}

@keyframes shadowPulseRed {
    0% { box-shadow: 0 0 5px rgba(255,0,85,0.2); }
    50% { box-shadow: 0 0 20px var(--danger); }
    100% { box-shadow: 0 0 5px rgba(255,0,85,0.2); }
}

/* Responsive details for Mobile Screens */
@media (max-width: 1000px) {
    .mobile-only-btn {
        display: flex !important;
    }
    
    .sidebar {
        left: -260px;
        transition: var(--transition);
    }
    
    .sidebar.active {
        left: 0;
        box-shadow: 5px 0 35px rgba(0,0,0,0.8);
    }
    
    .main-layout {
        margin-left: 0;
    }
    
    .navbar {
        padding: 0 20px;
    }
    
    .content-wrapper {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .navbar-right {
        gap: 10px;
    }
    .user-level-card {
        display: none; /* Hide levels progress to save space */
    }
    .user-balance-card {
        padding: 6px 12px;
    }
    .balance-amount {
        font-size: 1.15rem;
    }

    /* Stack Quest Items Vertically */
    .quest-item-card {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }
    
    .quest-progress-outer {
        width: 100% !important; /* Make progress bar fully responsive */
        max-width: none !important;
    }
    
    .quest-action-block {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        margin-top: 5px;
        border-top: 1px dashed rgba(255, 255, 255, 0.05);
        padding-top: 12px;
    }
    
    .quest-rewards-summary {
        align-items: flex-start; /* Left-align rewards when stacked */
        text-align: left !important;
    }

    /* Collapse Rigid Inline Form Grids */
    #purchase-ad-form, #admin-settings-form {
        grid-template-columns: 1fr !important; /* Collapse rigid columns */
        gap: 15px !important;
    }
    
    #purchase-ad-form div[style*="text-align: right"], 
    #admin-settings-form div[style*="text-align: right"],
    #admin-settings-form .form-actions {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px;
        text-align: center;
    }
    
    #purchase-ad-form button, #admin-settings-form button {
        width: 100%; /* Full width buttons for mobile touch targets */
    }

    /* Compact Table View Safeguards */
    th, td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    /* Ellipsis long addresses/TxIDs to prevent horizontal blowout */
    td code {
        display: inline-block;
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Specific Mobile Breakpoint (320px - 480px width) */
@media (max-width: 480px) {
    #header-launch-autofaucet {
        display: none !important;
    }

    body {
        font-size: 14px;
    }

    /* Toast notification responsive fitting */
    .toast-area {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
    }
    
    .toast {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    /* Compact Top Navbar to avoid text clipping and wrapping issues */
    .navbar {
        height: 65px;
        padding: 0 12px;
    }
    
    .navbar-left {
        gap: 8px;
    }
    
    .navbar-title {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
    
    .mobile-only-btn {
        font-size: 1.4rem;
    }
    
    .navbar-right {
        gap: 8px;
    }
    
    .user-balance-card {
        padding: 6px 10px;
        gap: 6px;
        height: auto !important;
    }
    
    .balance-icon {
        font-size: 1.1rem;
    }
    
    .balance-amount {
        font-size: 0.95rem;
    }
    
    .balance-token {
        font-size: 0.55rem;
    }

    /* Authentication Modal Optimization */
    .auth-wrapper {
        padding: 10px;
    }
    
    .auth-card {
        padding: 25px 15px;
    }
    
    .auth-header {
        margin-bottom: 20px;
    }
    
    .auth-header .logo {
        font-size: 1.8rem;
    }
    
    .auth-tabs {
        margin-bottom: 20px;
    }
    
    .tab-btn {
        font-size: 0.95rem;
        padding: 8px;
    }

    /* Manual Faucet Layout Compression */
    .faucet-card {
        padding: 20px 15px;
    }
    
    .timer-box {
        width: 110px;
        height: 110px;
        margin: 15px 0;
    }
    
    .timer-num {
        font-size: 1.8rem;
    }
    
    .claim-values {
        gap: 15px;
        margin-bottom: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .value-badge {
        padding: 6px 12px;
    }
    
    .val-num {
        font-size: 1.05rem;
    }
    
    .antibot-box {
        padding: 15px 10px;
    }
    
    .antibot-title {
        font-size: 0.8rem;
    }
    
    .antibot-options {
        gap: 8px;
        flex-wrap: wrap; /* Fluid wrap fallback */
    }
    
    .antibot-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Modal Squeezing Fixes (e.g. Captcha / Level Up Modal) */
    .modal-card {
        padding: 20px !important; /* Ensure content doesn't squeeze */
    }
    
    .modal-card h3 {
        font-size: 1.3rem;
    }
    
    #level-up-modal .modal-card {
        padding: 25px 15px !important;
    }
    
    #level-up-modal h2 {
        font-size: 1.8rem !important;
    }
    
    #level-up-modal span[style*="font-size: 4.5rem"] {
        font-size: 3rem !important; /* Scale down crown emoji */
    }

    /* Dice Betting Mobile Controls Compact Layout */
    .dice-visualizer {
        padding: 20px 10px;
    }
    
    .dice-result-glow {
        font-size: 3.5rem;
    }
    
    .dice-visualizer div[style*="top:15px"] {
        position: static !important;
        margin-bottom: 15px;
        font-size: 0.7rem !important;
    }
    
    /* Dice Bet buttons wrapping */
    #dice-bet-amount + div {
        flex-wrap: wrap; /* Ensure MIN /2 x2 MAX wrap gracefully */
        justify-content: center;
        gap: 4px !important;
    }
    
    #dice-bet-amount + div button {
        flex: 1;
        min-width: 45px;
        padding: 4px !important;
        font-size: 0.75rem !important;
    }
}

/* Compact Coin Selector Grid for Ultra-Narrow Viewports */
@media (max-width: 400px) {
    .coin-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }
    .coin-card {
        padding: 10px 5px;
    }
    .coin-logo-wrap {
        width: 34px;
        height: 34px;
    }
    .coin-symbol {
        font-size: 0.85rem;
    }
}

.mobile-only-btn {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: var(--text-primary);
    cursor: pointer;
    display: none;
    align-items: center;
}

#sidebar-close {
    font-size: 1.3rem;
}

/* ==========================================================================
   ENHANCED WEB3 SHIELDS & GAME CONTROLS (DICE, QUESTS, LEADERBOARDS, LINKS)
   ========================================================================== */

/* Dice Betting Game Layouts */
.dice-betting-card {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .dice-betting-card {
        grid-template-columns: 1fr;
    }
}

.dice-visualizer {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 540px;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.dice-grid-overlay {
    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: 24px 24px;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

.dice-radial-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(127, 0, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
    display: inline-block;
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.roll-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    cursor: help;
}

.roll-pill.win {
    color: var(--success);
    border-color: rgba(0, 255, 135, 0.3);
    box-shadow: 0 0 8px rgba(0, 255, 135, 0.15);
}

.roll-pill.lose {
    color: var(--danger);
    border-color: rgba(255, 0, 85, 0.3);
    box-shadow: 0 0 8px rgba(255, 0, 85, 0.15);
}

.roll-pill:hover {
    transform: scale(1.15);
}

.dice-ring-container {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
    z-index: 5;
    transition: var(--transition);
}

.dice-ring-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(0, 242, 254, 0.15);
    animation: rotateCW 20s linear infinite;
    transition: var(--transition);
}

.dice-ring-inner {
    position: absolute;
    width: 82%;
    height: 82%;
    border-radius: 50%;
    border: 1px dashed rgba(127, 0, 255, 0.2);
    animation: rotateCCW 15s linear infinite;
    transition: var(--transition);
}

.dice-ring-active-glow {
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.05);
    transition: all 0.3s ease;
}

.dice-ring-container.rolling .dice-ring-outer {
    animation-duration: 1.5s;
    border-color: rgba(0, 242, 254, 0.4);
}

.dice-ring-container.rolling .dice-ring-inner {
    animation-duration: 1s;
    border-color: rgba(127, 0, 255, 0.45);
}

.dice-ring-container.win .dice-ring-active-glow {
    background: radial-gradient(circle, rgba(0, 255, 135, 0.2) 0%, transparent 70%);
    border-color: rgba(0, 255, 135, 0.3);
    box-shadow: inset 0 0 30px rgba(0, 255, 135, 0.15), 0 0 20px rgba(0, 255, 135, 0.1);
}

.dice-ring-container.lose .dice-ring-active-glow {
    background: radial-gradient(circle, rgba(255, 0, 85, 0.2) 0%, transparent 70%);
    border-color: rgba(255, 0, 85, 0.3);
    box-shadow: inset 0 0 30px rgba(255, 0, 85, 0.15), 0 0 20px rgba(255, 0, 85, 0.1);
}

.dice-result-glow {
    font-family: var(--font-heading);
    font-size: 4.8rem;
    font-weight: 800;
    color: var(--secondary);
    text-shadow: 0 0 30px var(--secondary-glow);
    margin: 0;
    z-index: 10;
    transition: transform 0.1s ease;
}

.dice-result-glow.win {
    color: var(--success);
    text-shadow: 0 0 35px var(--success-glow);
    animation: bounceScale 0.5s ease;
}

.dice-result-glow.lose {
    color: var(--danger);
    text-shadow: 0 0 35px var(--danger-glow);
    animation: shakeAngle 0.5s ease;
}

.dice-win-zone-indicator {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
    margin-bottom: 25px;
    z-index: 5;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.dice-range-bar {
    width: 100%;
    margin-top: 10px;
    position: relative;
    z-index: 5;
}

.dice-slider-input {
    width: 100%;
    -webkit-appearance: none;
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.1s ease;
}

.dice-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 12px var(--primary);
    cursor: pointer;
    border: 2px solid #fff;
    transition: transform 0.1s;
}

.dice-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.dice-markers {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes rotateCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateCCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Quests Checklist Layout */
.quests-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quest-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-left: 4px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.quest-item-card.completed {
    border-left-color: var(--success);
    background: rgba(0, 255, 135, 0.02);
}

.quest-item-card.claimed {
    border-left-color: var(--text-muted);
    opacity: 0.6;
}

.quest-meta h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.quest-meta p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.quest-progress-outer {
    width: 150px;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.quest-progress-inner {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.quest-action-block {
    display: flex;
    align-items: center;
    gap: 20px;
}

.quest-rewards-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: var(--font-heading);
}

.quest-reward-val {
    font-weight: bold;
    color: var(--success);
    font-size: 1.1rem;
}

.quest-reward-xp {
    font-size: 0.8rem;
    color: var(--secondary);
}

/* Leaderboards Contest Layouts */
.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.leaderboard-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.rank-row {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
}

.rank-row:last-child {
    border-bottom: none;
}

.rank-number {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.03);
}

.rank-1 .rank-number { background: linear-gradient(135deg, #ffd700, #ffa500); color: #07080e; box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
.rank-2 .rank-number { background: linear-gradient(135deg, #c0c0c0, #808080); color: #07080e; }
.rank-3 .rank-number { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #07080e; }

.rank-user {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.rank-score {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary);
}

/* Shortlinks Layouts */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.link-item-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.link-item-card.disabled {
    opacity: 0.55;
    pointer-events: none;
    border-color: rgba(255,255,255,0.02);
}

/* Rolling / Bouncing Game Keyframes */
@keyframes bounceScale {
    0% { transform: scale(0.6); opacity: 0.5; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shakeAngle {
    0%, 100% { transform: rotate(0); }
    20%, 60% { transform: rotate(-8deg); }
    40%, 80% { transform: rotate(8deg); }
}

/* Weekly contest prizes layout mobile optimizer */
@media (max-width: 480px) {
    .view-panel div[style*="repeat(auto-fit, minmax(130px, 1fr))"] {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) !important;
        gap: 10px !important;
    }
}

/* ==========================================================================
   PREMIUM FAUCET NODE STYLING OVERRIDES (CYBERPUNK EXTRACTION THEMES)
   ========================================================================== */
.faucet-orbit-ring {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    z-index: 5;
    transition: var(--transition);
}

.faucet-ring-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(0, 255, 135, 0.25);
    animation: rotateCW 25s linear infinite;
    transition: var(--transition);
}

.faucet-orbit-ring.cooldown .faucet-ring-outer {
    border-color: rgba(255, 0, 85, 0.25);
    animation: rotateCCW 30s linear infinite;
}

.faucet-ring-inner {
    position: absolute;
    width: 82%;
    height: 82%;
    border-radius: 50%;
    border: 1px dashed rgba(0, 242, 254, 0.3);
    animation: rotateCCW 18s linear infinite;
}

.faucet-orbit-ring.cooldown .faucet-ring-inner {
    border-color: rgba(255, 215, 0, 0.25);
    animation: rotateCW 22s linear infinite;
}

.faucet-ring-glow {
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 135, 0.12) 0%, transparent 70%);
    border: 1px solid rgba(0, 255, 135, 0.15);
    box-shadow: inset 0 0 20px rgba(0, 255, 135, 0.08), 0 0 15px rgba(0, 255, 135, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.faucet-orbit-ring.cooldown .faucet-ring-glow {
    background: radial-gradient(circle, rgba(255, 0, 85, 0.08) 0%, transparent 70%);
    border-color: rgba(255, 0, 85, 0.15);
    box-shadow: inset 0 0 20px rgba(255, 0, 85, 0.05), 0 0 15px rgba(255, 0, 85, 0.03);
}

.faucet-ring-status {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--success);
    text-shadow: var(--shadow-green);
    margin: 0;
    letter-spacing: 1px;
    animation: statusPulse 2s infinite alternate;
}

.faucet-orbit-ring.cooldown .faucet-ring-status {
    color: var(--danger);
    text-shadow: none;
    animation: none;
    font-size: 1.8rem;
}

@keyframes statusPulse {
    0% { transform: scale(0.96); opacity: 0.85; filter: drop-shadow(0 0 2px var(--success)); }
    100% { transform: scale(1.04); opacity: 1; filter: drop-shadow(0 0 8px var(--success)); }
}

.faucet-ring-subtext {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.faucet-glow-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.faucet-glow-box:hover {
    border-color: rgba(0, 242, 254, 0.15);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.03);
}

.faucet-pill-display {
    display: inline-block;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--secondary);
    text-shadow: var(--shadow-cyan);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 3px 10px;
    border-radius: 6px;
    margin: 0 4px;
}

/* Cyber Security Scanner styling */
.captcha-container {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

#svg-captcha-wrapper {
    background: rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

#svg-captcha-wrapper:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

/* Captcha option dynamic selection */
#svg-captcha-wrapper .captcha-option {
    cursor: pointer;
    transition: var(--transition);
}

#svg-captcha-wrapper .captcha-option:hover {
    filter: drop-shadow(0 0 5px var(--secondary));
    opacity: 0.9;
}

#svg-captcha-wrapper .captcha-option.selected {
    filter: drop-shadow(0 0 12px var(--success));
    opacity: 1;
}

/* Scanned visual lines anim */
.scanner-sweep-line {
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    box-shadow: 0 0 8px var(--secondary);
    opacity: 0.3;
    pointer-events: none;
    animation: scannerSweep 4s linear infinite;
    z-index: 10;
}

@keyframes scannerSweep {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.btn-click-ab.clicked {
    opacity: 0.25 !important;
    pointer-events: none !important;
    border-color: transparent !important;
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
}

/* Premium PTC Viewing Overlay Timer Badge Styling */
.timer-card {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 18px !important;
    border-radius: 30px !important;
    background: rgba(0, 242, 254, 0.04) !important;
    border: 1px solid rgba(0, 242, 254, 0.25) !important;
    box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.05), 0 0 15px rgba(0, 242, 254, 0.05) !important;
    transition: var(--transition);
    gap: 12px;
    animation: timerPulse 2s infinite alternate;
}

@keyframes timerPulse {
    0% { border-color: rgba(0, 242, 254, 0.2); box-shadow: 0 0 5px rgba(0, 242, 254, 0.05); }
    100% { border-color: rgba(0, 242, 254, 0.4); box-shadow: 0 0 15px rgba(0, 242, 254, 0.15); }
}

.timer-card .timer-label {
    font-size: 0.68rem !important;
    color: var(--text-muted) !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    font-family: var(--font-heading) !important;
    text-transform: uppercase !important;
}

.timer-card .timer-seconds {
    font-family: var(--font-heading) !important;
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: var(--secondary) !important;
    text-shadow: var(--shadow-cyan) !important;
    margin: 0 !important;
    line-height: 1 !important;
    min-width: 38px !important;
    text-align: center !important;
}

/* ==========================================
 * COLLAPSIBLE SIDEBAR DROPDOWN SYSTEM
 * ========================================== */
.sidebar-dropdown {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dropdown-toggle-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 2px;
}

.dropdown-toggle-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.dropdown-toggle-btn.active {
    color: var(--secondary);
    background: rgba(0, 242, 254, 0.03);
    border-left: 2px solid var(--secondary);
    border-radius: 0 8px 8px 0;
    padding-left: 14px;
}

.dropdown-chevron {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.sidebar-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
    color: var(--secondary);
}

.dropdown-menu-items {
    display: none;
    flex-direction: column;
    padding-left: 15px;
    gap: 4px;
    border-left: 1px dashed rgba(0, 242, 254, 0.15);
    margin-left: 22px;
    margin-top: 2px;
    margin-bottom: 6px;
}

.sidebar-dropdown.open .dropdown-menu-items {
    display: flex;
}

.dropdown-menu-items .nav-item {
    font-size: 0.85rem;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 0;
}

.dropdown-menu-items .nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.dropdown-menu-items .nav-item.active {
    background: rgba(0, 242, 254, 0.04);
    color: var(--secondary);
    border-left: none;
    box-shadow: none;
}

/* ==========================================
 * CYBERPUNK AUTO FAUCET ENGINE STYLES
 * ========================================== */

.autofaucet-energy-ring {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.energy-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 6;
}

.ring-fg {
    fill: none;
    stroke: var(--secondary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 8px var(--secondary-glow));
    transition: stroke-dashoffset 1s linear;
}

.ring-glow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.ring-timer {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    text-shadow: var(--shadow-cyan);
    line-height: 1;
}

.ring-caption {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    animation: textPulse 2s infinite;
}

.boost-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.btn-boost {
    flex: 1 1 auto;
    min-width: 80px;
    max-width: 130px;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    text-align: center;
    white-space: nowrap;
}

.btn-boost.active {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: var(--shadow-neon) !important;
}

.autofaucet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 6, 11, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
}

.focus-alert-card {
    max-width: 380px;
    width: 90%;
    padding: 30px;
    text-align: center;
    border-color: var(--danger) !important;
    box-shadow: var(--shadow-pulse-red) !important;
    background: rgba(16, 17, 30, 0.9) !important;
}

.focus-alert-card .alert-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 12px;
    animation: shadowPulseRed 1.5s infinite;
}

.focus-alert-card h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.focus-alert-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
}

.focus-alert-card .action-hint {
    font-size: 0.8rem;
    color: var(--danger);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: textPulse 1.5s infinite;
}

@keyframes textPulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes shadowPulseRed {
    0% { filter: drop-shadow(0 0 2px rgba(255, 0, 85, 0.2)); }
    50% { filter: drop-shadow(0 0 15px rgba(255, 0, 85, 0.6)); }
    100% { filter: drop-shadow(0 0 2px rgba(255, 0, 85, 0.2)); }
}

/* FCT Points top navbar adjustment */
.fct-points-card .balance-amount {
    color: var(--secondary) !important;
    text-shadow: var(--shadow-cyan);
}


/* ==========================================================================
   SHORTLINKS ANALYTICS STYLING & MOBILE RESPONSIVENESS OVERRIDES
   ========================================================================== */
.analytics-card {
    padding: 25px;
    margin-bottom: 30px;
}

.click-stream-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 5px;
}

.click-stream-item {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 3px solid var(--primary);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 8px;
    gap: 15px;
    transition: var(--transition);
}

.click-stream-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.click-stream-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.click-stream-email {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.click-stream-sponsor {
    font-size: 0.8rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.click-stream-sponsor-name {
    color: var(--primary);
    font-weight: 600;
}

.click-stream-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.click-stream-points {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--success);
    text-shadow: var(--shadow-green);
}

.click-stream-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* UX: Prevent cell wrapping on desktop & enable horizontal scroll layout cleanly */
.table-container table th, 
.table-container table td {
    white-space: nowrap;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .analytics-card {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .click-stream-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .click-stream-meta {
        text-align: left;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: 1px dashed rgba(255, 255, 255, 0.05);
        padding-top: 8px;
    }
    
    .click-stream-email {
        font-size: 0.9rem;
    }
    
    .card-header {
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-start;
    }
    
    .card-header > div {
        min-width: 100%;
    }
    
    .card-header h2 {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   AUTO FAUCET RESPONSIVENESS OVERRIDES
   ========================================================================== */
.autofaucet-card {
    padding: 25px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.autofaucet-title {
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .autofaucet-card {
        padding: 15px !important;
    }
    
    .autofaucet-title {
        font-size: 1.15rem !important;
        margin-bottom: 15px;
    }

    .boost-container {
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center;
    }

    .boost-container .btn-boost {
        flex: 1 1 calc(50% - 8px);
        font-size: 0.8rem !important;
        padding: 8px 10px !important;
        min-width: 100px;
    }

    .value-badge {
        padding: 10px 12px !important;
    }

    .value-badge .val-num {
        font-size: 1.1rem !important;
    }

    .value-badge span[style*="font-size: 1.8rem"] {
        font-size: 1.4rem !important;
    }
}

/* Admin Settings Form Responsive Layout */
#admin-settings-form {
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#admin-settings-form .form-group-full {
    grid-column: 1 / -1;
}

#admin-settings-form .form-actions {
    grid-column: 1 / -1;
    text-align: right;
}

@media (max-width: 768px) {
    #admin-settings-form {
        grid-template-columns: 1fr;
        padding: 20px 15px;
        gap: 15px;
    }
}

/* Dice Game Offline Glassmorphic Card styles */
.dice-offline-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 480px;
    padding: 20px;
}

.dice-offline-card {
    max-width: 480px;
    width: 100%;
    padding: 40px 30px;
    text-align: center;
    border-color: var(--danger) !important;
    box-shadow: var(--shadow-pulse-red) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.dice-offline-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 0 12px rgba(255, 0, 85, 0.45));
    animation: alertPulse 2s infinite;
}

.dice-offline-title {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.8rem;
    margin: 0;
    text-shadow: var(--shadow-pulse-red);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dice-offline-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    max-width: 380px;
}

.glowing-btn-red {
    border-color: var(--danger) !important;
    color: #fff !important;
    background: rgba(255, 0, 85, 0.1) !important;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.2);
}

.glowing-btn-red:hover {
    background: rgba(255, 0, 85, 0.2) !important;
    box-shadow: var(--shadow-pulse-red) !important;
}

@media (max-width: 480px) {
    .dice-offline-container {
        min-height: 380px;
        padding: 10px;
    }
    
    .dice-offline-card {
        padding: 30px 15px;
        gap: 15px;
    }
    
    .dice-offline-icon {
        font-size: 3rem;
    }
    
    .dice-offline-title {
        font-size: 1.5rem;
    }
    
    .dice-offline-text {
        font-size: 0.85rem;
    }
}

/* ==========================================
 * CYBERPUNK THEME ENGINE OVERRIDES
 * ========================================== */
:root.theme-emerald {
    --primary: #00ff87;
    --primary-glow: rgba(0, 255, 135, 0.35);
    --secondary: #00d2ff;
    --secondary-glow: rgba(0, 210, 255, 0.25);
    --border-accent: rgba(0, 255, 135, 0.12);
    --gradient-primary: linear-gradient(135deg, #00ff87 0%, #00d2ff 100%);
    --gradient-glow: linear-gradient(90deg, #00ff87, #00d2ff, #00ff87);
}
:root.theme-ruby {
    --primary: #ff0055;
    --primary-glow: rgba(255, 0, 85, 0.35);
    --secondary: #ff9f00;
    --secondary-glow: rgba(255, 159, 0, 0.25);
    --border-accent: rgba(255, 0, 85, 0.12);
    --gradient-primary: linear-gradient(135deg, #ff0055 0%, #ff9f00 100%);
    --gradient-glow: linear-gradient(90deg, #ff0055, #ff9f00, #ff0055);
}
:root.theme-aurum {
    --primary: #ffd700;
    --primary-glow: rgba(255, 215, 0, 0.35);
    --secondary: #ff5e00;
    --secondary-glow: rgba(255, 94, 0, 0.25);
    --border-accent: rgba(255, 215, 0, 0.12);
    --gradient-primary: linear-gradient(135deg, #ffd700 0%, #ff5e00 100%);
    --gradient-glow: linear-gradient(90deg, #ffd700, #ff5e00, #ffd700);
}
:root.theme-frost {
    --primary: #00f2fe;
    --primary-glow: rgba(0, 242, 254, 0.35);
    --secondary: #9d4edd;
    --secondary-glow: rgba(157, 78, 221, 0.25);
    --border-accent: rgba(0, 242, 254, 0.12);
    --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #9d4edd 100%);
    --gradient-glow: linear-gradient(90deg, #00f2fe, #9d4edd, #00f2fe);
}

/* Theme Option Selection Grid Styling */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.theme-option-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.theme-option-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-2px);
}

.theme-option-card.active {
    border-color: var(--primary) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: 0 0 15px var(--primary-glow) !important;
}

.theme-color-bubbles {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

.color-bubble {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.theme-option-card .theme-name {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.theme-option-card.active .theme-name {
    color: #fff;
    text-shadow: 0 0 8px var(--primary-glow);
}

/* ==========================================
 * PORTABLE RESPONSIVE PROFILE INTERFACES
 * ========================================== */

.profile-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.profile-custom-security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    align-items: start;
}

.profile-referral-stats-row {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
    padding-top: 15px;
}

.profile-referral-stat-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    min-width: 0;
}

.profile-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: block;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-stat-val {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    display: block;
    margin-top: 2px;
}

.profile-stat-val.val-white {
    color: #fff;
}

.profile-stat-val.val-green {
    color: var(--success);
    text-shadow: var(--shadow-green);
}

.profile-performance-board {
    padding: 25px;
    border-color: var(--border-glow);
    background: rgba(0, 0, 0, 0.1);
}

.profile-board-title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 15px;
}

.profile-performance-card {
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: var(--transition);
}

.profile-performance-card.card-faucet {
    background: rgba(0, 255, 135, 0.02);
    border: 1px solid rgba(0, 255, 135, 0.08);
}
.profile-performance-card.card-ptc {
    background: rgba(0, 242, 254, 0.02);
    border: 1px solid rgba(0, 242, 254, 0.08);
}
.profile-performance-card.card-shortlinks {
    background: rgba(255, 0, 85, 0.02);
    border: 1px solid rgba(255, 0, 85, 0.08);
}
.profile-performance-card.card-dice {
    background: rgba(127, 0, 255, 0.02);
    border: 1px solid rgba(127, 0, 255, 0.08);
}

.performance-icon {
    font-size: 1.7rem;
    display: block;
    margin-bottom: 5px;
}

.performance-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: block;
    text-transform: uppercase;
    font-weight: 600;
}

.performance-count {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: #fff;
    display: block;
    margin-top: 2px;
}

.performance-earned {
    font-size: 0.75rem;
    font-weight: 700;
    display: block;
}

.performance-earned.profit-positive {
    color: var(--success);
    text-shadow: var(--shadow-green);
}

.performance-earned.profit-negative {
    color: var(--danger) !important;
    text-shadow: none !important;
}

/* Portable Mobile Adaptations (320px - 480px) */
@media (max-width: 768px) {
    .profile-overview-grid,
    .profile-custom-security-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .profile-overview-grid,
    .profile-custom-security-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .profile-referral-stats-row {
        gap: 10px;
        padding-top: 12px;
        margin-top: 12px;
    }

    .profile-referral-stat-item {
        padding: 8px 5px;
    }

    .profile-stat-val {
        font-size: 1rem;
    }

    .profile-performance-board {
        padding: 15px !important;
    }

    .profile-performance-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) !important;
        gap: 10px !important;
    }

    .profile-performance-card {
        padding: 12px 8px !important;
    }

    .performance-icon {
        font-size: 1.4rem;
    }

    .performance-count {
        font-size: 0.95rem;
    }

    .theme-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) !important;
        gap: 10px !important;
    }

    .theme-option-card {
        padding: 12px 8px !important;
        gap: 6px !important;
    }

    .color-bubble {
        width: 12px !important;
        height: 12px !important;
    }
}

/* Dashboard Responsive Design Enhancements */
.dashboard-card {
    padding: 25px;
}

@media (max-width: 480px) {
    .dashboard-card {
        padding: 15px !important;
    }
    
    .dashboard-welcome-ticker {
        padding: 12px 15px !important;
    }
    
    .dashboard-welcome-ticker div:first-child {
        font-size: 0.85rem !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    
    .dashboard-welcome-ticker div:first-child span[style*="font-size: 1.1rem"],
    .dashboard-welcome-ticker div:first-child span[style*="font-size:1.1rem"] {
        font-size: 0.85rem !important;
    }
    
    .dashboard-card-title-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
        font-size: 1.1rem !important;
    }
    
    .dashboard-progress-label-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 4px;
    }
    
    .stat-grid {
        gap: 12px !important;
    }
    
    .stat-card {
        padding: 15px !important;
    }
    
    .stat-card .stat-info p {
        font-size: 1.45rem !important; /* Scale down the inline font-size of 2.1rem values */
    }
    
    .stat-card span[style*="font-size: 2.2rem"],
    .stat-card span[style*="font-size:2.2rem"] {
        font-size: 1.7rem !important; /* Scale down stats card emojis */
    }
}

@media (max-width: 360px) {
    .dashboard-ref-copy-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .dashboard-ref-copy-row button {
        padding: 10px !important;
        width: 100%;
    }
}

/* Custom Premium Status Dot */
.status-indicator-dot {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #00ff87 0%, #00b35c 100%);
    border-radius: 50%;
    display: inline-block;
    filter: drop-shadow(0 0 6px rgba(0, 255, 135, 0.8));
    animation: indicatorGreenPulse 2s infinite alternate;
}

@keyframes indicatorGreenPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
        filter: drop-shadow(0 0 3px rgba(0, 255, 135, 0.6));
    }
    100% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 9px rgba(0, 255, 135, 1));
    }
}

/* ==========================================
 * HIGH-FIDELITY CYBERPUNK LANDING STYLES
 * ========================================== */

.landing-wrapper {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow-x: hidden;
    background-color: var(--bg-darker);
    display: flex;
    flex-direction: column;
}

/* Ambient glow bubbles in background */
.landing-glow {
    position: absolute;
    top: 5%;
    left: 10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(127, 0, 255, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.landing-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
    pointer-events: none;
    z-index: 0;
}

/* Floating Glassmorphic Navigation Bar */
.landing-nav {
    position: fixed;
    top: 20px;
    left: 5%;
    right: 5%;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    background: rgba(10, 11, 22, 0.7);
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.nav-stats {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-stat-item {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.stat-lbl {
    color: var(--text-muted);
    margin-right: 6px;
    font-weight: 700;
}

.nav-stat-item strong {
    color: #fff;
    font-weight: 800;
}

/* Interactive Landing features & cards */
.feature-card {
    transition: var(--transition);
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(10, 11, 22, 0.6) !important;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-glow);
    box-shadow: var(--shadow-neon);
}

.feature-card:hover .feat-icon-wrap {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.feat-icon-wrap {
    transition: var(--transition);
}

/* Roadmaps & Timeline */
.roadmap-timeline .roadmap-item {
    transition: var(--transition);
    background: rgba(10, 11, 22, 0.5) !important;
}

.roadmap-timeline .roadmap-item:hover {
    border-color: var(--secondary-glow);
    box-shadow: var(--shadow-cyan);
    transform: translateY(-5px);
}

/* Accordion FAQs */
.accordion-item {
    border-color: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.accordion-item.active {
    border-color: var(--secondary-glow);
    box-shadow: var(--shadow-cyan);
}

.accordion-header:hover {
    color: var(--secondary);
}

.accordion-arrow {
    transition: var(--transition);
}

.accordion-item.active .accordion-arrow {
    color: var(--secondary);
}

/* Fluid Landing Responsive Overrides */
@media (max-width: 991px) {
    .landing-hero {
        flex-direction: column !important;
        padding-top: 140px !important;
        text-align: center !important;
        gap: 30px !important;
    }
    
    .hero-content {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
    }
    
    .hero-widget {
        width: 100% !important;
        max-width: 500px;
    }
}

@media (max-width: 767px) {
    .landing-nav {
        padding: 10px 20px !important;
        border-radius: 20px !important;
        top: 10px !important;
    }
    
    .hide-mobile {
        display: none !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    
    .roadmap-timeline {
        grid-template-columns: 1fr !important;
    }
    
    .landing-features, .landing-roadmap, .landing-faq {
        padding: 50px 5% !important;
    }
    
    .section-title {
        font-size: 1.6rem !important;
    }
    
    .landing-cta h2 {
        font-size: 1.6rem !important;
    }
}

/* Specific route classes to force visibility pre-flicker */
html.route-landing #landing-container {
    display: flex !important;
}

html.route-auth #auth-container {
    display: flex !important;
}

/* High-Fidelity Cyberpunk Diagnostics Console Telemetry */
.telemetry-card {
    background: #090a10 !important;
    border: 1px solid rgba(0, 242, 254, 0.25) !important;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.08) !important;
    position: relative;
    overflow: hidden;
    font-family: 'Outfit', 'Rajdhani', sans-serif;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.telemetry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
    opacity: 0.4;
    z-index: 1;
}

.telemetry-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 15px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.telemetry-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.telemetry-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.telemetry-dot.red {
    background: #ff5f56;
    box-shadow: 0 0 8px #ff5f56;
}

.telemetry-dot.yellow {
    background: #ffbd2e;
    box-shadow: 0 0 8px #ffbd2e;
}

.telemetry-dot.green {
    background: #27c93f;
    box-shadow: 0 0 8px #27c93f;
}

.telemetry-title {
    color: #526075;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
}

.telemetry-body {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
    z-index: 2;
    padding: 5px 0;
}

.telemetry-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.telemetry-label {
    color: #4c5a6e;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.telemetry-value {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.telemetry-value.cyan {
    color: #00f2fe;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.45);
}

.telemetry-value.green {
    color: #00ff87;
    text-shadow: 0 0 10px rgba(0, 255, 135, 0.45);
}

.telemetry-value.white {
    color: #ffffff;
}

@media (max-width: 480px) {
    .telemetry-card {
        padding: 20px 15px;
        border-radius: 16px;
    }
    .telemetry-header {
        gap: 10px;
        padding-bottom: 10px;
        margin-bottom: 18px;
    }
    .telemetry-body {
        gap: 16px;
    }
    .telemetry-label {
        font-size: 0.72rem;
        letter-spacing: 0.5px;
    }
    .telemetry-value {
        font-size: 0.8rem;
    }
}

/* Responsive adjustments for Sponsored Feature Card */
.sponsored-feature-card {
    grid-column: span 2 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    border-color: rgba(0, 242, 254, 0.18) !important;
    box-shadow: 0 4px 25px rgba(0, 242, 254, 0.05) !important;
}

@media (max-width: 991px) {
    .sponsored-feature-card {
        grid-column: 1 / -1 !important;
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        padding: 30px 20px !important;
    }
    
    .sponsored-feature-card > div {
        align-items: center !important;
        text-align: center !important;
    }
}

/* Administrator Coin Toggles Panel */
.admin-coin-toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.admin-coin-toggle-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.admin-coin-toggle-card.enabled {
    border-color: var(--success-glow);
    background: rgba(0, 255, 135, 0.02);
}

.admin-coin-toggle-card.disabled {
    border-color: var(--danger-glow);
    background: rgba(255, 0, 85, 0.01);
    opacity: 0.6;
}

.admin-coin-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-coin-info img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.admin-coin-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

/* Custom CSS switch toggle slider */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

input:checked + .slider-round {
    background-color: var(--success);
    box-shadow: 0 0 10px var(--success-glow);
}

input:checked + .slider-round:before {
    transform: translateX(22px);
}

/* Disabled styling on Frontend grid */
.coin-card.coin-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: rgba(255, 0, 85, 0.1) !important;
    background: rgba(255, 0, 85, 0.01) !important;
    transform: none !important;
    box-shadow: none !important;
}

.coin-card.coin-disabled:hover {
    transform: none !important;
    border-color: rgba(255, 0, 85, 0.2) !important;
    background: rgba(255, 0, 85, 0.02) !important;
}

/* ==========================================
 * WEB MINER TERMINAL STYLES
 * ========================================== */

.miner-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.miner-control-panel {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.miner-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.miner-control-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.miner-control-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 80px;
}

.miner-thread-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--secondary);
    background: rgba(0, 242, 254, 0.08);
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.miner-thread-btn:hover {
    background: rgba(0, 242, 254, 0.2);
    box-shadow: var(--shadow-cyan);
    transform: scale(1.1);
}

.miner-thread-btn:active {
    transform: scale(0.95);
}

.miner-thread-count {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    min-width: 30px;
    text-align: center;
}

.miner-throttle-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 160px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    cursor: pointer;
}

.miner-throttle-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: var(--shadow-cyan);
    cursor: pointer;
    transition: var(--transition);
}

.miner-throttle-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px var(--secondary-glow);
}

.miner-throttle-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: var(--shadow-cyan);
    cursor: pointer;
    border: none;
}

.miner-throttle-value {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    min-width: 45px;
    text-align: right;
}

.miner-btn-start {
    background: linear-gradient(135deg, #00ff87 0%, #00f2fe 100%);
    color: #050610;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(0, 255, 135, 0.3);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.miner-btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(0, 255, 135, 0.5);
}

.miner-btn-start:active {
    transform: translateY(0);
}

.miner-btn-stop {
    background: linear-gradient(135deg, #ff0055 0%, #ff4444 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.3);
    text-transform: uppercase;
    animation: miningPulse 2s infinite;
}

.miner-btn-stop:hover {
    box-shadow: 0 0 35px rgba(255, 0, 85, 0.5);
}

.miner-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.miner-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.miner-progress-bar.active .miner-progress-fill {
    width: 100%;
    background: repeating-linear-gradient(
        -45deg,
        var(--secondary),
        var(--secondary) 10px,
        rgba(0, 242, 254, 0.5) 10px,
        rgba(0, 242, 254, 0.5) 20px
    );
    background-size: 200% 100%;
    animation: miningStripes 1s linear infinite;
}

.miner-info-card {
    padding: 20px;
    border: 1px dashed rgba(0, 242, 254, 0.15);
    border-radius: 10px;
    background: rgba(0, 242, 254, 0.02);
}

.miner-info-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.miner-info-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.miner-info-card li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-left: 18px;
    position: relative;
}

.miner-info-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

.miner-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.miner-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.miner-status-dot.active {
    background: var(--success);
    box-shadow: var(--shadow-green);
    animation: pulse 1.5s infinite;
}

.miner-status-dot.idle {
    background: var(--text-muted);
}

@keyframes miningPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 85, 0.3); }
    50% { box-shadow: 0 0 35px rgba(255, 0, 85, 0.6); }
}

@keyframes miningStripes {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

/* Miner responsive */
@media (max-width: 768px) {
    .miner-stat-grid {
        grid-template-columns: 1fr;
    }
    
    .miner-controls-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .miner-control-group {
        justify-content: space-between;
    }
    
    .miner-throttle-slider {
        width: 100%;
        flex: 1;
    }
}

/* ==========================================
 * Auth Form Input Icons & Google OAuth
 * ========================================== */

/* Auth Form Input Icons */
.input-icon-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-group .input-icon {
    position: absolute;
    left: 14px;
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.input-icon-group input {
    padding-left: 42px !important;
    width: 100%;
}

.input-icon-group:focus-within .input-icon {
    opacity: 1;
}

.input-hint {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
    padding-left: 2px;
    letter-spacing: 0.3px;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* Google Sign-In Button Container */
.google-btn-container {
    display: flex;
    justify-content: center;
    min-height: 44px;
    width: 100%;
}

.google-btn-container > div {
    width: 100% !important;
}

.google-btn-container iframe {
    margin: 0 auto;
}
