/* ==========================================================================
   WEB EFFECT Dashboard Manager
   Mobile-game UI ? dark panels, lime accent, chunky 3D controls
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-primary:    #111215;
    --bg-card:       #1c1e24;
    --bg-card-hover: #22252e;
    --bg-elevated:   #2a2d38;
    --accent:        #c8ff00;
    --accent-light:  #d8ff44;
    --accent-dim:    #8db300;
    --accent-deep:   #5a7200;
    --accent-soft:   rgba(200, 255, 0, 0.12);
    --accent-glow:   rgba(200, 255, 0, 0.30);
    --accent-text:   #0d1a00;
    --accent-sub:    #1a3300;
    --text-primary:  #f0f2f7;
    --text-secondary:#9aa0b0;
    --text-muted:    #5c6474;
    --border:        #2c2f3a;
    --border-light:  #383d4d;
    --glass:         #1c1e24;
    --danger:        #ff4d5e;
    --warning:       #ffa820;
    --success:       #c8ff00;
    --sidebar-width: 260px;
    --header-height: 72px;
    --radius:        14px;
    --radius-md:     20px;
    --radius-lg:     28px;
    --radius-xl:     36px;
    --radius-pill:   999px;
    --transition:    0.18s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow:        0 4px 24px rgba(0, 0, 0, 0.55);
    --shadow-sm:     0 2px 12px rgba(0, 0, 0, 0.40);
    --btn-depth:     4px;
    --font:          'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background:
        radial-gradient(ellipse 70% 40% at 50% -5%, rgba(200, 255, 0, 0.06), transparent),
        var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   App icons ? coloured gaming PNG icons from assets/icons/
   No filter inversion; the PNGs are already full-colour.
   ========================================================================== */
.app-icon {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    /* drop-shadow makes the chunky icons pop against dark bg */
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
    transition: transform 0.15s ease, filter 0.15s ease;
}

/* size helpers */
.icon-sm  { width: 22px;  height: 22px; }
.icon-md  { width: 32px;  height: 32px; }
.icon-lg  { width: 48px;  height: 48px; margin: 0 auto; }
.icon-hero{ width: 72px;  height: 72px; }

/* nav */
.nav-link .app-icon        { opacity: 0.7; }
.nav-link:hover .app-icon  { opacity: 1;   transform: scale(1.1); }
.nav-link.active .app-icon { opacity: 1;   filter: drop-shadow(0 0 8px rgba(200,255,0,0.4)); }

/* quick-action cards */
.quick-action-btn .app-icon        { margin: 0 auto 8px; opacity: 0.8; }
.quick-action-btn:hover .app-icon  { opacity: 1; transform: scale(1.12); }

/* file upload zone */
.file-upload-icon .app-icon { margin: 0 auto; opacity: 0.55; }

/* back / breadcrumb links */
.login-back .app-icon,
.btn-back .app-icon,
.link-back .app-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    opacity: 0.7;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #a8ff33;
}

img {
    max-width: 100%;
    display: block;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }

/* ==========================================================================
   Cards
   ========================================================================== */

.glass-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.65);
}

/* Hero accent card ? neon yellow-green */
.hero-card {
    background: var(--accent);
    border-radius: var(--radius-lg);
    padding: 24px 24px 20px;
    position: relative;
    overflow: hidden;
    border: none;
    margin-bottom: 20px;
    box-shadow:
        0 var(--btn-depth) 0 var(--accent-deep),
        0 16px 40px rgba(200, 255, 0, 0.22);
}

.hero-card .tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-text);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-text);
    margin-bottom: 4px;
}

.hero-card .sub {
    font-size: 12px;
    color: var(--accent-sub);
    margin-bottom: 18px;
    font-weight: 500;
}

.hero-deco {
    position: absolute;
    right: 16px;
    top: 16px;
    line-height: 1;
    pointer-events: none;
}

.hero-deco .app-icon {
    width: 72px;
    height: 72px;
    opacity: 0.22;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.metric {
    background: rgba(0, 0, 0, 0.12);
    border-radius: var(--radius);
    padding: 10px 12px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.15), 0 3px 0 rgba(0, 0, 0, 0.15);
}

.metric .val {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-text);
}

.metric .lbl {
    font-size: 11px;
    color: var(--accent-sub);
    font-weight: 500;
    margin-top: 1px;
}

.section-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.see-all {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

/* List card (soil style) */
.list-card {
    background: linear-gradient(165deg, var(--bg-card-hover) 0%, var(--bg-card) 100%);
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.list-item,
.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.list-item:last-child,
.recent-item:last-child {
    border-bottom: none;
}

.recent-item:hover {
    background: rgba(200, 255, 0, 0.04);
    margin: 0;
    padding: 13px 16px;
    border-radius: 0;
}

.li-icon,
.recent-thumb-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--accent);
    font-size: 14px;
}

.recent-thumb {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: cover;
    background: var(--bg-elevated);
    flex-shrink: 0;
}

.li-body,
.recent-info {
    flex: 1;
    min-width: 0;
}

