@font-face {
    font-family: 'DanaMedium';
    src: url('../fonts/dana-medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DanaBold';
    src: url('../fonts/dana-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --wprt-primary: #1354B4;
    --wprt-primary-dark: #0B3E8B;
    --wprt-accent: #00B8D9;
    --wprt-bg: #F5F7FA;
    --wprt-text: #1F2937;
    --wprt-muted: #6B7280;
    --wprt-success: #22C55E;
    --wprt-warning: #F59E0B;
    --wprt-footer: #071E3A;
    --wprt-footer-2: #0B2545;
    --wprt-card: #FFFFFF;
    --wprt-border: #E5E7EB;
    --wprt-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
    --wprt-shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.07);
    --wprt-radius: 22px;
    --wprt-radius-sm: 14px;
    --wprt-container: 1200px;
    --wprt-font-body: 'DanaMedium', Vazirmatn, IRANSansX, IRANSans, Tahoma, Arial, sans-serif;
    --wprt-font-heading: 'DanaBold', 'DanaMedium', Vazirmatn, IRANSansX, IRANSans, Tahoma, Arial, sans-serif;
    --wprt-font: var(--wprt-font-body);
    --wprt-font-size-xs: 0.75rem;
    --wprt-font-size-sm: 0.8125rem;
    --wprt-font-size-base: 0.9375rem;
    --wprt-font-size-md: 1rem;
    --wprt-font-size-lg: 1.125rem;
    --wprt-font-size-xl: 1.375rem;
    --wprt-font-size-2xl: 1.75rem;
    --wprt-font-size-3xl: 2.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: var(--wprt-font-size-md); }
body {
    margin: 0;
    direction: rtl;
    background: var(--wprt-bg);
    color: var(--wprt-text);
    font-family: var(--wprt-font);
    font-size: var(--wprt-font-size-base);
    line-height: 1.85;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.wprt-brand-text strong,
.wprt-menu a,
.wprt-header-cta,
.wprt-section-heading h2,
.wprt-stat-card strong,
.wprt-core-info h3,
.wprt-plugin-card h3,
.wprt-version-badge,
.wprt-btn,
.wprt-modal h2,
.wprt-request-form label,
.wprt-detail-row strong,
.wprt-detail-row span,
.wprt-footer h3 {
    font-family: var(--wprt-font-heading);
    font-weight: 700;
}

p, li, small, span, input, textarea, button, a {
    font-family: inherit;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.wprt-container { width: min(var(--wprt-container), calc(100% - 40px)); margin-inline: auto; }
.wprt-skip-link {
    position: absolute;
    top: -60px;
    right: 16px;
    z-index: 9999;
    background: var(--wprt-primary);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
}
.wprt-skip-link:focus { top: 16px; }
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Header */
.wprt-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229,231,235,0.8);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.04);
}
.admin-bar .wprt-site-header { top: 32px; }
.wprt-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 76px;
}
.wprt-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}
.wprt-brand-mark,
.wprt-footer-logo,
.wprt-core-logo,
.wprt-sidebar-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}
.wprt-wp-logo {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff, #E8F2FF);
    border: 2px solid rgba(19,84,180,0.18);
    box-shadow: inset 0 0 0 4px rgba(19,84,180,0.05);
    color: var(--wprt-primary);
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 25px;
    line-height: 1;
}
.wprt-wp-logo span { transform: translateY(1px); }
.custom-logo-link img { max-width: 48px; max-height: 48px; border-radius: 50%; }
.wprt-brand-text { display: grid; line-height: 1.4; }
.wprt-brand-text strong { font-size: var(--wprt-font-size-lg); color: #0f172a; }
.wprt-brand-text small { color: var(--wprt-muted); font-size: var(--wprt-font-size-xs); }
.wprt-primary-nav { flex: 1; }
.wprt-menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}
.wprt-menu a {
    display: inline-flex;
    align-items: center;
    padding: 24px 12px;
    color: #253047;
    font-size: var(--wprt-font-size-sm);
    font-weight: 600;
    position: relative;
}
.wprt-menu a::after {
    content: "";
    position: absolute;
    right: 12px;
    left: 12px;
    bottom: 16px;
    height: 3px;
    border-radius: 99px;
    background: var(--wprt-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}
.wprt-menu a:hover::after,
.wprt-menu .current-menu-item > a::after,
.wprt-menu .current_page_item > a::after { transform: scaleX(1); }
.wprt-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--wprt-primary), #0D6BD8);
    color: #fff;
    padding: 11px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(19,84,180,0.26);
    font-weight: 800;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease;
}
.wprt-header-cta svg { width: 18px; height: 18px; }
.wprt-header-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(19,84,180,0.32); }
.wprt-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--wprt-border);
    border-radius: 14px;
    background: #fff;
    padding: 10px;
    cursor: pointer;
}
.wprt-mobile-toggle span:not(.screen-reader-text) {
    display: block;
    height: 2px;
    background: var(--wprt-text);
    border-radius: 2px;
    margin: 5px 0;
}

