/* ========================================================================
   themes.css — iCard.pk Multi-Theme System + Polish Animations
   ========================================================================
   Three themes controlled via body class:
     body                          → Light (default, existing design)
     body.theme-pro                → Pro (professional / corporate)
     body.theme-designer           → Designer Pro (bold / creative)

   Load AFTER marketing.css and app.css.
   ======================================================================== */


/* ========================================================================
   1. SHARED POLISH ANIMATIONS (all themes)
   ======================================================================== */

/* --- 1a. Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(.22,1,.36,1),
                transform 0.6s cubic-bezier(.22,1,.36,1);
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- 1b. Card Hover Lift --- */
.marketing-steps article,
.marketing-feature-grid article,
.marketing-client-grid article,
.directory-card,
.organization-unit-card {
    transition: transform 0.3s cubic-bezier(.22,1,.36,1),
                box-shadow 0.3s cubic-bezier(.22,1,.36,1);
}
.marketing-steps article:hover,
.marketing-feature-grid article:hover,
.marketing-client-grid article:hover,
.directory-card:hover,
.organization-unit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(7, 26, 73, 0.12);
}

/* --- 1c. Button Micro-Interactions --- */
.marketing-btn {
    transition: transform 0.22s cubic-bezier(.22,1,.36,1),
                box-shadow 0.22s cubic-bezier(.22,1,.36,1),
                background 0.22s ease,
                border-color 0.22s ease;
}
.marketing-btn:active {
    transform: scale(0.97) !important;
}

/* --- 1d. Header Scroll Effect --- */
.marketing-header.scrolled {
    box-shadow: 0 4px 24px rgba(7, 26, 73, 0.12);
}

/* --- 1e. Stats Counter Pulse --- */
.marketing-stats b {
    animation: stats-pulse 0.6s cubic-bezier(.22,1,.36,1);
}
@keyframes stats-pulse {
    0%   { opacity: 0.4; transform: scale(0.92); }
    60%  { transform: scale(1.04); }
    100% { opacity: 1;   transform: scale(1); }
}

/* --- 1f. Verification Shield Scale Pulse --- */
.verification-shield {
    animation: shield-pulse 2.4s ease-in-out infinite;
}
@keyframes shield-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

/* --- 1g. Nav Link Underline (smoother, wider) --- */
.marketing-nav a:after {
    transition: left 0.28s cubic-bezier(.22,1,.36,1),
                right 0.28s cubic-bezier(.22,1,.36,1);
    height: 3px;
}

/* --- 1h. Footer Link Hover --- */
.marketing-footer a {
    transition: color 0.22s ease, transform 0.22s ease;
    display: inline-block;
}
.marketing-footer a:hover {
    transform: translateX(2px);
}

/* --- 1i. Form Focus Glow --- */
.marketing-form-card .form-control:focus,
.marketing-form-card .form-select:focus {
    box-shadow: 0 0 0 4px rgba(11, 99, 246, 0.15);
    border-color: var(--mk-blue);
}

/* --- 1j. Image Hover Zoom --- */
.organization-gallery img,
.directory-card img {
    transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}
.organization-gallery img:hover,
.directory-card img:hover {
    transform: scale(1.04);
}

/* --- 1k. Partner Float Animation --- */
.partner-school,
.partner-tag {
    animation: partner-float 3.6s ease-in-out infinite;
}
.partner-tag:nth-child(even) {
    animation-delay: 0.6s;
}
.partner-tag:nth-child(3n) {
    animation-delay: 1.2s;
}
@keyframes partner-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

/* --- 1l. ID Card Float --- */
.marketing-id-card {
    animation: idcard-float 4s ease-in-out infinite;
}
@keyframes idcard-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%      { transform: translateY(-6px) rotate(0.5deg); }
    75%      { transform: translateY(3px) rotate(-0.3deg); }
}

/* --- 1m. Shield Glow Pulse --- */
.marketing-shield {
    animation: shield-glow 3s ease-in-out infinite;
}
@keyframes shield-glow {
    0%, 100% { filter: drop-shadow(0 0 0px transparent); }
    50%      { filter: drop-shadow(0 0 12px rgba(8, 163, 59, 0.3)); }
}


