:root {
    --primary: #6C63FF;
    --secondary: #00C2FF;
    --accent: #00E0A4;
    --bg: #F6FAFF;
    --surface: #FFFFFF;
    --text: #0F172A;
    --muted: #64748B;
    --line: #E2E8F0;
}

body {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top right, rgba(108,99,255,.10), transparent 30%), radial-gradient(circle at bottom left, rgba(0,194,255,.10), transparent 25%), var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

button, .btn {
    font-family: 'Cairo', sans-serif;
}

input, textarea, select {
    font-family: 'Cairo', sans-serif;
}
.app-container { display:flex; min-height:100vh; }

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #6C63FF 0%, #00C2FF 65%, #00E0A4 100%);
    color: white;
    padding: 24px 18px;
    box-shadow: 8px 0 30px rgba(15,23,42,.08);
}
.sidebar .logo {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 26px;
}
.sidebar ul { list-style:none; padding:0; margin:0; }
.sidebar li { margin: 6px 0; }
.sidebar a {
    color:white; text-decoration:none; display:block;
    padding:12px 14px; border-radius:14px; transition:.2s ease;
    background: rgba(255,255,255,.08);
}
.sidebar a:hover { background: rgba(255,255,255,.18); transform: translateX(2px); }
.sidebar .has-sub > a::after { content:"▾"; float:right; }
.sidebar .has-sub ul { display:none; margin-top:8px; margin-left:10px; }
.sidebar .has-sub:hover ul { display:block; }
.sidebar .has-sub ul a { background: rgba(255,255,255,.10); font-size:.95rem; }

.main-content { flex:1; display:flex; flex-direction:column; }
.topbar {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    display:flex; justify-content:space-between; align-items:center;
    box-shadow: 0 6px 24px rgba(15,23,42,.05);
}
.topbar a {
    text-decoration:none; color:#fff; background:linear-gradient(135deg,#6C63FF,#00C2FF);
    padding:10px 16px; border-radius:999px; font-weight:600;
}

.content { padding:24px; }

.public-body { background: var(--bg); }
.public-navbar {
    position: sticky; top:0; z-index:20;
    background: rgba(255,255,255,.84);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226,232,240,.8);
}
.brand-mark {
    display:inline-block; padding:18px 0; text-decoration:none;
    color: var(--text); font-weight:800; font-size:1.2rem;
}
.public-links { display:flex; gap:24px; align-items:center; }
.public-links a { color: var(--muted); text-decoration:none; font-weight:600; }
.public-links a:hover { color: var(--primary); }

.hero-section { padding: 40px 0 30px; }
.hero-card {
    background: linear-gradient(135deg, rgba(108,99,255,.95), rgba(0,194,255,.92), rgba(0,224,164,.88));
    border-radius: 32px; padding: 34px; color:#fff;
    box-shadow: 0 30px 60px rgba(108,99,255,.18);
}
.hero-badge {
    display:inline-block; padding:8px 14px; border-radius:999px;
    background: rgba(255,255,255,.16); margin-bottom:16px; font-weight:600;
}
.hero-card h1 { font-size: 3rem; line-height:1.1; margin:0 0 12px; font-weight:800; }
.hero-text { font-size:1.1rem; max-width:680px; opacity:.95; }
.hero-panel {
    position:relative; min-height:280px; border-radius:28px;
    background: rgba(255,255,255,.12); overflow:hidden;
    border:1px solid rgba(255,255,255,.15);
}
.orb { position:absolute; border-radius:50%; filter: blur(6px); opacity:.85; }
.orb-1 { width:170px; height:170px; right:30px; top:30px; background: rgba(255,255,255,.34); }
.orb-2 { width:120px; height:120px; left:40px; bottom:35px; background: rgba(255,255,255,.22); }
.hero-metric {
    position:absolute; left:28px; right:28px; bottom:26px;
    background: rgba(255,255,255,.16); border-radius:24px; padding:20px;
}
.metric-label { font-size:.95rem; opacity:.9; }
.metric-value { font-size:2.6rem; font-weight:800; line-height:1.1; }
.metric-note { opacity:.95; }

.btn-ai-primary, .btn-ai-secondary {
    display:inline-flex; align-items:center; justify-content:center;
    padding: 13px 22px; border-radius: 999px; text-decoration:none; font-weight:700;
}
.btn-ai-primary {
    background:#fff; color:#4338ca; border:1px solid rgba(255,255,255,.2);
}
.btn-ai-secondary {
    background: rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.25);
}

.features-section, .pricing-section, .pricing-page-section { padding: 36px 0; }
.section-title-wrap { text-align:center; margin-bottom:24px; }
.section-title-wrap h1, .section-title-wrap h2 { margin:0 0 8px; font-weight:800; }
.section-title-wrap p { color: var(--muted); max-width:760px; margin:0 auto; }