.li-title,
.recent-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.li-sub,
.recent-info p {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.li-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.li-badge {
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    padding: 3px 7px;
}

.li-badge.warn {
    background: rgba(255, 160, 0, 0.12);
    color: var(--warning);
}

.li-time {
    font-size: 10px;
    color: var(--text-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 800;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
    text-decoration: none;
    font-family: inherit;
    letter-spacing: 0.02em;
    position: relative;
    top: 0;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
    box-shadow:
        0 var(--btn-depth) 0 var(--accent-deep),
        0 10px 28px rgba(200, 255, 0, 0.25);
    font-weight: 700;
}

.btn-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    color: var(--accent-text);
    box-shadow:
        0 calc(var(--btn-depth) + 2px) 0 var(--accent-deep),
        0 14px 32px rgba(200, 255, 0, 0.30);
}

.btn-primary:active {
    transform: translateY(var(--btn-depth));
    box-shadow: 0 0 0 var(--accent-deep);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
    font-weight: 600;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(2px);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
    font-weight: 700;
    box-shadow: 0 var(--btn-depth) 0 #8b1f2a;
}

.btn-danger:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    color: #fff;
}

.btn-danger:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #8b1f2a;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 15px;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: var(--radius);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #1a1d24;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 6px;
}

.file-upload {
    position: relative;
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
    background: linear-gradient(180deg, #1f232b 0%, var(--bg-primary) 100%);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.file-upload:hover,
.file-upload.dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* ==========================================================================
   Alerts
   ========================================================================== */

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    animation: slideDown 0.4s ease;
    border: 1px solid var(--border);
}

.alert-success {
    background: var(--accent-soft);
    border-color: rgba(200, 255, 0, 0.3);
    color: var(--accent);
}

.alert-error {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
    color: var(--danger);
}

.alert-warning {
    background: rgba(255, 160, 0, 0.1);
    border-color: rgba(255, 160, 0, 0.3);
    color: var(--warning);
}

.alert-info {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-secondary);
}

.alert-info a {
    color: var(--accent);
    font-weight: 600;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Home Page ? top nav
   ========================================================================== */

/* ==========================================================================
   Splash / Intro Screen
   ========================================================================== */

.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000000;
    animation: splashFadeOut 0.6s ease 3.2s forwards;
}

.splash-bg     { display: none; }
.splash-overlay { display: none; }

.splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.splash-logo {
    width: clamp(180px, 40vw, 320px);
    height: auto;
    animation: splashLogoIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
    filter: drop-shadow(0 8px 32px rgba(137,233,0,0.45));
}

.splash-tagline {
    font-size: clamp(14px, 3vw, 20px);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0;
    animation: splashTagIn 0.5s ease 1.1s forwards;
    text-shadow: 0 0 20px rgba(137,233,0,0.5);
}

.splash-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    animation: splashTagIn 0.4s ease 1.4s forwards;
}

.splash-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 4px;
    animation: splashBarFill 2s ease 1.5s forwards;
    box-shadow: 0 0 10px rgba(137,233,0,0.6);
}

.splash-skip {
    position: absolute;
    bottom: 28px;
    right: 28px;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.65);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    animation: splashTagIn 0.4s ease 1.8s forwards;
    z-index: 3;
}

.splash-skip:hover {
    background: rgba(137,233,0,0.2);
    border-color: var(--accent);
    color: var(--accent);
}

@keyframes splashLogoIn {
    0%   { transform: scale(0.4) rotate(-8deg); opacity: 0; }
    65%  { transform: scale(1.1)  rotate(2deg);  opacity: 1; }
    82%  { transform: scale(0.97) rotate(-1deg); opacity: 1; }
    100% { transform: scale(1)    rotate(0deg);  opacity: 1; }
}

@keyframes splashTagIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}

@keyframes splashBarFill {
    from { width: 0%; }
    to   { width: 100%; }
}

/* splashBgZoom unused ? bg removed */

@keyframes splashFadeOut {
    from { opacity: 1; pointer-events: all; }
    to   { opacity: 0; pointer-events: none; }
}

/* Nav logo image */
.nav-logo-img {
    height: 36px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(137,233,0,0.3));
}

.footer-logo-img {
    height: 48px;
    width: auto;
    margin: 0 auto 12px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(137,233,0,0.25));
    opacity: 0.85;
}

/* ==========================================================================
   Home Page ? hero background image
   ========================================================================== */

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    z-index: 0;
    opacity: 0.18;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26,29,36,0.3) 0%,
        rgba(26,29,36,0.6) 60%,
        rgba(26,29,36,0.95) 100%
    );
    z-index: 0;
}

/* ==========================================================================
   Home Page body
   ========================================================================== */

body.home-page {
    background: var(--bg-primary);
}

.home-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(26,29,36,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border);
}

.home-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-nav-logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.home-nav-logo span { color: var(--accent); }

/* Logo + website return — shared across app pages */
.app-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.we-website-home--inline {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--text-secondary, #555);
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1.5px solid var(--border, rgba(0, 0, 0, 0.12));
    background: rgba(255, 255, 255, 0.9);
    transition: color var(--transition), border-color var(--transition);
}

