* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple: #a855f7;
    --blue: #3b82f6;
    --indigo: #6366f1;
    --dark-bg: #020617;
    --light-bg: #f6f7f9;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    transition: background-color 0.3s, color 0.2s;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container {
    width: min(1200px, 100% - 2.5rem);
    margin: 0 auto;
}

section { padding: 85px 0; }

/* ---------- DARK / LIGHT VARIABLES ---------- */
body.theme-dark {
    background: radial-gradient(ellipse at 20% 30%, #0f172a, #020617);
    color: #f1f5f9;
}
body.theme-light {
    background: #f0f2f5;
    color: #0b1120;
}
body.theme-dark .card,
body.theme-dark .pricing-card,
body.theme-dark .feature-card,
body.theme-dark .contact-card,
body.theme-dark .testimonial-card {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
body.theme-light .card,
body.theme-light .pricing-card,
body.theme-light .feature-card,
body.theme-light .contact-card,
body.theme-light .testimonial-card {
    background: #ffffffdd;
    backdrop-filter: blur(4px);
    border-color: #e2e8f0;
    color: #1e293b;
}

/* topbar */
.topbar {
    background: linear-gradient(90deg, #2d1b4e, #1e3a5f);
    color: #f8fafc;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.topbar i { margin-right: 6px; opacity: 0.9; }

@media (max-width: 640px) {
    .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    }
}

/* header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
body.theme-dark header {
    background: rgba(2, 6, 23, 0.8);
    border-bottom-color: #1e293b;
}
body.theme-light header {
    background: rgba(255, 255, 255, 0.75);
    border-bottom-color: #cbd5e1;
}
header.scrolled {
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.4);
}

.nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo-wrap img {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    filter: drop-shadow(0 8px 18px #a855f780);
    object-fit: cover;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: conic-gradient(from 210deg, #a855f7, #3b82f6, #22d3ee, #a855f7);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    filter: drop-shadow(0 8px 18px #a855f780);
}
.logo-text {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-size: 1rem;
}
.logo-text small {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.7;
    letter-spacing: 0.3px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-weight: 500;
}
.nav-links a {
    position: relative;
    padding: 0 2px 6px;
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--purple), var(--blue));
    border-radius: 2px;
    transition: width 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: white;
    box-shadow: 0 18px 30px -12px #1e3a8a;
}
.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 35px -10px #3730a3;
}
.btn-outline {
    border-color: #94a3b8;
    background: transparent;
}
body.theme-dark .btn-outline { color: #f1f5f9; border-color: #475569; }
.btn-outline:hover {
    background: #ffffff15;
    border-color: #a78bfa;
}
.theme-toggle {
    padding: 0.65rem 1rem;
}

/* mobile menu */
.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: inherit;
    backdrop-filter: blur(20px);
    z-index: 2000;
    padding: 2rem 1.5rem;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    border-left: 1px solid rgba(148, 163, 184, 0.3);
    overflow-y: auto;
}

body.theme-dark .mobile-menu {
    background: rgba(2, 6, 23, 0.98);
}

body.theme-light .mobile-menu {
    background: rgba(255, 255, 255, 0.98);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.mobile-menu-close {
    font-size: 2rem;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.mobile-nav-links a {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.mobile-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(3px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* hero */
.hero {
    position: relative;
    padding-top: 48px;
    padding-bottom: 72px;
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 72% 38%, rgba(56, 189, 248, 0.16), transparent 32%),
        radial-gradient(circle at 24% 28%, rgba(168, 85, 247, 0.16), transparent 30%);
}
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 170px;
    z-index: -1;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.8));
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
    align-items: center;
    gap: 4rem;
    min-height: 560px;
}
.hero-badge {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid #8b5cf6;
    border-radius: 60px;
    padding: 0.3rem 1rem;
    display: inline-block;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: clamp(3rem, 6.4vw, 5.85rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    max-width: 860px;
}
.hero-gradient {
    background: linear-gradient(145deg, #c084fc, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-text {
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    opacity: 0.8;
    max-width: 520px;
    margin-bottom: 2rem;
}
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.2rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.hero-stats i { color: #8b5cf6; margin-right: 5px; }

/* hero visual / card */
.hero-visual {
    min-height: 520px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: visible;
}

.network-scene {
    position: relative;
    width: min(620px, 100%);
    aspect-ratio: 1.12;
    display: grid;
    place-items: center;
}

.network-scene::before {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background:
        linear-gradient(rgba(56, 189, 248, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 139, 250, 0.1) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(circle, #000 0 58%, transparent 78%);
    animation: gridDrift 16s linear infinite;
}

.network-scene::after {
    content: "";
    position: absolute;
    inset: 3%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 62%);
    filter: blur(18px);
    animation: glowBreath 4.8s ease-in-out infinite;
}

.world-glow {
    position: relative;
    width: min(380px, 72vw);
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), transparent 11%),
        radial-gradient(circle at 50% 55%, rgba(56, 189, 248, 0.18), transparent 42%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.4), rgba(15, 23, 42, 0.12) 62%, transparent 68%);
    box-shadow:
        0 0 70px rgba(56, 189, 248, 0.28),
        0 0 130px rgba(124, 58, 237, 0.28);
}

.world-ring {
    position: absolute;
    inset: 10%;
    border: 1px solid rgba(125, 211, 252, 0.28);
    border-radius: 50%;
}

.ring-one {
    transform: rotateX(68deg) rotateZ(-18deg);
    animation: ringOrbit 12s linear infinite;
}

.ring-two {
    inset: 17%;
    transform: rotateY(68deg) rotateZ(26deg);
    border-color: rgba(192, 132, 252, 0.34);
    animation: ringOrbitReverse 14s linear infinite;
}

.ring-three {
    inset: 24%;
    transform: rotateX(74deg) rotateZ(74deg);
    border-style: dashed;
    animation: ringOrbit 10s linear infinite;
}

.world-core {
    position: relative;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.28);
    background:
        radial-gradient(circle at 42% 42%, rgba(14, 165, 233, 0.3), transparent 26%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 27, 75, 0.78));
    box-shadow: inset 0 0 40px rgba(56, 189, 248, 0.2);
}

.world-core::before,
.world-core::after {
    content: "";
    position: absolute;
    inset: 14%;
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 46% 54% 45% 55%;
}

.world-core::after {
    inset: 24% 8%;
    border-color: rgba(168, 85, 247, 0.2);
    transform: rotate(58deg);
}

.map-line {
    position: absolute;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.9), transparent);
    transform-origin: left center;
    animation: signalFlow 3.5s ease-in-out infinite;
}

