/* =============================================================================
   Public Conference — Design tokens + light/dark theme
   ============================================================================= */

:root {
    --pc-bg: #e9f8ff;
    --pc-bg-gradient:
        radial-gradient(circle at 95% 10%, #bae6fd 0%, transparent 35%),
        radial-gradient(circle at 5% 20%, #99f6e4 0%, transparent 30%),
        linear-gradient(165deg, #effdff 0%, #f3faff 45%, #eef6ff 100%);
    --pc-card: #ffffff;
    --pc-card-border: #e2e8f0;
    --pc-primary: #0ea5a4;
    --pc-primary-dark: #0f766e;
    --pc-accent: #3b82f6;
    --pc-muted: #4b5563;
    --pc-text: #0f172a;
    --pc-text-secondary: #475569;
    --pc-text-muted: #64748b;
    --pc-header-bg: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(236,253,255,0.98) 55%, rgba(240,253,250,0.98) 100%);
    --pc-header-border: #cffafe;
    --pc-footer-bg: rgba(255, 255, 255, 0.45);
    --pc-footer-border: rgba(207, 250, 254, 0.8);
    --pc-input-bg: rgba(255, 255, 255, 0.95);
    --pc-input-border: #c7d2fe;
    --pc-orb-a: #34d399;
    --pc-orb-b: #60a5fa;
}

.dark {
    color-scheme: dark;
    --pc-bg: #0b1220;
    --pc-bg-gradient:
        radial-gradient(circle at 95% 10%, rgba(14, 116, 144, 0.22) 0%, transparent 38%),
        radial-gradient(circle at 5% 20%, rgba(13, 148, 136, 0.18) 0%, transparent 32%),
        linear-gradient(165deg, #0b1220 0%, #0f172a 42%, #111827 100%);
    --pc-card: #1e293b;
    --pc-card-border: #475569;
    --pc-primary: #2dd4bf;
    --pc-primary-dark: #14b8a6;
    --pc-accent: #60a5fa;
    --pc-muted: #94a3b8;
    --pc-text: #f1f5f9;
    --pc-text-secondary: #cbd5e1;
    --pc-text-muted: #94a3b8;
    --pc-header-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(17, 24, 39, 0.98) 55%, rgba(30, 41, 59, 0.98) 100%);
    --pc-header-border: rgba(51, 65, 85, 0.9);
    --pc-footer-bg: rgba(15, 23, 42, 0.72);
    --pc-footer-border: rgba(51, 65, 85, 0.8);
    --pc-input-bg: rgba(15, 23, 42, 0.95);
    --pc-input-border: rgba(71, 85, 105, 0.95);
    --pc-orb-a: #0ea5a4;
    --pc-orb-b: #3b82f6;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    font-family: 'Cairo', system-ui, sans-serif;
    background: var(--pc-bg-gradient);
    min-height: 100vh;
    color: var(--pc-text);
    overflow-x: clip;
    max-width: 100vw;
}

/* مُعطّل — blur ثابت يسبب بطء شديد عند التمرير */
.bg-orb { display: none !important; }

.pc-shell { position: relative; z-index: 2; }

/* ——— Header: شريط الشعارات (بدون نصوص) ——— */
.pc-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: env(safe-area-inset-top, 0);
    background: var(--pc-header-bg);
    border-bottom: 1px solid var(--pc-header-border);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.dark .pc-site-header {
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.45);
}

.pc-partners-bar {
    width: 100%;
}

.pc-partners-bar__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(0.35rem, 1.2vw, 0.85rem);
    padding-block: clamp(0.45rem, 1.2vw, 0.7rem);
    min-height: clamp(4.75rem, 10vw, 6.25rem);
}

/* أجنحة سطح المكتب */
.pc-partners-bar__wing {
    display: flex;
    align-items: center;
    gap: clamp(0.3rem, 0.85vw, 0.55rem);
    min-width: 0;
    flex-wrap: nowrap;
}

.pc-partners-bar__wing--start {
    justify-content: flex-start;
}

.pc-partners-bar__wing--end {
    justify-content: flex-end;
}