.we-website-home--inline:hover {
    color: var(--accent, #89e900);
    border-color: var(--accent, #89e900);
}

.cl-nav-brand {
    justify-content: center;
    margin-bottom: 20px;
}

.cl-nav-brand .cl-logo {
    margin-bottom: 0;
}

.cl-top-nav {
    padding: 16px 20px 0;
    max-width: 480px;
    margin: 0 auto;
}

.sidebar-brand-row {
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.sidebar-brand-row h2 {
    margin: 0;
    flex-shrink: 0;
}

.sidebar-brand-row .we-website-home--inline {
    font-size: 10px;
    padding: 5px 10px;
    flex-shrink: 0;
}

.home-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.home-nav-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.home-nav-link:hover { color: var(--accent); }

/* alerts strip below nav */
.home-alerts {
    max-width: 900px;
    margin: 16px auto 0;
    padding: 0 24px;
}

/* ==========================================================================
   Home Page ? hero
   ========================================================================== */

.home-hero {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 24px 60px;
}

.home-hero-inner {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Info frame ? clean card above CTA buttons */
.hero-info-frame {
    width: 100%;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 30px 28px 24px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.45s ease 0.05s both;
}

.home-hero-badge {
    display: inline-block;
    background: var(--accent-soft);
    border: 1.5px solid rgba(200,255,0,0.25);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}

.home-hero-title {
    font-size: clamp(2rem, 6.5vw, 3rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.home-hero-title span { color: var(--accent); }

.home-hero-tagline-short {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
}

.home-hero-sub { display: none; }

/* CTA row */
.home-hero-cta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    animation: fadeInUp 0.45s ease 0.18s both;
}

.home-cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 14px 20px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-family: inherit;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    top: 0;
    background: none;
}

.cta-icon {
    transition: transform 0.2s ease;
}

.home-cta-btn:hover .cta-icon { transform: scale(1.12) translateY(-3px); }

.cta-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
}

.cta-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* client portal button ? neon accent, matches accent card */
.home-cta-client {
    background: var(--accent);
    box-shadow: 0 6px 0 var(--accent-deep), 0 14px 36px rgba(200,255,0,0.22);
}

.home-cta-client .cta-label { color: var(--accent-text); }
.home-cta-client .cta-sub   { color: var(--accent-sub); opacity: 0.8; }

.home-cta-client:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 0 var(--accent-deep), 0 20px 48px rgba(200,255,0,0.28);
}

.home-cta-client:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--accent-deep);
}

/* get a website button ? dark card style */
.home-cta-build {
    background: #18191f;
    border: 1.5px solid var(--border-light);
    box-shadow: 0 6px 0 #0a0b0f, 0 12px 28px rgba(0,0,0,0.4);
    text-decoration: none;
}

.home-cta-build .cta-label { color: var(--text-primary); font-weight: 700; }
.home-cta-build .cta-sub   { color: var(--text-secondary); }

.home-cta-build:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 0 #0a0b0f, 0 18px 40px rgba(0,0,0,0.5);
    color: var(--text-primary);
}

.home-cta-build:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #0a0b0f;
}

/* legacy admin button */
.home-cta-admin {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    box-shadow: 0 4px 0 #0a0b0f;
}

.home-cta-admin .cta-label { color: var(--text-primary); }
.home-cta-admin .cta-sub   { color: var(--text-secondary); }

.home-cta-admin:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.home-cta-admin:active {
    transform: translateY(3px);
}

.soon-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--warning);
    color: #1a1d24;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 0 rgba(0,0,0,0.25);
}

/* floating icons behind the hero */
.hero-floats {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-float {
    position: absolute;
    animation: floatBob 6s ease-in-out infinite;
}

.hero-float .app-icon {
    opacity: 0.12;
    filter: drop-shadow(0 4px 12px rgba(137,233,0,0.3));
}

.hf1 { top: 10%; left: 5%;  animation-delay: 0s;    }
.hf2 { top: 60%; left: 3%;  animation-delay: 1.5s;  }
.hf3 { top: 15%; right: 5%; animation-delay: 0.8s;  }
.hf4 { top: 65%; right: 4%; animation-delay: 2.3s;  }

@keyframes floatBob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Home Page ? admin login overlay
   ========================================================================== */

.admin-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(10,12,16,0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: max(20px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

.admin-login-card {
    width: 100%;
    max-width: 420px;
    padding: 32px;
    animation: fadeInUp 0.3s ease;
}

.login-icon-row {
    text-align: center;
    margin-bottom: 16px;
}

.login-icon-row .app-icon {
    margin: 0 auto;
    filter: drop-shadow(0 4px 12px rgba(137,233,0,0.25));
}

.admin-login-card h2 {
    text-align: center;
    margin-bottom: 6px;
    font-size: 22px;
}

.admin-login-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 13px;
}

/* ==========================================================================
   Login Back button (shared ? home overlay + client login)
   ========================================================================== */

.login-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 13px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    font-weight: 700;
    transition: color var(--transition);
}

.login-back:hover { color: var(--accent); }

.overlay-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 6;
    background: inherit;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.overlay-website-link {
    margin-bottom: 0 !important;
    margin-left: auto;
    text-decoration: none;
}

body.overlay-open {
    overflow: hidden;
}

/* ==========================================================================
   Home Page ? features section
   ========================================================================== */

.home-features {
    padding: 80px 24px 100px;
    position: relative;
}

.home-features-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.home-section-header {
    text-align: center;
    margin-bottom: 52px;
}

.home-section-badge {
    display: inline-block;
    background: var(--accent-soft);
    border: 1.5px solid rgba(137,233,0,0.25);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}

.home-section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.home-section-sub {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    font-weight: 600;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: linear-gradient(165deg, var(--bg-card-hover) 0%, var(--bg-card) 100%);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 4px 0 #14171c, inset 0 1px 0 rgba(255,255,255,0.05);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-light);
    box-shadow: 0 8px 0 #14171c, 0 12px 28px rgba(0,0,0,0.3);
}

.feature-card-soon {
    opacity: 0.6;
}

.feature-icon {
    margin: 0 auto 18px;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) translateY(-4px);
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
    font-weight: 600;
}