.map-line-one {
    width: 62%;
    left: 22%;
    top: 36%;
    transform: rotate(18deg);
}

.map-line-two {
    width: 58%;
    left: 18%;
    top: 62%;
    transform: rotate(-24deg);
    animation-delay: -1.2s;
}

.map-line-three {
    width: 48%;
    left: 36%;
    top: 48%;
    transform: rotate(78deg);
    animation-delay: -2.1s;
}

.network-node {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 0 7px rgba(56, 189, 248, 0.14), 0 0 24px rgba(56, 189, 248, 0.95);
    animation: nodePulse 2.4s ease-in-out infinite;
}

.node-windhoek {
    left: 47%;
    top: 62%;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #a855f7, #38bdf8);
    box-shadow: 0 0 0 8px rgba(168, 85, 247, 0.18), 0 0 34px rgba(56, 189, 248, 0.9);
    z-index: 2;
}

.node-africa { left: 55%; top: 48%; animation-delay: -0.7s; }
.node-europe { left: 52%; top: 27%; animation-delay: -1.3s; }
.node-us { left: 23%; top: 42%; animation-delay: -1.8s; }
.node-asia { left: 75%; top: 40%; animation-delay: -2.2s; }

.cable {
    position: absolute;
    width: 52%;
    height: 2px;
    left: -6%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.16) 18%, rgba(56, 189, 248, 0.98) 48%, rgba(168, 85, 247, 0.28) 74%, transparent 100%);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
    transform-origin: right center;
    animation: cablePulse 3.4s ease-in-out infinite;
}

.cable::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f8fafc;
    box-shadow: 0 0 18px #38bdf8;
    transform: translateY(-50%);
    animation: dataDot 3.4s linear infinite;
}

.cable-one {
    top: 35%;
    transform: rotate(12deg);
}

.cable-two {
    top: 53%;
    width: 58%;
    transform: rotate(-7deg);
    animation-delay: -1.1s;
}

.cable-two::after { animation-delay: -1.1s; }

.cable-three {
    top: 69%;
    width: 48%;
    transform: rotate(21deg);
    animation-delay: -2s;
}

.cable-three::after { animation-delay: -2s; }

.data-chip,
.orbit-label {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 18px 40px -24px #000;
    backdrop-filter: blur(10px);
    font-size: 0.86rem;
    font-weight: 700;
}

.data-chip i {
    color: #38bdf8;
}

.chip-domain {
    top: 12%;
    right: 3%;
    animation: floatChip 6s ease-in-out infinite;
}

.chip-hosting {
    bottom: 18%;
    right: 0;
    animation: floatChip 6s ease-in-out infinite -1.8s;
}

.chip-email {
    bottom: 8%;
    left: 8%;
    animation: floatChip 6s ease-in-out infinite -3s;
}

.orbit-label {
    top: 64%;
    left: 38%;
    color: #bae6fd;
    border-color: rgba(56, 189, 248, 0.38);
}

body.theme-light .hero::after {
    background: linear-gradient(180deg, transparent, rgba(240, 242, 245, 0.94));
}

body.theme-light .network-scene::before {
    background:
        linear-gradient(rgba(37, 99, 235, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.1) 1px, transparent 1px);
}

body.theme-light .data-chip,
body.theme-light .orbit-label {
    background: rgba(255, 255, 255, 0.82);
    color: #0f172a;
}

@keyframes gridDrift {
    from { background-position: 0 0; }
    to { background-position: 76px 38px; }
}

@keyframes glowBreath {
    0%, 100% { opacity: 0.52; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1.04); }
}

@keyframes ringOrbit {
    to { transform: rotateX(68deg) rotateZ(342deg); }
}

@keyframes ringOrbitReverse {
    to { transform: rotateY(68deg) rotateZ(-334deg); }
}

@keyframes signalFlow {
    0%, 100% { opacity: 0.28; filter: blur(0); }
    50% { opacity: 1; filter: blur(0.5px); }
}

@keyframes nodePulse {
    0%, 100% { transform: scale(0.86); opacity: 0.78; }
    50% { transform: scale(1.18); opacity: 1; }
}

@keyframes cablePulse {
    0%, 100% { opacity: 0.42; filter: saturate(0.8); }
    50% { opacity: 1; filter: saturate(1.35); }
}