.feature-card, .plan-card {
    background: var(--surface); border-radius: 24px; padding: 24px;
    box-shadow: 0 16px 34px rgba(15,23,42,.07);
    border: 1px solid rgba(226,232,240,.8);
    transition: transform .2s ease, box-shadow .2s ease;
    height:100%;
}
.feature-card h4, .plan-name { margin:0 0 10px; font-weight:800; }
.feature-card p, .plan-desc { color: var(--muted); margin:0; }
.plan-price { font-size:2rem; font-weight:800; margin-bottom:10px; color:var(--primary); }
.plan-features { margin:16px 0 18px; padding-left:18px; color:var(--text); }
.plan-features li { margin-bottom:8px; }
.plan-card.highlighted {
    border: 2px solid rgba(108,99,255,.35);
    box-shadow: 0 24px 48px rgba(108,99,255,.14);
    transform: translateY(-4px);
}

.public-footer {
    padding: 24px 0; border-top:1px solid rgba(226,232,240,.8);
    color: var(--muted); margin-top: 20px;
}

.card, .ai-card, .kpi-card, .bill-card, .section-card {
    background:#fff; border-radius:20px;
    box-shadow: 0 12px 30px rgba(15,23,42,.08);
}

@media (max-width: 991px) {
    .app-container { flex-direction:column; }
    .sidebar { width:100%; min-height:auto; }
    .hero-card h1 { font-size: 2.2rem; }
    .public-links { gap:12px; flex-wrap:wrap; }
}