.coming-badge {
    display: inline-block;
    background: var(--warning);
    color: #1a1d24;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    vertical-align: middle;
}

/* ==========================================================================
   Home Page ? footer
   ========================================================================== */

.home-footer {
    border-top: 2px solid var(--border);
    padding: 40px 24px;
}

.home-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.home-footer-logo {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.home-footer-logo span { color: var(--accent); }

.home-footer-tagline {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.home-footer-copy {
    color: var(--text-muted);
    font-size: 12px;
}

/* ==========================================================================
   Admin Layout
   ========================================================================== */

.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-right: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform var(--transition);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.40);
}

.sidebar-brand {
    padding: 22px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-brand h2 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sidebar-brand h2 span {
    color: var(--accent);
}

.sidebar-brand p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-section-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    transition: all var(--transition);
    margin-bottom: 6px;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    transform: translateX(3px);
}

.nav-link.active {
    background: var(--accent);
    color: var(--accent-text);
    font-weight: 700;
    box-shadow: 0 4px 0 var(--accent-deep);
    border-color: transparent;
}

.nav-link-disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.nav-link .icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 14px 12px;
    border-top: 1px solid var(--border);
}

.sidebar-footer .nav-link:hover {
    color: var(--danger);
    background: rgba(255, 71, 87, 0.08);
}

.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.admin-header {
    height: var(--header-height);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--border);
    background: linear-gradient(180deg, #2a2f38 0%, var(--bg-card) 100%);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.admin-header h1 {
    font-size: 20px;
    font-weight: 700;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.admin-header-actions .text-muted {
    color: var(--text-secondary);
}

.admin-content {
    padding: 24px 28px 40px;
}

.sidebar-toggle {
    display: none;
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px 10px;
    box-shadow: 0 3px 0 #1a1d24;
    transition: transform var(--transition);
}

.sidebar-toggle:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #1a1d24;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99;
}

/* ==========================================================================
   Stats Cards
   ========================================================================== */

.stats-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 180px;
    padding: 16px 14px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, var(--bg-card-hover) 0%, var(--bg-card) 100%);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-card::before {
    display: none;
}

.stat-card .stat-label,
.stat-card .s-lbl {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
}

.stat-card .stat-value,
.stat-card .s-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card .stat-icon,
.stat-card .s-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 17px;
    position: static;
    opacity: 1;
}

/* ==========================================================================
   Dashboard Sections
   ========================================================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.section-card {
    padding: 0;
    overflow: hidden;
}

.section-card h3 {
    margin-bottom: 0;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 16px 10px;
}

.section-card h3 .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.section-card .recent-list {
    list-style: none;
}

.section-card .empty-state {
    padding: 40px 20px;
}

.search-bar-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-bar {
    position: relative;
    padding: 4px 16px !important;
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
    border: 2px solid var(--border);
    border-radius: var(--radius-pill);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

.search-bar input {
    padding-left: 36px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.search-bar input:focus {
    box-shadow: none;
}

.search-bar .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

#searchResults {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 800;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.status-active {
    background: var(--accent-soft);
    color: var(--accent);
}

.status-inactive {
    background: rgba(255, 71, 87, 0.12);
    color: var(--danger);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px 16px;
}

.quick-action-btn {
    padding: 18px 12px;
    text-align: center;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-primary) 100%);
    border: 2px solid var(--border);
    color: var(--text-primary);
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
    box-shadow:
        0 4px 0 #14171c,
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.quick-action-btn:hover {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(200, 255, 0, 0.12) 0%, var(--bg-primary) 100%);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow:
        0 7px 0 #14171c,
        0 8px 20px var(--accent-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quick-action-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #14171c;
}

.quick-action-btn .icon {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.quick-action-btn span {
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================================================
   Clients Table
   ========================================================================== */

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    background: var(--bg-elevated);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tr:hover td {
    background: rgba(200, 255, 0, 0.03);
}

.table-thumb {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    object-fit: cover;
    background: var(--bg-elevated);
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.url-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.url-cell a {
    color: var(--text-secondary);
    font-size: 12px;
}

.url-cell a:hover {
    color: var(--accent);
}

/* ==========================================================================
   Client Portal
   ========================================================================== */

.client-page {
    min-height: 100vh;
    padding: 32px 20px 60px;
    background: var(--bg-primary);
}

.client-page-header {
    text-align: center;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease;
}

.client-page-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 6px;
    font-weight: 700;
}

.client-page-header h1 span {
    color: var(--accent);
}