/* ========================================================================
   2. REDUCED MOTION — disable all custom animations
   ======================================================================== */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal-delay-1,
    .reveal-delay-2,
    .reveal-delay-3,
    .reveal-delay-4 {
        transition-delay: 0s;
    }
    .marketing-steps article,
    .marketing-feature-grid article,
    .marketing-client-grid article,
    .directory-card,
    .organization-unit-card,
    .marketing-btn,
    .marketing-nav a:after,
    .marketing-footer a,
    .marketing-form-card .form-control:focus,
    .marketing-form-card .form-select:focus,
    .organization-gallery img,
    .directory-card img {
        transition: none;
        transform: none;
    }
    .marketing-btn:active {
        transform: none !important;
    }
    .verification-shield,
    .partner-school,
    .partner-tag,
    .marketing-id-card,
    .marketing-shield {
        animation: none;
    }
    .marketing-stats b {
        animation: none;
    }
}


/* ========================================================================
   3. THEME: LIGHT (default) — No overrides needed
   ========================================================================
   The existing marketing.css / app.css values already define the Light theme.
   This section is intentionally left empty to confirm that no overrides
   are required when no theme class is present on the body.
   ======================================================================== */


/* ========================================================================
   4. THEME: PRO — Professional / Corporate
   ======================================================================== */

/* --- 4a. Pro: Theme Custom Properties --- */
body.theme-pro {
    --pro-primary: #0f172a;
    --pro-accent: #1e40af;
    --pro-accent-gold: #d97706;
    --pro-bg: #f8fafc;
    --pro-surface: #ffffff;
    --pro-ink: #0f172a;
    --pro-muted: #64748b;
    --pro-line: #e2e8f0;
    --pro-footer-bg: #020617;
    --pro-sidebar-bg: #0f172a;
    --pro-surface-alt: #f1f5f9;
    --pro-stat-from: #1e293b;
    --pro-stat-to: #334155;
}

/* --- 4b. Pro: Marketing/Public — Body & Surfaces --- */
body.theme-pro .guest-body {
    background: var(--pro-bg);
}

/* --- 4c. Pro: Marketing — Header --- */
body.theme-pro .marketing-header {
    background: var(--pro-surface);
    box-shadow: 0 1px 0 var(--pro-line);
}
body.theme-pro .marketing-header.scrolled {
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.1);
}
body.theme-pro .marketing-header-top {
    min-height: 78px;
}
body.theme-pro .marketing-brand {
    color: var(--pro-primary);
}

/* --- 4d. Pro: Marketing — Navigation --- */
body.theme-pro .marketing-nav {
    background: var(--pro-primary);
}
body.theme-pro .marketing-nav a:after {
    background: var(--pro-accent);
}
body.theme-pro .marketing-menu-button {
    border-color: var(--pro-line);
    color: var(--pro-primary);
}

/* --- 4e. Pro: Marketing — Hero --- */
body.theme-pro .marketing-hero {
    background: var(--pro-surface);
}
body.theme-pro .marketing-hero-copy {
    color: var(--pro-ink);
}

/* --- 4f. Pro: Marketing — Buttons --- */
body.theme-pro .marketing-btn {
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
}
body.theme-pro .marketing-btn-large {
    padding: 0.95rem 1.5rem;
}
body.theme-pro .marketing-btn-green {
    background: var(--pro-accent);
}
body.theme-pro .marketing-btn-navy {
    background: var(--pro-primary);
}
body.theme-pro .marketing-btn-outline {
    border-color: var(--pro-accent);
    color: var(--pro-accent);
}

/* --- 4g. Pro: Marketing — Sections --- */
body.theme-pro .marketing-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}
body.theme-pro .marketing-section-soft {
    background: var(--pro-surface);
}

/* --- 4h. Pro: Marketing — Typography --- */
body.theme-pro .marketing-section-title,
body.theme-pro .marketing-eyebrow,
body.theme-pro .marketing-form-heading {
    letter-spacing: -0.01em;
}
body.theme-pro .marketing-section-title {
    font-weight: 850;
    color: var(--pro-ink);
}

