﻿.erp-hub-panel .erp-badge-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(46, 204, 113, 0.25);
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.erp-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.erp-kpi {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.erp-kpi strong {
    display: block;
    font-size: 1.35rem;
    color: #7dcea0;
}

.erp-kpi span {
    font-size: 0.78rem;
    opacity: 0.9;
}

.erp-pillars-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.erp-pillar-chip {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.erp-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.erp-module-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    text-align: start;
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.erp-module-card:hover:not(.disabled) {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.erp-module-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.erp-module-card h4 { margin: 0 0 4px; font-size: 0.9rem; }
.erp-module-card small { opacity: 0.85; font-size: 0.74rem; line-height: 1.4; }

.erp-benchmark-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    margin-top: 8px;
}

.erp-benchmark-table th,
.erp-benchmark-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: start;
}

.erp-benchmark-table th { opacity: 0.85; font-weight: 600; }

.parity-high { color: #7dcea0; font-weight: 700; }
.parity-mid { color: #f4d03f; font-weight: 700; }
.parity-soon { color: #aab7b8; font-weight: 600; }

.erp-stock-alert {
    color: #f39c12;
    font-weight: 700;
}

.erp-inventory-list li {
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
    color: var(--primary-blue);
}

.section-title span {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent-blue);
    font-size: 0.95rem;
}

.site-structure {
    padding: 44px 5% 24px;
    box-sizing: border-box;
}

.about-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 38px;
    margin-bottom: 72px;
}

#about.about-grid {
    margin-top: 36px;
    padding: 0 5%;
    box-sizing: border-box;
}

#services.services-grid {
    margin-top: 44px;
    margin-bottom: 80px;
    padding: 0 5%;
    box-sizing: border-box;
}

.about-card,
.service-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.about-card::before,
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,168,255,0.08), rgba(13,40,64,0.06));
    pointer-events: none;
}

.about-card h3,
.service-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.about-card p,
.service-card p {
    position: relative;
    z-index: 1;
    color: #333;
    line-height: 1.75;
}

.services-grid .service-card {
    min-height: 220px;
}

@media (max-width: 900px) {
    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* أقسام المنتجات */
.products-grid { 
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 30px; 
    justify-items: center; 
    padding: 60px 5%; 
}

#site-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
    width: 100%;
    grid-column: 1 / -1;
}

.product-card .card-shop-btn {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 168, 255, 0.92);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.product-card { 
    width: 350px; 
    height: 450px; 
    border-radius: 25px; 
    overflow: hidden;
    position: relative; 
    cursor: pointer; 
    transition: 0.5s;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.product-card::before {
    content: ""; 
    position: absolute; 
    inset: 0;
    background-size: cover; 
    background-position: center; 
    transition: 0.5s;
    z-index: 0;
}

/* خلفية صورة لـ PVC */
.card-pvc::before { 
    background: linear-gradient(135deg, rgba(45, 112, 170, 0.72), rgba(25, 76, 130, 0.82)),
                url('images/pvc-background.avif');
    background-size: cover;
    background-position: center;
}

/* خلفية صورة لـ WPC */
.card-wpc-raw::before,
.card-wpc::before { 
    background: linear-gradient(135deg, rgba(126, 79, 34, 0.72), rgba(94, 54, 21, 0.84)),
                url('images/wpc-background.avif');
    background-size: cover;
    background-position: center;
}

.product-card:hover::before { transform: scale(1.1); }

.card-content {
    position: absolute; 
    bottom: 0; 
    width: 100%; 
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white; 
    box-sizing: border-box; 
    text-align: right;
    z-index: 1;
}

.card-content h3 { 
    font-size: 1.8rem; 
    margin: 0 0 10px; 
    color: var(--accent-blue); 
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-content p { 
    font-size: 0.95rem; 
    line-height: 1.6; 
    margin: 0; 
}

/* Icon badge on cards */
.card-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #0d2840 0%, #0a1f2e 50%, #0066cc 100%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
    box-shadow: 0 15px 30px rgba(0,102,204,0.3);
    border: 2px solid rgba(0,168,255,0.3);
}

.card-icon i {
    color: white;
}

.card-icon:hover {
    transform: scale(1.08);
    box-shadow: 0 18px 35px rgba(0,102,204,0.5);
    border-color: rgba(0,168,255,0.6);
}

.hero-logo {
    position: relative;
}

.admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: 0.25s ease;
}