.client-page-header p {
    color: var(--text-secondary);
    font-size: 13px;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.client-button {
    position: relative;
    height: 168px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid var(--border-light);
    transition: all var(--transition);
    display: block;
    text-decoration: none;
    animation: fadeInUp 0.6s ease both;
    background: var(--bg-card);
    box-shadow:
        0 6px 0 #14171c,
        0 12px 28px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.08);
}

.client-button:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow:
        0 10px 0 var(--accent-deep),
        0 16px 36px var(--accent-glow),
        inset 0 2px 0 rgba(255, 255, 255, 0.12);
}

.client-button:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 var(--accent-deep),
        0 6px 16px rgba(0, 0, 0, 0.35);
}

.client-button-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.client-button:hover .client-button-bg {
    transform: scale(1.05);
}

.client-button-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(34, 34, 34, 0.95) 0%,
        rgba(34, 34, 34, 0.35) 55%,
        rgba(34, 34, 34, 0.15) 100%
    );
    transition: background var(--transition);
}

.client-button:hover .client-button-overlay {
    background: linear-gradient(
        to top,
        rgba(34, 34, 34, 0.88) 0%,
        rgba(200, 255, 0, 0.12) 50%,
        rgba(200, 255, 0, 0.04) 100%
    );
}

.client-button-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-primary);
    z-index: 2;
}

.client-button-default-bg {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
}

.client-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-primary);
}

.client-login-card {
    width: 100%;
    max-width: 420px;
    padding: 32px;
}

.client-company-badge {
    text-align: center;
    margin-bottom: 28px;
}

.client-company-badge h2 {
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

.client-company-badge .badge-line {
    width: 48px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto;
    border-radius: 2px;
}

/* ==========================================================================
   Settings
   ========================================================================== */

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.settings-card {
    padding: 20px;
}

.settings-card h3 {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.module-list {
    list-style: none;
}

.module-list li {
    padding: 10px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.module-list li::before {
    content: '?';
    color: var(--text-muted);
}

.module-list li.coming-soon {
    opacity: 0.55;
}

/* ==========================================================================
   Page Header & Empty State
   ========================================================================== */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-secondary);
}

.empty-state .icon {
    margin-bottom: 16px;
}

.link-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-weight: 700;
    transition: color var(--transition);
}

.link-back:hover {
    color: var(--accent);
}

.empty-state p {
    font-size: 13px;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 480px;
    width: 100%;
    transform: scale(0.95);
    transition: transform var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .sidebar-toggle {
        display: block;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-content {
        padding: 18px 16px 32px;
    }

    .admin-header {
        padding: 0 16px;
    }

    .stats-grid {
        flex-direction: column;
    }

    .stat-card {
        min-width: 100%;
    }

    .client-grid {
        grid-template-columns: 1fr;
    }

    .table-actions {
        flex-direction: column;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .metrics {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .login-panel,
    .client-login-card {
        padding: 24px 20px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.client-grid .client-button:nth-child(1) { animation-delay: 0.05s; }
.client-grid .client-button:nth-child(2) { animation-delay: 0.1s; }
.client-grid .client-button:nth-child(3) { animation-delay: 0.15s; }
.client-grid .client-button:nth-child(4) { animation-delay: 0.2s; }
.client-grid .client-button:nth-child(5) { animation-delay: 0.25s; }
.client-grid .client-button:nth-child(6) { animation-delay: 0.3s; }

/* ==========================================================================
   Home Page ? responsive
   ========================================================================== */

@media (max-width: 720px) {
    .home-hero-cta {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
    }

    .home-hero { padding: 40px 20px 60px; min-height: auto; }
    .hero-floats { display: none; }

    .home-nav-links .home-nav-link { display: none; }

    .home-nav-links .btn {
        display: inline-flex !important;
    }

    .app-nav-brand .we-website-home--inline {
        font-size: 10px;
        padding: 5px 10px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .home-hero-title { font-size: 2.4rem; }
    .home-cta-btn    { padding: 18px 12px 16px; }
    .admin-login-card { padding: 24px 18px; }
}

/* ==========================================================================
   Client Dashboard (client/dashboard.php)
   ========================================================================== */

.client-dashboard-page {
    background: var(--bg-primary);
    min-height: 100vh;
}

.cd-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

/* Header */
.cd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.cd-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cd-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}
.cd-company {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.cd-period {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
}
.cd-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ?? Stat Cards ? inspired by bold analytics card layout ?? */
.cd-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
}

/* Small metric chips ? top row, one column each */
.cd-stat-mini {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 20px 18px;
    position: relative;
    overflow: hidden;
    transition: transform .18s, border-color .18s;
}
.cd-stat-mini:hover { transform: translateY(-2px); border-color: var(--border-light); }
.cd-stat-mini-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cd-stat-mini-value {
    font-size: 38px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}
.cd-stat-mini-trend {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
}

/* Large neon accent card ? full width */
.cd-stat-feature {
    grid-column: 1 / -1;
    background: var(--accent);
    border-radius: var(--radius-xl);
    padding: 30px 28px 26px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(200, 255, 0, 0.20);
    transition: transform .18s, box-shadow .18s;
}
.cd-stat-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 56px rgba(200, 255, 0, 0.28);
}
.cd-stat-feature-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-text);
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cd-stat-feature-value {
    font-size: 52px;
    font-weight: 900;
    color: var(--accent-text);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}
.cd-stat-feature-trend {
    font-size: 12px;
    color: var(--accent-sub);
    font-weight: 600;
    opacity: 0.85;
}
/* Arrow circle button on accent card */
.cd-stat-feature-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: var(--accent-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: transform .18s;
}
.cd-stat-feature-btn:hover { transform: scale(1.12); }

/* Large dark secondary card ? full width */
.cd-stat-dark {
    grid-column: 1 / -1;
    background: #18191f;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 30px 28px 26px;
    position: relative;
    overflow: hidden;
    transition: transform .18s, border-color .18s;
}
.cd-stat-dark:hover { transform: translateY(-2px); border-color: var(--border-light); }
/* Decorative concentric circles (background deco) */
.cd-stat-dark::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.06);
    box-shadow:
        0 0 0 28px rgba(255,255,255,.04),
        0 0 0 56px rgba(255,255,255,.025),
        0 0 0 84px rgba(255,255,255,.015);
    pointer-events: none;
}
.cd-stat-dark-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cd-stat-dark-value {
    font-size: 52px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}
.cd-stat-dark-trend {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Legacy fallback (unused but kept safe) */
.cd-stat-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    position: relative;
    overflow: hidden;
    transition: transform .18s;
}
.cd-stat-card:hover { transform: translateY(-2px); }
.cd-stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.cd-stat-value {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}
.cd-stat-trend { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }

.trend-up      { color: var(--accent); font-weight: 700; }
.trend-down    { color: var(--danger); font-weight: 700; }
.trend-neutral { color: var(--text-secondary); }

/* Lower section */
.cd-lower {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}
.cd-side { display: flex; flex-direction: column; gap: 20px; }

.cd-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .18s;
}
.cd-card:hover { border-color: var(--border-light); }
.cd-card-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
}
.cd-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.cd-card-sub {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 3px;
}

