/* =========================================================
   SVG Icon Free - Frontend Styles (Light Theme)
   ========================================================= */

/* ------------- Local Fonts (Roboto) ------------- */
/* ضع ملفات الخطوط في المسار: /svgiconfree/assets/fonts/ */

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ------------- Reset & base ------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: #f3f4f6; /* light gray */
    color: #111827;           /* dark text */
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
textarea {
    font-family: inherit;
}

/* ------------- Layout helpers ------------- */

.site-main {
    min-height: 60vh;
}

.home-section,
.page-section {
    padding: 3rem 1.5rem;
}

.home-section > .section-header,
.page-section > .section-header,
.home-seo-text .seo-text-inner,
.page-header .page-header-inner,
.contact-section .contact-grid {
    max-width: 1200px;
    margin: 0 auto;
}

/* =====================================================================
   HEADINGS STYLING (Roboto bold, #393939)
   ===================================================================== */

h1, h2, h3, h4, h5, h6,
.section-title,
.page-title,
.pack-card-title,
.icon-card-title {
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    color: #393939;
}

/* =====================================================================
   HEADER (Light, redesigned visually)
   ===================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 1rem;
    row-gap: 0.5rem;
    align-items: center;
}

/* Logo */

.header-logo-img {
    height: 40px;
    width: auto;
}

/* Search */

.header-search {
    padding: 0 1rem;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 0.15rem 0.15rem 0.15rem 1.1rem;
}

.header-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #111827;
    font-size: 0.95rem;
    padding: 0.6rem 0.75rem 0.6rem 0;
}

.header-search-input::placeholder {
    color: #9ca3af;
}

.header-search-button {
    border: none;
    border-radius: 999px;
    background: #0f70b7;
    color: #f9fafb;
    padding: 0.55rem 1.2rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.header-search-button:hover {
    background: #0b5a93;
}

/* Burger icon (your custom SVG) */
.header-burger-icon {
    width: 28px;
    height: 28px;
    display: block;
}

/* Generic icon button (not used مباشرةً الآن لكن ممكن تستفيد منه لاحقًا) */
button[data-action="open-menu"] {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button[data-action="open-menu"] .menu-icon-img,
button[data-action="open-menu"] img {
    display: block;
    width: 22px;
    height: 22px;
}

/* Burger (الهامبرجر) */

.header-burger {
    width: auto;
    height: auto;
    border-radius: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: none; /* يظهر في الموبايل فقط */
    align-items: center;
    justify-content: center;
}

/* Nav */

.header-nav {
    margin-left: auto;
}

.header-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
}

.header-nav-link {
    font-size: 0.9rem;
    color: #374151;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.header-nav-link:hover {
    background: #e0f2fe;
    border-color: #0f70b7;
    color: #0f172a;
}

/* =====================================================================
   HERO (background from hero-banner.webp, centered content)
   ===================================================================== */

.hero-section {
    background: #eff6ff url('../images/hero-banner.webp') no-repeat center/cover;
    padding: 3.5rem 1.5rem 3rem;
    border-bottom: 1px solid #e5e7eb;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.1rem, 3vw, 2.6rem);
    line-height: 1.1;
    margin: 0 0 1rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: #4b5563;
    margin: 0 0 1.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    font-size: 0.92rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.08s ease-out;
}

.btn:active {
    transform: translateY(1px);
}

/* primary */
.btn-primary {
    background: linear-gradient(135deg, #0f70b7, #06b6d4);
    border-color: rgba(15, 118, 255, 0.5);
    color: #f9fafb;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b5a93, #0891b2);
}

/* outline */
.btn-outline {
    background: transparent;
    border-color: #cbd5f5;
    color: #0f172a;
}

.btn-outline:hover {
    background: #e0f2fe;
}

/* ghost */
.btn-ghost {
    background: #ffffff;
    border-color: #cbd5f5;
    color: #0f172a;
}

.btn-ghost:hover {
    background: #f3f4f6;
}

/* زر View & Download بالشكل المطلوب */

.icon-card-actions {
    text-align: center;
}

.btn-link {
    display: inline-block;
    padding: 0.35rem 1.4rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #0000b2;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid #dde3ff;
}

/* =====================================================================
   SECTION TITLES & TYPOGRAPHY
   ===================================================================== */

.section-header {
    margin-bottom: 1.75rem;
}

.section-title {
    font-size: 1.25rem;
    margin: 0 0 0.4rem;
}

.section-title a {
    color: inherit;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.05rem;
}

.section-title a:hover {
    border-color: #0f70b7;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

/* Page header */

.page-header {
    padding: 3rem 1.5rem 1rem;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.page-header-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    margin: 0 0 0.4rem;
    font-size: 1.8rem;
}

.page-subtitle {
    margin: 0;
    font-size: 0.98rem;
    color: #6b7280;
}

/* =====================================================================
   ICON GRID / CARDS
   ===================================================================== */

.icon-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.icon-card {
    border-radius: 0.9rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, border-color 0.12s ease-out;
}

.icon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
    border-color: #bfdbfe;
}

.icon-card-thumb {
    padding: 0.9rem 0.9rem 0.4rem;
}

/* checkerboard + watermark */

.icon-thumb-bg {
    position: relative;
    border-radius: 0.8rem;
    padding: 1.1rem;
    background-color: #f9fafb;
    background-image: url('../images/checkerboard.png');
    background-size: 20px 20px;
    background-position: center;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-thumb-bg-standalone {
    background-size: 24px 24px;
}

.icon-thumb-img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    filter: none;
}

.icon-thumb-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 0.75rem;
    border: 1px dashed #cbd5f5;
    background: #e5e7eb;
}

/* meta block under thumb (white strip) */

.icon-card-meta {
    padding: 0.6rem 0.9rem 0.8rem;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.icon-card-title {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.icon-card-subtitle {
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 0.4rem;
}

/* =====================================================================
   PACK CARDS (Bubble style with icon bubbles)
   ===================================================================== */

.pack-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 1.3rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.pack-card {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, border-color 0.12s ease-out, background 0.12s ease-out;
}

.pack-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border-color: #bfdbfe;
    background: #ffffff;
}

.pack-card-thumb {
    padding: 1rem 1rem 0.4rem;
}

/* Capsule background + bubbles */

.pack-thumb-bg {
    border-radius: 0.9rem;
    background: #f3f4f6;
    padding: 0.9rem 1rem;
    position: relative;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Bubbles row */

.pack-bubbles {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
}

.pack-bubble {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pack-bubble img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: none;
}

.pack-bubble-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5f5;
}

.pack-bubble-more {
    background: #0f172a;
    color: #f9fafb;
    font-size: 0.7rem;
    font-weight: 500;
    border-color: #0f70b7;
}

/* Background soft shapes */

.pack-thumb-bg::before,
.pack-thumb-bg::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
}

.pack-thumb-bg::before {
    width: 80px;
    height: 80px;
    top: -20px;
    right: -10px;
}

.pack-thumb-bg::after {
    width: 60px;
    height: 60px;
    bottom: -15px;
    left: -5px;
}

.pack-thumb-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    border: 1px dashed #cbd5f5;
    background: #e5e7eb;
    position: relative;
    z-index: 1;
}