/* Hero */
.wprt-site-main { min-height: 60vh; }
.wprt-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(circle at 15% 10%, rgba(0,184,217,0.28), transparent 34%), linear-gradient(135deg, #053A89 0%, #0759BD 52%, #054A98 100%);
    min-height: 275px;
    display: grid;
    place-items: center;
    color: #fff;
}
.wprt-hero::before,
.wprt-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.wprt-hero::before {
    background-image:
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 58px 58px;
    opacity: .28;
}
.wprt-hero::after {
    background:
        radial-gradient(circle at 75% 30%, rgba(255,255,255,0.22) 0 2px, transparent 3px),
        radial-gradient(circle at 82% 54%, rgba(255,255,255,0.15) 0 2px, transparent 3px),
        linear-gradient(130deg, transparent 0 45%, rgba(255,255,255,0.14) 46%, transparent 47% 100%);
}
.wprt-hero-watermark {
    position: absolute;
    right: 8%;
    top: 28px;
    color: rgba(255,255,255,0.08);
    font-family: Georgia, serif;
    font-size: 160px;
    font-weight: 700;
    line-height: 1;
}
.wprt-hero-inner { text-align: center; padding: 56px 0 64px; }
.wprt-hero h1 { margin: 0 0 8px; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.35; letter-spacing: -0.03em; }
.wprt-hero p { margin: 0 0 28px; color: rgba(255,255,255,0.88); font-size: var(--wprt-font-size-md); }
.wprt-search-box {
    width: min(640px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.96);
    color: var(--wprt-muted);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 16px;
    box-shadow: 0 20px 55px rgba(0,0,0,0.20);
    padding: 0 18px;
}
.wprt-search-box svg { width: 24px; height: 24px; color: var(--wprt-primary); }
.wprt-search-box input {
    border: 0;
    outline: 0;
    width: 100%;
    height: 60px;
    color: var(--wprt-text);
    background: transparent;
}
.wprt-search-box input::placeholder { color: #8b95a5; }

/* Stats */
.wprt-stats { margin-top: -28px; position: relative; z-index: 4; }
.wprt-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.wprt-stat-card {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--wprt-card);
    border: 1px solid rgba(229,231,235,0.9);
    border-radius: var(--wprt-radius);
    box-shadow: var(--wprt-shadow-soft);
    padding: 22px;
}
.wprt-stat-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #EAF6FF;
    color: var(--wprt-primary);
    flex: 0 0 auto;
}
.wprt-stat-icon svg { width: 28px; height: 28px; }
.wprt-stat-card strong { display: block; font-size: var(--wprt-font-size-xl); color: #10213f; letter-spacing: -0.02em; }
.wprt-stat-card span { display: block; color: var(--wprt-muted); font-size: var(--wprt-font-size-sm); }

/* Sections */
.wprt-section { padding: 44px 0 0; }
.wprt-section-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 18px;
}
.wprt-section-heading-row { justify-content: space-between; }
.wprt-section h2,
.wprt-section-heading h2 { margin: 0; font-size: var(--wprt-font-size-xl); color: #111827; letter-spacing: -0.02em; }
.wprt-small-link { color: var(--wprt-primary); font-weight: 800; font-size: var(--wprt-font-size-sm); }
.wprt-small-link:hover { color: var(--wprt-primary-dark); }

/* Core cards */
.wprt-core-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.wprt-core-card {
    display: flex;
    align-items: center;
    gap: 22px;
    background: #fff;
    border: 1px solid var(--wprt-border);
    border-radius: var(--wprt-radius);
    box-shadow: var(--wprt-shadow-soft);
    padding: 24px;
}
.wprt-core-logo img,
.wprt-sidebar-icon img { width: 58px; height: 58px; object-fit: contain; border-radius: 16px; }
.wprt-core-info span { color: var(--wprt-muted); font-size: var(--wprt-font-size-sm); }
.wprt-core-info h3 { margin: 2px 0 2px; font-size: var(--wprt-font-size-xl); line-height: 1.4; }
.wprt-core-info p { margin: 0 0 12px; color: var(--wprt-muted); font-size: var(--wprt-font-size-sm); }

/* Buttons */
.wprt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 11px;
    padding: 8px 15px;
    border: 1px solid transparent;
    font-weight: 800;
    font-size: var(--wprt-font-size-sm);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.wprt-btn svg { width: 18px; height: 18px; }
.wprt-btn:hover { transform: translateY(-1px); }
.wprt-btn-primary {
    background: linear-gradient(135deg, var(--wprt-primary), #0D6BD8);
    color: #fff;
    box-shadow: 0 10px 22px rgba(19,84,180,0.22);
}
.wprt-btn-primary:hover { box-shadow: 0 14px 28px rgba(19,84,180,0.30); }
.wprt-btn-outline { border-color: var(--wprt-border); background: #fff; color: #334155; }
.wprt-btn-outline:hover { border-color: rgba(19,84,180,0.35); color: var(--wprt-primary); }
.wprt-btn-light { background: #F8FAFC; border-color: var(--wprt-border); color: var(--wprt-primary); }
.wprt-btn-more { background: #fff; border-color: rgba(19,84,180,0.35); color: var(--wprt-primary); min-width: 220px; }

/* Plugin grid */
.wprt-plugins-section { padding-bottom: 52px; }
.wprt-plugins-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.wprt-plugin-card {
    background: #fff;
    border: 1px solid var(--wprt-border);
    border-radius: var(--wprt-radius);
    box-shadow: 0 12px 32px rgba(15,23,42,0.06);
    padding: 20px;
    min-height: 285px;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.wprt-plugin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(15,23,42,0.10);
    border-color: rgba(19,84,180,0.22);
}
.wprt-plugin-card[hidden] { display: none !important; }
.wprt-plugin-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.wprt-plugin-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: color-mix(in srgb, var(--wprt-card-color, var(--wprt-primary)) 16%, #fff);
    color: var(--wprt-card-color, var(--wprt-primary));
    overflow: hidden;
}
@supports not (background: color-mix(in srgb, #000 10%, #fff)) {
    .wprt-plugin-icon { background: #EEF6FF; }
}
.wprt-plugin-icon img { width: 100%; height: 100%; object-fit: cover; }
.wprt-plugin-icon span { font-weight: 900; font-size: var(--wprt-font-size-xl); }
.wprt-version-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #DFF8F4;
    color: #087568;
    font-size: var(--wprt-font-size-xs);
    font-weight: 900;
    direction: ltr;
}
.wprt-plugin-card h3 { margin: 0; font-size: var(--wprt-font-size-md); line-height: 1.5; color: #111827; }
.wprt-plugin-en { margin: 2px 0 6px; color: var(--wprt-muted); font-size: var(--wprt-font-size-sm); direction: ltr; text-align: right; }
.wprt-plugin-desc { margin: 0 0 14px; color: #4b5563; font-size: var(--wprt-font-size-sm); line-height: 1.85; flex: 1; }
.wprt-plugin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--wprt-muted);
    font-size: var(--wprt-font-size-xs);
    margin-bottom: 16px;
}
.wprt-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.wprt-more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.wprt-empty-message {
    background: #fff;
    border: 1px dashed rgba(19,84,180,0.35);
    border-radius: var(--wprt-radius);
    color: var(--wprt-muted);
    padding: 22px;
    text-align: center;
}

/* Page */
.wprt-page-hero {
    background: linear-gradient(135deg, #063D91, #0C64C8);
    color: #fff;
    padding: 62px 0;
    position: relative;
    overflow: hidden;
}
.wprt-page-hero::after {
    content: "W";
    position: absolute;
    right: 12%;
    top: 12px;
    color: rgba(255,255,255,0.07);
    font-family: Georgia, serif;
    font-size: 120px;
    font-weight: 800;
}
.wprt-page-hero h1 { margin: 0 0 8px; font-size: var(--wprt-font-size-3xl); }
.wprt-breadcrumb { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.82); font-size: var(--wprt-font-size-sm); }
.wprt-breadcrumb a { color: #fff; }
.wprt-page-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 26px;
    padding: 38px 0 56px;
    align-items: start;
}
.wprt-page-sidebar { display: grid; gap: 18px; order: 1; }
.wprt-page-card {
    order: 2;
    background: #fff;
    border: 1px solid var(--wprt-border);
    border-radius: var(--wprt-radius);
    box-shadow: var(--wprt-shadow-soft);
    padding: 34px;
    min-height: 360px;
}
.wprt-page-card h2, .wprt-page-card h3 { color: #111827; }
.wprt-page-card a { color: var(--wprt-primary); font-weight: 700; }
.wprt-page-card img { border-radius: 16px; }
.wprt-page-card table { width: 100%; border-collapse: collapse; }
.wprt-page-card th, .wprt-page-card td { border: 1px solid var(--wprt-border); padding: 10px; }
.wprt-sidebar-card {
    background: #fff;
    border: 1px solid var(--wprt-border);
    border-radius: var(--wprt-radius);
    box-shadow: var(--wprt-shadow-soft);
    padding: 20px;
}
.wprt-sidebar-card h2 {
    margin: 0 0 15px;
    font-size: var(--wprt-font-size-md);
    border-bottom: 1px solid var(--wprt-border);
    padding-bottom: 12px;
}
.wprt-sidebar-core-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #F0F2F6;
}
.wprt-sidebar-core-item:last-of-type { border-bottom: 0; }
.wprt-sidebar-core-item strong,
.wprt-sidebar-core-item span,
.wprt-sidebar-core-item small { display: block; }
.wprt-sidebar-core-item span { font-weight: 800; color: #111827; }
.wprt-sidebar-core-item small { color: var(--wprt-muted); font-size: var(--wprt-font-size-xs); }
.wprt-sidebar-link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--wprt-primary);
    font-weight: 900;
    font-size: var(--wprt-font-size-sm);
}
.wprt-sidebar-plugin-list { display: grid; gap: 10px; }
.wprt-sidebar-plugin {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    color: inherit;
    border-radius: 14px;
    padding: 8px;
    transition: background .18s ease;
}
.wprt-sidebar-plugin:hover { background: #F8FAFC; }
.wprt-sidebar-plugin-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--wprt-card-color, var(--wprt-primary));
    color: #fff;
    overflow: hidden;
    font-weight: 900;
}
.wprt-sidebar-plugin-icon img { width: 100%; height: 100%; object-fit: cover; }
.wprt-sidebar-plugin strong { display: block; font-size: var(--wprt-font-size-sm); line-height: 1.5; }
.wprt-sidebar-plugin small { color: var(--wprt-muted); font-size: var(--wprt-font-size-xs); }
.wprt-sidebar-plugin em {
    direction: ltr;
    font-style: normal;
    background: #DFF8F4;
    color: #087568;
    border-radius: 99px;
    padding: 2px 7px;
    font-size: var(--wprt-font-size-xs);
    font-weight: 900;
}

/* Footer */
.wprt-footer {
    background: linear-gradient(135deg, var(--wprt-footer), var(--wprt-footer-2));
    color: rgba(255,255,255,0.86);
    margin-top: 0;
}
.wprt-footer-grid {
    display: grid;
    grid-template-columns: 1.45fr repeat(4, 1fr);
    gap: 34px;
    padding: 44px 0 34px;
}
.wprt-footer h2,
.wprt-footer h3 { color: #fff; margin: 0 0 12px; }
.wprt-footer h3 { font-size: 15px; }
.wprt-footer p { margin: 0 0 18px; color: rgba(255,255,255,0.72); font-size: var(--wprt-font-size-sm); }
.wprt-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.wprt-footer a { color: rgba(255,255,255,0.76); font-size: var(--wprt-font-size-sm); transition: color .18s ease; }
.wprt-footer a:hover { color: #fff; }
.wprt-footer-logo .wprt-wp-logo { width: 54px; height: 54px; margin-bottom: 12px; }
.wprt-socials { display: flex; gap: 9px; }
.wprt-socials a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
}
.wprt-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.10);
    text-align: center;
    padding: 13px 0;
    color: rgba(255,255,255,0.62);
    font-size: var(--wprt-font-size-xs);
}

/* Responsive */
@media (max-width: 1100px) {
    .wprt-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .wprt-plugins-grid { grid-template-columns: repeat(2, 1fr); }
    .wprt-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .wprt-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
    .admin-bar .wprt-site-header { top: 46px; }
    .wprt-header-inner { min-height: 70px; gap: 12px; }
    .wprt-mobile-toggle { display: block; margin-inline-start: auto; }
    .wprt-primary-nav {
        position: absolute;
        top: 100%;
        right: 20px;
        left: 20px;
        background: #fff;
        border: 1px solid var(--wprt-border);
        border-radius: 18px;
        box-shadow: var(--wprt-shadow);
        padding: 10px;
        display: none;
    }
    .wprt-primary-nav.is-open { display: block; }
    .wprt-menu { display: grid; justify-content: stretch; gap: 0; }
    .wprt-menu a { padding: 12px 14px; border-radius: 12px; }
    .wprt-menu a:hover { background: #F5F7FA; }
    .wprt-menu a::after { display: none; }
    .wprt-header-cta { display: none; }
    .wprt-page-layout { grid-template-columns: 1fr; }
    .wprt-page-sidebar, .wprt-page-card { order: initial; }
    .wprt-page-sidebar { order: 2; }
    .wprt-page-card { order: 1; }
}
@media (max-width: 760px) {
    .wprt-container { width: min(100% - 28px, var(--wprt-container)); }
    .wprt-brand { min-width: auto; }
    .wprt-brand-text small { display: none; }
    .wprt-hero-inner { padding: 48px 0 58px; }
    .wprt-hero h1 { font-size: var(--wprt-font-size-2xl); }
    .wprt-search-box input { height: 54px; }
    .wprt-stats-grid, .wprt-core-grid, .wprt-plugins-grid { grid-template-columns: 1fr; }
    .wprt-stat-card { min-height: 96px; }
    .wprt-core-card { align-items: flex-start; }
    .wprt-card-actions { grid-template-columns: 1fr; }
    .wprt-footer-grid { grid-template-columns: 1fr; }
    .wprt-page-hero { padding: 48px 0; }
    .wprt-page-hero h1 { font-size: var(--wprt-font-size-2xl); }
    .wprt-page-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* Search mode */
body.wprt-search-active .wprt-plugins-section {
    padding-top: 36px;
}
body.wprt-search-active .wprt-section-heading-row .wprt-small-link,
body.wprt-search-active .wprt-more-wrap {
    display: none !important;
}
body.wprt-search-active .wprt-plugins-grid {
    margin-top: 8px;
}

/* Core actions */
.wprt-core-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

/* Modal */
body.wprt-modal-open {
    overflow: hidden;
}
.wprt-modal[hidden] {
    display: none !important;
}
.wprt-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
}
.wprt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 30, 58, 0.55);
    backdrop-filter: blur(8px);
}
.wprt-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(229,231,235,0.9);
    border-radius: 26px;
    box-shadow: 0 35px 90px rgba(15, 23, 42, 0.28);
    padding: 26px;
}
.wprt-modal-close {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--wprt-border);
    border-radius: 14px;
    background: #fff;
    color: var(--wprt-text);
    cursor: pointer;
}
.wprt-modal-close svg { width: 20px; height: 20px; }
.wprt-modal-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-inline-end: 48px;
    margin-bottom: 18px;
}
.wprt-modal-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #EAF6FF;
    color: var(--wprt-primary);
    flex: 0 0 auto;
}
.wprt-modal-icon svg { width: 24px; height: 24px; }
.wprt-modal h2 {
    margin: 0 0 4px;
    font-size: var(--wprt-font-size-xl);
    color: #111827;
}
.wprt-modal p {
    margin: 0;
    color: var(--wprt-muted);
    font-size: var(--wprt-font-size-sm);
}
.wprt-request-form {
    display: grid;
    gap: 14px;
}
.wprt-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.wprt-request-form label {
    display: grid;
    gap: 6px;
    color: #334155;
    font-weight: 800;
    font-size: var(--wprt-font-size-sm);
}
.wprt-request-form input,
.wprt-request-form textarea {
    width: 100%;
    border: 1px solid var(--wprt-border);
    background: #F8FAFC;
    color: var(--wprt-text);
    border-radius: 14px;
    padding: 11px 13px;
    outline: 0;
    font-weight: 500;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.wprt-request-form input:focus,
.wprt-request-form textarea:focus {
    border-color: rgba(19,84,180,0.45);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(19,84,180,0.08);
}
.wprt-captcha-label {
    background: #F8FAFC;
    border: 1px dashed rgba(19,84,180,0.25);
    border-radius: 16px;
    padding: 12px;
}
.wprt-hp-field {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.wprt-form-notice {
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-weight: 800;
    font-size: var(--wprt-font-size-sm);
}
.wprt-form-notice.is-success {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
}
.wprt-form-notice.is-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}
.wprt-details-body {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}
.wprt-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #F8FAFC;
    border: 1px solid #EEF2F7;
    border-radius: 14px;
    padding: 11px 13px;
}
.wprt-detail-row strong {
    color: #334155;
    font-size: var(--wprt-font-size-sm);
}
.wprt-detail-row span {
    color: #111827;
    font-weight: 900;
}
.wprt-detail-description {
    margin-top: 8px !important;
    background: #fff;
    border: 1px solid var(--wprt-border);
    border-radius: 16px;
    padding: 14px;
    color: #475569 !important;
    line-height: 1.9;
}
.wprt-detail-en {
    direction: ltr;
    text-align: right;
    font-weight: 800;
    color: var(--wprt-muted) !important;
}
.wprt-details-download {
    width: 100%;
}
.wprt-footer-button-link {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: rgba(255,255,255,0.76);
    font: inherit;
    font-size: var(--wprt-font-size-sm);
    cursor: pointer;
    text-align: right;
}
.wprt-footer-button-link:hover { color: #fff; }
.wprt-header-cta {
    border: 0;
}

@media (max-width: 760px) {
    .wprt-modal { padding: 12px; }
    .wprt-modal-dialog { padding: 22px; border-radius: 22px; }
    .wprt-form-grid { grid-template-columns: 1fr; }
    .wprt-core-actions { display: grid; grid-template-columns: 1fr; }
    .wprt-detail-row { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* Plugin heading actions and category select */
.wprt-section-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.wprt-category-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.wprt-category-select-wrap::after {
    content: "";
    position: absolute;
    left: 14px;
    width: 8px;
    height: 8px;
    border-left: 2px solid var(--wprt-primary);
    border-bottom: 2px solid var(--wprt-primary);
    transform: rotate(-45deg);
    pointer-events: none;
    margin-top: -4px;
}
.wprt-category-select {
    appearance: none;
    min-width: 190px;
    height: 42px;
    border: 1px solid rgba(19,84,180,0.14);
    background: #fff;
    color: #1f2937;
    border-radius: 13px;
    padding: 0 14px 0 36px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15,23,42,0.05);
    font-family: var(--wprt-font-body);
    font-size: var(--wprt-font-size-sm);
    font-weight: 800;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.wprt-category-select:hover,
.wprt-category-select:focus {
    border-color: rgba(19,84,180,0.36);
    box-shadow: 0 14px 28px rgba(19,84,180,0.10);
}

/* Update Mirror CTA */
.wprt-mirror-cta-section { padding-top: 34px; }
.wprt-mirror-cta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(19,84,180,0.14);
    background:
        radial-gradient(circle at 8% 18%, rgba(0,184,217,0.22), transparent 28%),
        linear-gradient(135deg, #FFFFFF 0%, #F0F7FF 56%, #EAFBFF 100%);
    box-shadow: var(--wprt-shadow-soft);
    overflow: hidden;
    position: relative;
}
.wprt-mirror-cta::after {
    content: "W";
    position: absolute;
    left: 34px;
    top: -28px;
    font-family: Georgia, serif;
    font-size: 120px;
    font-weight: 900;
    color: rgba(19,84,180,0.055);
    pointer-events: none;
}
.wprt-mirror-cta-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--wprt-primary), var(--wprt-accent));
    box-shadow: 0 18px 36px rgba(19,84,180,0.26);
    position: relative;
    z-index: 1;
}
.wprt-mirror-cta-icon svg { width: 34px; height: 34px; }
.wprt-mirror-cta-content { position: relative; z-index: 1; }
.wprt-mirror-cta-content span {
    display: inline-flex;
    margin-bottom: 5px;
    color: var(--wprt-primary);
    font-size: var(--wprt-font-size-xs);
    font-weight: 900;
}
.wprt-mirror-cta-content h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: var(--wprt-font-size-xl);
    line-height: 1.55;
}
.wprt-mirror-cta-content p {
    margin: 0;
    color: #475569;
    font-size: var(--wprt-font-size-sm);
    line-height: 1.9;
}
.wprt-mirror-cta-actions { position: relative; z-index: 1; justify-self: end; }
.wprt-mirror-cta-note {
    display: inline-flex;
    max-width: 220px;
    color: var(--wprt-muted);
    font-size: var(--wprt-font-size-xs);
    line-height: 1.8;
}