.admin-overlay.show {
    visibility: visible;
    opacity: 1;
}

.admin-modal {
    background: #0d2840;
    border-radius: 18px;
    padding: 30px;
    width: 100%;
    max-width: 420px;
    color: white;
    box-shadow: 0 25px 60px rgba(0,0,0,0.45);
    position: relative;
}

.admin-modal h2 {
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.admin-modal input {
    width: 100%;
    margin-bottom: 15px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 1rem;
}

.admin-modal input::placeholder {
    color: rgba(255,255,255,0.65);
}

.admin-modal button {
    width: 100%;
    margin-bottom: 10px;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.25s;
}

.admin-modal button.primary {
    background: #00a8ff;
    color: #0d2840;
}

.admin-modal button.secondary {
    background: rgba(255,255,255,0.12);
    color: white;
}

.admin-modal p.status {
    min-height: 24px;
    margin-bottom: 15px;
    color: #ffd700;
}

.admin-modal.icon-detail-modal {
    max-width: 640px;
}

.icon-overlay-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 10px;
    margin: 16px 0 6px;
    max-height: 220px;
    overflow-y: auto;
}

.icon-overlay-gallery:empty,
.icon-overlay-gallery.grid-empty {
    display: none;
}

.icon-overlay-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.icon-overlay-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.admin-dashboard {
    display: none;
    padding: 60px 5%;
    background: rgba(13,40,64,0.04);
}

.admin-dashboard.show {
    display: block;
}

.admin-dashboard .dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
}

.admin-dashboard .dashboard-header h2 {
    margin: 0;
    color: var(--primary-blue);
    font-size: 2rem;
}

.admin-dashboard .admin-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    background: var(--accent-blue);
    padding: 12px 18px;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.quick-card {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0,0,0,0.1);
    background: #ffffff;
    position: relative;
    padding: 25px;
    min-height: 170px;
}

.quick-card .card-icon {
    top: 18px;
    right: 18px;
    width: 54px;
    height: 54px;
}

.quick-card h3 {
    margin: 0 0 12px;
    color: var(--primary-blue);
}

.quick-card p {
    margin: 0;
    color: #333;
    line-height: 1.75;
}

.admin-section {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: 0.25s ease;
}

.admin-section.show {
    visibility: visible;
    opacity: 1;
}

.admin-section .admin-modal {
    background: #0d2840;
    border-radius: 18px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    color: white;
    box-shadow: 0 25px 60px rgba(0,0,0,0.45);
    max-height: 80vh;
    overflow-y: auto;
}

.admin-section .admin-modal h2 {
    margin-bottom: 20px;
}

.admin-section .admin-modal ul {
    list-style: none;
    padding: 0;
}

.admin-section .admin-modal li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-section .admin-modal li small {
    display: block;
    opacity: 0.8;
    margin-top: 4px;
}

.admin-section .admin-modal button {
    margin: 10px 5px;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #00a8ff;
    color: #0d2840;
    font-weight: bold;
}

.clickable-card {
    cursor: pointer;
}

.branch-card {
    background: linear-gradient(135deg, rgba(12, 66, 110, 0.8), rgba(8, 40, 67, 0.9));
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    padding: 18px;
    border: 1px solid rgba(12, 66, 110, 0.12);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.branch-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
    z-index: 0;
}

.branch-card h3 {
    margin: 0 0 10px;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.branch-card p {
    margin: 6px 0;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.branch-card .branch-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.branch-card .branch-actions a {
    text-decoration: none;
    background: rgba(0, 168, 255, 0.9);
    color: #07243c;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
}

.visitor-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 28px;
}

/* بطاقات spotlight: خلفية صورة + أيقونة دائرية أعلى اليمين + نص أبيض أسفل التدرج */
.spotlight-card {
    position: relative;
    min-height: 200px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(13,40,64,0.08);
    isolation: isolate;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22));
    z-index: 0;
    pointer-events: none;
}

.spotlight-card .card-icon {
    top: 18px;
    right: 18px;
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
    transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
}

/* دوائر الأيقونات — لون وتدرج يعبّران عن معنى كل بطاقة */
.spotlight-card--about-who .card-icon {
    background: linear-gradient(148deg, #1a252f 0%, #3d566e 42%, #95a5a6 100%);
    border-color: rgba(236, 240, 241, 0.38);
    box-shadow: 0 14px 34px rgba(26, 37, 47, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