/* Rankings table */
.cd-rankings-table-wrap { overflow-x: auto; }
.cd-rankings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.cd-rankings-table th {
    padding: 10px 18px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}
.cd-rankings-table td {
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    color: var(--text-secondary);
    vertical-align: middle;
}
.cd-rankings-table tr:last-child td { border-bottom: none; }
.cd-rankings-table tr:hover td { background: rgba(255,255,255,.025); }
.cd-kw { font-weight: 600; color: var(--text-primary); }
.cd-page-link { color: var(--accent); text-decoration: none; font-size: 12px; }
.cd-page-link:hover { text-decoration: underline; }
.cd-no-url { color: var(--text-muted); }
.cd-updated { font-size: 11px; color: var(--text-muted); }

/* Rank badges */
.rank-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}
.rank-top3  { background: rgba(255,215,0,.14); color: #ffd700; border: 1px solid rgba(255,215,0,.3); }
.rank-top10 { background: rgba(200,255,0,.12); color: var(--accent); border: 1px solid rgba(200,255,0,.3); }
.rank-top20 { background: rgba(89,175,255,.10); color: #59afff; border: 1px solid rgba(89,175,255,.25); }
.rank-low   { background: rgba(255,77,94,.10); color: #ff8a94; border: 1px solid rgba(255,77,94,.25); }
.rank-na    { background: rgba(255,255,255,.05); color: var(--text-muted); border: 1px solid rgba(255,255,255,.08); }

.rank-change-up   { color: var(--accent); font-weight: 700; font-size: 12px; }
.rank-change-down { color: var(--danger); font-weight: 700; font-size: 12px; }
.rank-change-same, .rank-change-na { color: var(--text-muted); font-size: 12px; }

/* Empty state */
.cd-empty {
    padding: 44px 24px;
    text-align: center;
    color: var(--text-secondary);
}
.cd-empty-sub { font-size: 12px; margin-top: 6px; color: var(--text-muted); }

/* History bars */
.cd-history-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 20px 24px;
    height: 110px;
}
.cd-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
}
.cd-bar-fill {
    width: 100%;
    background: var(--accent);
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    opacity: 0.8;
    transition: height .4s ease;
}
.cd-bar-label { font-size: 10px; color: var(--text-secondary); font-weight: 600; }

/* Notes + Contact */
.cd-notes-text {
    padding: 16px 24px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.cd-contact-text {
    padding: 12px 24px 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.cd-contact-card .btn { margin: 12px 24px 18px; width: calc(100% - 48px); }

/* Footer */
.cd-footer {
    margin-top: 48px;
    text-align: center;
    font-size: 12px;
    color: #a8b0be;
}

/* ==========================================================================
   Admin Stats Manager
   ========================================================================== */

.stats-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    margin-bottom: 24px;
    border-radius: 14px;
}
.stats-month-label {
    font-size: 16px;
    font-weight: 800;
    color: #f4f6fa;
    display: flex;
    align-items: center;
    gap: 10px;
}
.badge-current {
    background: rgba(137,233,0,.18);
    color: #c8ff00;
    border: 1px solid rgba(137,233,0,.35);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
}
.stats-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}
.stats-form-card { padding: 28px; }
.stats-section-title {
    font-size: 16px;
    font-weight: 800;
    color: #f4f6fa;
    margin: 0 0 20px;
}
.stats-inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .cd-stats-grid  { grid-template-columns: repeat(2, 1fr); }
    .cd-lower       { grid-template-columns: 1fr; }
    .stats-two-col  { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
    .cd-stats-grid  { grid-template-columns: 1fr 1fr; }
    .cd-stat-value  { font-size: 24px; }
    .cd-header      { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   WEB EFFECT Staff Button (client/index.php)
   ========================================================================== */

.we-staff-btn {
    border: 2px solid rgba(200, 255, 0, 0.25) !important;
}
.we-staff-btn:hover {
    border-color: rgba(200, 255, 0, 0.6) !important;
    transform: translateY(-4px) scale(1.02);
}
.we-staff-bg {
    background-size: 75% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: #0a0a0a !important;
    filter: brightness(0.9);
}
.we-staff-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.20) 55%,
        rgba(0, 0, 0, 0.05) 100%
    ) !important;
}
.we-staff-btn .client-button-name {
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(200, 255, 0, 0.5);
}