/* المنتصف — المؤتمر + وزارة الصحة */
.pc-partners-bar__hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.45rem, 1.1vw, 0.75rem);
    padding-inline: clamp(0.35rem, 1vw, 0.65rem);
    flex-shrink: 0;
}

.pc-partners-bar__hero-glow {
    position: absolute;
    inset: -0.35rem -0.75rem;
    border-radius: 1.35rem;
    background: radial-gradient(ellipse at center, rgba(14, 165, 164, 0.14) 0%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.dark .pc-partners-bar__hero-glow {
    background: radial-gradient(ellipse at center, rgba(45, 212, 191, 0.12) 0%, transparent 72%);
}

.pc-partners-bar__hero-sep {
    width: 1px;
    height: clamp(2.75rem, 5.5vw, 4.25rem);
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(14, 165, 164, 0.35) 22%,
        rgba(14, 165, 164, 0.55) 50%,
        rgba(14, 165, 164, 0.35) 78%,
        transparent 100%
    );
    flex-shrink: 0;
    z-index: 1;
}

.dark .pc-partners-bar__hero-sep {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(45, 212, 191, 0.28) 22%,
        rgba(45, 212, 191, 0.5) 50%,
        rgba(45, 212, 191, 0.28) 78%,
        transparent 100%
    );
}

/* بلاطة الشعار */
.pc-partner-tile {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: clamp(0.65rem, 1.2vw, 0.95rem);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
    .pc-partner-tile {
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .pc-partner-tile:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    }
}

.dark .pc-partner-tile {
    background: #1e293b;
    border-color: #475569;
    box-shadow: 0 2px 8px rgba(2, 6, 23, 0.25);
}

.dark .pc-partner-tile:hover {
    border-color: #5eead4;
}

.pc-partner-tile--sm {
    width: clamp(2.75rem, 4.85vw, 3.85rem);
    height: clamp(2.75rem, 4.85vw, 3.85rem);
    padding: clamp(0.32rem, 0.6vw, 0.45rem);
    flex-shrink: 0;
}