/* --- 4i. Pro: Marketing — Cards (steps, features, clients) --- */
body.theme-pro .marketing-steps article,
body.theme-pro .marketing-feature-grid article,
body.theme-pro .marketing-client-grid article {
    background: var(--pro-surface);
    border-left: 4px solid var(--pro-accent);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06),
                0 1px 4px rgba(15, 23, 42, 0.04);
    border-radius: 10px;
}
body.theme-pro .marketing-feature-grid article {
    border-left-color: var(--pro-accent);
}
body.theme-pro .marketing-steps article:nth-child(2) {
    border-left-color: var(--pro-accent-gold);
}
body.theme-pro .marketing-steps article:nth-child(3) {
    border-left-color: #059669;
}

/* --- 4j. Pro: Marketing — Feature Icons --- */
body.theme-pro .marketing-icon {
    background: #eff6ff;
    color: var(--pro-accent);
}

/* --- 4k. Pro: Marketing — Stats Bar --- */
body.theme-pro .marketing-stats {
    background: linear-gradient(135deg, var(--pro-stat-from) 0%, var(--pro-stat-to) 100%);
}
body.theme-pro .marketing-stats b {
    color: #fff;
}

/* --- 4l. Pro: Marketing — Form Card --- */
body.theme-pro .marketing-form-card {
    border-left: 4px solid var(--pro-accent);
    border-radius: 12px;
}
body.theme-pro .marketing-form-card .form-control:focus,
body.theme-pro .marketing-form-card .form-select:focus {
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.15);
    border-color: var(--pro-accent);
}

/* --- 4m. Pro: Marketing — Verify Banner --- */
body.theme-pro .marketing-verify-banner {
    background: var(--pro-primary);
}

/* --- 4n. Pro: Marketing — Final CTA --- */
body.theme-pro .marketing-final-cta {
    background: var(--pro-primary);
}

/* --- 4o. Pro: Marketing — Footer --- */
body.theme-pro .marketing-footer {
    background: var(--pro-footer-bg);
}
body.theme-pro .marketing-footer a {
    color: rgba(255, 255, 255, 0.7);
}
body.theme-pro .marketing-footer a:hover {
    color: #fff;
}

/* --- 4p. Pro: Marketing — Directory Cards --- */
body.theme-pro .directory-card {
    background: var(--pro-surface);
    border-left: 4px solid var(--pro-accent);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

/* --- 4q. Pro: Marketing — Organization Pages --- */
body.theme-pro .organization-hero {
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-accent) 100%);
}
body.theme-pro .organization-unit-card {
    background: var(--pro-surface);
    border-left: 4px solid var(--pro-accent);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}
body.theme-pro .organization-section-soft {
    background: var(--pro-surface);
}
body.theme-pro .organization-stats-section {
    background: linear-gradient(135deg, var(--pro-stat-from) 0%, var(--pro-stat-to) 100%);
}