/* Client portal logo */
.client-portal-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,.5));
}

/* 2-tile home CTA */
.home-hero-cta-two {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 540px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 500px) {
    .home-hero-cta-two {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Client Portal Login Page (client/index.php)
   ========================================================================== */

.client-login-page {
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cl-wrap {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cl-logo-link { display: block; }
.cl-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.6));
    transition: transform .2s;
}
.cl-logo:hover { transform: scale(1.04); }

.cl-card {
    width: 100%;
    padding: 36px 32px;
    border-radius: var(--radius-xl);
}

.cl-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.cl-sub {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
}
.cl-form { margin-top: 4px; }

.cl-back {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
}
.cl-back:hover { color: var(--text-primary); }

/* Subtle staff link */
.cl-staff-link {
    background: none;
    border: none;
    color: rgba(255,255,255,0.15);
    font-size: 11px;
    cursor: pointer;
    padding: 4px 8px;
    letter-spacing: 0.08em;
    transition: color .2s;
    margin-top: 8px;
}
.cl-staff-link:hover { color: rgba(255,255,255,0.45); }

/* Password input with eye toggle */
.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.password-input-wrap .form-control {
    padding-right: 44px;
}
.pwd-eye {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.5;
    padding: 4px;
    transition: opacity .2s;
    line-height: 1;
}
.pwd-eye:hover { opacity: 1; }

/* Admin clients table ? password cell */
.pwd-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.pwd-dots { color: #a8b0be; letter-spacing: 2px; font-size: 16px; }
.pwd-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.5;
    padding: 2px 5px;
    border-radius: 4px;
    transition: opacity .2s, background .2s;
}
.pwd-toggle-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,.08);
}

/* ==========================================================================
   Inquiry Overlay (index.php)
   ========================================================================== */

.admin-login-overlay .admin-login-card {
    max-height: calc(100dvh - max(40px, env(safe-area-inset-top)) - max(56px, env(safe-area-inset-bottom)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
    margin: 12px auto 24px;
}

.admin-login-overlay .overlay-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    padding-top: 4px;
    margin-top: -4px;
}

body.client-login-page .admin-login-overlay .overlay-toolbar {
    background: #ffffff !important;
}

.inquiry-card {
    max-width: 440px;
    width: 100%;
    max-height: none;
}

@media (max-width: 520px) {
    .inquiry-card {
        max-width: 520px !important;
        width: 94vw;
    }
}

.inq-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 480px) {
    .inq-two-col { grid-template-columns: 1fr; }
}