@keyframes dataDot {
    from { left: 6%; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    to { left: 94%; opacity: 0; }
}

@keyframes floatChip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
    .network-scene *,
    .network-scene::before,
    .network-scene::after,
    .about-visual *,
    .about-visual::before,
    .about-visual::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
.hosting-card {
    border-radius: 28px;
    padding: 1.8rem 1.5rem;
    border: 1px solid #334155;
    background: radial-gradient(ellipse at top left, #1e1b4b, #0f172a);
    box-shadow: 0 40px 50px -25px #000;
    transition: transform 0.25s;
}
body.theme-light .hosting-card {
    background: white;
    border-color: #d1d5db;
}
.hosting-card:hover { transform: translateY(-6px); }
.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.badge-live {
    background: #0f172a;
    border: 1px solid #a78bfa;
    border-radius: 60px;
    padding: 0.2rem 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #f1f5f9; /* Add this - light text for dark mode */
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.4rem 0;
}
.feature-item {
    background: #0b1120cc;
    padding: 0.7rem;
    border-radius: 20px;
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}
body.theme-light .feature-item { background: #f1f4f9; }
.feature-item i { color: #38bdf8; margin-right: 5px; }

/* highlight cards */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.8rem;
    margin-top: 1.5rem;
}
.highlight-card {
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.2rem;
    border: 1px solid;
    transition: 0.2s;
}
.highlight-card i { font-size: 2rem; background: linear-gradient(145deg, #c084fc, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 1rem; }

/* Fix for dark text on light mode - add this to your style.css */

/* Service chips in light mode */
body.theme-light .service-chip {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #cbd5e1;
}

/* Badge live in light mode */
body.theme-light .badge-live {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Feature items in light mode - text fix */
body.theme-light .feature-item {
    background: #f8fafc;
    color: #1e293b;
}

/* Hero badge in light mode */
body.theme-light .hero-badge {
    background: rgba(139, 92, 246, 0.1);
    color: #4b5563;
}

/* Plan card labels in light mode */
body.theme-light .img-label {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    border-color: #94a3b8;
}

/* Card header text in light mode */
body.theme-light .card-header span {
    color: #334155;
}

/* Stats text in light mode */
body.theme-light .hero-stats div {
    color: #1e293b;
}

/* Additional fix for any text with opacity in light mode */
body.theme-light .hero-text,
body.theme-light .section-heading + p,
body.theme-light .about-text {
    color: #334155;
    opacity: 1;
}

/* Fix for the hosting card text in light mode */
body.theme-light .hosting-card h3 {
    color: #0f172a;
}

body.theme-light .hosting-card .feature-item {
    color: #1e293b;
}

body.theme-light .hosting-card .feature-item i {
    color: #2563eb;
}

/* Fix for the feature grid check circles */
body.theme-light .hosting-card div[style*="color:#94a3b8"] span {
    color: #475569 !important;
}

/* services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1.5rem;
}
.service-card {
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.2rem;
    border: 1px solid;
    transition: var(--transition);
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(2px);
}
.service-card:hover {
    border-color: #a78bfa;
    transform: translateY(-8px);
}
.service-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.service-chip {
    background: #1e293b;
    border-radius: 40px;
    padding: 0.2rem 0.8rem;
    font-size: 0.75rem;
    display: inline-block;
    margin-right: 0.3rem;
    margin-top: 0.7rem;
    border: 1px solid #475569;
    color: #e2e8f0; /* Add this - light text for dark mode */
}
/* portfolio / plans with images (modern mockup placeholders) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2rem;
}
.plan-card {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid;
    transition: 0.2s;
    background: #0f172a;
}
body.theme-light .plan-card { background: white; }
.plan-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 8px black;
    position: relative;
}
.img-label {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    padding: 0.2rem 1rem;
    border-radius: 40px;
    font-size: 0.75rem;
    border: 1px solid white;
}
.plan-body { padding: 1.2rem; }

/* Web design section mobile fix */
.web-design-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1000px) {
    .web-design-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    #web-design .web-design-grid {
        grid-template-columns: 1fr;
    }

    #web-design .plan-body > div:first-child {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    #web-design .plan-body h3 {
        font-size: 1.45rem !important;
        line-height: 1.2;
    }

    #web-design .service-chip {
        font-size: 0.72rem;
    }

    #web-design .plan-img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    #web-design {
        padding: 60px 0 !important;
    }

    #web-design .plan-card {
        border-radius: 20px;
    }

    #web-design .plan-body {
        padding: 1rem;
    }

    #web-design .btn {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }
}

/* about / founder visual */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.about-visual {
    min-height: 430px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.45);
    background:
        radial-gradient(circle at 50% 46%, rgba(56, 189, 248, 0.24), transparent 34%),
        radial-gradient(circle at 35% 24%, rgba(168, 85, 247, 0.25), transparent 28%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(30, 27, 75, 0.68));
    box-shadow: 0 25px 50px -28px #000, 0 0 70px rgba(124, 58, 237, 0.18);
    display: grid;
    place-items: center;
}
.about-visual::before {
    content: "";
    position: absolute;
    inset: -1px;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle, #000 0 48%, transparent 78%);
    animation: gridDrift 16s linear infinite;
}
.about-visual::after {
    content: "";
    position: absolute;
    width: 58%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 68%);
    filter: blur(14px);
    animation: glowBreath 5s ease-in-out infinite;
}
.founder-orbit-scene {
    position: relative;
    z-index: 1;
    width: min(380px, 86%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}
.founder-orbit {
    position: absolute;
    border: 1px solid rgba(125, 211, 252, 0.28);
    border-radius: 50%;
}
.orbit-a {
    inset: 8%;
    animation: founderOrbit 12s linear infinite;
}
.orbit-b {
    inset: 18%;
    transform: rotate(52deg);
    border-color: rgba(168, 85, 247, 0.34);
    animation: founderOrbitReverse 15s linear infinite;
}
.orbit-c {
    inset: 28%;
    border-style: dashed;
    border-color: rgba(34, 211, 238, 0.32);
    animation: founderOrbit 10s linear infinite;
}
.founder-hub {
    width: 136px;
    height: 136px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    gap: 0.35rem;
    text-align: center;
    color: white;
    font-weight: 800;
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.92), rgba(14, 165, 233, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 36px rgba(59, 130, 246, 0.34);
}
.founder-hub i {
    font-size: 2.25rem;
}
.founder-hub span {
    font-size: 0.86rem;
    letter-spacing: 0;
}
.founder-node {
    position: absolute;
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    border-radius: 999px;
    padding: 0.55rem 0.75rem;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.32);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
    color: #f8fafc;
    font-weight: 800;
    font-size: 0.82rem;
    animation: floatChip 6s ease-in-out infinite;
}
.founder-node i {
    color: #38bdf8;
}
.founder-node-hosting {
    top: 8%;
    left: 14%;
}
.founder-node-email {
    top: 22%;
    right: 4%;
    animation-delay: -1.2s;
}
.founder-node-domain {
    bottom: 20%;
    left: 2%;
    animation-delay: -2s;
}
.founder-node-support {
    bottom: 8%;
    right: 10%;
    animation-delay: -3s;
}
.founder-signal {
    position: absolute;
    height: 2px;
    width: 45%;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.46);
    animation: signalFlow 3.5s ease-in-out infinite;
}
.signal-a {
    top: 38%;
    left: 12%;
    transform: rotate(18deg);
}
.signal-b {
    right: 12%;
    bottom: 34%;
    transform: rotate(-22deg);
    animation-delay: -1.5s;
}
.signal-c {
    top: 54%;
    left: 28%;
    transform: rotate(82deg);
    animation-delay: -2.2s;
}
body.theme-light .about-visual {
    border-color: #c4b5fd;
    background:
        radial-gradient(circle at 50% 46%, rgba(14, 165, 233, 0.18), transparent 35%),
        radial-gradient(circle at 35% 24%, rgba(124, 58, 237, 0.16), transparent 30%),
        linear-gradient(145deg, #ffffff, #eef2ff);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}
body.theme-light .founder-node {
    background: rgba(255, 255, 255, 0.86);
    color: #0f172a;
}
@keyframes founderOrbit {
    to { transform: rotate(360deg); }
}
@keyframes founderOrbitReverse {
    to { transform: rotate(-360deg); }
}
.founder-card {
    border-radius: 24px;
    padding: 1.6rem;
    border: 1px solid;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.founder-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.founder-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(145deg, #6b21a5, #1e40af);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* CTA */
.cta-block {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 40px;
    padding: 2.8rem 3rem;
    color: white;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 720px) {
    .cta-block {
    padding: 2rem 1.5rem;
    flex-direction: column;
    text-align: center;
    }
}

/* contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.contact-detail-card {
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid;
}
.contact-row {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    align-items: center;
    word-break: break-word;
}

/* client portal */
.portal-page {
    min-height: 100vh;
}

@media (min-width: 721px) {
    .portal-page,
    .portal-page * {
        scrollbar-width: thin;
        scrollbar-color: rgba(56, 189, 248, 0.72) rgba(15, 23, 42, 0.38);
    }

    .portal-page::-webkit-scrollbar,
    .portal-page *::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    .portal-page::-webkit-scrollbar-track,
    .portal-page *::-webkit-scrollbar-track {
        background: rgba(15, 23, 42, 0.38);
        border-radius: 999px;
    }

    .portal-page::-webkit-scrollbar-thumb,
    .portal-page *::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #38bdf8, #7c3aed);
        border: 2px solid rgba(15, 23, 42, 0.72);
        border-radius: 999px;
    }

    body.theme-light.portal-page,
    body.theme-light.portal-page * {
        scrollbar-color: rgba(37, 99, 235, 0.72) rgba(226, 232, 240, 0.9);
    }

    body.theme-light.portal-page::-webkit-scrollbar-track,
    body.theme-light.portal-page *::-webkit-scrollbar-track {
        background: rgba(226, 232, 240, 0.9);
    }

    body.theme-light.portal-page::-webkit-scrollbar-thumb,
    body.theme-light.portal-page *::-webkit-scrollbar-thumb {
        border-color: rgba(248, 250, 252, 0.95);
    }
}

.portal-page .container {
    width: min(1760px, 100% - 3rem);
}

.portal-app-header {
    position: sticky;
    top: 0;
    z-index: 1100;
}

.portal-app-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.portal-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.portal-app {
    min-height: calc(100vh - 76px);
    background:
        linear-gradient(180deg, rgba(148, 163, 184, 0.08), transparent 320px),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 360px);
}

.portal-hero {
    padding: 24px 0 12px;
}

.portal-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
}

.portal-hero h1 {
    font-size: clamp(1.85rem, 3.2vw, 2.8rem);
    line-height: 1.08;
    max-width: 900px;
    margin-bottom: 0.65rem;
}

.portal-hero p {
    max-width: 780px;
    color: #cbd5e1;
    font-size: 1rem;
}

body.theme-light .portal-hero p {
    color: #334155;
}

.portal-summary-card {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(30, 27, 75, 0.8), rgba(15, 23, 42, 0.88));
    box-shadow: 0 24px 50px -32px #000;
    width: min(460px, 35vw);
}