/* --- 4r. Pro: Dashboard — Sidebar --- */
body.theme-pro .sidebar {
    background: var(--pro-sidebar-bg);
    color: rgba(255, 255, 255, 0.85);
    border-right-color: transparent;
}
body.theme-pro .sidebar .brand {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.theme-pro .brand-pk {
    color: #93c5fd;
}
body.theme-pro .side-group {
    color: rgba(255, 255, 255, 0.4);
}
body.theme-pro .side-link {
    color: rgba(255, 255, 255, 0.65);
}
body.theme-pro .side-link i {
    color: rgba(255, 255, 255, 0.45);
}
body.theme-pro .side-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
body.theme-pro .side-link.active {
    background: var(--pro-accent);
    color: #fff;
}
body.theme-pro .side-link.active i {
    color: #fff;
}
body.theme-pro .sidebar-user {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}
body.theme-pro .sidebar-user .avatar {
    background: var(--pro-accent);
    color: #fff;
}
body.theme-pro .sidebar-user .u-name {
    color: #fff;
}
body.theme-pro .sidebar-user .u-meta {
    color: rgba(255, 255, 255, 0.5);
}
body.theme-pro .sidebar-user .signout {
    color: rgba(255, 255, 255, 0.4);
}
body.theme-pro .sidebar-user .signout:hover {
    color: #f87171;
}

/* --- 4s. Pro: Dashboard — Topbar --- */
body.theme-pro .topbar {
    background: var(--pro-surface);
    border-bottom-color: var(--pro-line);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* --- 4t. Pro: Dashboard — Main Content Area --- */
body.theme-pro .main {
    background: var(--pro-surface-alt);
}

/* --- 4u. Pro: Dashboard — Metric Cards --- */
body.theme-pro .metric-card {
    background: var(--pro-surface);
    border-color: var(--pro-line);
    border-left: 4px solid var(--pro-accent);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
body.theme-pro .metric-ico.blue {
    background: #eff6ff;
    color: var(--pro-accent);
}
body.theme-pro .metric-val {
    color: var(--pro-accent);
}

/* --- 4v. Pro: Dashboard — Table Cards --- */
body.theme-pro .table-card {
    background: var(--pro-surface);
    border-color: var(--pro-line);
}
body.theme-pro .table-card tbody tr:nth-child(even) {
    background: #f8fafc;
}

/* --- 4w. Pro: Dashboard — Attention / Quick / Recent Cards --- */
body.theme-pro .attention-card,
body.theme-pro .quick-card,
body.theme-pro .recent-card {
    background: var(--pro-surface);
    border-color: var(--pro-line);
}
body.theme-pro .quick-card:hover {
    border-color: var(--pro-accent);
    color: var(--pro-accent);
}
body.theme-pro .quick-ico {
    background: #eff6ff;
    color: var(--pro-accent);
}

/* --- 4x. Pro: Dashboard — Brand Color --- */
body.theme-pro .sidebar .brand,
body.theme-pro .dash-head h1 {
    color: var(--pro-accent);
}

/* --- 4y. Pro: Auth Pages --- */
body.theme-pro .auth-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}
body.theme-pro .auth-card {
    box-shadow: 0 1.5rem 3.5rem rgba(15, 23, 42, 0.3);
}


/* ========================================================================
   5. THEME: DESIGNER PRO — Bold / Creative / Graphical
   ======================================================================== */

/* --- 5a. Designer: Theme Custom Properties --- */
body.theme-designer {
    --ds-primary: #7c3aed;
    --ds-primary-dark: #5b21b6;
    --ds-accent-cyan: #06b6d4;
    --ds-accent-rose: #f43f5e;
    --ds-bg: #faf5ff;
    --ds-surface: #ffffff;
    --ds-ink: #1e1b4b;
    --ds-muted: #6d28d9;
    --ds-line: #e9d5ff;
    --ds-footer-from: #1e1b4b;
    --ds-footer-to: #312e81;
    --ds-sidebar-from: #1e1b4b;
    --ds-sidebar-to: #312e81;
    --ds-surface-alt: #f5f3ff;
}

/* --- 5b. Designer: Marketing/Public — Body & Surfaces --- */
body.theme-designer .guest-body {
    background: var(--ds-bg);
}

/* --- 5c. Designer: Marketing — Header (glassmorphism) --- */
body.theme-designer .marketing-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    box-shadow: 0 1px 8px rgba(124, 58, 237, 0.06);
}
body.theme-designer .marketing-header.scrolled {
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.1);
}
body.theme-designer .marketing-brand {
    color: var(--ds-primary);
}