.inquiry-type-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.inquiry-type-btn {
    flex: 1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px solid rgba(0, 0, 0, 0.14);
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.inquiry-type-btn:hover {
    border-color: var(--accent, #89e900);
    color: #1a1c1c;
}

.inquiry-type-btn.active {
    border-color: var(--accent, #89e900);
    background: rgba(137, 233, 0, 0.12);
    color: #1a1c1c;
}

.inq-upgrade-fields {
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(137, 233, 0, 0.35);
    background: rgba(137, 233, 0, 0.06);
}

.inq-upgrade-fields[hidden] {
    display: none !important;
}

.inq-upgrade-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--text-secondary, #555);
}

/* ==========================================================================
   Admin Inquiries Page
   ========================================================================== */

.inq-new-badge {
    background: rgba(137,233,0,.18);
    color: #c8ff00;
    border: 1px solid rgba(137,233,0,.4);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 14px;
}

.inq-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.inq-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #a8b0be;
    background: rgba(255,255,255,.04);
    border: 1.5px solid rgba(255,255,255,.08);
    text-decoration: none;
    transition: all .2s;
}
.inq-tab:hover { background: rgba(255,255,255,.08); color: #f4f6fa; }
.inq-tab-active {
    background: rgba(137,233,0,.12);
    border-color: rgba(137,233,0,.4);
    color: #c8ff00;
}
.inq-tab-cnt {
    background: rgba(255,255,255,.12);
    border-radius: 999px;
    font-size: 11px;
    padding: 1px 7px;
    font-weight: 800;
}

.inq-list { display: flex; flex-direction: column; gap: 16px; }

.inq-card {
    padding: 22px 24px;
    border-radius: 16px;
}
.inq-card-new {
    border-color: rgba(137,233,0,.3) !important;
    box-shadow: 0 0 0 1px rgba(137,233,0,.1);
}

.inq-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.inq-name    { font-size: 17px; font-weight: 800; color: #f4f6fa; }
.inq-company { font-size: 13px; color: #c8ff00; font-weight: 700; margin: 2px 0 6px; }
.inq-meta    { font-size: 12px; color: #a8b0be; }
.inq-meta a  { color: #a8b0be; text-decoration: none; }
.inq-meta a:hover { color: #f4f6fa; }

.inq-card-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.inq-status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.inq-wa-btn {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(37,211,102,.3) !important;
}
.inq-wa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37,211,102,.45) !important;
}

.inq-description {
    font-size: 13px;
    color: #d0d8e8;
    line-height: 1.6;
    background: rgba(255,255,255,.03);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
}

.inq-update-details summary { list-style: none; }
.inq-update-details summary::-webkit-details-marker { display: none; }
.inq-update-toggle {
    font-size: 12px;
    color: #a8b0be;
    cursor: pointer;
    padding: 4px 0;
    display: inline-block;
    transition: color .2s;
}
.inq-update-toggle:hover { color: #f4f6fa; }
.inq-update-form { margin-top: 12px; }
.inq-update-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Sidebar badge (new inquiry count) */
.sidebar-badge {
    background: #c8ff00;
    color: #0a1a00;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    padding: 1px 7px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ==========================================================================
   Staff area — compact mobile layout
   Smaller text + tighter spacing so every section fits on a phone screen.
   ========================================================================== */

@media (max-width: 640px) {
    /* Layout + header */
    .admin-content { padding: 14px 10px 28px; }
    .admin-header { padding: 0 12px; }
    .admin-header h1 { font-size: 17px !important; }
    .admin-header .text-muted { font-size: 11px !important; }
    .admin-header-actions { gap: 8px; font-size: 12px; }
    .admin-main .btn-sm { padding: 6px 10px; font-size: 11px; }

    /* Cards: shrink the big paddings (incl. inline padding on some cards) */
    .admin-content .glass-card:not(.section-card):not(.table-wrapper) { padding: 14px !important; }
    .admin-main .stats-form-card { padding: 14px; }
    .section-card h3 { font-size: 14px; padding: 14px 12px 8px; }
    .section-title { font-size: 14px; }
    .page-header h2 { font-size: 18px; }

    /* Dashboard hero + metrics */
    .hero-card { padding: 16px 14px 14px !important; }
    .hero-card h2 { font-size: 18px; }
    .hero-card .sub { font-size: 11px; margin-bottom: 12px; }
    .metrics { gap: 8px; }
    .metric { padding: 8px 10px; }
    .metric .val { font-size: 17px; }
    .metric .lbl { font-size: 10px; }

    /* Recent clients list */
    .recent-item,
    .recent-item:hover { padding: 10px 12px; gap: 10px; }
    .recent-info h4 { font-size: 12px; }
    .recent-info p { font-size: 10px; white-space: normal; }
    .li-time { font-size: 10px; }
    .status-badge { font-size: 9px; padding: 3px 8px; }

    /* Quick actions: two per row so all fit without scrolling */
    .quick-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
    .quick-action-btn { padding: 12px 8px; }
    .quick-action-btn span { font-size: 11px; }

    /* Data tables (clients, keyword rankings) */
    .table-wrapper { -webkit-overflow-scrolling: touch; }
    .admin-main .data-table { font-size: 11px; }
    .admin-main .data-table th { padding: 8px 8px; font-size: 9px; letter-spacing: 0.5px; }
    .admin-main .data-table td { padding: 8px 8px; }
    .admin-main .data-table code { font-size: 10px !important; padding: 2px 5px !important; }
    .data-table .table-thumb,
    .data-table .recent-thumb-placeholder { width: 28px !important; height: 28px !important; font-size: 12px; }
    .url-cell { max-width: 110px; }
    .pwd-dots { font-size: 12px; }
    .table-actions { gap: 5px; }
    .table-actions .btn { padding: 5px 8px; font-size: 10px; }

    /* Hosted sites table */
    .admin-main .hosted-table th,
    .admin-main .hosted-table td { padding: 8px 8px; font-size: 11px; }
    .admin-main .hosted-link-input { font-size: 11px; padding: 6px 8px; min-width: 120px; }

    /* Inquiries */
    .inq-card { padding: 14px !important; border-radius: 12px; }
    .inq-name { font-size: 15px; }
    .inq-company { font-size: 12px; }
    .inq-meta { font-size: 11px; }
    .inq-description { font-size: 12px; padding: 10px 12px; }
    .inq-tabs { gap: 6px; margin-bottom: 16px; }
    .inq-tab { padding: 5px 10px; font-size: 11px; }
    .inq-new-badge { font-size: 11px; padding: 4px 10px; }

    /* Client stats + invoices forms */
    .stats-section-title { font-size: 15px; }
    .stats-inputs-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .admin-main .form-label,
    .admin-main .form-group label { font-size: 12px; }
}