.pc-partner-tile--hero {
    width: clamp(3.85rem, 7.5vw, 5.65rem);
    height: clamp(3.85rem, 7.5vw, 5.65rem);
    padding: clamp(0.38rem, 0.75vw, 0.55rem);
    border-radius: clamp(0.85rem, 1.5vw, 1.15rem);
    border-width: 1.5px;
    border-color: rgba(14, 165, 164, 0.28);
    box-shadow:
        0 6px 20px rgba(14, 165, 164, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.dark .pc-partner-tile--hero {
    border-color: rgba(45, 212, 191, 0.32);
    box-shadow:
        0 8px 24px rgba(2, 6, 23, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.pc-partner-tile__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* جوال: إخفاء تخطيط سطح المكتب */
.pc-partners-bar__mobile-hero,
.pc-partners-bar__mobile-grid {
    display: none;
}

@media (max-width: 899px) {
    .pc-partners-bar__inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        min-height: auto;
        padding-block: 0.4rem;
    }

    .pc-partners-bar__wing,
    .pc-partners-bar__hero {
        display: none;
    }

    .pc-partners-bar__mobile-hero {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        position: relative;
        padding-block: 0.1rem;
        flex-shrink: 0;
    }

    .pc-partners-bar__mobile-hero::before {
        content: '';
        position: absolute;
        inset: 0 12%;
        border-radius: 1rem;
        background: radial-gradient(ellipse at center, rgba(14, 165, 164, 0.12) 0%, transparent 70%);
        pointer-events: none;
    }

    .dark .pc-partners-bar__mobile-hero::before {
        background: radial-gradient(ellipse at center, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
    }

    .pc-partners-bar__mobile-hero .pc-partner-tile--hero {
        width: clamp(2.85rem, 18vw, 3.75rem);
        height: clamp(2.85rem, 18vw, 3.75rem);
    }

    /* صف واحد — 6 شعارات بدون سطر ثالث */
    .pc-partners-bar__mobile-grid {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: clamp(0.18rem, 1.1vw, 0.38rem);
        width: 100%;
        max-width: 100%;
        padding-inline: 0.15rem;
    }

    .pc-partners-bar__mobile-grid .pc-partner-tile--sm {
        flex: 0 0 auto;
        width: clamp(1.6rem, 11vw, 2.35rem);
        height: clamp(1.6rem, 11vw, 2.35rem);
        padding: clamp(0.18rem, 0.45vw, 0.28rem);
    }
}

@media (max-width: 380px) {
    .pc-partners-bar__mobile-hero .pc-partner-tile--hero {
        width: clamp(2.55rem, 16vw, 3.25rem);
        height: clamp(2.55rem, 16vw, 3.25rem);
    }

    .pc-partners-bar__mobile-grid {
        gap: 0.15rem;
    }

    .pc-partners-bar__mobile-grid .pc-partner-tile--sm {
        width: clamp(1.45rem, 10.2vw, 2rem);
        height: clamp(1.45rem, 10.2vw, 2rem);
        padding: 0.15rem;
    }
}

@media (min-width: 900px) and (max-width: 1023px) {
    .pc-partner-tile--sm {
        width: clamp(2.5rem, 4vw, 3.25rem);
        height: clamp(2.5rem, 4vw, 3.25rem);
    }

    .pc-partner-tile--hero {
        width: clamp(3.5rem, 6.5vw, 4.85rem);
        height: clamp(3.5rem, 6.5vw, 4.85rem);
    }
}

/* توافق مع الأنماط القديمة إن وُجدت في صفحات أخرى */
.pc-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(0.35rem, 1.5vw, 1rem);
    min-height: clamp(4.5rem, 11vw, 5.75rem);
}

.pc-header-logo-wrap {
    width: clamp(2.75rem, 5vw, 4rem);
    height: clamp(2.75rem, 5vw, 4rem);
    border-radius: 1rem;
    padding: 0.4rem;
    background: #fff;
    border: 1px solid #cffafe;
}

.dark .pc-header-logo-wrap {
    background: rgba(15, 23, 42, 0.94);
    border-color: rgba(71, 85, 105, 0.9);
}

.dark .text-teal-950 { color: #f8fafc !important; }
.dark .text-cyan-700 { color: #67e8f9 !important; }

/* ——— Content width ——— */
.pc-content-wrap {
    width: 100%;
    max-width: min(68rem, calc(100vw - 2rem));
    margin-left: auto;
    margin-right: auto;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

@media (min-width: 1280px) { .pc-content-wrap { max-width: 72rem; } }
@media (min-width: 1536px) { .pc-content-wrap { max-width: 76rem; } }

.pc-main-pad {
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px));
    padding-top: 1rem;
}

@media (min-width: 640px) {
    .pc-main-pad { padding-top: 1.25rem; }
}

@media (max-width: 767px) {
    #toggle-dark {
        top: calc(env(safe-area-inset-top, 0px) + 0.5rem);
        padding: 0.55rem 0.75rem;
    }
}

.touch-manipulation { touch-action: manipulation; }

.pc-card,
.ads-modern,
.enmaa-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
}

/* ——— Cards / buttons / inputs ——— */
.pc-card {
    background: var(--pc-card);
    border-radius: 1.25rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--pc-card-border);
}

.dark .pc-card {
    box-shadow: 0 4px 14px rgba(2, 6, 23, 0.28);
}

@media (hover: hover) and (pointer: fine) {
    .pc-card-interactive { transition: box-shadow 0.2s ease, transform 0.15s ease; }

    a.pc-card-interactive:hover,
    .pc-card-interactive:hover {
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
        transform: translateY(-1px);
    }

    .dark a.pc-card-interactive:hover,
    .dark .pc-card-interactive:hover {
        box-shadow: 0 8px 22px rgba(2, 6, 23, 0.35);
    }

    .pc-btn { transition: transform 0.15s ease, box-shadow 0.15s ease; }
    .pc-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(14, 165, 164, 0.22);
    }
}

.pc-card-interactive { transition: none; }