/* Sticky problem report */
.wprt-report-float {
    position: fixed;
    right: 18px;
    bottom: 24px;
    z-index: 920;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    color: #fff;
    background: linear-gradient(135deg, #0B2545, var(--wprt-primary));
    box-shadow: 0 18px 38px rgba(7,30,58,0.24);
    cursor: pointer;
    font-weight: 900;
    font-size: var(--wprt-font-size-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}
.wprt-report-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 50px rgba(7,30,58,0.30);
}
.wprt-report-float svg { width: 19px; height: 19px; }
.admin-bar .wprt-report-float { bottom: 28px; }
.wprt-report-dialog textarea { min-height: 130px; }

@media (max-width: 900px) {
    .wprt-mirror-cta {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .wprt-mirror-cta-actions {
        grid-column: 1 / -1;
        justify-self: stretch;
    }
    .wprt-mirror-cta-actions .wprt-btn { width: 100%; }
}
@media (max-width: 760px) {
    .wprt-section-heading-row {
        align-items: flex-start;
        gap: 14px;
    }
    .wprt-section-actions {
        width: 100%;
        justify-content: space-between;
    }
    .wprt-category-select-wrap,
    .wprt-category-select {
        width: 100%;
    }
    .wprt-mirror-cta {
        grid-template-columns: 1fr;
        padding: 22px;
    }
    .wprt-mirror-cta-icon { width: 62px; height: 62px; border-radius: 20px; }
    .wprt-report-float {
        right: 14px;
        bottom: 16px;
        padding: 11px 13px;
    }
    .wprt-report-float span { display: none; }
}