/* --- 5d. Designer: Marketing — Navigation (gradient) --- */
body.theme-designer .marketing-nav {
    background: linear-gradient(90deg, #7c3aed 0%, #4f46e5 100%);
}
body.theme-designer .marketing-nav a:after {
    background: var(--ds-accent-cyan);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}
body.theme-designer .marketing-menu-button {
    border-color: var(--ds-line);
    color: var(--ds-primary);
}

/* --- 5e. Designer: Marketing — Hero --- */
body.theme-designer .marketing-hero {
    background: linear-gradient(160deg, #faf5ff 0%, #ecfeff 50%, #fff1f2 100%);
}
body.theme-designer .marketing-hero-copy {
    color: var(--ds-ink);
}

/* --- 5f. Designer: Marketing — Buttons (gradient, rounded, glow) --- */
body.theme-designer .marketing-btn {
    border-radius: 12px;
    padding: 0.78rem 1.3rem;
}
body.theme-designer .marketing-btn-large {
    padding: 1rem 1.6rem;
}
body.theme-designer .marketing-btn-green {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    border: none;
}
body.theme-designer .marketing-btn-green:hover {
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.35);
}
body.theme-designer .marketing-btn-navy {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}
body.theme-designer .marketing-btn-navy:hover {
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.35);
}
body.theme-designer .marketing-btn-outline {
    border-color: var(--ds-primary);
    color: var(--ds-primary);
}
body.theme-designer .marketing-btn-outline:hover {
    background: var(--ds-primary);
    color: #fff;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

/* --- 5g. Designer: Marketing — Sections (alternating gradients) --- */
body.theme-designer .marketing-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}
body.theme-designer .marketing-section-soft {
    background: linear-gradient(180deg, #faf5ff 0%, #f0fdf4 100%);
}

/* --- 5h. Designer: Marketing — Typography (bolder, expressive) --- */
body.theme-designer .marketing-section-title {
    color: var(--ds-ink);
    font-weight: 900;
    letter-spacing: -0.02em;
}
body.theme-designer .marketing-eyebrow {
    color: var(--ds-primary);
    font-weight: 800;
}

/* --- 5i. Designer: Marketing — Cards (glassmorphism, gradient borders) --- */
body.theme-designer .marketing-steps article,
body.theme-designer .marketing-feature-grid article,
body.theme-designer .marketing-client-grid article {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.08);
    position: relative;
    overflow: hidden;
}
/* Gradient top border via pseudo-element */
body.theme-designer .marketing-steps article::before,
body.theme-designer .marketing-feature-grid article::before,
body.theme-designer .marketing-client-grid article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #06b6d4, #f43f5e);
    border-radius: 16px 16px 0 0;
}
body.theme-designer .marketing-feature-grid article::before {
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
}

/* --- 5j. Designer: Marketing — Feature Icons (gradient bg) --- */
body.theme-designer .marketing-icon {
    background: linear-gradient(135deg, #ede9fe 0%, #cffafe 100%);
    color: var(--ds-primary);
}

/* --- 5k. Designer: Marketing — Stats Bar (vivid gradient) --- */
body.theme-designer .marketing-stats {
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
}
body.theme-designer .marketing-stats b {
    color: #fff;
}

/* --- 5l. Designer: Marketing — Form Card (glassmorphism) --- */
body.theme-designer .marketing-form-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 16px;
}
body.theme-designer .marketing-form-card .form-control:focus,
body.theme-designer .marketing-form-card .form-select:focus {
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
    border-color: var(--ds-primary);
}

/* --- 5m. Designer: Marketing — Verify Banner --- */
body.theme-designer .marketing-verify-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #7c3aed 100%);
}

/* --- 5n. Designer: Marketing — Final CTA --- */
body.theme-designer .marketing-final-cta {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #06b6d4 100%);
}

/* --- 5o. Designer: Marketing — Footer (gradient) --- */
body.theme-designer .marketing-footer {
    background: linear-gradient(180deg, var(--ds-footer-from) 0%, var(--ds-footer-to) 100%);
}
body.theme-designer .marketing-footer a {
    color: rgba(255, 255, 255, 0.65);
}
body.theme-designer .marketing-footer a:hover {
    color: #c4b5fd;
}

/* --- 5p. Designer: Marketing — Directory Cards --- */
body.theme-designer .directory-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.08);
}