.pc-btn {
    background: linear-gradient(135deg, var(--pc-primary) 0%, var(--pc-accent) 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 1.2rem;
    box-shadow: 0 2px 8px rgba(14, 165, 164, 0.1);
    padding: 0.85rem 2.2rem;
}

.pc-btn:active { transform: scale(0.98); }

.pc-input {
    border: 1px solid var(--pc-input-border);
    border-radius: 0.9rem;
    padding: 0.75rem 1rem;
    width: 100%;
    background: var(--pc-input-bg);
    color: var(--pc-text);
    transition: all 0.18s ease;
}

.pc-input:focus {
    outline: none;
    border-color: var(--pc-primary);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.dark .pc-input:focus {
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.18);
}

.dark select option {
    background-color: #1e293b;
    color: #f1f5f9;
}

/* ——— Footer + flash messages ——— */
.pc-site-footer {
    border-color: var(--pc-footer-border);
    background: var(--pc-footer-bg);
    color: var(--pc-text-muted);
}

.pc-site-footer .pc-footer-title {
    color: var(--pc-text-secondary);
    font-weight: 700;
}

.pc-site-footer .pc-footer-sub {
    color: var(--pc-text-muted);
}

.pc-flash {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.pc-flash--success {
    background: rgba(236, 253, 245, 0.95);
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.pc-flash--error {
    background: rgba(254, 242, 242, 0.95);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.dark .pc-flash--success {
    background: rgba(6, 78, 59, 0.45);
    border-color: rgba(52, 211, 153, 0.45);
    color: #a7f3d0;
}

.dark .pc-flash--error {
    background: rgba(127, 29, 29, 0.4);
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

/* ——— Dark toggle ——— */
#toggle-dark {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 1rem);
    right: 1rem;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 9999px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.16);
    padding: 0.7rem 0.9rem;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

@media (min-width: 768px) {
    #toggle-dark {
        top: calc(env(safe-area-inset-top, 0px) + 8.75rem);
        right: 1rem;
        left: auto;
    }
}

#toggle-dark:hover {
    background: #0ea5a4;
    color: #fff;
    transform: translateY(-1px);
}

#toggle-dark svg {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
    fill: currentColor;
}

.dark #toggle-dark {
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.48);
    box-shadow: 0 10px 32px rgba(2, 6, 23, 0.45);
}

.dark #toggle-dark:hover {
    background: #1e293b;
    color: #f8fafc;
}

/* ——— Waiting / pending theme ——— */
body.pc-theme-waiting {
    --pc-primary: #e11d48;
    --pc-primary-dark: #9f1239;
    --pc-accent: #f97316;
    --pc-muted: #57534e;
    color: #1c1917;
}

