:root {
  --bg-dark: #060911; --bg-card: #0f172a; --bg-card-alt: #020814;
  --primary-cyan: #00e5ff; --primary-blue: #0078ff; --primary-sky: #38bdf8;
  --text-main: #cbd5e1; --text-muted: #94a3b8; --border-color: #1e293b; --border-bright: #334155;
  --accent-green: #22c55e; --accent-red: #ef4444; --z-header: 100; --z-modal: 999999; --z-callout: 9999999;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background-color: var(--bg-dark); color: var(--text-main); line-height: 1.6; overflow-x: hidden; position: relative; padding-bottom: 70px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }

@keyframes floatAnimation { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.5); border-color: rgba(248, 113, 113, 0.6); } 50% { box-shadow: 0 0 30px rgba(239, 68, 68, 0.9); border-color: rgba(255, 255, 255, 0.9); } }
@keyframes pulseQuoteGlow { 0%, 100% { box-shadow: 0 0 15px rgba(56, 189, 248, 0.4); border-color: rgba(56, 189, 248, 0.6); } 50% { box-shadow: 0 0 35px rgba(0, 229, 255, 0.9); border-color: rgba(0, 229, 255, 1); } }
@keyframes starGlow { 0%, 100% { text-shadow: 0 0 5px #fbbf24; } 50% { text-shadow: 0 0 15px #f59e0b, 0 0 25px #fbbf24; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes circularRotate { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.link-button { background: none; border: none; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; font-family: inherit; transition: all 0.3s ease; }
.link-button:hover { color: var(--primary-sky) !important; text-shadow: 0 0 10px rgba(56, 189, 248, 0.8); }
.btn-primary { background: linear-gradient(135deg, var(--primary-blue), #0284c7); color: #ffffff !important; padding: 10px 20px; border-radius: 8px; font-weight: 600; box-shadow: 0 4px 15px rgba(0, 120, 255, 0.4); border: none; cursor: pointer; transition: all 0.3s ease; display: inline-block; text-align: center; font-size: 13px; }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(0, 229, 255, 0.8) !important; }
.glowing-quote-btn { background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan)); color: #ffffff !important; padding: 12px 24px; border-radius: 10px; font-weight: 800; border: 2px solid var(--primary-sky); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; box-shadow: 0 0 20px rgba(0, 120, 255, 0.6); animation: floatAnimation 4s ease-in-out infinite, pulseQuoteGlow 3s infinite; transition: all 0.3s ease; }
.glowing-quote-btn:hover { transform: translateY(-3px) scale(1.05); background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue)); box-shadow: 0 0 35px rgba(0, 229, 255, 1); }
.promo-chip-btn { background: rgba(15, 23, 42, 0.9); border: 1px solid var(--primary-sky); color: var(--primary-sky); padding: 8px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 6px; }
.promo-chip-btn:hover { background: var(--primary-sky); color: var(--bg-dark); box-shadow: 0 0 15px rgba(56, 189, 248, 0.8); transform: translateY(-2px); }
.btn-promo-discount { background: linear-gradient(135deg, var(--primary-cyan), var(--primary-sky)) !important; color: var(--bg-dark) !important; font-weight: 800 !important; padding: 12px 22px; border-radius: 8px; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4); transition: all 0.3s ease; font-size: 14px; }
.btn-promo-consult { background: #ffffff !important; color: var(--bg-dark) !important; font-weight: 800 !important; padding: 12px 22px; border-radius: 8px; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3); transition: all 0.3s ease; font-size: 14px; }
.btn-secondary { background-color: rgba(15, 23, 42, 0.8); color: var(--text-main); border: 1px solid var(--border-bright); padding: 12px 26px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-size: 14px; }
.btn-secondary:hover { border-color: var(--primary-sky) !important; color: #ffffff !important; transform: translateY(-2px); box-shadow: 0 0 20px rgba(56, 189, 248, 0.5); }

header { background-color: rgba(6, 9, 17, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); position: sticky; top: 0; z-index: var(--z-header); }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 80px; gap: 15px; }
.header-left-cluster { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.site-search-box { display: flex; align-items: center; background: var(--bg-card-alt); border: 1px solid var(--border-bright); border-radius: 20px; padding: 4px 12px; width: 200px; transition: border-color 0.3s; }
.site-search-box:focus-within { border-color: var(--primary-sky); box-shadow: 0 0 10px rgba(56,189,248,0.3); }
nav > ul.desktop-nav-list { display: flex; list-style: none; gap: 14px; align-items: center; }
nav a, nav .dropdown-btn { font-size: 13px; font-weight: 600; color: var(--text-muted); transition: color 0.3s; background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 3px; }
nav a:hover, nav .dropdown-btn:hover { color: var(--primary-sky); text-shadow: 0 0 10px rgba(56, 189, 248, 0.6); }
.nav-dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--bg-card); border: 1px solid var(--border-bright); border-radius: 10px; padding: 8px 0; box-shadow: 0 15px 35px rgba(0,0,0,0.8); z-index: 1000; margin-top: 8px; }
.dropdown-menu::before { content: ""; position: absolute; top: -10px; left: 0; width: 100%; height: 10px; background: transparent; }
.nav-dropdown:hover .dropdown-menu { display: block; animation: fadeIn 0.2s ease-in-out; }
.dropdown-menu a, .dropdown-menu button { display: block; padding: 8px 16px; color: var(--text-main); font-size: 12px; text-align: left; width: 100%; transition: all 0.2s; background: none; border: none; cursor: pointer; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--border-color); color: var(--primary-sky); padding-left: 20px; }
.mobile-menu-toggle { display: none; background: var(--bg-card); border: 1px solid var(--primary-sky); color: var(--primary-sky); font-size: 22px; padding: 6px 12px; border-radius: 8px; cursor: pointer; box-shadow: 0 0 10px rgba(56,189,248,0.3); }
.mobile-dropdown-menu { display: none; position: absolute; top: 80px; right: 20px; background: var(--bg-card); border: 1px solid var(--primary-sky); border-radius: 12px; width: 260px; padding: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.9); z-index: 2000; }
.mobile-dropdown-menu.open { display: block; animation: fadeIn 0.2s ease-in-out; }
.mobile-dropdown-menu ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.mobile-dropdown-menu a, .mobile-dropdown-menu button { font-size: 13px; color: var(--text-main); background: none; border: none; cursor: pointer; text-align: left; width: 100%; font-weight: 600; }
.mobile-dropdown-menu a:hover, .mobile-dropdown-menu button:hover { color: var(--primary-sky); }
@media (max-width: 992px) { nav > ul.desktop-nav-list { display: none !important; } .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; } .site-search-box { width: 140px; } }
.brand-logo-container { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 42px; width: auto; object-fit: contain; transition: transform 0.3s ease; }
.logo-img:hover { transform: scale(1.05); }

