.ngc-fx-widget,
.ngc-fx-social-card,
.ngc-fx-admin {
    font-family: Tajawal, "Noto Sans Arabic", Arial, sans-serif;
}

.ngc-fx-home-section {
    background: #f5f7fa;
    padding: 64px 0;
}

.ngc-fx-home-shell {
    display: grid;
    gap: 24px;
}

.ngc-fx-home-top {
    margin-bottom: 0;
}

.ngc-fx-widget {
    --ngc-blue: #123f5d;
    --ngc-gold: #c79a2d;
    --ngc-ink: #172433;
    --ngc-muted: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    color: var(--ngc-ink);
    max-width: 820px;
    overflow: hidden;
}

.ngc-fx-widget-head {
    align-items: center;
    background: linear-gradient(135deg, var(--ngc-blue), #0c2e46);
    color: #ffffff;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 18px 22px;
}

.ngc-fx-widget h2 {
    color: inherit;
    font-size: 24px;
    line-height: 1.2;
    margin: 4px 0 0;
}

.ngc-fx-kicker,
.ngc-fx-date {
    color: #e7eef6;
    font-size: 13px;
    font-weight: 700;
}

.ngc-fx-date {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 8px 12px;
    white-space: nowrap;
}

.ngc-fx-table {
    border-collapse: collapse;
    direction: rtl;
    margin: 0;
    width: 100%;
}

.ngc-fx-table th,
.ngc-fx-table td {
    border-bottom: 1px solid #e8edf3;
    padding: 13px 18px;
    text-align: right;
}

.ngc-fx-table th {
    background: #f7fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.ngc-fx-table td {
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
}

.ngc-fx-table td:not(:first-child),
.ngc-fx-table th:not(:first-child) {
    text-align: center;
}

.ngc-fx-source,
.ngc-fx-empty {
    color: #64748b;
    font-size: 13px;
    margin: 0;
    padding: 14px 18px 18px;
}

.ngc-fx-card-wrap {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 560px;
}

.ngc-fx-social-card {
    aspect-ratio: 4 / 5;
    background: radial-gradient(circle at 12% 10%, rgba(199, 154, 45, 0.16), transparent 24%), linear-gradient(180deg, #f8fafc 0%, #eef3f6 100%);
    border: 1px solid #dbe4ec;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
    color: #132235;
    display: flex;
    flex-direction: column;
    gap: 22px;
    overflow: hidden;
    padding: 34px;
    position: relative;
    width: min(100%, 540px);
}

.ngc-fx-social-card::before {
    background: #123f5d;
    content: "";
    height: 12px;
    inset: 0 0 auto 0;
    position: absolute;
}

.ngc-fx-card-header,
.ngc-fx-card-footer,
.ngc-fx-card-row {
    align-items: center;
    display: grid;
}

.ngc-fx-card-header {
    grid-template-columns: 1fr auto;
    margin-top: 6px;
}

.ngc-fx-card-brand {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.ngc-fx-card-brand img {
    background: #ffffff;
    border-radius: 8px;
    height: 48px;
    object-fit: contain;
    padding: 4px;
    width: 48px;
}

.ngc-fx-card-brand span {
    color: #123f5d;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

.ngc-fx-card-date {
    background: rgba(18, 63, 93, 0.08);
    border-radius: 999px;
    color: #123f5d;
    font-size: 13px;
    font-weight: 900;
    padding: 8px 12px;
}

.ngc-fx-card-title {
    border-right: 5px solid #c79a2d;
    padding-right: 16px;
}

.ngc-fx-card-title span {
    color: #66788c;
    display: block;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}

.ngc-fx-card-title h2 {
    color: #123f5d;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0;
}

.ngc-fx-card-table {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #d8e2eb;
    border-radius: 8px;
    overflow: hidden;
}

.ngc-fx-card-row {
    border-bottom: 1px solid #e2e8f0;
    grid-template-columns: 1.6fr 0.7fr 0.7fr;
    min-height: 52px;
}

.ngc-fx-card-row:last-child {
    border-bottom: 0;
}

.ngc-fx-card-row span,
.ngc-fx-card-row strong {
    padding: 0 14px;
}

.ngc-fx-card-row span:first-child {
    font-size: 14px;
    font-weight: 900;
}

.ngc-fx-card-row strong {
    color: #132235;
    font-size: 17px;
    font-weight: 900;
    text-align: center;
}

.ngc-fx-card-row-head {
    background: #123f5d;
    color: #ffffff;
    min-height: 44px;
}

.ngc-fx-card-row-head span {
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.ngc-fx-card-row-head span:first-child {
    text-align: right;
}

.ngc-fx-card-footer {
    color: #627287;
    font-size: 12px;
    font-weight: 800;
    gap: 8px;
    grid-template-columns: 1fr;
    line-height: 1.5;
    margin-top: auto;
}

.ngc-fx-admin-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    margin-top: 18px;
}

.ngc-fx-admin-panel {
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 18px;
}

.ngc-fx-admin-panel label {
    display: block;
    font-weight: 700;
    margin: 0 0 14px;
}

.ngc-fx-admin-panel input[type="text"],
.ngc-fx-admin-panel input[type="url"],
.ngc-fx-admin-panel input[type="number"] {
    display: block;
    margin-top: 6px;
    max-width: 100%;
}

.ngc-fx-shortcodes code {
    display: inline-block;
    direction: ltr;
    margin: 3px 0 3px 6px;
}

.ngc-fx-admin-preview {
    margin-top: 18px;
}

.ngc-fx-admin *, .ngc-fx-admin *::before, .ngc-fx-admin *::after { box-sizing: border-box; }
.ngc-fx-rendered-card { display: block; width: 100%; height: auto; border: 1px solid #dbe4ec; border-radius: 8px; }
.ngc-fx-social-publish { border-top: 1px solid #dcdcde; margin-top: 10px; padding-top: 18px; width: 100%; }
.ngc-fx-social-publish h3 { margin-top: 0; }
.ngc-fx-caption { display: block; width: 100%; margin: 6px 0 16px; font: inherit; line-height: 1.6; }
.ngc-fx-publish-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ngc-fx-publish-status { margin-top: 14px; line-height: 1.8; }
.ngc-fx-publish-status p { margin: 4px 0; }
.ngc-fx-publish-status .success { color: #187336; }
.ngc-fx-publish-status .failure { color: #b32d2e; }
.ngc-fx-admin-panel input[type="password"] { display: block; max-width: 100%; margin-top: 6px; }
.ngc-fx-disconnect { margin-top: 18px; }

@media (max-width: 800px) {
    .ngc-fx-admin-grid {
        grid-template-columns: 1fr;
    }
    .ngc-fx-widget-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .ngc-fx-social-card {
        padding: 24px;
    }
    .ngc-fx-card-title h2 {
        font-size: 32px;
    }
}