.pack-card-meta {
    padding: 0.7rem 1rem 0.9rem;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.pack-card-title {
    font-size: 0.98rem;
    margin-bottom: 0.3rem;
}

.pack-card-description {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.45rem;
}

.pack-card-actions {
    text-align: center;
}

/* =====================================================================
   SEO TEXT SECTION
   ===================================================================== */

.home-seo-text {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.home-seo-text .seo-text-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0 1rem;
}

.home-seo-text .section-title {
    margin-bottom: 0.9rem;
}

.home-seo-text p {
    font-size: 0.95rem;
    color: #4b5563;
    margin: 0 0 0.9rem;
}

/* =====================================================================
   CONTACT PAGE
   ===================================================================== */

.contact-section {
    background: #ffffff;
}

.contact-grid {
    display: grid;
    gap: 2rem;
    padding-top: 1.5rem;
}

.contact-column h2 {
    margin: 0 0 0.7rem;
    font-size: 1.1rem;
}

.contact-column p {
    margin: 0 0 0.7rem;
    font-size: 0.95rem;
    color: #4b5563;
}

.contact-column a {
    color: #0f70b7;
}

.contact-links {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}

.contact-links li {
    margin-bottom: 0.35rem;
}

.contact-links a:hover {
    text-decoration: underline;
}

/* =====================================================================
   FOOTER (Light)
   ===================================================================== */

.site-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 1.5rem 1.8rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.footer-brand p {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-nav-list a {
    font-size: 0.85rem;
    color: #4b5563;
}

.footer-nav-list a:hover {
    text-decoration: underline;
}

/* =====================================================================
   GLOBAL RESPONSIVE
   ===================================================================== */

@media (max-width: 900px) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
        row-gap: 0.5rem;
    }

    .header-search {
        padding: 0 0.5rem;
    }
}