/* --- 5q. Designer: Marketing — Organization Pages --- */
body.theme-designer .organization-hero {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 40%, #06b6d4 100%);
    position: relative;
    overflow: hidden;
}
/* Animated shimmer overlay on organization hero */
body.theme-designer .organization-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.12) 45%,
        rgba(255, 255, 255, 0.12) 55%,
        transparent 60%
    );
    background-size: 250% 100%;
    animation: hero-shimmer 4s ease-in-out infinite;
}
@keyframes hero-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
body.theme-designer .organization-unit-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.08);
}
body.theme-designer .organization-section-soft {
    background: linear-gradient(180deg, #faf5ff 0%, #ecfdf5 100%);
}
body.theme-designer .organization-stats-section {
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
}

/* --- 5r. Designer: Marketing — Decorative Dot Pattern --- */
body.theme-designer .marketing-section {
    background-image: radial-gradient(circle, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}
body.theme-designer .marketing-section-soft {
    background-image: radial-gradient(circle, rgba(124, 58, 237, 0.04) 1px, transparent 1px),
                         linear-gradient(180deg, #faf5ff 0%, #f0fdf4 100%);
    background-size: 24px 24px, 100% 100%;
}

/* --- 5s. Designer: Marketing — Verification Shield Glassmorphism --- */
body.theme-designer .verification-shield {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.12);
}

/* --- 5t. Designer: Dashboard — Sidebar (gradient) --- */
body.theme-designer .sidebar {
    background: linear-gradient(180deg, var(--ds-sidebar-from) 0%, var(--ds-sidebar-to) 100%);
    color: rgba(255, 255, 255, 0.85);
    border-right-color: transparent;
}
body.theme-designer .sidebar .brand {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.theme-designer .brand-pk {
    color: #c4b5fd;
}
body.theme-designer .side-group {
    color: rgba(255, 255, 255, 0.4);
}
body.theme-designer .side-link {
    color: rgba(255, 255, 255, 0.65);
}
body.theme-designer .side-link i {
    color: rgba(255, 255, 255, 0.45);
}
body.theme-designer .side-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
body.theme-designer .side-link.active {
    background: var(--ds-primary);
    color: #fff;
    border-radius: 999px;
}
body.theme-designer .side-link.active i {
    color: #fff;
}
body.theme-designer .sidebar-user {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}
body.theme-designer .sidebar-user .avatar {
    background: var(--ds-primary);
    color: #fff;
}
body.theme-designer .sidebar-user .u-name {
    color: #fff;
}
body.theme-designer .sidebar-user .u-meta {
    color: rgba(255, 255, 255, 0.5);
}
body.theme-designer .sidebar-user .signout {
    color: rgba(255, 255, 255, 0.4);
}
body.theme-designer .sidebar-user .signout:hover {
    color: #f87171;
}

/* --- 5u. Designer: Dashboard — Topbar (accent line) --- */
body.theme-designer .topbar {
    background: var(--ds-surface);
    border-bottom: 1px solid var(--ds-line);
    box-shadow: 0 1px 3px rgba(124, 58, 237, 0.04);
    position: relative;
}
body.theme-designer .topbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
}

/* --- 5v. Designer: Dashboard — Main Content Area --- */
body.theme-designer .main {
    background: var(--ds-surface-alt);
}

/* --- 5w. Designer: Dashboard — Metric Cards (colored top border, hover lift) --- */
body.theme-designer .metric-card {
    background: var(--ds-surface);
    border-color: var(--ds-line);
    border-left: none;
    border-top: 4px solid var(--ds-primary);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.04);
    border-radius: 14px;
    transition: transform 0.3s cubic-bezier(.22,1,.36,1),
                box-shadow 0.3s cubic-bezier(.22,1,.36,1);
}
body.theme-designer .metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.12);
}
body.theme-designer .metric-ico.blue {
    background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
    color: var(--ds-primary);
}
body.theme-designer .metric-ico.green {
    background: linear-gradient(135deg, #ecfdf5 0%, #cffafe 100%);
}
body.theme-designer .metric-ico.orange {
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
}
body.theme-designer .metric-ico.purple {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}
body.theme-designer .metric-val {
    color: var(--ds-primary);
}

/* --- 5x. Designer: Dashboard — Table Cards --- */
body.theme-designer .table-card {
    background: var(--ds-surface);
    border-color: var(--ds-line);
    border-radius: 14px;
}
body.theme-designer .table-card tbody tr:nth-child(even) {
    background: #faf5ff;
}

/* --- 5y. Designer: Dashboard — Attention / Quick / Recent Cards --- */
body.theme-designer .attention-card,
body.theme-designer .quick-card,
body.theme-designer .recent-card {
    background: var(--ds-surface);
    border-color: var(--ds-line);
}
body.theme-designer .quick-card:hover {
    border-color: var(--ds-primary);
    color: var(--ds-primary);
}
body.theme-designer .quick-ico {
    background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
    color: var(--ds-primary);
}

/* --- 5z. Designer: Dashboard — Brand Color (gradient text) --- */
body.theme-designer .sidebar .brand {
    background: linear-gradient(90deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body.theme-designer .dash-head h1 {
    background: linear-gradient(90deg, #7c3aed 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- 5aa. Designer: Dashboard — Form Inputs (purple focus) --- */
body.theme-designer .main .form-control:focus,
body.theme-designer .main .form-select:focus {
    border-color: var(--ds-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* --- 5ab. Designer: Dashboard — Buttons (purple primary, hover glow) --- */
body.theme-designer .main .btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    border: none;
}
body.theme-designer .main .btn-primary:hover {
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

/* --- 5ac. Designer: Auth Pages --- */
body.theme-designer .auth-page {
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 50%, #f43f5e 100%);
}
body.theme-designer .auth-card {
    box-shadow: 0 1.5rem 3.5rem rgba(124, 58, 237, 0.3);
}
body.theme-designer .auth-split-brand {
    background: linear-gradient(160deg, #faf5ff 0%, #ecfdf5 100%);
    border-right-color: #e9d5ff;
}
body.theme-designer .auth-welcome,
body.theme-designer .auth-split-contact {
    color: var(--ds-primary);
}
body.theme-designer .auth-home-btn {
    border-color: var(--ds-primary);
    color: var(--ds-primary);
}
body.theme-designer .auth-home-btn:hover {
    background: var(--ds-primary);
    color: #fff;
}
body.theme-designer .auth-login-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
}


/* ========================================================================
   6. RESPONSIVE OVERRIDES
   ======================================================================== */

/* --- 6a. Shared responsive card hover (disable lift on touch) --- */
@media (hover: none) {
    .marketing-steps article:hover,
    .marketing-feature-grid article:hover,
    .marketing-client-grid article:hover,
    .directory-card:hover,
    .organization-unit-card:hover {
        transform: none;
    }
    body.theme-designer .metric-card:hover {
        transform: none;
    }
}

/* --- 6b. Pro responsive --- */
@media (max-width: 991.98px) {
    body.theme-pro .marketing-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    body.theme-pro .marketing-header-top {
        min-height: 64px;
    }
}

/* --- 6c. Designer responsive --- */
@media (max-width: 991.98px) {
    body.theme-designer .marketing-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    /* Disable decorative dot pattern on small screens for performance */
    body.theme-designer .marketing-section {
        background-image: none;
    }
    body.theme-designer .marketing-section-soft {
        background-image: none;
    }
}

/* --- 6d. Dashboard responsive (shared) --- */
@media (max-width: 991.98px) {
    body.theme-pro .sidebar,
    body.theme-designer .sidebar {
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    }
}

/* --- 6e. Extra small screens --- */
@media (max-width: 575.98px) {
    body.theme-pro .marketing-btn,
    body.theme-designer .marketing-btn {
        padding: 0.65rem 1rem;
        border-radius: 8px;
    }
    body.theme-pro .marketing-section,
    body.theme-designer .marketing-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}


/* ========================================================================
   7. REDUCED MOTION — Theme-specific overrides
   ======================================================================== */
@media (prefers-reduced-motion: reduce) {
    /* Disable Designer hero shimmer */
    body.theme-designer .organization-hero::after {
        animation: none;
        display: none;
    }
    /* Disable Designer card hover lift */
    body.theme-designer .metric-card:hover {
        transform: none;
    }
}