body.theme-light .portal-summary-card {
    background: rgba(255, 255, 255, 0.92);
}

.portal-summary-card strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}

.portal-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.portal-summary-grid span,
.portal-kpi {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    padding: 0.72rem;
    background: rgba(2, 6, 23, 0.3);
}

body.theme-light .portal-summary-grid span,
body.theme-light .portal-kpi {
    background: #f8fafc;
}

.portal-page-section {
    padding-top: 10px;
    padding-bottom: 32px;
}

.portal-page.portal-signed-in .portal-hero {
    display: none;
}

.portal-page.portal-signed-in .portal-page-section {
    padding-top: 1.25rem;
}

.portal-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.portal-kpi span {
    display: block;
    color: #94a3b8;
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

.portal-kpi strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1.1;
}

body.theme-light .portal-kpi span {
    color: #64748b;
}

.portal-section {
    padding-top: 90px;
}

.portal-page-section.portal-section {
    padding-top: 10px;
}

.portal-heading {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.portal-heading h2 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.15;
    max-width: 720px;
}

.portal-heading p {
    max-width: 680px;
    margin-top: 0.85rem;
    opacity: 0.82;
}

.portal-mini-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.portal-mini-stats span,
.status-chip {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    background: rgba(15, 23, 42, 0.45);
}

.portal-mini-stats i,
.dashboard-panel h4 i,
.portal-item-title i {
    color: #38bdf8;
}

.portal-layout {
    display: grid;
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.portal-card,
.dashboard-panel {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 36px -30px rgba(0, 0, 0, 0.75);
}

.portal-card {
    padding: 1.25rem;
}

body.theme-light .portal-card,
body.theme-light .dashboard-panel,
body.theme-light .portal-mini-stats span,
body.theme-light .status-chip {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    border-color: #d1d5db;
}

.portal-auth {
    position: sticky;
    top: 100px;
}

.portal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.portal-tab {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: transparent;
    color: inherit;
    border-radius: 16px;
    padding: 0.75rem 0.9rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.portal-tab.active {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #ffffff;
    border-color: transparent;
}

.portal-form {
    display: grid;
    gap: 1rem;
}

.portal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.portal-form label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.86rem;
    font-weight: 600;
}

.portal-form input,
.portal-form select,
.portal-form textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 12px;
    padding: 0.88rem 0.95rem;
    background: rgba(2, 6, 23, 0.58);
    color: #f8fafc;
    font: inherit;
    outline: none;
}

.portal-form textarea {
    resize: vertical;
    min-height: 136px;
}

body.theme-light .portal-form input,
body.theme-light .portal-form select,
body.theme-light .portal-form textarea {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}

.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.domain-reseller-box {
    display: grid;
    gap: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 16px;
    padding: 1rem;
    background: rgba(14, 165, 233, 0.08);
}