body.pc-theme-waiting {
    background:
        radial-gradient(circle at 92% 8%, rgba(254, 202, 202, 0.55) 0%, transparent 38%),
        radial-gradient(circle at 8% 22%, rgba(254, 215, 170, 0.4) 0%, transparent 32%),
        linear-gradient(165deg, #fff5f5 0%, #fff1f2 40%, #ffe4e6 100%) !important;
}

body.pc-theme-waiting .orb-a { background: #fb7185; opacity: 0.35; }
body.pc-theme-waiting .orb-b { background: #fda4af; opacity: 0.32; }

body.pc-theme-waiting .pc-site-header {
    border-color: rgba(254, 202, 202, 0.85);
    background: rgba(255, 255, 255, 0.78);
}

body.pc-theme-waiting .pc-site-footer {
    border-color: rgba(254, 202, 202, 0.6);
    background: rgba(255, 255, 255, 0.5);
}

body.pc-theme-waiting .pc-card {
    box-shadow: 0 20px 40px rgba(244, 63, 94, 0.12), 0 4px 18px rgba(15, 23, 42, 0.06);
}

.dark body.pc-theme-waiting {
    --pc-bg-gradient:
        radial-gradient(circle at 92% 8%, rgba(127, 29, 29, 0.35) 0%, transparent 38%),
        radial-gradient(circle at 8% 22%, rgba(154, 52, 18, 0.25) 0%, transparent 32%),
        linear-gradient(165deg, #1c1917 0%, #292524 45%, #1f1414 100%);
    color: #fef2f2;
}

.dark body.pc-theme-waiting {
    background: var(--pc-bg-gradient) !important;
}

.dark body.pc-theme-waiting .pc-site-header {
    background: rgba(28, 25, 23, 0.95) !important;
    border-color: rgba(127, 29, 29, 0.5) !important;
}

.dark body.pc-theme-waiting .pc-card {
    background: rgba(41, 37, 36, 0.92);
    border-color: rgba(127, 29, 29, 0.35);
}

.dark body.pc-theme-waiting .pc-site-footer {
    background: rgba(28, 25, 23, 0.75);
    border-color: rgba(127, 29, 29, 0.4);
}

/* =============================================================================
   Dark mode — Tailwind utility harmonization (public guest pages)
   ============================================================================= */

.dark .text-slate-900,
.dark .text-slate-800,
.dark .text-slate-700 { color: #e2e8f0 !important; }

.dark .text-slate-600,
.dark .text-slate-500 { color: #94a3b8 !important; }

.dark .text-slate-400,
.dark .text-slate-300 { color: #64748b !important; }

.dark .text-teal-950,
.dark .text-teal-900,
.dark .text-teal-800 { color: #5eead4 !important; }

.dark .text-teal-700,
.dark .text-teal-600 { color: #2dd4bf !important; }

.dark .text-cyan-700 { color: #22d3ee !important; }

.dark .text-emerald-900,
.dark .text-emerald-800 { color: #6ee7b7 !important; }

.dark .text-emerald-700,
.dark .text-emerald-600 { color: #34d399 !important; }

.dark .text-rose-950,
.dark .text-rose-900,
.dark .text-rose-800 { color: #fecdd3 !important; }

.dark .text-rose-700,
.dark .text-rose-600 { color: #fb7185 !important; }

.dark .text-red-950,
.dark .text-red-900,
.dark .text-red-800 { color: #fca5a5 !important; }

.dark .text-red-600 { color: #f87171 !important; }

.dark .text-amber-950,
.dark .text-amber-900 { color: #fde68a !important; }

.dark .text-amber-700 { color: #fbbf24 !important; }

.dark .text-violet-700,
.dark .text-violet-400 { color: #c4b5fd !important; }

.dark .text-violet-600 { color: #a78bfa !important; }

.dark .hover\:text-teal-900:hover { color: #99f6e4 !important; }
.dark .hover\:text-teal-600:hover { color: #2dd4bf !important; }
.dark .hover\:text-violet-600:hover { color: #c4b5fd !important; }
.dark .group:hover .group-hover\:text-teal-600 { color: #2dd4bf !important; }
.dark .group:hover .group-hover\:text-violet-600 { color: #c4b5fd !important; }

.dark .bg-white,
.dark [class*="bg-white/"] { background-color: rgba(30, 41, 59, 0.88) !important; }

.dark .bg-slate-50 { background-color: rgba(51, 65, 85, 0.45) !important; }
.dark .bg-slate-100 { background-color: rgba(51, 65, 85, 0.65) !important; }
.dark .bg-slate-200 { background-color: rgba(71, 85, 105, 0.75) !important; }

.dark .bg-teal-100 { background-color: rgba(13, 148, 136, 0.28) !important; }
.dark .bg-teal-50 { background-color: rgba(13, 148, 136, 0.18) !important; }
.dark .bg-teal-600 { background-color: #0d9488 !important; }

.dark .bg-cyan-100,
.dark .bg-cyan-50 { background-color: rgba(14, 116, 144, 0.28) !important; }

.dark .bg-emerald-100 { background-color: rgba(5, 150, 105, 0.28) !important; }
.dark .bg-emerald-50 { background-color: rgba(5, 150, 105, 0.18) !important; }

.dark .bg-rose-100,
.dark .bg-rose-50,
.dark [class*="bg-rose-50/"] { background-color: rgba(190, 18, 60, 0.22) !important; }

.dark .bg-red-100,
.dark .bg-red-50 { background-color: rgba(185, 28, 28, 0.22) !important; }

.dark .bg-amber-100,
.dark .bg-amber-50,
.dark .bg-amber-200 { background-color: rgba(180, 83, 9, 0.28) !important; }

.dark .bg-violet-100,
.dark [class*="from-violet-100"] { background-color: rgba(109, 40, 217, 0.22) !important; }

.dark .bg-blue-100 { background-color: rgba(29, 78, 216, 0.25) !important; }

.dark .hover\:bg-white:hover,
.dark .hover\:bg-cyan-50\/40:hover { background-color: rgba(51, 65, 85, 0.75) !important; }

.dark .border-slate-100,
.dark .border-slate-200,
.dark [class*="border-slate-100/"] { border-color: rgba(71, 85, 105, 0.75) !important; }

.dark .border-teal-100,
.dark [class*="border-teal-100/"] { border-color: rgba(13, 148, 136, 0.45) !important; }

.dark .border-cyan-100,
.dark [class*="border-cyan-100/"] { border-color: rgba(14, 116, 144, 0.45) !important; }

.dark .border-emerald-100,
.dark .border-emerald-200,
.dark .border-emerald-500,
.dark .border-emerald-50,
.dark [class*="border-emerald-100/"] { border-color: rgba(5, 150, 105, 0.45) !important; }

.dark .border-rose-100,
.dark .border-rose-200,
.dark .border-rose-300,
.dark .border-red-500,
.dark [class*="border-rose-200/"] { border-color: rgba(190, 18, 60, 0.45) !important; }

.dark .border-red-200,
.dark .border-red-300 { border-color: rgba(220, 38, 38, 0.45) !important; }

.dark .border-amber-200 { border-color: rgba(217, 119, 6, 0.45) !important; }

.dark .border-violet-100,
.dark .border-violet-200,
.dark .hover\:border-violet-200:hover { border-color: rgba(109, 40, 217, 0.45) !important; }

.dark .border-teal-200,
.dark .border-dashed.border-teal-200 { border-color: rgba(13, 148, 136, 0.5) !important; }

.dark .ring-teal-200,
.dark .ring-emerald-200,
.dark .ring-emerald-50,
.dark .ring-rose-200,
.dark .ring-slate-200,
.dark .ring-red-100,
.dark [class*="ring-teal-200/"],
.dark [class*="ring-emerald-200/"],
.dark [class*="ring-rose-200/"],
.dark [class*="ring-red-100/"] {
    --tw-ring-color: rgba(100, 116, 139, 0.45) !important;
}

.dark .from-teal-100 { --tw-gradient-from: #134e4a !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(19, 78, 74, 0)) !important; }
.dark .to-cyan-100 { --tw-gradient-to: #164e63 !important; }
.dark .from-cyan-100 { --tw-gradient-from: #164e63 !important; }
.dark .to-blue-100 { --tw-gradient-to: #1e3a8a !important; }
.dark .from-blue-100 { --tw-gradient-from: #1e3a8a !important; }
.dark .from-white { --tw-gradient-from: #1e293b !important; }
.dark .via-teal-50 { --tw-gradient-stops: var(--tw-gradient-from), #134e4a, var(--tw-gradient-to, rgba(19, 78, 74, 0)) !important; }
.dark .to-cyan-50 { --tw-gradient-to: #164e63 !important; }
.dark .to-cyan-50\/40 { --tw-gradient-to: rgba(22, 78, 99, 0.4) !important; }
.dark .from-white\/90 { --tw-gradient-from: rgba(30, 41, 59, 0.9) !important; }
.dark .from-violet-50\/50 { --tw-gradient-from: rgba(76, 29, 149, 0.35) !important; }
.dark .to-white { --tw-gradient-to: #1e293b !important; }
.dark .from-amber-50 { --tw-gradient-from: rgba(120, 53, 15, 0.45) !important; }
.dark .from-emerald-400 { --tw-gradient-from: #059669 !important; }
.dark .via-teal-400 { --tw-gradient-stops: var(--tw-gradient-from), #0d9488, var(--tw-gradient-to, rgba(13, 148, 136, 0)) !important; }
.dark .to-cyan-400 { --tw-gradient-to: #0891b2 !important; }
.dark .from-rose-500 { --tw-gradient-from: #be123c !important; }
.dark .via-red-500 { --tw-gradient-stops: var(--tw-gradient-from), #dc2626, var(--tw-gradient-to, rgba(220, 38, 38, 0)) !important; }
.dark .to-orange-400 { --tw-gradient-to: #ea580c !important; }
.dark .from-red-400 { --tw-gradient-from: #dc2626 !important; }
.dark .via-rose-400 { --tw-gradient-stops: var(--tw-gradient-from), #e11d48, var(--tw-gradient-to, rgba(225, 29, 72, 0)) !important; }
.dark .to-red-500 { --tw-gradient-to: #b91c1c !important; }
.dark .from-red-600 { --tw-gradient-from: #dc2626 !important; }
.dark .to-rose-600 { --tw-gradient-to: #be123c !important; }
.dark .from-emerald-600 { --tw-gradient-from: #059669 !important; }
.dark .to-teal-600 { --tw-gradient-to: #0d9488 !important; }
.dark .from-red-800 { --tw-gradient-from: #991b1b !important; }
.dark .to-red-900 { --tw-gradient-to: #7f1d1d !important; }
.dark .bg-red-100 { --tw-gradient-from: rgba(190, 18, 60, 0.35) !important; }
.dark .from-slate-50 { --tw-gradient-from: rgba(51, 65, 85, 0.55) !important; }
.dark .to-teal-50\/40 { --tw-gradient-to: rgba(13, 148, 136, 0.25) !important; }

.dark .bg-gradient-to-br.from-teal-100.to-cyan-100,
.dark .bg-gradient-to-br.from-cyan-100.to-blue-100,
.dark .bg-gradient-to-br.from-blue-100.to-cyan-100 {
    background-image: linear-gradient(to bottom right, rgba(13, 148, 136, 0.35), rgba(14, 116, 144, 0.35)) !important;
}

.dark .bg-gradient-to-br.from-white.via-teal-50.to-cyan-50,
.dark .bg-gradient-to-l.from-amber-50.to-white,
.dark .bg-gradient-to-l.from-violet-50\/50.to-white {
    background-image: linear-gradient(to bottom right, rgba(30, 41, 59, 0.95), rgba(13, 148, 136, 0.2), rgba(14, 116, 144, 0.2)) !important;
}

.dark .bg-gradient-to-l.from-slate-50.to-teal-50\/40 {
    background-image: linear-gradient(to left, rgba(51, 65, 85, 0.55), rgba(13, 148, 136, 0.22)) !important;
}

.dark tbody tr.hover\:bg-cyan-50\/40:hover {
    background-color: rgba(14, 116, 144, 0.15) !important;
}

.dark .pc-stepper-card .bg-white {
    background-color: #1e293b !important;
}

.dark .shadow-red-200\/50,
.dark .shadow-red-200\/60,
.dark .shadow-emerald-200\/40,
.dark .shadow-emerald-200\/50 {
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.35) !important;
}

/* ——— Ads slider ——— */
.ads-modern {
    position: relative;
    margin-top: 1.25rem;
    border-radius: 1.25rem;
    overflow: hidden;
    background: linear-gradient(145deg, #0f172a 0%, #134e4a 48%, #0c4a6e 100%);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.06),
        0 20px 40px rgba(14, 116, 144, 0.18);
}

.ads-modern__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(45, 212, 191, 0.22), transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(56, 189, 248, 0.15), transparent 50%);
}

.ads-modern__viewport {
    position: relative;
    height: clamp(148px, 22vw, 220px);
    overflow: hidden;
}

.ads-modern__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.55s ease;
    pointer-events: none;
}

.ads-modern__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.ads-modern__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(15, 23, 42, 0.35);
}

.ads-modern__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
}

.ads-modern__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}

.ads-modern__nav:hover {
    background: rgba(20, 184, 166, 0.75);
    transform: translateY(-50%) scale(1.05);
}

.ads-modern__nav--prev { right: 0.65rem; }
.ads-modern__nav--next { left: 0.65rem; }

.ads-modern__bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 0.55rem 0.85rem;
    background: rgba(15, 23, 42, 0.88);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ads-modern__label,
.ads-modern__progress-wrap {
    display: none !important;
}

.ads-modern__counter {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    font-variant-numeric: tabular-nums;
    min-width: 2.5rem;
    text-align: left;
}

.ads-modern__dots { display: flex; gap: 0.35rem; align-items: center; }

.ads-modern__dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.25s, background 0.25s;
}

.ads-modern__dot.is-active { width: 1.25rem; background: #2dd4bf; }

/* ——— Registration: wallet + payment panels (theme-aware) ——— */
.pc-card--accent {
    background: linear-gradient(145deg, var(--pc-card) 0%, rgba(45, 212, 191, 0.08) 100%);
}

.reg-wallet-box {
    border: 2px solid rgba(13, 148, 136, 0.28);
    background: var(--pc-card);
    color: var(--pc-text);
}

.dark .reg-wallet-box {
    border-color: rgba(45, 212, 191, 0.32);
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.92) 100%);
}

.reg-wallet-thumb {
    background: var(--pc-input-bg);
    border: 1px solid rgba(13, 148, 136, 0.22);
}

.dark .reg-wallet-thumb {
    border-color: rgba(45, 212, 191, 0.25);
}

.reg-wallet-number {
    margin: 0.85rem 0 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: #fff;
    font-size: clamp(1.45rem, 5vw, 2.15rem);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
}

.reg-wallet-meta {
    display: grid;
    gap: 0.35rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--pc-text-secondary);
}

.reg-wallet-meta strong {
    color: var(--pc-text);
    font-weight: 800;
}

.reg-wallet-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.reg-wallet-brand__logo {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 1.15rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--pc-input-bg);
    border: 1px solid rgba(13, 148, 136, 0.22);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.12);
}

.reg-wallet-brand__logo--sm {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 1rem;
}

.dark .reg-wallet-brand__logo {
    border-color: rgba(45, 212, 191, 0.25);
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.35);
}

.reg-wallet-brand__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.35rem;
}

.reg-pay-panel {
    border-radius: 1rem;
    border: 1px solid rgba(13, 148, 136, 0.22);
    background: var(--pc-card);
    color: var(--pc-text);
    padding: 1.15rem 1.25rem;
}

.dark .reg-pay-panel {
    border-color: rgba(71, 85, 105, 0.85);
    background: rgba(30, 41, 59, 0.88);
}

.reg-pay-panel--cyan {
    border-color: rgba(8, 145, 178, 0.28);
    background: linear-gradient(165deg, var(--pc-card) 0%, rgba(6, 182, 212, 0.08) 100%);
}

.dark .reg-pay-panel--cyan {
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.92) 0%, rgba(8, 145, 178, 0.12) 100%);
}

.reg-pay-panel--emerald {
    border-color: rgba(16, 185, 129, 0.28);
    background: linear-gradient(165deg, var(--pc-card) 0%, rgba(16, 185, 129, 0.08) 100%);
}

.dark .reg-pay-panel--emerald {
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.92) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.reg-pay-hint {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--pc-text-muted);
}

.reg-pay-file {
    width: 100%;
    font-size: 0.85rem;
    color: var(--pc-text-secondary);
}

.reg-pay-file::file-selector-button {
    margin-inline-end: 0.75rem;
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #0891b2, #0d9488);
    color: #fff;
    padding: 0.5rem 1rem;
    font-weight: 800;
    cursor: pointer;
}

/* ——— Responsive polish ——— */
@media (max-width: 639px) {
    .pc-card {
        border-radius: 1rem;
    }

    .reg-wallet-number {
        letter-spacing: 0.08em;
        padding: 0.75rem 0.65rem;
    }

    .reg-confirm-modal__actions {
        grid-template-columns: 1fr;
    }

    .ads-modern__viewport {
        height: clamp(130px, 38vw, 200px);
    }
}

@media (max-width: 480px) {
    .pc-shell main {
        padding-inline: 0.85rem;
    }

    .pc-btn {
        font-size: 0.95rem;
    }
}

.dark .bg-slate-100 {
    background-color: rgba(51, 65, 85, 0.55) !important;
}

.dark .border-slate-200 {
    border-color: rgba(71, 85, 105, 0.75) !important;
}

.dark .border-teal-100\/60,
.dark .border-teal-100\/70 {
    border-color: rgba(45, 212, 191, 0.22) !important;
}

.dark .border-cyan-100\/70 {
    border-color: rgba(34, 211, 238, 0.2) !important;
}