/* ===== MAI Public Website ===== */
.mai-public-body {
    background: #f7f7fb;
    color: #1f2937;
}
.mai-navbar {
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 34px rgba(15,23,42,.06);
}
.mai-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #111827;
    text-decoration: none;
    font-weight: 800;
}
.mai-brand img,
.mai-footer-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}
.mai-public-links a {
    font-size: .95rem;
}
.mai-hero-section {
    padding: 34px 0 10px;
}
.mai-hero-card {
    background: linear-gradient(120deg, #ffffff 0%, #fdf2f8 40%, #eef6ff 100%);
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 24px 60px rgba(15,23,42,.08);
    border: 1px solid rgba(226,232,240,.75);
}
.hero-mini-label,
.section-kicker,
.plan-top-line {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .76rem;
    font-weight: 700;
    color: #db2777;
}
.mai-hero-card h1 {
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 12px 0 14px;
}
.mai-hero-visual {
    position: relative;
    min-height: 360px;
    border-radius: 30px;
    background: linear-gradient(135deg, #20111d 0%, #79124e 55%, #d3157d 100%);
    overflow: hidden;
}
.mai-hero-visual::before,
.mai-hero-visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
}
.mai-hero-visual::before {
    width: 260px;
    height: 260px;
    left: -60px;
    top: -50px;
}
.mai-hero-visual::after {
    width: 190px;
    height: 190px;
    right: -40px;
    bottom: -30px;
}
.hero-float-card {
    position: absolute;
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    width: 240px;
    box-shadow: 0 22px 50px rgba(0,0,0,.18);
}
.card-top { right: 26px; top: 36px; }
.card-bottom { left: 26px; bottom: 34px; }
.float-title { color: #6b7280; font-size: .92rem; margin-bottom: 6px; }
.float-value { font-size: 1.45rem; font-weight: 800; margin-bottom: 6px; }
.float-text { color: #4b5563; font-size: .95rem; }
.btn-cta-primary,
.btn-cta-outline {
    border-radius: 999px;
    padding: 13px 24px;
    font-weight: 700;
}
.btn-cta-primary {
    color: #fff;
    background: linear-gradient(135deg, #3a1522 0%, #d6157c 100%);
    border: 0;
}
.btn-cta-outline {
    color: #3a1522;
    background: #fff;
    border: 1px solid rgba(58,21,34,.14);
}
.mai-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.mai-stat-card,
.mai-service-card,
.mai-form-side-card,
.mai-form-card,
.mai-content-card,
.contact-tile {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(15,23,42,.07);
    border: 1px solid rgba(226,232,240,.9);
}
.mai-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #a70f60;
}
.mai-stat-label { color: #6b7280; }
.mai-section { padding: 42px 0; }
.mai-section-heading h2,
.mai-section-heading h1,
.mai-content-card h1,
.mai-form-side-card h2 {
    font-weight: 800;
    margin: 10px 0 12px;
}
.mai-service-card { height: 100%; }
.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffe3f1 0%, #eef4ff 100%);
    color: #b01367;
    font-weight: 800;
}
.mai-about-band { background: #fff; }
.mai-image-placeholder {
    background: linear-gradient(135deg, #f9f5ff 0%, #fce7f3 100%);
    border-radius: 32px;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(226,232,240,.9);
}
.mai-image-placeholder img {
    width: min(78%, 340px);
    height: auto;
}
.mai-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mai-check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #4b5563;
}
.mai-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #c21875;
    font-weight: 800;
}
.mai-plan-card {
    height: 100%;
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 42px rgba(15,23,42,.07);
    border: 1px solid rgba(226,232,240,.92);
}
.mai-plan-card.highlighted {
    background: linear-gradient(180deg, #30121e 0%, #6a1144 100%);
    color: #fff;
    transform: translateY(-4px);
}
.mai-plan-card.highlighted .plan-top-line,
.mai-plan-card.highlighted .plan-price,
.mai-plan-card.highlighted .plan-name,
.mai-plan-card.highlighted .plan-desc,
.mai-plan-card.highlighted .plan-features li { color: #fff; }
.mai-plan-card .plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 10px 0 8px;
}
.mai-plan-card .plan-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #b01367;
    margin-bottom: 10px;
}
.mai-plan-card .plan-desc,
.content-block,
.contact-mini-box,
.request-steps,
.contact-tile div { color: #6b7280; }
.mai-plan-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 18px 0 22px;
}
.mai-plan-card .plan-features li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: #374151;
    border-bottom: 1px dashed rgba(107,114,128,.18);
}
.mai-plan-card .plan-features li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #d6157c;
    font-weight: 900;
}
.mai-contact-strip {
    background: linear-gradient(135deg, #2a0f1a 0%, #551034 65%, #b31269 100%);
    color: #fff;
}
.mai-contact-strip p,
.mai-contact-strip .section-kicker,
.mai-contact-strip h2 { color: #fff; }
.mai-footer {
    background: #161018;
    color: rgba(255,255,255,.76);
    padding: 34px 0;
    border-top: 0;
}
.mai-footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-brand-title {
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}
.footer-brand-text { color: rgba(255,255,255,.72); }
.contact-mini-box {
    margin: 24px 0;
    padding: 18px 20px;
    background: #f8fafc;
    border-radius: 18px;
}
.request-steps .step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.request-steps span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9d7ea 0%, #efeefe 100%);
    color: #b01367;
    font-weight: 800;
}
.mai-form-card .form-control,
.mai-form-card .form-select {
    border-radius: 16px;
    border-color: #e5e7eb;
    padding-top: .9rem;
    padding-bottom: .9rem;
}
@media (max-width: 991px) {
    .mai-hero-card { padding: 28px; }
    .mai-hero-card h1 { font-size: 2.2rem; }
    .mai-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .mai-public-links { gap: 10px; }
    .mai-brand span { display: none; }
}
@media (max-width: 575px) {
    .mai-stats-grid { grid-template-columns: 1fr; }
    .hero-float-card { position: static; width: auto; margin: 16px; }
    .mai-hero-visual { padding: 16px; min-height: auto; }
}


/* ===== MAI Public Arabic Enhancements ===== */
.mai-public-arabic {
    direction: rtl;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
.mai-public-arabic .mai-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
}
.mai-public-arabic .mai-public-links {
    gap: 16px;
}
.mai-public-arabic .mai-public-links a {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
}
.mai-public-arabic .mai-public-links a:hover {
    color: #b01367;
}
.mai-public-arabic .mai-admin-link {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(58,21,34,.14);
    background: #fff;
}
.mai-public-arabic .mai-brand span {
    font-size: 1.05rem;
}
.mai-public-arabic .mai-hero-card-ar {
    overflow: hidden;
}
.mai-public-arabic .mai-hero-visual-ar {
    min-height: 390px;
}
.mai-public-arabic .hero-logo-panel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.mai-public-arabic .hero-logo-panel img {
    max-width: 78%;
    max-height: 78%;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,.18));
}
.mai-public-arabic .card-top { right: auto; left: 26px; }
.mai-public-arabic .card-bottom { left: auto; right: 26px; }
.mai-public-arabic .mai-check-list li {
    padding-left: 0;
    padding-right: 28px;
}
.mai-public-arabic .mai-check-list li::before {
    left: auto;
    right: 0;
}
.mai-public-arabic .mai-plan-card .plan-features li {
    padding: 8px 24px 8px 0;
}
.mai-public-arabic .mai-plan-card .plan-features li::before {
    left: auto;
    right: 8px;
}
.mai-public-arabic .mai-form-card .form-control,
.mai-public-arabic .mai-form-card .form-select {
    text-align: right;
}
.mai-public-arabic .content-block,
.mai-public-arabic .hero-text,
.mai-public-arabic .plan-desc,
.mai-public-arabic .mai-service-card p,
.mai-public-arabic .footer-brand-text,
.mai-public-arabic .mai-contact-strip p {
    line-height: 1.9;
}
@media (max-width: 991px) {
    .mai-public-arabic .mai-brand span { display: inline; }
    .mai-public-arabic .mai-public-links { justify-content: center; }
}