body.theme-light .domain-reseller-box {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.domain-box-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.domain-box-head h5 {
    font-size: 1rem;
    line-height: 1.25;
    margin: 0.1rem 0 0;
}

.portal-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

body.theme-light .portal-note,
body.theme-light .muted-label {
    color: #64748b;
}

.hidden {
    display: none !important;
}

.dashboard-topline {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.dashboard-topline h3 {
    font-size: 1.45rem;
}

.dashboard-topline h2 {
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.1;
}

.muted-label {
    display: block;
    color: #94a3b8;
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.compact-btn {
    padding: 0.55rem 0.9rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(420px, 0.85fr) minmax(560px, 1.15fr);
    gap: 1.2rem;
    align-items: start;
}

.dashboard-panel {
    padding: 1.2rem;
}

.dashboard-panel h4 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.05rem;
    margin-bottom: 1.05rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.account-security-panel {
    margin-bottom: 1.2rem;
}

.security-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.security-panel-head h4 {
    margin-bottom: 0.35rem;
    padding-bottom: 0;
    border-bottom: 0;
}

.security-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.security-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
    gap: 1rem;
    align-items: start;
}

.security-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.portal-dashboard {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 1.4rem;
    min-height: calc(100vh - 126px);
}

.portal-list {
    display: grid;
    gap: 0.85rem;
}

.dashboard-panel .portal-list:not(.empty-list) {
    max-height: 48vh;
    overflow: auto;
    padding-right: 0.15rem;
}

.portal-dashboard > .dashboard-panel {
    margin-top: 1.2rem;
}

.portal-email-pending .portal-kpi-row,
.portal-email-pending .dashboard-grid {
    display: none;
}

.portal-email-pending .portal-dashboard {
    max-width: 980px;
    margin-inline: auto;
}

.portal-email-pending .account-security-panel {
    margin-top: 1.25rem;
}

.portal-email-pending .account-security-panel .security-grid {
    grid-template-columns: 1fr;
}

.portal-email-pending .account-security-panel #renewPasswordForm {
    display: none;
}

.portal-email-pending .security-panel-head {
    align-items: flex-start;
}

.empty-list {
    padding: 1rem;
    color: #94a3b8;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 16px;
}

.portal-item {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.32);
}

body.theme-light .portal-item {
    background: #f8fafc;
}

.portal-item-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.7rem;
}

.portal-item-title {
    font-weight: 700;
}

.portal-meta {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 0.15rem;
}

body.theme-light .portal-meta {
    color: #64748b;
}

.status-chip {
    color: #bfdbfe;
    white-space: nowrap;
    line-height: 1.2;
}

.invoice-total {
    font-size: 1.55rem;
    font-weight: 800;
    margin-top: 0.65rem;
}

.timeline {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.timeline-step {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    font-size: 0.86rem;
    color: #cbd5e1;
}

body.theme-light .timeline-step {
    color: #334155;
}

.timeline-step i {
    color: #22c55e;
    font-size: 0.75rem;
}

.staff-feedback {
    align-items: flex-start;
    border-left: 3px solid #38bdf8;
    padding-left: 0.7rem;
}

.staff-feedback strong {
    display: block;
    color: inherit;
}

.staff-feedback small {
    display: block;
    color: #94a3b8;
    margin-top: 0.15rem;
}

/* staff console */
.admin-console {
    width: min(1760px, 100% - 3rem);
}

.admin-main {
    min-height: calc(100vh - 126px);
}

.staff-login-card {
    width: min(520px, 100%);
    margin: 8vh auto 0;
}

.admin-top-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-kpi-row {
    grid-template-columns: repeat(4, 1fr);
}

.admin-tabs {
    display: flex;
    gap: 0.55rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    margin: 0.2rem 0 1.2rem;
    padding-bottom: 0.75rem;
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-weight: 700;
}

.admin-tab.active {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #ffffff;
}

.admin-tab-panel {
    animation: adminFadeIn 0.18s ease;
}

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

.admin-grid {
    display: grid;
    grid-template-columns: minmax(360px, 0.8fr) minmax(620px, 1.2fr);
    gap: 1.2rem;
    align-items: start;
}

.admin-queue-tools {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

.admin-queue-tools input,
.admin-queue-tools select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 12px;
    padding: 0.78rem 0.9rem;
    background: rgba(2, 6, 23, 0.4);
    color: inherit;
    font: inherit;
}

body.theme-light .admin-queue-tools input,
body.theme-light .admin-queue-tools select {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}

.admin-queue-panel,
.admin-detail-panel {
    min-height: 620px;
}

.admin-order-list {
    max-height: 58vh;
    overflow: auto;
}

.admin-order-card {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    text-align: left;
    color: inherit;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    padding: 0.95rem;
    background: rgba(2, 6, 23, 0.28);
    cursor: pointer;
    transition: var(--transition);
}

.admin-order-card > small {
    grid-column: 1 / -1;
}

.admin-order-card:hover,
.admin-order-card.active {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

body.theme-light .admin-order-card {
    background: #f8fafc;
}

.admin-order-card strong,
.admin-order-card small {
    display: block;
}

.admin-order-card small {
    color: #94a3b8;
}

body.theme-light .admin-order-card small {
    color: #64748b;
}

.admin-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-detail-head h3 {
    font-size: 1.55rem;
    line-height: 1.15;
}

.admin-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.admin-info-grid div {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    padding: 0.8rem;
    background: rgba(2, 6, 23, 0.25);
}

body.theme-light .admin-info-grid div {
    background: #f8fafc;
}

.admin-info-grid span {
    display: block;
    color: #94a3b8;
    font-size: 0.76rem;
    margin-bottom: 0.25rem;
}

.admin-info-grid strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.35;
}

.admin-update-form {
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    padding-top: 1rem;
}

.admin-action-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.admin-history-panel {
    margin-top: 1.2rem;
    box-shadow: none;
}

.admin-billing-grid {
    display: grid;
    grid-template-columns: minmax(520px, 0.9fr) minmax(520px, 1.1fr);
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.admin-billing-grid.single-focus {
    grid-template-columns: minmax(0, 980px);
    margin-top: 0;
}

.reminder-item .compact-btn {
    margin-top: 0.85rem;
    width: 100%;
    justify-content: center;
}

.invoice-print-btn {
    margin-top: 0.85rem;
    justify-content: center;
}

.invoice-pay-btn {
    margin-top: 0.85rem;
    justify-content: center;
}

/* payment checkout */
.payment-shell {
    width: min(1280px, 100% - 3rem);
}

.payment-card {
    min-height: calc(100vh - 126px);
}

.payment-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
}

.payment-head h1 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.08;
}