.hero { position: relative; padding: 40px 0 30px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1.2fr 0.8fr; } }
.hero-title { font-size: 38px; font-weight: 900; color: #ffffff; line-height: 1.18; margin-bottom: 20px; }
.hero-title span { background: linear-gradient(135deg, var(--primary-sky), #60a5fa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 16px; color: var(--text-muted); margin-bottom: 30px; }
.engineer-card { padding: 30px; text-align: center; position: relative; background: var(--bg-card); border-radius: 16px; border: 1px solid var(--primary-sky); animation: floatAnimation 5s ease-in-out infinite, pulseGlow 4s infinite; transition: all 0.3s ease; }
.engineer-card:hover { border-color: var(--primary-cyan) !important; box-shadow: 0 0 45px rgba(0, 229, 255, 0.7) !important; }
.profile-img-container { width: 160px; height: 160px; margin: 0 auto 15px auto; position: relative; cursor: pointer; }
.profile-img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--primary-blue); object-fit: cover; box-shadow: 0 0 30px rgba(0, 120, 255, 0.5); transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.profile-img-container:hover .profile-img { transform: scale(1.1) rotate(4deg); border-color: var(--primary-sky) !important; box-shadow: 0 0 45px rgba(56, 189, 248, 0.9) !important; }
.gabby-welcome-sub { font-size: 13px; color: #4ade80; font-weight: 700; margin-top: 10px; background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); padding: 6px 12px; border-radius: 20px; display: inline-block; }
.live-status-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(34, 197, 94, 0.15); border: 1px solid var(--accent-green); color: #4ade80; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 15px; }
.pulse-dot { width: 8px; height: 8px; background: var(--accent-green); border-radius: 50%; box-shadow: 0 0 10px var(--accent-green); animation: pulseGlow 2s infinite; }
.promo-banner { background: linear-gradient(135deg, rgba(2, 132, 199, 0.25) 0%, rgba(15, 23, 42, 0.95) 100%); border: 1px solid rgba(56, 189, 248, 0.5); border-radius: 16px; padding: 30px; margin: 30px 0 50px 0; display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; box-shadow: 0 10px 30px rgba(0, 120, 255, 0.2); }
@media (min-width: 768px) { .promo-banner { flex-direction: row; justify-content: space-between; text-align: left; } }
.promo-tag { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--primary-sky); text-transform: uppercase; }
.promo-title { font-size: 24px; font-weight: 800; color: #ffffff; margin: 4px 0; }
.promo-desc { font-size: 14px; color: var(--text-main); }
.promo-action-group { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.brand-carousel-wrapper { position: relative; width: 100%; overflow: hidden; padding: 15px 0; margin: 20px 0; mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%); }
.brand-carousel-track { display: flex; gap: 20px; width: max-content; animation: circularRotate 28s linear infinite; }
.brand-carousel-track:hover { animation-play-state: paused; }
.brand-pill-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 50px; padding: 12px 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 170px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); transition: all 0.3s ease; cursor: default; user-select: none; }
.brand-pill-card:hover { border-color: var(--primary-cyan); transform: translateY(-3px) scale(1.05); box-shadow: 0 0 20px rgba(0, 229, 255, 0.3); background: var(--bg-card-alt); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 30px; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; position: relative; transition: all 0.3s ease; }
.pricing-card.featured { border-color: var(--primary-cyan); box-shadow: 0 0 30px rgba(0, 229, 255, 0.2); transform: scale(1.02); }
.pricing-card:hover { transform: translateY(-8px); border-color: var(--primary-sky); }
.pricing-badge { position: absolute; top: -12px; right: 20px; background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan)); color: #000; font-size: 10px; font-weight: 800; padding: 4px 12px; border-radius: 12px; text-transform: uppercase; }
.price-amount { font-size: 36px; font-weight: 900; color: #fff; font-family: monospace; margin: 15px 0 5px 0; }
.price-amount span { font-size: 14px; color: var(--text-muted); font-weight: normal; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service-card { background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 25px; transition: all 0.3s ease; display: block; cursor: pointer; position: relative; overflow: hidden; }
.service-card:hover { transform: translateY(-8px); border-color: var(--primary-sky) !important; box-shadow: 0 12px 30px rgba(0, 120, 255, 0.4) !important; }
.demo-hover-badge { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: bold; color: var(--primary-cyan); background: rgba(0, 229, 255, 0.1); border: 1px solid var(--primary-cyan); padding: 3px 8px; border-radius: 12px; }
.showcase-section-toggle { display: none; padding: 60px 0; background: rgba(15, 23, 42, 0.7); border-top: 1px solid var(--border-color); }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 25px; }
.showcase-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; transition: all 0.3s ease; }
.showcase-card:hover { border-color: var(--primary-cyan); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,229,255,0.2); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 30px; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 25px; position: relative; transition: all 0.3s ease; display: flex; flex-direction: column; justify-content: space-between; }
.testimonial-card:hover { transform: translateY(-8px); border-color: var(--primary-sky); box-shadow: 0 10px 30px rgba(0, 120, 255, 0.3); }
.rating-stars { color: #fbbf24; font-size: 18px; margin-bottom: 12px; animation: starGlow 3s infinite ease-in-out; }
.testimonial-quote { font-size: 14px; color: var(--text-main); font-style: italic; margin-bottom: 20px; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border-color); padding-top: 15px; }
.author-avatar { width: 45px; height: 48px; border-radius: 50%; border: 2px solid var(--primary-sky); object-fit: cover; }
.ad-slot-container { margin: 25px auto; text-align: center; background: rgba(15, 23, 42, 0.4); border: 1px dashed rgba(56, 189, 248, 0.3); border-radius: 8px; padding: 12px; overflow: hidden; }
.ad-label { font-size: 10px; color: #64748b; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; display: block; }

.wizard-progress-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; position: relative; }
.wizard-progress-line { position: absolute; top: 50%; left: 0; transform: translateY(-50%); height: 3px; background: var(--border-bright); width: 100%; z-index: 1; }
.wizard-progress-fill { position: absolute; top: 50%; left: 0; transform: translateY(-50%); height: 3px; background: var(--primary-cyan); width: 0%; z-index: 2; transition: width 0.4s ease; }
.wizard-step-node { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--border-bright); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px; color: var(--text-muted); z-index: 3; transition: all 0.3s ease; }
.wizard-step-node.active { border-color: var(--primary-cyan); background: var(--primary-cyan); color: #000; box-shadow: 0 0 15px rgba(0, 229, 255, 0.6); }
.wizard-step-node.completed { border-color: #22c55e; background: #22c55e; color: #000; }
.wizard-pane { display: none; animation: fadeIn 0.3s ease-in-out; }
.wizard-pane.active { display: block; }
.arch-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-bottom: 25px; }
.arch-select-card { background: var(--bg-dark); border: 2px solid var(--border-bright); border-radius: 12px; padding: 20px; cursor: pointer; transition: all 0.2s ease; position: relative; }
.arch-select-card:hover { border-color: var(--primary-sky); transform: translateY(-3px); }
.arch-select-card.selected { border-color: var(--primary-cyan); background: rgba(0, 229, 255, 0.08); box-shadow: 0 0 20px rgba(0, 229, 255, 0.2); }
.arch-card-title { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; }
.arch-card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.arch-badge { font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: bold; background: var(--border-color); color: var(--text-main); }
.arch-select-card.selected .arch-badge { background: var(--primary-cyan); color: #000; }
.proposal-summary-box { background: var(--bg-dark); border: 1px dashed var(--primary-sky); border-radius: 12px; padding: 25px; margin-bottom: 25px; text-align: left; font-family: monospace; font-size: 13px; color: var(--text-main); line-height: 2; }

.contact-card-wrapper { max-width: 750px; margin: 0 auto; background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 35px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: #e2e8f0; margin-bottom: 8px; }
.form-control { width: 100%; background-color: var(--bg-dark); border: 1px solid var(--border-bright); border-radius: 8px; padding: 12px 16px; color: #ffffff; font-size: 14px; transition: all 0.3s ease; }
.form-control:focus { outline: none; border-color: var(--primary-sky); box-shadow: 0 0 15px rgba(56, 189, 248, 0.4); }
.applied-badge { display: none; background: rgba(34, 197, 94, 0.15); border: 1px solid var(--accent-green); color: #4ade80; padding: 12px 16px; border-radius: 6px; font-size: 14px; font-weight: 700; margin-top: 12px; text-align: center; }
#payment-section { display: none; padding: 60px 0; background: rgba(15, 23, 42, 0.8); border-top: 1px solid var(--border-color); }
.payment-tabs { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; flex-wrap: wrap; }
.pay-tab { padding: 10px 18px; border-radius: 6px; background: var(--bg-dark); color: var(--text-muted); cursor: pointer; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-color); transition: all 0.3s ease; }
.pay-tab.active { background: var(--primary-blue); color: #fff; border-color: var(--primary-sky); box-shadow: 0 0 15px rgba(0, 120, 255, 0.4); }
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(3, 5, 10, 0.95); z-index: var(--z-modal); justify-content: center; align-items: center; padding: 20px; }
.modal-card { background: var(--bg-card); border: 1px solid var(--primary-sky); border-radius: 16px; padding: 35px; width: 100%; max-width: 800px; max-height: 88vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0, 120, 255, 0.4); position: relative; color: var(--text-main); }
#bottom-callout-bar { position: fixed; bottom: 0; left: 0; width: 100%; height: 46px; background: rgba(15, 23, 42, 0.98); backdrop-filter: blur(8px); border-top: 1px solid var(--primary-sky); z-index: var(--z-callout); padding: 0 20px; display: flex !important; justify-content: space-between; align-items: center; box-shadow: 0 -4px 20px rgba(0,0,0,0.6); }
.callout-left { position: relative; display: flex; align-items: center; gap: 10px; font-size: 13px; z-index: 10000000; cursor: pointer; }
.callout-right { display: flex; align-items: center; gap: 12px; }
.glowing-afterhours-btn { background: #dc2626; color: #ffffff; padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 800; cursor: pointer; border: 2px solid #fca5a5; box-shadow: 0 0 15px rgba(239, 68, 68, 0.8); animation: floatAnimation 4s ease-in-out infinite, pulseGlow 3s infinite; display: inline-flex; align-items: center; gap: 6px; transition: all 0.3s ease; }
.glowing-afterhours-btn:hover { transform: translateY(-2px) scale(1.04); background: #b91c1c; box-shadow: 0 0 25px rgba(239, 68, 68, 1); }
footer { background-color: #03050a; border-top: 1px solid var(--border-color); padding: 50px 0 25px 0; margin-top: 60px; position: relative; z-index: 10; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #ffffff; font-size: 16px; margin-bottom: 18px; font-weight: 700; }
.footer-col p, .footer-col ul { font-size: 14px; color: var(--text-muted); list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.social-links-grid { display: flex; gap: 10px; margin-top: 15px; align-items: center; flex-wrap: wrap; }
.social-icon-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border-bright); display: inline-flex; justify-content: center; align-items: center; transition: all 0.3s ease; color: var(--primary-sky); text-decoration: none; }
.social-icon-btn:hover { transform: translateY(-3px) scale(1.1); border-color: var(--primary-sky); box-shadow: 0 0 15px rgba(56, 189, 248, 0.6); background: var(--border-color); color: var(--primary-cyan); }
.social-icon-btn svg { width: 18px; height: 18px; fill: currentColor; display: block; }

.ladder-rung-line { position: relative; height: 4px; background: var(--border-bright); margin: 20px 0; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.ladder-rung-line.energized { background: var(--primary-cyan); box-shadow: 0 0 12px var(--primary-cyan); }
.plc-switch-btn { background: var(--bg-card); border: 2px solid var(--primary-sky); color: #fff; padding: 8px 14px; border-radius: 6px; font-family: monospace; cursor: pointer; transition: all 0.2s; font-size: 12px; z-index: 2; }
.plc-switch-btn.active { background: var(--accent-green); border-color: #4ade80; color: #000; font-weight: bold; box-shadow: 0 0 10px var(--accent-green); }
.plc-coil-box { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--border-bright); display: flex; align-items: center; justify-content: center; font-weight: bold; font-family: monospace; font-size: 12px; background: var(--bg-dark); z-index: 2; transition: all 0.3s; }
.plc-coil-box.active { border-color: var(--primary-cyan); background: var(--primary-cyan); color: #000; box-shadow: 0 0 20px var(--primary-cyan); }
.hmi-tank-bg { width: 100px; height: 160px; border: 3px solid var(--primary-sky); border-radius: 8px; background: var(--bg-card-alt); position: relative; overflow: hidden; margin: 0 auto; }
.hmi-water-level { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(0deg, var(--primary-blue), var(--primary-cyan)); transition: height 0.3s ease; }

.admin-header { background: var(--bg-card); border-bottom: 1px solid var(--border-color); padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; }
.admin-brand { display: flex; align-items: center; gap: 12px; }
.admin-logo { height: 38px; width: auto; object-fit: contain; }
.admin-layout { display: flex; flex-direction: column; min-height: calc(100vh - 70px); }
@media (min-width: 992px) { .admin-layout { flex-direction: row; } }
.admin-sidebar { width: 100%; background: var(--bg-card); border-right: 1px solid var(--border-color); padding: 15px; }
@media (min-width: 992px) { .admin-sidebar { width: 260px; flex-shrink: 0; } }
.admin-accordion-btn { width: 100%; text-align: left; background: var(--bg-card-alt); border: 1px solid var(--border-color); border-radius: 6px; padding: 10px 14px; color: var(--primary-sky); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; transition: all 0.2s; }
.admin-accordion-btn:hover { border-color: var(--primary-sky); background: var(--bg-card); }
.admin-accordion-content { display: none; padding-left: 8px; margin-bottom: 12px; }
.admin-accordion-content.open { display: block; animation: fadeIn 0.2s; }
.admin-nav-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.admin-nav-list button { width: 100%; text-align: left; padding: 8px 12px; border-radius: 4px; color: var(--text-muted); font-weight: 600; cursor: pointer; background: none; border: none; font-size: 12px; transition: all 0.2s ease; display: flex; justify-content: space-between; align-items: center; }
.admin-nav-list button:hover, .admin-nav-list button.active { background: var(--border-color); color: var(--primary-cyan); border-left: 3px solid var(--primary-cyan); }
.new-badge { background: var(--accent-red); color: #fff; font-size: 9px; padding: 2px 6px; border-radius: 10px; font-weight: 900; text-transform: uppercase; }
.admin-content { flex: 1; padding: 20px; background: var(--bg-dark); overflow-x: auto; }
@media (min-width: 768px) { .admin-content { padding: 35px; } }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.crm-table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 13px; text-align: left; }
.crm-table th, .crm-table td { padding: 12px 15px; border-bottom: 1px solid var(--border-color); }
.crm-table th { background: var(--bg-card); color: var(--primary-sky); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.card-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 25px; margin-bottom: 25px; }
.overview-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 25px; }
.overview-operational-grid { display: grid; grid-template-columns: 1fr; gap: 25px; margin-bottom: 25px; }
@media (min-width: 1024px) { .overview-operational-grid { grid-template-columns: 1.5fr 1fr; } }
.widget-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 25px; display: flex; flex-direction: column; }
.widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; }
.widget-title { font-size: 16px; font-weight: 800; color: var(--primary-sky); display: flex; align-items: center; gap: 8px; }
.overview-task-item { display: flex; justify-content: space-between; align-items: center; background: var(--bg-dark); border: 1px solid var(--border-bright); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; transition: border-color 0.2s; }
.overview-task-item:hover { border-color: var(--primary-cyan); }
.task-text { font-size: 13px; color: var(--text-main); font-weight: 600; }
.task-meta { display: flex; align-items: center; gap: 10px; }
.funnel-row { margin-bottom: 16px; }
.funnel-label-group { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-main); margin-bottom: 6px; font-weight: 600; }
.funnel-track { width: 100%; height: 8px; background: var(--bg-dark); border-radius: 4px; overflow: hidden; }
.funnel-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease-in-out; }
/* Ensure modal overlay flex centering works properly */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 5, 10, 0.95);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--primary-sky);
  border-radius: 16px;
  padding: 35px;
  width: 100%;
  max-width: 800px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 120, 255, 0.4);
  position: relative;
  color: var(--text-main);
}

/* Ensure individual demo panes inside the modal can be toggled */
.single-demo-pane {
  display: none;
}