@media (max-width: 768px) {
    /* الهيدر على الموبايل: شعار + برجر في نفس السطر، البحث تحتهم */

    .header-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .header-logo {
        order: 0;
    }

    .header-burger {
        display: flex;
        order: 1;
        margin-left: auto;
    }

    .header-search {
        order: 2;
        flex-basis: 100%;
        padding: 0.5rem 0 0;
    }

    .header-nav {
        order: 3;
        flex-basis: 100%;
        margin-top: 0.5rem;
        width: 100%;
    }

    .header-nav-list {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        background: #ffffff;
        border-radius: 0.9rem;
        padding: 0.6rem;
        border: 1px solid #e5e7eb;
        width: 100%;
    }

    .header-nav.is-open .header-nav-list {
        display: flex;
    }

    .hero-section {
        padding-top: 2.4rem;
        padding-bottom: 2.4rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .home-section,
    .page-section {
        padding: 2.2rem 1.2rem;
    }

    .page-header {
        padding: 2.4rem 1.2rem 1rem;
    }

    .contact-grid {
        gap: 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .header-search-form {
        padding-left: 0.85rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    .icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ===================== Single Icon Page ===================== */

/* شريط العنوان في أعلى صفحة الأيقونة */
.icon-hero {
    background: #0f3fb7;
    color: #fff;
    padding: 32px 0;
}
.icon-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.icon-hero-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
}

/* الـ Section الرئيسي لصفحة الأيقونة */
.icon-detail-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px 32px;
}

/* breadcrumb */
.icon-breadcrumb {
    font-size: 13px;
    color: #7b8194;
    margin-bottom: 16px;
}
.icon-breadcrumb a {
    color: #4b5fff;
    text-decoration: none;
}
.icon-breadcrumb .sep {
    margin: 0 4px;
}

/* ✅ موبايل أولاً: عمود واحد للمعاينة + الألوان + الوصف */
.icon-detail-layout {
    display: grid;
    grid-template-columns: 1fr; /* عمود واحد افتراضياً */
    gap: 32px;
    align-items: flex-start;
}

/* ديسكتوب: عمودين */
@media (min-width: 960px) {
    .icon-detail-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    }
}

/* LEFT preview column */
.icon-detail-left {
    min-width: 0;
}
.icon-detail-left .icon-preview-card,
.icon-detail-left .icon-color-card {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.icon-preview-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(15, 64, 183, 0.06);
}
.icon-preview-inner {
    border-radius: 16px;
    overflow: hidden;
}

/* مربع معاينة ثابت */
.icon-preview-bg {
    position: relative;
    padding-top: 100%; /* مربع */
    background-image: url('../images/checkerboard.png');
    background-size: 24px 24px;
    border-radius: 24px;
    overflow: hidden;
}
.icon-preview-svg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.icon-preview-svg svg {
    max-width: 82%;
    max-height: 82%;
}

.icon-preview-watermark {
    position: absolute;
    inset: 0;
    background-image: url('../images/mg-icons-watermark.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    opacity: 0.16;
    pointer-events: none;
}

/* color tools */
.icon-color-card {
    margin-top: 20px;
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 18px 18px;
    box-shadow: 0 8px 24px rgba(15, 64, 183, 0.06);
}
.icon-color-card.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}
.icon-color-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.icon-color-title {
    font-size: 14px;
    font-weight: 600;
    color: #393939;
}
.icon-color-note {
    font-size: 12px;
    color: #555a76;
}

.icon-color-swatches-wrapper {
    width: 100%;
}
.icon-color-swatches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}
.color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
    cursor: pointer;
}
.color-swatch[data-c="#000000"] { background:#000000; }
.color-swatch[data-c="#ff4b4b"] { background:#ff4b4b; }
.color-swatch[data-c="#ff9800"] { background:#ff9800; }
.color-swatch[data-c="#ffc107"] { background:#ffc107; }
.color-swatch[data-c="#4caf50"] { background:#4caf50; }
.color-swatch[data-c="#2196f3"] { background:#2196f3; }
.color-swatch[data-c="#9c27b0"] { background:#9c27b0; }
.color-swatch[data-c="#795548"] { background:#795548; }

.color-reset {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: none;
    background: #f1f3ff;
    color: #4b5fff;
    font-size: 13px;
    cursor: pointer;
}
.color-picked {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.07);
    background: #000000;
}
.color-hex-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f4f6ff;
    font-size: 11px;
    color: #7b8194;
}
.color-hex-wrapper input {
    border: none;
    background: transparent;
    width: 66px;
    font-size: 12px;
    outline: none;
}
.color-input-hidden {
    margin-left: 4px;
}

.icon-color-gradient {
    margin-top: 10px;
}
.color-gradient-bar {
    width: 100%;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      #ff0000 0%,
      #ffff00 17%,
      #00ff00 33%,
      #00ffff 50%,
      #0000ff 67%,
      #ff00ff 83%,
      #ff0000 100%
    );
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.color-gradient-bar:focus-visible {
    outline: 2px solid #1f3bb3;
    outline-offset: 2px;
}

/* download buttons row */
.icon-download-row {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
@media (min-width: 640px) {
    .icon-download-row {
        flex-direction: row;
    }
}
.download-group {
    display: flex;
    align-items: stretch;
    gap: 4px;
    flex: 1;
}

.btn-download {
    flex: 1;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform .08s ease, box-shadow .08s ease, filter .08s ease;
}
.btn-download-svg {
    background: #12b15a;
}
.btn-download-png {
    background: #e34141;
}
.btn-download:hover {
    filter: brightness(1.06);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}
.btn-download:focus-visible {
    outline: 2px solid #1f3bb3;
    outline-offset: 2px;
}

.btn-icon-copy {
    width: 40px;
    border-radius: 999px;
    border: none;
    background: #eef2ff;
    color: #1f3bb3;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .08s ease, transform .08s ease;
}
.btn-icon-copy:hover {
    background: #dde3ff;
    transform: translateY(-1px);
}
.btn-icon-copy.is-copied {
    background: #c7ffd7;
    color: #13713a;
}
.copy-status {
    margin-top: 6px;
    font-size: 12px;
    color: #13713a;
}

/* select */
.png-size-select select {
    border-radius: 999px;
    border: 1px solid #d3d7f0;
    padding: 7px 10px;
    font-size: 13px;
    background: #f6f7ff;
}

/* RIGHT column */
.icon-detail-right {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.icon-detail-right .icon-desc-card {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.icon-desc-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 18px 20px;
    box-shadow: 0 8px 24px rgba(15, 64, 183, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* share row */
.icon-share-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.icon-share-row::-webkit-scrollbar {
    height: 4px;
}
.icon-share-row::-webkit-scrollbar-thumb {
    background: #ccd0ea;
    border-radius: 999px;
}
.share-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: #eef2ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.share-btn img {
    width: 32px;
    height: 32px;
}
.share-btn:hover {
    background: #dde3ff;
}
.share-copy-link.is-copied {
    background: #c7ffd7;
    width: 32px;
    height: 32px;
}

.icon-desc-body {
    font-size: 14px;
    line-height: 1.7;
    color: #4c4f5e;
}

/* meta strip as separator */
.icon-meta-strip {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 9px 12px;
    border-radius: 0px;
    background: #d5ddff;
    font-size: 12px;
    color: #454a61;
}
.icon-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.meta-icon-img {
    width: 14px;
    height: 14px;
}

/* info chips */
.icon-info-chips {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.info-chip {
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    font-size: 11px;
    color: #3d425f;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.chip-icon-img {
    width: 14px;
    height: 14px;
}

/* pack strip separator */
.icon-pack-strip {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 0px;
    background: #d0d9ff;
    font-size: 13px;
    color: #333852;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.icon-pack-strip a {
    color: #1f3bb3;
    text-decoration: none;
}

/* tags */
.icon-tags-chips {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
@media (max-width: 640px) {
    .icon-tags-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .icon-tags-chips::-webkit-scrollbar {
        height: 4px;
    }
    .icon-tags-chips::-webkit-scrollbar-thumb {
        background: #ccd0ea;
        border-radius: 999px;
    }
}
.tag-chip {
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef2ff;
    font-size: 11px;
    color: #333852;
    text-decoration: none;
    white-space: nowrap;
}
.tag-chip:hover {
    background: #dde3ff;
}
.tag-chip-more {
    background: #f0f0f7;
}

/* SEO block */
.icon-seo-block {
    background: #ffffff;
}
.icon-seo-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px 32px;
    font-size: 14px;
    line-height: 1.7;
    color: #4c4f5e;
}
.icon-seo-inner h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

/* carousel for standalone icons */
.icon-carousel-section .page-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}
.icon-carousel {
    max-width: 1180px;
    margin: 10px auto 0;
    padding: 0 20px 8px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
}
.icon-carousel .icon-card-small {
    min-width: 160px;
    max-width: 180px;
}
.icon-carousel::-webkit-scrollbar {
    height: 6px;
}
.icon-carousel::-webkit-scrollbar-thumb {
    background: #ccd0ea;
    border-radius: 999px;
}

/* newsletter */
.newsletter-section {
    margin-top: 24px;
    background: #0b1635;
    color: #ffffff;
    background-image: url('../images/newsletter-bg.webp');
    background-size: cover;
    background-position: center;
}
.newsletter-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}
.newsletter-text {
    flex: 1 1 260px;
}
.newsletter-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #00ccff;
}
.newsletter-subtitle {
    font-size: 14px;
    line-height: 1.6;
}
.newsletter-form {
    flex: 1 1 260px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.newsletter-form input[type="email"] {
    flex: 1 1 200px;
    min-width: 0;
    border-radius: 999px;
    border: none;
    padding: 9px 14px;
    font-size: 14px;
}
.newsletter-button {
    flex: 0 0 auto;
    border-radius: 999px;
    border: none;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    background: #00ccff;
    color: #0b1635;
    cursor: pointer;
}
.newsletter-button:hover {
    filter: brightness(1.4);
}

/* helper */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ✅ أوفررايد إضافي للموبايل لو في أي تعارض قديم */

@media (max-width: 768px) {
    .icon-detail-section {
        padding: 24px 16px 28px;
    }

    .icon-detail-layout {
        display: block !important;   /* يضمن إن كل عمود ينزل تحت التاني */
    }

    .icon-detail-left,
    .icon-detail-right {
        width: 100% !important;
    }

    .icon-detail-left .icon-preview-card,
    .icon-detail-left .icon-color-card,
    .icon-detail-right .icon-desc-card {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}




/* =========================================================
   Download Wait Page (download_wait.php)
   ========================================================= */

/* Hero band subtitle for download page */
.icon-hero-download .icon-hero-title {
    font-size: 24px;
}

.icon-hero-subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: #e5e7eb;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Top layout section reusing icon-detail grid */
.dl-section-main {
    padding-top: 24px;
}

.dl-detail-layout .icon-detail-left,
.dl-detail-layout .icon-detail-right {
    display: flex;
    flex-direction: column;
}

/* Preview image inside existing icon-preview-card */
.dl-icon-preview-img {
    max-width: 72%;
    max-height: 72%;
    object-fit: contain;
}

/* Download card on the right */
.dl-download-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Header row (title + badge) */
.dl-download-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dl-download-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.dl-countdown-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    white-space: nowrap;
}

/* Circular progress wrapper */
.dl-progress-wrapper {
    display: flex;
    justify-content: center;
    margin: 6px 0 10px;
}

/* Circle using conic-gradient controlled by --progress (0–360deg) */
.dl-progress-circle {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background:
        conic-gradient(
            #2563eb calc(var(--progress, 0) * 1deg),
            #e5e7eb 0
        );
    display: flex;
    align-items: center;
    justify-content: center;
}

.dl-progress-inner {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px rgba(239, 246, 255, 0.9);
}

.dl-countdown-number {
    font-size: 28px;
    font-weight: 700;
    color: #1d4ed8;
}

/* Download text */
.dl-download-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4b5563;
    text-align: center;
}

/* Meta info under circle */
.dl-download-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 22px;
    font-size: 0.85rem;
    color: #4b5563;
}

.dl-meta-item {
    min-width: 120px;
}

.dl-meta-item-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin-bottom: 2px;
}

.dl-meta-item-value {
    font-weight: 500;
    color: #111827;
}

.dl-meta-color {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dl-meta-color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
}

/* Download button + note */
.dl-download-actions {
    margin-top: auto;
    text-align: center;
}

.dl-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.9rem;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    box-shadow: 0 12px 26px rgba(22, 163, 74, 0.35);
    cursor: pointer;
    transition: filter 0.12s ease, transform 0.08s ease;
}

.dl-download-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.dl-download-btn.is-disabled {
    opacity: 0.55;
    pointer-events: none;
    box-shadow: none;
}

.dl-download-note {
    margin-top: 0.55rem;
    font-size: 0.78rem;
    color: #9ca3af;
}

/* Description section */
.dl-description-section .dl-description-body {
    font-size: 0.94rem;
    line-height: 1.8;
    color: #4c4f5e;
}

/* Marketing + standalone tweaks */
.dl-marketing-section {
    background: #ffffff;
}

/* Standalone icons section: reuse icon-carousel, just tweak spacing */
.dl-standalone-section .icon-carousel {
    padding-top: 4px;
}

/* على الموبايل نريد عرض الكروت في سطر واحد مع تمرير أفقي */
@media (max-width: 640px) {
    .dl-progress-circle {
        width: 100px;
        height: 100px;
    }

    .dl-progress-inner {
        width: 72px;
        height: 72px;
    }

    .dl-countdown-number {
        font-size: 24px;
    }

    .dl-download-meta {
        justify-content: flex-start;
    }

    .dl-download-card {
        gap: 12px;
    }
}