.payment-layout {
    display: grid;
    grid-template-columns: minmax(340px, 0.75fr) minmax(520px, 1.25fr);
    gap: 1.2rem;
    align-items: start;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.payment-method {
    display: grid;
    gap: 0.35rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    padding: 0.9rem;
    cursor: pointer;
    background: rgba(2, 6, 23, 0.26);
}

body.theme-light .payment-method {
    background: #f8fafc;
}

.payment-method-disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.payment-method-disabled input {
    cursor: not-allowed;
}

.payment-method.active {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.payment-method input {
    width: auto;
}

.payment-method span {
    font-weight: 800;
}

.payment-method small {
    color: #94a3b8;
    line-height: 1.35;
}

body.theme-light .payment-method small {
    color: #64748b;
}

.payment-authorised-note {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border: 1px solid rgba(34, 197, 94, 0.34);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    color: #dcfce7;
    font-size: 0.9rem;
    line-height: 1.45;
}

.payment-authorised-note i {
    color: #22c55e;
    margin-top: 0.15rem;
}

body.theme-light .payment-authorised-note {
    color: #14532d;
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.payment-fields {
    display: grid;
    gap: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    padding: 1rem;
}

.bank-details-card {
    border: 1px solid rgba(56, 189, 248, 0.34);
    border-radius: 14px;
    padding: 1rem;
    background: rgba(14, 165, 233, 0.08);
}

body.theme-light .bank-details-card {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.bank-details-card h5 {
    font-size: 1.05rem;
    margin: 0.15rem 0 0.85rem;
}

.bank-detail-grid {
    display: grid;
    grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
    gap: 0.65rem 0.9rem;
    align-items: start;
}

.bank-detail-grid span {
    color: #94a3b8;
    font-size: 0.8rem;
}

.bank-detail-grid strong {
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

body.theme-light .bank-detail-grid span {
    color: #64748b;
}

.payment-message {
    margin-top: 1rem;
    border: 1px solid #22c55e;
    border-radius: 14px;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.12);
}

.payment-message.payment-error {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.12);
}

/* policy / legal pages */
.policy-page {
    min-height: 100vh;
}

.policy-hero {
    padding: 64px 0 34px;
    background:
        radial-gradient(circle at 74% 28%, rgba(56, 189, 248, 0.14), transparent 30%),
        radial-gradient(circle at 22% 18%, rgba(168, 85, 247, 0.18), transparent 30%);
}

.policy-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    gap: 1.4rem;
    align-items: end;
}

.policy-hero h1 {
    max-width: 780px;
    font-size: clamp(2.25rem, 5vw, 4.2rem);
    line-height: 1.02;
    margin-bottom: 1rem;
}

.policy-hero p {
    max-width: 680px;
    color: #cbd5e1;
    font-size: 1.05rem;
}

body.theme-light .policy-hero p {
    color: #475569;
}

.policy-status-card,
.policy-card,
.policy-nav {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 24px 60px -42px #000;
}

body.theme-light .policy-status-card,
body.theme-light .policy-card,
body.theme-light .policy-nav {
    background: rgba(255, 255, 255, 0.86);
    border-color: #dbe3ef;
    box-shadow: 0 24px 60px -48px rgba(15, 23, 42, 0.5);
}

.policy-status-card {
    border-radius: 18px;
    padding: 1.25rem;
}

.policy-status-card strong {
    display: block;
    font-size: 1.45rem;
    margin: 0.25rem 0 0.35rem;
}

.policy-section {
    padding-top: 28px;
}

.policy-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
}

.policy-nav {
    position: sticky;
    top: 104px;
    border-radius: 18px;
    padding: 0.75rem;
    display: grid;
    gap: 0.35rem;
}

.policy-nav a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 12px;
    padding: 0.72rem 0.8rem;
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.policy-nav a:hover {
    background: rgba(56, 189, 248, 0.11);
    color: #ffffff;
}

.policy-nav i {
    color: #38bdf8;
    width: 18px;
}

body.theme-light .policy-nav a {
    color: #334155;
}

body.theme-light .policy-nav a:hover {
    background: #eff6ff;
    color: #0f172a;
}

.policy-card {
    border-radius: 24px;
    padding: clamp(1.1rem, 3vw, 2rem);
}

.policy-doc-section {
    padding: 1.35rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    scroll-margin-top: 112px;
}

.policy-doc-section:first-child {
    padding-top: 0;
}

.policy-doc-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.policy-kicker {
    display: inline-flex;
    margin-bottom: 0.55rem;
    color: #38bdf8;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.policy-doc-section h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.policy-doc-section h3 {
    margin: 1.1rem 0 0.45rem;
    font-size: 1.05rem;
}

.policy-doc-section p,
.policy-doc-section li {
    color: #cbd5e1;
    line-height: 1.72;
}

body.theme-light .policy-doc-section p,
body.theme-light .policy-doc-section li {
    color: #475569;
}

.policy-doc-section ul {
    padding-left: 1.2rem;
    margin: 0.55rem 0;
}

.policy-doc-section a {
    color: #38bdf8;
    font-weight: 800;
}

.policy-notice {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    border: 1px solid rgba(250, 204, 21, 0.35);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: rgba(250, 204, 21, 0.09);
    margin-top: 1rem;
}

.policy-notice i {
    color: #facc15;
    margin-top: 0.25rem;
}

.policy-bank-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 1rem 0;
}

.policy-bank-box div {
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 12px;
    padding: 0.85rem;
    background: rgba(14, 165, 233, 0.08);
}

