:root { --bg-dark: #0d1117; --card-bg: rgba(200, 210, 220, 0.05); --text-main: #ffffff; --text-dim: #94a3b8; --brand-blue: #00E1D9; --success: #00FF88; --warning: #F5D020; --danger: #FF0055; --purple: #B026FF; }
* { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background-color: var(--bg-dark); background-image: radial-gradient(at 0% 0%, rgba(255, 255, 255, 0.03) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(0, 225, 217, 0.05) 0px, transparent 50%); background-attachment: fixed; color: var(--text-main); margin: 0; padding: 0; overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; }
.main-content { flex-grow: 1; width: 100%; transition: margin-left 0.3s; } .app-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: rgba(13, 17, 23, 0.8); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 90; border-bottom: 1px solid rgba(255,255,255,0.05); }
.logo { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; text-shadow: 0 0 10px rgba(0, 225, 217, 0.5); } .logo i { color: var(--brand-blue); }
.lang-btn { background: transparent; border: 1px solid var(--text-dim); color: var(--text-dim); padding: 5px 10px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 12px; transition: 0.3s; } .lang-btn:hover { color: var(--text-main); border-color: var(--text-main); }
.main-nav { background: rgba(13, 17, 23, 0.9); backdrop-filter: blur(12px); z-index: 100; transition: 0.3s; } .nav-brand { display: none; } .nav-item { background: none; border: none; color: var(--text-dim); cursor: pointer; display: flex; align-items: center; transition: 0.3s; }
.ai-feed-container { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 20px; font-family: 'Courier New', Courier, monospace; font-size: 13px; color: var(--brand-blue); height: 180px; overflow-y: auto; margin-top: 20px; box-shadow: inset 0 0 20px rgba(0,0,0,0.5);} .ai-feed-container p { margin: 5px 0; border-left: 2px solid var(--brand-blue); padding-left: 10px;} .ai-feed-container .critic { color: var(--danger); border-color: var(--danger); } .ai-feed-container .opp { color: var(--warning); border-color: var(--warning); } .ai-feed-container .act { color: var(--success); border-color: var(--success); }
.pulse-indicator { display: inline-block; width: 8px; height: 8px; background-color: var(--success); border-radius: 50%; box-shadow: 0 0 8px var(--success); animation: pulse 1.5s infinite; margin-right: 5px; } @keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); } }
@media (max-width: 768px) { body { padding-bottom: 70px; } .main-nav { position: fixed; bottom: 0; left: 0; width: 100%; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-around; padding: 10px 0; } .nav-item { flex-direction: column; font-size: 22px; padding: 5px 20px; gap: 4px; } .nav-item span { font-size: 10px; font-weight: 600; } .nav-item.active { color: var(--brand-blue); text-shadow: 0 0 10px var(--brand-blue); } .desktop-logout { display: none !important; } }
@media (min-width: 769px) { body { flex-direction: row; padding-bottom: 0; } .top-bar { border: none; border-bottom: 1px solid rgba(255,255,255,0.05); } .top-bar .logo { display: none; } .main-nav { position: fixed; top: 0; left: 0; width: 240px; height: 100vh; border-right: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; padding: 30px 15px; align-items: flex-start; } .nav-brand { display: flex !important; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; margin-bottom: 40px; padding-left: 10px; text-shadow: 0 0 10px rgba(0, 225, 217, 0.5); } .nav-brand i { color: var(--brand-blue); } .nav-item { flex-direction: row; font-size: 15px; width: 100%; padding: 15px 20px; margin-bottom: 10px; border-radius: 12px; gap: 15px; font-weight: 600;} .nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text-main); } .nav-item.active { background: rgba(0, 225, 217, 0.1); color: var(--brand-blue); border-left: 3px solid var(--brand-blue); border-radius: 4px 12px 12px 4px; text-shadow: 0 0 10px rgba(0, 225, 217, 0.4);} .main-content { margin-left: 240px; width: calc(100% - 240px); } .app-container { padding: 40px; } }
.glass-card { background: var(--card-bg); backdrop-filter: blur(25px); border: 1px solid rgba(255,255,255,0.1); border-top: 1px solid rgba(255,255,255,0.2); border-left: 1px solid rgba(255,255,255,0.15); border-radius: 24px; padding: 30px; box-shadow: 0 20px 40px -15px rgba(0,0,0,0.5); }
.auth-input, .auth-select { width: 100%; padding: 14px 18px; margin-bottom: 15px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: white; outline: none; font-size: 15px; transition: 0.3s;} .auth-input:focus, .auth-select:focus { border-color: var(--brand-blue); box-shadow: 0 0 10px rgba(0, 225, 217, 0.3); } .auth-select option { background: #0d1117; color: white; }
.auth-btn { width: 100%; padding: 15px; background: linear-gradient(135deg, var(--brand-blue), #0284c7); color: white; border: none; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; transition: 0.3s; margin-bottom: 10px; box-shadow: 0 4px 15px rgba(0, 225, 217, 0.3);} .auth-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 225, 217, 0.5); } .auth-btn-alt { background: transparent; border: 1px solid var(--text-dim); color: var(--text-dim); box-shadow: none; }
#landing-view { text-align: center; padding: 4vw 20px; } 
.hero-badge { display: inline-block; padding: 6px 16px; background: rgba(0, 225, 217, 0.1); color: var(--brand-blue); border: 1px solid rgba(0, 225, 217, 0.3); border-radius: 20px; font-size: 12px; font-weight: 800; letter-spacing: 1px; margin-bottom: 20px; text-transform: uppercase; }
.hero-title { font-size: clamp(32px, 5vw, 56px); font-weight: 800; margin-bottom: 20px; background: linear-gradient(to right, #fff, #94a3b8); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; } 
.hero-subtitle { font-size: clamp(16px, 2vw, 20px); color: var(--text-dim); line-height: 1.6; max-width: 700px; margin: 0 auto 50px auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-bottom: 60px; justify-content: center; text-align: center;} 
.feature-card i { font-size: 36px; color: var(--brand-blue); margin-bottom: 20px; display: inline-block; padding: 15px; background: rgba(0, 225, 217, 0.1); border-radius: 12px; text-shadow: 0 0 15px var(--brand-blue);}
.pricing-section { margin-top: 80px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); } 
.pricing-header { margin-bottom: 40px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; max-width: 900px; margin: 0 auto 60px auto; justify-content: center; align-items: start; } 
.pricing-card { position: relative; padding: 40px 30px; border-radius: 20px; background: var(--card-bg); border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(16px); display: flex; flex-direction: column; align-items: center; text-align: left; } 
.pricing-card.premium { border-color: var(--purple); box-shadow: 0 10px 40px rgba(176, 38, 255, 0.15); background: linear-gradient(180deg, rgba(176, 38, 255, 0.05) 0%, rgba(0,0,0,0) 100%); } 
.pricing-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--purple), var(--brand-blue)); color: white; padding: 6px 16px; border-radius: 20px; font-size: 11px; font-weight: 800; letter-spacing: 1px; box-shadow: 0 0 15px rgba(176, 38, 255, 0.4);} 
.pricing-title { font-size: 22px; font-weight: 800; margin: 0; width: 100%; text-align: center; } 
.pricing-price { font-size: 42px; font-weight: 800; margin: 15px 0 25px 0; color: white; width: 100%; text-align: center; } 
.pricing-price span { font-size: 14px; color: var(--text-dim); font-weight: 500; } 
.pricing-list { list-style: none; padding: 0; margin: 0 0 30px 0; width: 100%; } 
.pricing-list li { margin-bottom: 15px; font-size: 14px; display: flex; align-items: flex-start; gap: 12px; color: var(--text-main); } 
.pricing-list li i { color: var(--success); font-size: 16px; margin-top: 2px;} 
.pricing-list li i.fa-xmark { color: var(--danger); opacity: 0.4; }
.pricing-list li.disabled { color: var(--text-dim); text-decoration: line-through; opacity: 0.6; }
.legal-footer { margin-top: 80px; padding: 40px 20px; border-top: 1px solid rgba(255,255,255,0.05); text-align: left; background: rgba(0,0,0,0.4); border-radius: 20px; }
.legal-footer h4 { color: var(--text-dim); font-size: 14px; margin-top: 0; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.legal-footer p { color: var(--text-dim); font-size: 12px; line-height: 1.6; margin-bottom: 15px; text-align: justify; }
.legal-footer strong { color: #fff; }
.alert-badge { display: none; padding: 12px 20px; border-radius: 8px; font-weight: 700; margin-bottom: 20px; font-size: 13px; text-align: left; border: 1px solid;} .alert-demo { background: rgba(245, 208, 32, 0.15); border-color: var(--warning); color: var(--warning); }
.power-flow-container { width: 100%; overflow-x: auto; padding: 20px 0 40px 0; } .power-flow-wrapper { position: relative; min-width: 950px; height: 700px; margin: 0 auto; overflow: visible; padding: 0; } .pf-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; } .flow-line { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 4; stroke-linecap: round; } .flow-animated { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 6 12; animation: flowAnim 1s linear infinite; opacity: 0; transition: opacity 0.4s ease, stroke 0.4s ease; filter: drop-shadow(0px 0px 8px currentColor); } @keyframes flowAnim { from { stroke-dashoffset: 18; } to { stroke-dashoffset: 0; } } .flow-reverse { animation-direction: reverse; }
.pf-node { position: absolute; width: 160px; padding: 25px 15px; background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(0,0,0,0.5)); border: 1px solid rgba(255,255,255,0.1); border-top: 1px solid rgba(255,255,255,0.25); border-left: 1px solid rgba(255,255,255,0.15); border-radius: 20px; text-align: center; z-index: 2; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 15px 25px rgba(0,0,0,0.4); transition: all 0.3s ease; } .pf-node .icon { font-size: 28px; margin-bottom: 10px; text-shadow: 0 0 15px currentColor; } .pf-node .title { font-size: 11px; color: var(--text-dim); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; } .pf-node .value { font-size: 22px; font-weight: 800; margin-top: 5px; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.node-status { position: absolute; top: -10px; right: -10px; background: rgba(0,0,0,0.8); color: var(--success); font-size: 9px; font-weight: 800; padding: 4px 8px; border-radius: 12px; border: 1px solid var(--success); box-shadow: 0 0 10px rgba(0, 255, 136, 0.3); } .node-status.err { color: var(--danger); border-color: var(--danger); box-shadow: 0 0 10px rgba(255, 0, 85, 0.3); } .node-status.off { color: var(--text-dim); border-color: var(--text-dim); box-shadow: none; }
.node-solar { top: 10%; left: 50%; border-top: 2px solid var(--warning); } .node-solar .icon { color: var(--warning); } 
.node-grid { top: 50%; left: 10%; border-top: 2px solid var(--danger); } .node-grid .icon { color: var(--danger); } 
.node-home { top: 50%; left: 90%; border-top: 2px solid var(--brand-blue); } .node-home .icon { color: var(--brand-blue); } 
.node-batt { top: 90%; left: 50%; border-top: 2px solid var(--purple); } .node-batt .icon { color: var(--purple); } 
.node-inverter { top: 50%; left: 50%; width: 200px; border-top: 2px solid #fff; background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(0,0,0,0.7));} .node-inverter .icon { color: #fff; text-shadow: 0 0 15px #fff;} 
.node-gen { top: 15%; left: 20%; border-top: 2px solid #ff9800; } .node-gen .icon { color: #ff9800; text-shadow: 0 0 15px #ff9800;}
.status-badge { font-size: 11px; padding: 5px 12px; border-radius: 12px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); margin-top: 8px; display: inline-block; font-weight: 700;}
.finance-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 20px; } .finance-val { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-top: 8px; font-family: 'Courier New', monospace;} .chart-wrapper { position: relative; height: 300px; width: 100%; margin-top: 15px;}
.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; } .admin-table th, .admin-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05); } .admin-table th { background: rgba(255,255,255,0.05); color: var(--text-dim); text-transform: uppercase; font-size: 11px; font-weight: 800; } .plan-badge { padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; } .plan-premium { background: rgba(176, 38, 255, 0.2); color: #e9d5ff; } .plan-free { background: rgba(255, 255, 255, 0.1); color: var(--text-dim); } .action-btn { background: transparent; border: 1px solid var(--text-dim); color: var(--text-main); padding: 5px 10px; border-radius: 6px; cursor: pointer; font-size: 12px; margin-right: 5px; } .action-btn.del { border-color: var(--danger); color: var(--danger); } .action-btn:hover { background: rgba(255,255,255,0.1); }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 25px; } .report-card { padding: 20px; text-align: center; } .report-title { font-size:11px; color:var(--text-dim); font-weight:800; letter-spacing: 1px; } .report-value { font-size: 28px; font-weight: 800; margin-top: 8px; font-family: 'Courier New', monospace; }
.ev-card { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(90deg, rgba(0, 225, 217, 0.1) 0%, rgba(0,0,0,0.4) 100%); border: 1px solid rgba(0, 225, 217, 0.3); border-radius: 16px; padding: 20px; margin-top: 20px; backdrop-filter: blur(15px); } .ev-icon { font-size: 40px; color: var(--brand-blue); margin-right: 20px; text-shadow: 0 0 15px var(--brand-blue);} .ev-details { flex-grow: 1; }
.insight-card { padding: 20px; border-left: 4px solid var(--brand-blue); background: rgba(0,0,0,0.3); border-radius: 0 12px 12px 0; margin-bottom: 15px; } .insight-card.success { border-color: var(--success); } .insight-card.warning { border-color: var(--warning); } .insight-card.info { border-color: var(--purple); } .insight-title { font-size: 14px; font-weight: 800; margin-bottom: 8px; color: white;}