/* InviteYouIn · Premium UI v1.0.3 — zero external CSS dependencies */
:root { --bg:#0a1018; --surface:#121c27; --surface2:#192633; --stroke:#293a47; --text:#ebf3f6; --muted:#9cacbb; --accent:#75dcc9; --accent2:#49b8a4; --radius:14px; }
html { -webkit-font-smoothing:antialiased; }
body { font-family:Inter,"Segoe UI",ui-sans-serif,system-ui,-apple-system,sans-serif; letter-spacing:-.012em; }
button,input,select,textarea { font:inherit; }
a,button { -webkit-tap-highlight-color:transparent; }
.svg-icon { width:18px; height:18px; flex-shrink:0; }
.btn { border-radius:10px; min-height:40px; padding:10px 15px; font-weight:570; font-size:12px; gap:8px; transition: background .16s,border-color .16s,transform .16s; }
.btn:active { transform:translateY(1px); }
.btn.primary { background:#75dcc9; border-color:#75dcc9; color:#09201f; }
.btn.primary:hover { background:#9cf0db; border-color:#9cf0db; filter:none; }
.btn.subtle { background:#1d2b38; border-color:#2a3b49; color:#d6e7eb; }
.btn.subtle:hover { background:#263947; border-color:#46616a; filter:none; }
input,select,textarea,.field input,.field select,.field textarea { color:#f1f8fa; background:#0c1520; border:1px solid #31414f; border-radius:10px; min-height:42px; font-size:13px; padding:10px 13px; }
input::placeholder,textarea::placeholder { color:#697f90; opacity:1; }
:where(a,button,input,select,textarea):focus-visible { outline:2px solid #75dcc9; outline-offset:2px; }
.field>span { font-size:12px; color:#c4d5dd; font-weight:510; }
.field { gap:8px; }
.panel { background:#121d28; border:1px solid #2a3a49; border-radius:16px; box-shadow:0 6px 22px #00000010; padding:21px; }
.panel-head { margin-bottom:18px; }
.panel-head h2 { font-size:16px; font-weight:630; letter-spacing:-.025em; }
.form-grid { gap:16px; }
.form-actions { margin-top:3px; }
.hint { color:#8ea3b2; }
.badge { border-radius:7px; padding:5px 9px; font-size:11px; font-weight:550; }

/* AUTH: balanced two-column portal, independent of the regular dashboard */
.auth-layout { min-height:100vh; color:#edf5f5; background:#0a1018; }
.auth-layout::before { content:""; position:fixed; inset:0; pointer-events:none; z-index:0; background:radial-gradient(ellipse 48% 46% at 20% -18%,#123a414d,transparent 78%); }
.auth-layout .main { width:100%; min-height:100vh; position:relative; z-index:1; }
.auth-layout .auth-header { height:85px; width:min(1200px,calc(100% - 80px)); margin:auto; display:flex; align-items:center; justify-content:space-between; }
.auth-brand { display:inline-flex; align-items:center; gap:10px; color:#f2f7f7; font-size:16px; letter-spacing:-.025em; font-weight:675; }
.auth-brand .svg-icon { color:#83e8d3; width:21px; height:21px; }
.auth-home { display:inline-flex; align-items:center; gap:6px; font-size:12px; color:#98aab6; }
.auth-home:hover { color:#a2f1df; text-decoration:none; }
.auth-home .svg-icon { width:15px; height:15px; }
.auth-layout .content { padding:9px 40px 48px; max-width:1280px; margin:0 auto; display:block; }
.auth-layout .content > .notice { max-width:1150px; margin:0 auto 16px; }
.auth-shell { display:grid; grid-template-columns:minmax(0,1.06fr) minmax(0,1fr); min-height: min(680px,calc(100vh - 160px)); border-radius:22px; overflow:hidden; border:1px solid #2b3c48; background:#111b26; box-shadow:0 30px 100px #00000038; }
.auth-story { min-width:0; min-height:620px; position:relative; overflow:hidden; padding:27px 40px 29px; background:radial-gradient(circle at 52% 37%,#234b52c4 0%,#1938409c 24%,transparent 56%),linear-gradient(142deg,#172e37 0%,#142630 52%,#14212d 100%); display:flex; flex-direction:column; justify-content:space-between; }
.auth-story::after { content:""; position:absolute; right:-130px; bottom:-185px; width:400px; height:400px; border:1px solid #87f1df13; border-radius:50%; pointer-events:none; }
.auth-story-top,.auth-story-bottom { display:flex; justify-content:space-between; align-items:center; gap:10px; position:relative; z-index:2; }
.auth-story-bottom { font-size:9px; color:#89a9ab; letter-spacing:.12em; }
.auth-kicker,.auth-overline,.section-eyebrow { font-size:10px; font-weight:650; letter-spacing:.18em; color:#89e7d3; }
.auth-ornament { color:#79cdbd; }
.auth-ornament .svg-icon { width:19px; height:19px; }
.auth-story-content { position:relative; z-index:1; padding:0 2px 10px; }
.auth-story-content h1 { font-size:clamp(30px,3.35vw,48px); line-height:1.12; letter-spacing:-.052em; font-weight:580; margin:7px 0 18px; color:#f0f8f6; }
.auth-story-content h1 em { font-style:normal; color:#8fe2d2; }
.auth-story-content p { color:#b0c5c9; font-size:13px; max-width:390px; line-height:1.8; margin:0; }
.auth-orbit { height:235px; position:relative; display:grid; place-items:center; margin-bottom:8px; }
.orbit-ring { position:absolute; border:1px solid #80ded52b; border-radius:50%; }
.orbit-one { width:168px; height:168px; background:#6ccec612; }
.orbit-two { width:222px; height:222px; border-style:dashed; border-color:#93f0db26; }
.orbit-center { position:relative; z-index:2; width:100px; height:100px; display:grid; place-items:center; border-radius:25px; border:1px solid #a4fff544; color:#caffef; background:linear-gradient(145deg,#336875,#1d4952); box-shadow:0 22px 55px #001b2090, inset 0 1px #ffffff20; transform:rotate(-8deg); }
.orbit-center svg { width:42px; height:42px; transform:rotate(8deg); stroke-width:1.35; }
.orbit-chip { z-index:3; position:absolute; display:inline-flex; align-items:center; gap:7px; padding:9px 11px; background:#223841; color:#d0efeb; border:1px solid #466972; border-radius:8px; box-shadow:0 8px 24px #00192155; font-size:10px; letter-spacing:0; white-space:nowrap; }
.orbit-chip svg { width:14px; height:14px; color:#8ae9d4; }
.chip-top { top:46px; right:6%; transform:rotate(5deg); }
.chip-bottom { bottom:43px; left:3%; transform:rotate(-4deg); }
.auth-form-side { display:grid; align-items:center; justify-content:center; min-width:0; background:#111b26; padding:45px clamp(28px,4vw,70px); }
.auth-form-inner { width:min(430px,100%); margin:0 auto; }
.auth-form-inner h2 { font-size:clamp(25px,2.7vw,34px); line-height:1.16; font-weight:630; margin:10px 0 11px; letter-spacing:-.045em; color:#f0f8f9; }
.auth-lead { color:#98aebd; font-size:13px; line-height:1.7; margin:0 0 30px; }
.auth-form { display:grid; gap:18px; max-width:none; }
.auth-form .field { gap:9px; }
.auth-form .field>span:not(.password-field):not(.subdomain-field) { color:#ccdce2; font-size:12px; font-weight:520; }
.auth-form input,.auth-form .field input { min-height:49px; background:#0c1520; border:1px solid #344554; border-radius:10px; padding:13px 15px; color:#f2faf9; width:100%; transition:border-color .2s,box-shadow .2s; }
.auth-form input:focus { border-color:#70d9c7; box-shadow:0 0 0 3px #6bdcc51a; }
.password-field,.subdomain-field { position:relative; display:block; min-width:0; }
.password-field input { padding-right:55px!important; }
.password-toggle { position:absolute; top:50%; right:11px; transform:translateY(-50%); border:0; padding:8px; background:transparent; color:#9db0bd; cursor:pointer; display:grid; place-items:center; border-radius:7px; }
.password-toggle:hover { background:#223342; color:#d7f1e9; }
.password-toggle .svg-icon { width:18px; height:18px; }
.subdomain-field { display:flex; align-items:center; border:1px solid #344554; border-radius:10px; background:#0c1520; overflow:hidden; }
.auth-form .subdomain-field input { min-width:0; width:100%; border:0; box-shadow:none; }
.subdomain-field>span { padding:0 12px; flex:0 0 auto; font-size:11px; color:#91b1b8; border-left:1px solid #334654; white-space:nowrap; }
.field-muted { color:#798d9e; font-weight:400; }
.auth-submit { height:51px; width:100%; justify-content:center; font-size:13px; font-weight:660; margin-top:6px; }
.auth-submit .svg-icon { width:17px; height:17px; }
.auth-switch { margin:24px 0 0; text-align:center; font-size:12px; color:#9dafbc; }
.auth-switch a { color:#91edda; font-weight:590; white-space:nowrap; }
.auth-switch a svg { width:13px; height:13px; vertical-align:middle; }
.auth-footnote { display:flex; gap:8px; justify-content:center; margin-top:33px; padding-top:20px; border-top:1px solid #283a48; font-size:10px; line-height:1.6; color:#8198a6; }
.auth-footnote svg { width:15px; height:15px; flex:0 0 15px; }
.approval-tip { display:flex; align-items:flex-start; gap:9px; padding:12px; background:#1c3738; border:1px solid #31625a; border-radius:9px; color:#c0e8df; font-size:11px; line-height:1.5; margin:-10px 0 24px; }
.approval-tip svg { width:17px; height:17px; color:#8be4d1; flex:0 0 17px; }
.auth-signup .auth-story { min-height:720px; }
.auth-signup .auth-form-side { padding-top:30px; padding-bottom:30px; }
.auth-signup .auth-form { gap:14px; }
.auth-signup .auth-lead { margin-bottom:20px; }
.auth-signup .auth-form input { min-height:46px; }

/* Shared dashboard layout: refined nav, spacing, density, header */
.app-layout { background:#0b111a; }
.app-layout .sidebar { width:244px; flex:0 0 244px; background:#101923; border-color:#253442; padding:20px 12px 14px; box-shadow:none; overflow-y:auto; }
.app-layout .sidebar .brand { display:flex; align-items:center; gap:11px; padding:10px 12px 27px; font-size:16px; font-weight:680; letter-spacing:-.03em; color:#e8f3f3; text-decoration:none; }
.app-layout .brand .svg-icon { width:23px; height:23px; color:#8ce7d2; }
.app-layout .brand small { display:block; font-size:10px; color:#7794a3; letter-spacing:.035em; font-weight:450; margin-top:0; }
.app-layout .nav-caption { padding:5px 14px 10px; font-size:9px; letter-spacing:.16em; color:#677e8e; font-weight:700; }
.app-layout .sidebar nav { display:grid; align-content:start; gap:3px; }
.app-layout .sidebar .nav-item { border:1px solid transparent; border-radius:9px; padding:10px 12px; color:#99adbb; font-size:12px; font-weight:500; min-height:40px; display:flex; align-items:center; gap:10px; transition:.16s; }
.app-layout .sidebar .nav-item:hover { background:#1b2b37; color:#d9ecef; text-decoration:none; }
.app-layout .sidebar .nav-item.active { background:#1d3d3e; color:#a2f5de; border-color:#2a5655; }
.app-layout .sidebar .nav-item .svg-icon { width:17px; height:17px; }
.app-layout .side-bottom { margin-top:22px; padding:13px 9px; border-top:1px solid #273642; }
.app-layout .side-user { font-size:12px; color:#dae7e9; overflow-wrap:anywhere; padding:8px 5px 12px; }
.app-layout .side-user small { font-size:10px; color:#7993a4; }
.app-layout .side-bottom .nav-item { background:transparent; width:100%; cursor:pointer; }
.app-layout .main { min-width:0; flex:1; }
.app-layout .topbar { min-height:86px; padding:18px clamp(22px,2.6vw,40px); background:#0f1721; border-bottom:1px solid #263441; display:flex; align-items:center; justify-content:space-between; gap:15px; }
.topbar-left,.topbar-right { display:flex; align-items:center; gap:15px; }
.app-layout .topbar .eyebrow { color:#7b9a9f; font-size:9px; font-weight:690; letter-spacing:.16em; }
.app-layout .topbar h1 { font-size:clamp(20px,2.3vw,27px); line-height:1.25; letter-spacing:-.044em; margin:3px 0 0; font-weight:620; }
.topbar-status { display:inline-flex; gap:7px; align-items:center; color:#94adbb; font-size:11px; white-space:nowrap; }
.pulse-dot { width:7px; height:7px; border-radius:100%; background:#70dbc1; box-shadow:0 0 0 3px #70dbc113; }
.app-layout .topbar .user-pill { background:#21313c; border:1px solid #334653; border-radius:9px; padding:8px 12px; color:#dce9ef; font-size:11px; }
.mobile-menu,.sidebar-backdrop { display:none; }
.app-layout .content { max-width:1600px; margin:auto; width:100%; padding:clamp(20px,2.6vw,35px); gap:20px; }
.app-layout .stat-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; }
.app-layout .stat { min-height:116px; background:linear-gradient(160deg,#15222e,#101b25); border:1px solid #293c49; padding:18px; border-radius:14px; }
.app-layout .stat strong { font-size:clamp(22px,2.4vw,29px); font-weight:620; letter-spacing:-.05em; margin-top:11px; }
.app-layout .stat-label { font-size:11px; color:#9fb2c0; }
.app-layout .stat-label .svg-icon { width:16px; height:16px; color:#83ddcc; }
.app-layout table { min-width:600px; }
.app-layout th { font-size:11px; font-weight:650; background:#1a2733; color:#a3b6c2; }
.app-layout th,.app-layout td { padding:12px 13px; }
.app-layout td { font-size:12px; }
.app-layout tbody tr:hover { background:#1b2a35; }
.app-layout .pagination { padding-top:5px; }
.app-layout .chart-bars { border-color:#2d404e; }

/* Customer home enhancements — data is rendered from real MySQL tables */
.customer-welcome { display:grid; grid-template-columns:minmax(0,1.52fr) minmax(245px,.76fr); gap:22px; padding:27px 30px; border-radius:17px; border:1px solid #335257; background:radial-gradient(ellipse at 13% 9%,#28504c7a,transparent 55%),linear-gradient(115deg,#182b34,#13212d 76%); position:relative; overflow:hidden; }
.customer-welcome::after { content:""; position:absolute; right:-80px; top:-140px; width:360px; height:360px; border-radius:100%; border:1px solid #9decce13; pointer-events:none; }
.welcome-copy,.welcome-aside { position:relative; z-index:1; }
.welcome-kicker { display:inline-flex; align-items:center; gap:8px; letter-spacing:.17em; color:#96e5d5; font-size:9px; font-weight:680; }
.welcome-kicker svg { width:15px; height:15px; }
.welcome-copy h2 { font-size:clamp(24px,2.8vw,35px); letter-spacing:-.052em; line-height:1.17; font-weight:640; max-width:580px; margin:18px 0 11px; }
.welcome-copy h2 span { color:#a8c7c7; font-weight:440; }
.welcome-copy p { max-width:520px; font-size:12px; line-height:1.75; color:#afc3cb; margin:0; }
.welcome-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:25px; }
.welcome-outline { border:1px solid #45636c; color:#d5ece6; background:#24404994; }
.welcome-outline:hover { background:#2a4a53; }
.welcome-aside { align-self:center; border:1px solid #52716f94; border-radius:13px; background:#11232baf; padding:21px; display:grid; gap:9px; }
.welcome-aside-label { color:#85aaa9; letter-spacing:.14em; font-size:9px; font-weight:660; }
.welcome-aside strong { font-size:21px; letter-spacing:-.04em; line-height:1.15; font-weight:620; }
.welcome-domain { display:flex; align-items:center; gap:7px; color:#94c9c1; font-size:10px; overflow-wrap:anywhere; }
.welcome-domain svg { width:14px; height:14px; }
.quota-row { display:flex; justify-content:space-between; align-items:center; gap:8px; color:#afc5c9; font-size:11px; margin-top:8px; }
.quota-row b { color:#ebfbf7; font-size:12px; }
.quota-track { height:6px; width:100%; background:#354a4e; border-radius:20px; overflow:hidden; }
.quota-track div { height:100%; background:linear-gradient(90deg,#3bb5a4,#90e7d6); border-radius:20px; }
.welcome-aside small { color:#8caeb2; font-size:10px; }
.customer-stats { margin:0; }
.customer-dashboard-grid { display:grid; grid-template-columns:minmax(0,1.78fr) minmax(245px,.8fr); gap:16px; align-items:stretch; }
.customer-chart>.panel { height:100%; margin:0; }
.customer-tips { border:1px solid #293d49; background:linear-gradient(170deg,#172431,#111b27); border-radius:15px; padding:23px; display:flex; flex-direction:column; }
.tips-heading { display:flex; align-items:center; gap:8px; color:#8fe6d3; font-size:10px; letter-spacing:.15em; font-weight:700; }
.tips-heading svg { width:16px; height:16px; }
.customer-tips h3 { font-size:18px; line-height:1.3; font-weight:610; letter-spacing:-.035em; margin:13px 0 19px; }
.tip-step { display:flex; align-items:flex-start; gap:12px; border-top:1px solid #2b3c49; padding:12px 0; }
.tip-step>span { background:#24423f; color:#90e4d0; border-radius:7px; padding:5px 7px; font-size:10px; font-weight:640; }
.tip-step p { margin:0; display:flex; flex-direction:column; gap:2px; }
.tip-step b { font-size:12px; font-weight:600; color:#e1efef; }
.tip-step small { font-size:11px; line-height:1.5; color:#879eac; }
.tips-link { border-top:1px solid #2b3c49; padding-top:14px; margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:7px; font-size:12px; color:#8fe6d3; }
.tips-link svg { width:16px; height:16px; }
.customer-section-head { display:flex; align-items:end; justify-content:space-between; gap:14px; }
.customer-section-head h2 { font-size:22px; font-weight:640; letter-spacing:-.04em; margin:4px 0; }
.customer-section-head p { color:#91a5b2; font-size:12px; margin:0; }
.customer-events-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.customer-event-card { background:#13202a; border:1px solid #2b3c49; border-radius:14px; overflow:hidden; min-width:0; }
.event-card-art { min-height:105px; display:flex; align-items:center; justify-content:center; background:radial-gradient(circle at 28% 0%,#3a74637a,transparent 60%),linear-gradient(145deg,#27424b,#182b37); position:relative; }
.event-card-symbol { width:45px; height:45px; display:grid; place-items:center; border:1px solid #7ae2d059; background:#2a5b5899; color:#baf9ec; border-radius:13px; transform:rotate(-7deg); }
.event-card-symbol svg { width:25px; height:25px; }
.event-card-status { position:absolute; right:13px; top:11px; }
.event-card-body { padding:17px; }
.event-card-date { font-size:10px; color:#a0bdc5; display:flex; align-items:center; gap:6px; }
.event-card-date svg { width:13px; height:13px; }
.event-card-body h3 { font-size:15px; letter-spacing:-.03em; font-weight:610; margin:10px 0 4px; overflow-wrap:anywhere; }
.event-card-body p { font-size:11px; color:#8ca7b1; margin:0 0 16px; overflow-wrap:anywhere; }
.event-card-actions { display:flex; gap:8px; justify-content:space-between; align-items:center; padding-top:13px; border-top:1px solid #2d404a; }
.event-card-actions .btn { min-height:32px; padding:7px 10px; }
.event-card-actions .btn svg { width:14px; height:14px; }
.icon-link { background:#243744; color:#b6f4e3; border:1px solid #34505c; border-radius:8px; padding:8px; display:grid; place-items:center; }
.icon-link svg { width:16px; height:16px; }
.customer-empty { grid-column:1/-1; border:1px dashed #36545e; background:#111e29; border-radius:14px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:36px 20px; text-align:center; }
.customer-empty>svg { width:32px; height:32px; color:#6bd2bf; }
.customer-empty h3 { margin:15px 0 4px; font-size:17px; }
.customer-empty p { color:#94a7b5; font-size:12px; margin:0 0 15px; }

@media(max-width:1190px) {
 .auth-layout .content { padding-left:25px; padding-right:25px; }
 .auth-shell { grid-template-columns: minmax(0,.92fr) minmax(0,1fr); }
 .auth-story { padding-left:28px; padding-right:28px; }
 .app-layout .sidebar { width:218px; flex-basis:218px; }
 .customer-events-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:900px) {
 .auth-shell { grid-template-columns: minmax(0,1fr); max-width:550px; margin:auto; }
 .auth-story { min-height:0; padding:20px 28px; background:linear-gradient(110deg,#1b3841,#17303a); }
 .auth-story-content { display:none; }
 .auth-story-bottom { display:none; }
 .auth-form-side { padding:38px 38px 45px; }
 .auth-layout .auth-header { width:min(550px,calc(100% - 40px)); height:70px; }
 .auth-layout .content { padding:0 20px 45px; }
 .auth-signup .auth-story { min-height:0; }
 .app-layout .stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .customer-welcome { grid-template-columns:1fr; }
 .customer-dashboard-grid { grid-template-columns:1fr; }
}
@media(max-width:720px) {
 .auth-layout .auth-header { width:calc(100% - 32px); height:68px; }
 .auth-layout .content { padding:0 12px 25px; }
 .auth-shell { border-radius:15px; }
 .auth-story { padding:16px 21px; }
 .auth-form-side { padding:27px 23px 32px; }
 .auth-home { font-size:0; }
 .auth-home svg { width:18px; height:18px; }
 .auth-form-inner h2 { font-size:27px; }
 .auth-lead { margin-bottom:22px; }
 .auth-switch { line-height:1.7; }
 .app-layout .sidebar { position:fixed; top:0; bottom:0; left:0; height:100dvh; width:min(292px,84vw); padding:19px 12px; z-index:1000; transform:translateX(-103%); transition:transform .22s ease; display:flex; flex-direction:column; overflow-y:auto; border-right:1px solid #36515b; }
 .app-layout .sidebar nav { display:grid; overflow:visible; padding:0; }
 .app-layout .sidebar .nav-item { width:100%; padding:11px 12px; font-size:12px; }
 .app-layout .sidebar .brand { padding:9px 10px 21px; }
 .app-layout .side-bottom { display:block; margin-top:auto; }
 .app-layout.drawer-open .sidebar { transform:translateX(0); }
 .app-layout .sidebar-backdrop { display:none; position:fixed; inset:0; z-index:999; background:#0009; }
 .app-layout.drawer-open .sidebar-backdrop { display:block; }
 .app-layout .mobile-menu { display:grid; place-items:center; width:36px; height:36px; background:#1d2d38; border:1px solid #314653; border-radius:9px; color:#c9e6e5; }
 .mobile-menu .svg-icon { width:19px; height:19px; }
 .app-layout .topbar { padding:14px 17px; min-height:74px; }
 .app-layout .topbar h1 { font-size:20px; }
 .topbar-status { display:none; }
 .app-layout .content { padding:18px 13px 30px; gap:15px; }
 .customer-welcome { padding:20px; gap:19px; }
 .welcome-copy h2 { font-size:27px; margin:14px 0 9px; }
 .welcome-aside { padding:17px; }
 .customer-section-head { align-items:start; }
 .customer-section-head p { display:none; }
 .customer-section-head h2 { font-size:18px; }
 .customer-events-grid { grid-template-columns:1fr; }
 .app-layout .stat { min-height:100px; padding:14px; }
 .app-layout .stat strong { font-size:22px; }
 .panel { padding:15px; }
}
@media(max-width:420px) {
 .auth-form-side { padding:26px 18px 30px; }
 .subdomain-field>span { font-size:9px; padding:0 8px; }
 .app-layout .stat-grid { gap:9px; }
 .app-layout .stat-label { font-size:10px; }
 .customer-section-head .btn { padding:7px 9px; font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition-duration:0.01ms!important; animation-duration:0.01ms!important; } }