body.theme-light .policy-bank-box div {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.policy-bank-box span {
    display: block;
    color: #94a3b8;
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

.policy-bank-box strong {
    display: block;
    overflow-wrap: anywhere;
}

.footer-separator {
    color: #64748b;
    margin: 0 0.45rem;
}

/* printable invoice */
.invoice-page {
    min-height: 100vh;
    background: #e5e7eb;
    color: #0f172a;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding: 24px;
}

.invoice-toolbar {
    width: min(900px, 100%);
    margin: 0 auto 18px;
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

.invoice-sheet {
    width: min(900px, 100%);
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 46px;
    box-shadow: 0 24px 60px -38px rgba(15, 23, 42, 0.65);
}

.invoice-loading {
    padding: 2rem;
    text-align: center;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 28px;
    border-bottom: 2px solid #0f172a;
}

.invoice-brand {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.invoice-header p,
.invoice-meta-grid p,
.invoice-footer p,
.invoice-total-row p {
    color: #475569;
    line-height: 1.55;
}

.invoice-title-block {
    text-align: right;
}

.invoice-title-block h1 {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 0.7rem;
}

.invoice-status {
    display: inline-block;
    border: 1px solid #94a3b8;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.invoice-meta-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 1rem;
    margin: 28px 0;
}

.invoice-meta-grid div {
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    padding: 1rem;
}

.invoice-meta-grid span {
    display: block;
    color: #64748b;
    font-size: 0.76rem;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.invoice-meta-grid strong {
    display: block;
    margin-bottom: 0.65rem;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 26px 0;
}

.invoice-table th {
    background: #0f172a;
    color: #ffffff;
    text-align: left;
    padding: 0.9rem;
}

.invoice-table td {
    border-bottom: 1px solid #dbe3ef;
    padding: 1rem 0.9rem;
    vertical-align: top;
}

.amount-cell {
    text-align: right !important;
    white-space: nowrap;
}

.invoice-total-row {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 2rem;
    align-items: start;
    margin-top: 30px;
}

.invoice-total-box {
    border: 2px solid #0f172a;
    border-radius: 6px;
    padding: 1rem;
    text-align: right;
}

.invoice-total-box span {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.invoice-total-box strong {
    display: block;
    font-size: 2rem;
    margin-top: 0.35rem;
}

.invoice-footer {
    border-top: 1px solid #dbe3ef;
    margin-top: 36px;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.88rem;
}

footer {
    padding: 2rem 0;
    border-top: 1px solid #1e293b;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* responsiveness */
@media (max-width: 1000px) {
    .service-grid, .portfolio-grid, .highlights-grid { grid-template-columns: repeat(2,1fr); }
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 2.5rem;
    }
    .hero-text { max-width: 100%; }
    .hero-visual {
        min-height: 440px;
    }
    .network-scene {
        width: min(560px, 100%);
        margin: 0 auto;
    }
    .portal-hero-grid {
        grid-template-columns: 1fr;
    }
    .portal-layout,
    .dashboard-grid,
    .admin-grid,
    .admin-billing-grid,
    .payment-layout {
        grid-template-columns: 1fr;
    }

    .policy-hero-grid,
    .policy-layout {
        grid-template-columns: 1fr;
    }

    .policy-nav {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    .portal-auth {
        position: static;
    }
    .portal-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .portal-mini-stats {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-toggle { display: flex; }
    .service-grid, .portfolio-grid, .highlights-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .portal-app-nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem 0;
        min-height: auto;
    }

    .portal-nav-actions {
        width: 100%;
    }

    .portal-nav-actions .btn {
        flex: 1;
        justify-content: center;
        padding-inline: 0.85rem;
    }

    .portal-hero {
        padding-top: 34px;
    }

    .portal-app {
        min-height: auto;
    }

    .portal-hero-grid {
        gap: 1rem;
    }

    .portal-hero h1 {
        font-size: 2rem;
        line-height: 1.12;
    }

    .portal-summary-card {
        width: 100%;
    }

    .portal-page.portal-signed-in .portal-page-section {
        padding-top: 0.85rem;
    }

    .portal-summary-grid,
    .portal-kpi-row,
    .portal-form-grid,
    .security-grid,
    .admin-kpi-row,
    .admin-info-grid,
    .payment-method-grid {
        grid-template-columns: 1fr;
    }

    .policy-hero {
        padding-top: 38px;
    }

    .policy-section {
        padding-top: 18px;
    }

    .policy-nav {
        grid-template-columns: 1fr;
    }

    .policy-card {
        border-radius: 18px;
    }

    .policy-bank-box {
        grid-template-columns: 1fr;
    }

    .domain-box-head {
        flex-direction: column;
    }

    .portal-dashboard {
        min-height: auto;
        padding: 1rem;
    }

    .dashboard-grid {
        gap: 1rem;
    }

    .dashboard-panel .portal-list:not(.empty-list) {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .portal-item {
        padding: 0.9rem;
    }

    .portal-item-title,
    .portal-meta,
    .timeline-step {
        overflow-wrap: anywhere;
    }

    .invoice-total {
        font-size: 1.35rem;
    }

    .bank-detail-grid {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .bank-detail-grid strong {
        margin-bottom: 0.45rem;
    }

    .admin-detail-head,
    .admin-action-row,
    .payment-head {
        flex-direction: column;
    }
    
    .hero-stats {
    gap: 1rem;
    flex-direction: column;
    }
    
    .about-visual {
        min-height: 330px;
        order: 2;
    }

    .founder-orbit-scene {
        width: min(330px, 92%);
    }

    .founder-hub {
        width: 112px;
        height: 112px;
    }

    .founder-node {
        font-size: 0.74rem;
        padding: 0.45rem 0.6rem;
    }
    
    .founder-card {
    margin-top: 1rem;
    }
    
    section {
    padding: 60px 0;
    }

    .highlights {
        padding-top: 8px;
    }

    .hero {
        padding-top: 36px;
        padding-bottom: 18px;
    }

    .hero-grid {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.45rem;
    }

    .hero-visual {
        min-height: 230px;
    }

    .network-scene {
        width: min(350px, 100%);
    }

    .world-glow {
        width: min(220px, 66vw);
    }

    .hero-stats {
        flex-direction: row;
        gap: 0.75rem;
        margin-top: 1.5rem;
        font-size: 0.82rem;
    }

    .data-chip {
        font-size: 0.76rem;
        padding: 0.45rem 0.65rem;
    }

    .chip-domain {
        right: 0;
        top: 8%;
    }

    .chip-hosting {
        right: 0;
        bottom: 13%;
    }

    .chip-email {
        left: 0;
        bottom: 7%;
    }

    .orbit-label {
        left: 32%;
        font-size: 0.75rem;
    }

    .portal-card,
    .dashboard-panel {
        border-radius: 18px;
    }

    .portal-card,
    .dashboard-panel {
        padding: 1rem;
    }

    .admin-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
        margin-bottom: 1rem;
    }

    .admin-tab {
        justify-content: center;
        min-width: 0;
        padding: 0.65rem 0.5rem;
        font-size: 0.88rem;
    }

    .admin-grid {
        gap: 1rem;
    }

    .admin-queue-panel,
    .admin-detail-panel {
        min-height: auto;
    }

    .admin-order-list {
        max-height: none;
        overflow: visible;
    }

    .admin-order-card {
        grid-template-columns: 1fr;
        gap: 0.45rem;
        padding: 0.9rem;
    }

    .admin-order-card > small {
        grid-column: auto;
    }

    .admin-order-card strong,
    .admin-order-card small {
        overflow-wrap: anywhere;
    }

    .admin-order-card strong {
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .admin-order-card small {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .admin-order-card .status-chip,
    .portal-item-head .status-chip {
        justify-self: start;
        align-self: flex-start;
        max-width: 100%;
        white-space: normal;
        text-align: left;
    }

    .dashboard-topline,
    .portal-item-head,
    .security-panel-head {
        flex-direction: column;
    }

    .security-head-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .compact-btn,
    .portal-form .btn,
    .security-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .invoice-page {
        padding: 12px;
    }

    .invoice-sheet {
        padding: 24px;
    }

    .invoice-header,
    .invoice-footer {
        flex-direction: column;
    }

    .invoice-title-block {
        text-align: left;
    }

    .invoice-meta-grid,
    .invoice-total-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-text {
    font-size: 0.9rem;
    }
    
    .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    }
    
    .container {
     width: calc(100% - 1.5rem);
    }

    .hero-title {
        font-size: 2.15rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-visual {
        min-height: 218px;
    }

    .network-scene {
        width: min(315px, 100%);
    }

    .world-glow {
        width: min(205px, 64vw);
    }

    .about-visual {
        min-height: 292px;
        border-radius: 22px;
    }

    .founder-orbit-scene {
        width: min(292px, 94%);
    }

    .founder-hub {
        width: 94px;
        height: 94px;
    }

    .founder-hub i {
        font-size: 1.7rem;
    }

    .founder-hub span {
        font-size: 0.72rem;
    }

    .founder-node {
        max-width: 112px;
        font-size: 0.68rem;
        padding: 0.38rem 0.5rem;
    }

    .cable {
        left: -14%;
    }

    .data-chip {
        transform: scale(0.92);
    }

    .portal-page .container {
        width: calc(100% - 1rem);
    }

    .portal-app-main {
        padding-bottom: 0.75rem;
    }

    .portal-app-nav {
        gap: 0.75rem;
        align-items: stretch;
    }

    .portal-app-nav .logo-wrap {
        align-self: flex-start;
    }

    .portal-nav-actions {
        gap: 0.45rem;
    }

    .portal-nav-actions .btn {
        min-height: 42px;
        padding-inline: 0.55rem;
        font-size: 0.82rem;
    }

    .portal-hero {
        padding-top: 22px;
    }

    .portal-hero h1 {
        font-size: 1.72rem;
    }

    .portal-hero p {
        font-size: 0.95rem;
    }

    .portal-summary-grid {
        grid-template-columns: 1fr;
    }

    .portal-tabs {
        gap: 0.4rem;
    }

    .portal-tab {
        border-radius: 13px;
        padding: 0.7rem 0.55rem;
        font-size: 0.86rem;
    }

    .portal-form input,
    .portal-form select,
    .portal-form textarea {
        border-radius: 12px;
        padding: 0.78rem 0.8rem;
        font-size: 0.92rem;
    }

    .domain-reseller-box {
        padding: 0.85rem;
    }

    .portal-kpi strong {
        font-size: 1.35rem;
    }

    .dashboard-topline h2 {
        font-size: 1.45rem;
    }

    .portal-item {
        border-radius: 13px;
        padding: 0.85rem;
    }

    .admin-tabs {
        gap: 0.35rem;
        padding-bottom: 0.55rem;
    }

    .admin-tab {
        gap: 0.3rem;
        padding: 0.55rem 0.35rem;
        font-size: 0.78rem;
    }

    .admin-queue-tools input,
    .admin-queue-tools select {
        border-radius: 12px;
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .admin-order-card {
        border-radius: 13px;
        padding: 0.85rem;
    }

    .status-chip {
        padding: 0.35rem 0.65rem;
        font-size: 0.74rem;
    }

    .dashboard-panel h4 {
        font-size: 1rem;
        line-height: 1.25;
    }
}

@media print {
    @page {
        size: A4;
        margin: 10mm;
    }

    html,
    body.invoice-page {
        width: 210mm;
        min-height: 297mm;
        background: #ffffff !important;
        color: #0f172a !important;
        padding: 0 !important;
        margin: 0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .invoice-toolbar {
        display: none !important;
    }

    .invoice-sheet {
        width: 190mm !important;
        min-height: 277mm;
        margin: 0 auto !important;
        padding: 14mm !important;
        background: #ffffff !important;
        border: 1px solid #d1d5db !important;
        border-radius: 6px !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .invoice-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 14mm !important;
        padding-bottom: 10mm !important;
        border-bottom: 2px solid #0f172a !important;
        break-inside: avoid;
    }

    .invoice-brand {
        font-size: 18pt !important;
    }

    .invoice-title-block {
        text-align: right !important;
    }

    .invoice-title-block h1 {
        font-size: 28pt !important;
    }

    .invoice-meta-grid {
        display: grid !important;
        grid-template-columns: 1.2fr 0.8fr 0.8fr !important;
        gap: 4mm !important;
        margin: 22mm 0 18mm !important;
        break-inside: avoid;
    }

    .invoice-meta-grid div {
        border: 1px solid #dbe3ef !important;
        border-radius: 6px !important;
        padding: 5mm !important;
    }

    .invoice-table {
        width: 100% !important;
        margin: 0 0 18mm !important;
        border-collapse: collapse !important;
        break-inside: avoid;
    }

    .invoice-table th {
        background: #0f172a !important;
        color: #ffffff !important;
        padding: 4mm !important;
    }

    .invoice-table td {
        padding: 5mm 4mm !important;
        border-bottom: 1px solid #dbe3ef !important;
    }

    .invoice-total-row {
        display: grid !important;
        grid-template-columns: 1fr 62mm !important;
        gap: 10mm !important;
        align-items: start !important;
        margin-top: 0 !important;
        break-inside: avoid;
    }

    .invoice-total-box {
        border: 2px solid #0f172a !important;
        border-radius: 6px !important;
        padding: 6mm !important;
        text-align: right !important;
    }

    .invoice-total-box strong {
        font-size: 24pt !important;
    }

    .invoice-footer {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 8mm !important;
        margin-top: 18mm !important;
        padding-top: 6mm !important;
        border-top: 1px solid #dbe3ef !important;
        break-inside: avoid;
    }

    .invoice-header p,
    .invoice-meta-grid p,
    .invoice-footer p,
    .invoice-total-row p {
        color: #475569 !important;
    }
}
