/* أكاديمية برو — CSS */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&family=Cairo:wght@400;600;700&display=swap');
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
:root{
  --primary:#185FA5;--primary-dark:#0C447C;--primary-light:#E6F1FB;--primary-mid:#B5D4F4;
  --success-bg:#EAF3DE;--success-text:#3B6D11;--warning-bg:#FAEEDA;--warning-text:#854F0B;
  --danger-bg:#FCEBEB;--danger-text:#A32D2D;--neutral-bg:#F1EFE8;--neutral-text:#5F5E5A;
  --banned-bg:#F5E0E0;--banned-text:#8B2020;
  --bg:#f5f5f3;--bg-card:#fff;--bg-secondary:#f0efeb;
  --text:#1a1a18;--text-muted:#6b6b68;--border:rgba(0,0,0,.1);--border-strong:rgba(0,0,0,.18);
  --radius-sm:8px;--radius-md:10px;--radius-lg:14px;--nav-h:56px;
}
[data-theme="dark"]{
  --bg:#1a1a18;--bg-card:#242422;--bg-secondary:#2e2e2b;
  --text:#e8e8e4;--text-muted:#9a9a94;--border:rgba(255,255,255,.08);--border-strong:rgba(255,255,255,.14);
  --primary-light:#1a3a5c;--primary-mid:#1e4d7a;--success-bg:#1a2e10;--success-text:#7bc44a;
  --warning-bg:#2e1e08;--warning-text:#e8a44a;--danger-bg:#3a1a1a;--danger-text:#e88888;
  --neutral-bg:#2a2a26;--neutral-text:#9a9a94;--banned-bg:#3a1010;--banned-text:#e87070;
}
html{scroll-behavior:smooth;}
body{font-family:'Tajawal',sans-serif;background:var(--bg);color:var(--text);direction:rtl;min-height:100vh;transition:background .25s,color .25s;-webkit-font-smoothing:antialiased;}

/* NAV */
.nav{background:var(--bg);border-bottom:.5px solid var(--border);padding:0 2rem;display:flex;align-items:center;justify-content:space-between;height:var(--nav-h);position:sticky;top:0;z-index:200;transition:background .25s;}
.nav-logo{font-family:'Cairo',sans-serif;font-size:20px;font-weight:700;color:var(--primary);white-space:nowrap;display:inline-flex;align-items:center;gap:10px;text-decoration:none;min-width:0;}
.site-logo-img{width:42px;height:42px;object-fit:contain;display:block;flex-shrink:0;border-radius:10px;}
.nav-logo-text{display:inline-flex;align-items:baseline;gap:4px;min-width:0;}
.nav-logo .nav-logo-brand{color:var(--primary);}
.nav-logo .nav-logo-subtitle{color:var(--text);}
.nav-links{display:flex;gap:6px;align-items:center;}
.nav-btn{background:none;border:.5px solid var(--border-strong);padding:7px 14px;border-radius:var(--radius-sm);font-size:14px;cursor:pointer;color:var(--text-muted);font-family:'Tajawal',sans-serif;transition:all .15s;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;}
.nav-btn:hover{background:var(--bg-secondary);color:var(--text);}
.nav-btn.primary{background:var(--primary);color:white;border-color:var(--primary);}
.nav-btn.primary:hover{background:var(--button-hover);}
.nav-avatar{width:26px;height:26px;background:var(--primary-light);color:var(--primary);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0;}
.nav-avatar-img{width:26px;height:26px;border-radius:50%;object-fit:cover;flex-shrink:0;}
.theme-toggle{font-size:15px;padding:7px 10px;}

/* Google buttons */
.btn-google-nav{background:var(--bg);border:.5px solid var(--border-strong);padding:7px 14px;border-radius:var(--radius-sm);font-size:13px;cursor:pointer;color:var(--text);font-family:'Tajawal',sans-serif;transition:all .15s;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;font-weight:500;}
.btn-google-nav:hover{background:var(--bg-secondary);border-color:var(--border-strong);}
.btn-google{background:white;border:1.5px solid #dadce0;padding:11px 24px;border-radius:var(--radius-md);font-size:15px;font-weight:500;cursor:pointer;color:#3c4043;font-family:'Tajawal',sans-serif;transition:all .15s;display:inline-flex;align-items:center;gap:10px;white-space:nowrap;}
.btn-google:hover{background:#f8f9fa;box-shadow:0 2px 8px rgba(0,0,0,.12);}
[data-theme="dark"] .btn-google{background:#2e2e2b;color:var(--text);border-color:var(--border-strong);}

/* HAMBURGER */
.hamburger{display:none;flex-direction:column;gap:5px;background:none;border:none;padding:6px;cursor:pointer;}
.hamburger span{display:block;width:22px;height:2px;background:var(--text);border-radius:2px;transition:all .25s;}
.hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.hamburger.open span:nth-child(2){opacity:0;}
.hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* MOBILE NAV */
.mobile-nav{display:none;position:fixed;inset:0;z-index:150;}
.mobile-nav.open{display:block;}
.mobile-nav-overlay{position:absolute;inset:0;background:rgba(0,0,0,.45);}
.mobile-nav-drawer{position:absolute;top:0;right:0;width:min(280px,80vw);height:100%;background:var(--bg-card);border-left:.5px solid var(--border);padding:5rem 1.25rem 2rem;display:flex;flex-direction:column;gap:8px;overflow-y:auto;}
.mobile-nav-btn{width:100%;text-align:right;background:none;border:.5px solid var(--border);padding:12px 14px;border-radius:var(--radius-md);font-size:14px;color:var(--text);font-family:'Tajawal',sans-serif;transition:all .15s;cursor:pointer;display:flex;align-items:center;gap:10px;}
.mobile-nav-btn:hover{background:var(--bg-secondary);}
.mobile-nav-btn.primary{background:var(--primary);color:white;border-color:var(--primary);}
.mobile-nav-divider{height:.5px;background:var(--border);margin:4px 0;}
.mobile-theme-row{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border:.5px solid var(--border);border-radius:var(--radius-md);font-size:13px;color:var(--text-muted);}
.toggle-switch{position:relative;width:44px;height:24px;flex-shrink:0;}
.toggle-switch input{display:none;}
.toggle-slider{position:absolute;inset:0;background:var(--bg-secondary);border:.5px solid var(--border-strong);border-radius:12px;cursor:pointer;transition:.2s;}
.toggle-slider::after{content:'';position:absolute;width:18px;height:18px;background:var(--text-muted);border-radius:50%;top:2px;right:2px;transition:.2s;}
.toggle-switch input:checked+.toggle-slider{background:var(--primary-light);}
.toggle-switch input:checked+.toggle-slider::after{transform:translateX(-20px);background:var(--primary);}

/* PAGES */
.page{display:none;}.page.active{display:block;}

/* HERO */
.hero{padding:4rem 2rem 2.5rem;text-align:center;background:linear-gradient(180deg,var(--bg-card) 0%,var(--bg) 100%);border-bottom:.5px solid var(--border);}
.hero-badge{display:inline-block;background:var(--primary-light);color:var(--primary);font-size:12px;padding:5px 16px;border-radius:20px;margin-bottom:1.25rem;font-weight:500;}
.hero h1{font-family:'Cairo',sans-serif;font-size:36px;font-weight:700;margin:0 auto 1rem;line-height:1.3;max-width:680px;}
.hero h1 span{color:var(--primary);}
.hero p{font-size:16px;color:var(--text-muted);max-width:520px;margin:0 auto 2rem;line-height:1.8;}
.hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;}
.btn-lg{padding:12px 28px;border-radius:var(--radius-md);font-size:15px;font-weight:500;cursor:pointer;border:none;font-family:'Tajawal',sans-serif;transition:all .15s;}
.btn-primary{background:var(--primary);color:white;}.btn-primary:hover{background:var(--button-hover);transform:translateY(-1px);}

/* STATS */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:2rem;max-width:700px;margin:0 auto;}
.stat-card{background:var(--bg-card);border:.5px solid var(--border);border-radius:var(--radius-md);padding:1.25rem 1rem;text-align:center;}
.stat-num{font-size:26px;font-weight:700;color:var(--primary);font-family:'Cairo',sans-serif;}
.stat-lbl{font-size:12px;color:var(--text-muted);margin-top:4px;}

/* SECTION */
.section{padding:2rem;max-width:1200px;margin:0 auto;}
#featured-courses{scroll-margin-top:calc(var(--nav-h) + 16px);}
.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.25rem;flex-wrap:wrap;gap:8px;}
.section-title{font-family:'Cairo',sans-serif;font-size:18px;font-weight:700;}
.filter-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:1.25rem;}
.tab{background:none;border:.5px solid var(--border);padding:6px 16px;border-radius:20px;font-size:12px;cursor:pointer;color:var(--text-muted);font-family:'Tajawal',sans-serif;transition:all .15s;}
.tab.active,.tab:hover{background:var(--primary-light);color:var(--primary);border-color:var(--primary-mid);}


/* Featured courses header category links */
.featured-section-header{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:14px;
}
.featured-section-header .home-category-links{
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin:0 !important;
  width:100%;
}
.home-category-link{
  min-width:132px;
  padding:10px 16px;
  border-radius:18px;
  border:.5px solid var(--category-border);
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:0;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 8px 22px rgba(0,0,0,.04);
  transition:all .18s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space:nowrap;
  background:var(--category-bg);
  color:var(--category-text);
}
.home-category-link:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(0,0,0,.08);
  background:var(--category-hover-bg);
  color:var(--category-hover-text);
  border-color:var(--category-hover-border);
}
.home-category-management,
.home-category-marketing,
.home-category-finance{
  background:var(--category-bg);
  color:var(--category-text);
  border-color:var(--category-border);
}
.home-category-management:hover,
.home-category-marketing:hover,
.home-category-finance:hover{
  background:var(--category-hover-bg);
  color:var(--category-hover-text);
  border-color:var(--category-hover-border);
}
@media (max-width:900px){
  .featured-section-header{
    grid-template-columns:1fr;
    justify-items:stretch;
  }
  .featured-section-header .section-title{
    text-align:right;
  }
  .featured-section-header .nav-btn{
    justify-self:start;
  }
}

/* COURSE CARDS */
.courses-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px;}
.course-card{background:var(--bg-card);border:.5px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;cursor:pointer;transition:all .18s;min-height:355px;display:flex;flex-direction:column;}
.course-card:hover{border-color:var(--border-strong);transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.07);}
.course-thumb{height:160px;display:flex;align-items:center;justify-content:center;font-size:44px;overflow:hidden;position:relative;}
.course-thumb-img{width:100%;height:100%;object-fit:cover;}
.course-body{padding:18px 16px 16px;display:grid;grid-template-rows:auto auto 1fr auto;row-gap:10px;flex:1;direction:rtl;}
.course-meta-line{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;direction:rtl}
.course-tag{position:static;display:inline-flex;align-items:center;justify-content:center;width:auto;max-width:max-content;font-size:12px;padding:0;border-radius:0;font-weight:600;line-height:1.4;box-shadow:none;border:0;background:transparent !important;color:var(--text-muted) !important;white-space:nowrap;}
.tag-marketing{background:var(--primary-light);color:var(--primary);}
.tag-business{background:var(--success-bg);color:var(--success-text);}
.tag-sales{background:var(--warning-bg);color:var(--warning-text);}
.tag-free{background:var(--success-bg);color:var(--success-text);}
.tag-management{background:var(--success-bg);color:var(--success-text);}
.tag-marketing-sales{background:var(--primary-light);color:var(--primary);}
.tag-finance{background:#F4ECFF;color:#6B3FA0;}
.course-title{font-size:15px;font-weight:700;margin-bottom:0;line-height:1.55;min-height:0;text-align:right;}
.course-meta{display:flex;align-items:center;justify-content:space-between;}
.course-card-main{width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;align-self:stretch;
  width:100%;
  text-align:center;gap:9px;margin-bottom:0;text-align:right;}
.course-price{font-size:23px;font-weight:900;color:var(--primary);letter-spacing:.2px;line-height:1;display:block;align-self:flex-start;text-align:right;}
.course-stars{color:#EF9F27;font-size:11px;}
.course-info{font-size:12px;color:var(--text-muted);text-align:right;direction:rtl;display:inline-flex;align-items:center;gap:4px;align-self:flex-start;justify-content:flex-start;}
.course-trainer{margin-top:0;padding-top:12px;display:flex;align-items:center;gap:12px;border-top:.5px solid var(--border);direction:rtl;align-self:stretch;}
.course-trainer-img{width:65px;height:65px;border-radius:50%;object-fit:cover;object-position:center;border:2px solid var(--primary);background:var(--bg-secondary);box-shadow:0 4px 12px rgba(0,0,0,.08);flex-shrink:0;}
.course-trainer-placeholder{width:65px;height:65px;border-radius:50%;border:2px solid var(--primary);background:var(--primary-light);color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;box-shadow:0 4px 12px rgba(0,0,0,.08);flex-shrink:0;}
.course-trainer-info{min-width:0;display:flex;flex-direction:column;gap:2px;}
.course-trainer-label{font-size:10px;color:var(--text-muted);line-height:1.2;}
.course-trainer-name{font-size:12px;color:var(--text);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.loading-placeholder{font-size:13px;color:var(--text-muted);padding:1rem 0;grid-column:1/-1;}
.admin-loading{padding:2rem;color:var(--text-muted);font-size:14px;}

/* COURSE DETAIL */
.course-detail-layout{display:grid;grid-template-columns:320px 1fr;min-height:calc(100vh - var(--nav-h));}
.lessons-sidebar{background:var(--bg-card);border-left:.5px solid var(--border);display:flex;flex-direction:column;overflow:hidden;}
.lessons-sidebar-header{padding:1.25rem;border-bottom:.5px solid var(--border);flex-shrink:0;}
.lessons-sidebar-title{font-family:'Cairo',sans-serif;font-size:16px;font-weight:700;margin-bottom:4px;}
.lessons-sidebar-meta{font-size:12px;color:var(--text-muted);}
#lessons-list{flex:1;overflow-y:auto;}

/* LESSON ITEMS */
.lesson-item{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;cursor:pointer;border-bottom:.5px solid var(--border);transition:background .15s;}
.lesson-item:hover{background:var(--bg-secondary);}
.lesson-item.active{background:var(--primary-light);border-right:3px solid var(--primary);}
.lesson-item.lesson-locked{opacity:.6;cursor:pointer;}
.lesson-num{width:28px;height:28px;border-radius:50%;background:var(--bg-secondary);color:var(--text-muted);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;flex-shrink:0;}
.lesson-item.active .lesson-num{background:var(--primary);color:white;}
.lesson-item-info{flex:1;min-width:0;}
.lesson-item-title{font-size:13px;font-weight:500;margin-bottom:4px;line-height:1.4;}
.lesson-item-meta{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--text-muted);}
.free-badge{background:var(--success-bg);color:var(--success-text);padding:1px 6px;border-radius:8px;font-size:10px;font-weight:600;}
.lesson-progress-bar{height:3px;background:var(--border);border-radius:2px;margin-top:6px;overflow:hidden;}
.lesson-progress-fill{height:100%;background:var(--primary);border-radius:2px;}


.lesson-access-note{padding:10px 14px;background:var(--bg-secondary);color:var(--text-muted);font-size:12px;border-bottom:.5px solid var(--border);line-height:1.6;}
.locked-badge{background:var(--neutral-bg);color:var(--neutral-text);padding:1px 6px;border-radius:8px;font-size:10px;font-weight:600;}

/* SUBSCRIBE BOX */
.subscribe-box{
  margin:12px;
  padding:16px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.72), transparent 32%),
    linear-gradient(145deg, var(--bg-card), var(--bg));
  border:.5px solid var(--border);
  border-radius:var(--radius-lg);
  text-align:center;
  color:var(--text);
  flex-shrink:0;
  box-shadow:0 16px 42px rgba(0,0,0,.055);
}
.subscribe-box.pulse{animation:pulse .4s ease-in-out;}
@keyframes pulse{0%,100%{transform:scale(1);}50%{transform:scale(1.03);}}
.subscribe-price{font-family:'Cairo',sans-serif;font-size:28px;font-weight:700;margin-bottom:4px;}
.subscribe-desc{font-size:12px;opacity:.85;margin-bottom:14px;}
.subscribe-btn{width:100%;padding:12px;background:white;color:var(--primary);border:none;border-radius:var(--radius-md);font-size:15px;font-weight:700;cursor:pointer;font-family:'Tajawal',sans-serif;transition:all .15s;display:flex;align-items:center;justify-content:center;gap:8px;}
.subscribe-btn:hover{background:#f0f0f0;transform:translateY(-1px);}
.subscribe-wa-hint{font-size:11px;opacity:.75;margin-top:8px;}

/* PLAYER */
.player-main{display:flex;flex-direction:column;background:var(--bg);overflow-y:auto;}
.player-placeholder{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem;color:var(--text-muted);text-align:center;min-height:300px;}
.placeholder-icon{font-size:64px;margin-bottom:1rem;opacity:.4;}
.placeholder-text{font-size:16px;}
.video-container{position:relative;width:100%;padding-bottom:56.25%;background:#000;}
.video-iframe{position:absolute;inset:0;width:100%;height:100%;border:none;}
.lesson-info-area{padding:1.5rem;border-top:.5px solid var(--border);}
.lesson-title{font-family:'Cairo',sans-serif;font-size:20px;font-weight:700;margin-bottom:8px;}
.lesson-desc{font-size:14px;color:var(--text-muted);line-height:1.7;}

/* AUTH (profile) */
.profile-card{background:var(--bg-card);border:.5px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem;display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem;flex-wrap:wrap;}
.profile-pic{width:64px;height:64px;border-radius:50%;object-fit:cover;flex-shrink:0;}
.profile-name{font-family:'Cairo',sans-serif;font-size:18px;font-weight:700;margin-bottom:4px;}
.profile-email{font-size:13px;color:var(--text-muted);margin-bottom:8px;}

/* FORMS */
.form-group{margin-bottom:1rem;}
.form-label{font-size:13px;font-weight:500;color:var(--text-muted);display:block;margin-bottom:6px;}
.form-input{width:100%;padding:10px 13px;border:.5px solid var(--border-strong);border-radius:var(--radius-sm);font-size:14px;background:var(--bg-secondary);color:var(--text);font-family:'Tajawal',sans-serif;outline:none;transition:border-color .15s,background .15s;direction:rtl;-webkit-appearance:none;}
.form-input:focus{border-color:var(--primary);background:var(--bg-card);}
textarea.form-input{resize:vertical;min-height:80px;}
.free-toggle-label{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:13px;}
.free-toggle-label input{width:16px;height:16px;cursor:pointer;}
.free-toggle-text{color:var(--text-muted);}

/* ADMIN */
.admin-layout{display:grid;grid-template-columns:210px 1fr;min-height:calc(100vh - var(--nav-h));}
.admin-sidebar{background:var(--bg-card);border-left:.5px solid var(--border);padding:0;overflow-y:auto;}
.admin-sidebar-logo{font-family:'Cairo',sans-serif;font-size:14px;font-weight:700;padding:1.25rem 18px;color:var(--primary);border-bottom:.5px solid var(--border);}
.admin-nav-item{display:flex;align-items:center;gap:10px;padding:12px 18px;font-size:13px;cursor:pointer;color:var(--text-muted);transition:all .15s;border-right:3px solid transparent;}
.admin-nav-item:hover{background:var(--bg-secondary);color:var(--text);}
.admin-nav-item.active{color:var(--primary);background:var(--primary-light);border-right-color:var(--primary);font-weight:500;}
.admin-content{padding:1.75rem;background:var(--bg);overflow-x:auto;}
.admin-header{margin-bottom:1.5rem;}
.admin-header h2{font-family:'Cairo',sans-serif;font-size:22px;font-weight:700;}
.admin-header p{font-size:13px;color:var(--text-muted);margin-top:3px;}
.overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin-bottom:1.5rem;}
.metric{background:var(--bg-card);border:.5px solid var(--border);border-radius:var(--radius-md);padding:14px;}
.metric-val{font-size:26px;font-weight:700;font-family:'Cairo',sans-serif;}
.metric-lbl{font-size:11px;color:var(--text-muted);margin-top:3px;}
.admin-table-wrap{background:var(--bg-card);border:.5px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;margin-bottom:1.5rem;}
.admin-table-header{padding:13px 16px;border-bottom:.5px solid var(--border);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;}
.admin-table-title{font-size:14px;font-weight:600;}
.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch;}
table{width:100%;font-size:12px;border-collapse:collapse;min-width:480px;}
thead tr{background:var(--bg-secondary);}
th,td{padding:11px 14px;text-align:right;border-bottom:.5px solid var(--border);white-space:nowrap;}
th{font-weight:600;color:var(--text-muted);font-size:11px;}
tr:last-child td{border-bottom:none;}
tr:hover td{background:var(--bg-secondary);}
.badge{display:inline-block;padding:3px 10px;border-radius:10px;font-size:10px;font-weight:600;}
.badge-active{background:var(--success-bg);color:var(--success-text);}
.badge-draft{background:var(--neutral-bg);color:var(--neutral-text);}
.badge-banned{background:var(--banned-bg);color:var(--banned-text);}
.add-btn{background:var(--primary);color:white;border:none;padding:7px 15px;border-radius:var(--radius-sm);font-size:12px;cursor:pointer;font-family:'Tajawal',sans-serif;transition:background .15s;white-space:nowrap;}
.add-btn:hover{background:var(--button-hover);}
.action-btns{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;white-space:nowrap;min-width:max-content;}
.action-btn{background:none;border:.5px solid var(--border);padding:5px 10px;border-radius:var(--radius-sm);font-size:11px;cursor:pointer;color:var(--text-muted);font-family:'Tajawal',sans-serif;transition:all .15s;white-space:nowrap;flex:0 0 auto;}
.action-btn:hover{background:var(--bg-secondary);color:var(--text);}
.btn-edit{border-color:var(--primary-mid);color:var(--primary);}.btn-edit:hover{background:var(--primary-light);}
.btn-ok{border-color:#b5d4a0;color:var(--success-text);}.btn-ok:hover{background:var(--success-bg);}
.btn-warn{border-color:#e8c888;color:var(--warning-text);}.btn-warn:hover{background:var(--warning-bg);}
.btn-danger{border-color:#e8aaaa;color:var(--danger-text);}.btn-danger:hover{background:var(--danger-bg);}
.search-bar{display:flex;gap:8px;margin-bottom:1.25rem;flex-wrap:wrap;align-items:center;}
.search-input-wrap{flex:1;min-width:200px;position:relative;}
.search-icon{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:14px;}
.search-input{width:100%;padding:10px 36px 10px 13px;border:.5px solid var(--border-strong);border-radius:var(--radius-sm);font-size:13px;background:var(--bg-card);color:var(--text);font-family:'Tajawal',sans-serif;outline:none;direction:rtl;}
.search-input:focus{border-color:var(--primary);}
.search-filter{width:auto;min-width:110px;padding:10px 12px;}
.email-copy{cursor:pointer;color:var(--primary);}.email-copy:hover{text-decoration:underline;}
.manual-enroll-box{background:var(--primary-light);border:.5px solid var(--primary-mid);border-radius:var(--radius-md);padding:12px 14px;margin-bottom:1rem;font-size:13px;}
.auth-error{display:none;background:var(--danger-bg);color:var(--danger-text);font-size:12px;padding:8px 12px;border-radius:var(--radius-sm);margin-bottom:12px;}

/* MODAL */
.modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:999;align-items:center;justify-content:center;padding:1rem;}
.modal-overlay.open{display:flex;}
.modal{background:var(--bg-card);border-radius:var(--radius-lg);padding:1.75rem;width:100%;max-width:440px;border:.5px solid var(--border);max-height:92vh;overflow-y:auto;}
.modal-title{font-family:'Cairo',sans-serif;font-size:18px;font-weight:700;margin-bottom:1.25rem;}
.modal-footer{display:flex;gap:8px;margin-top:1.25rem;justify-content:flex-end;flex-wrap:wrap;}

/* TOAST */
.toast{position:fixed;bottom:1.5rem;left:50%;transform:translateX(-50%) translateY(80px);background:#1a1a18;color:white;padding:12px 24px;border-radius:var(--radius-md);font-size:14px;font-family:'Tajawal',sans-serif;z-index:9999;opacity:0;transition:all .3s;white-space:nowrap;box-shadow:0 4px 20px rgba(0,0,0,.25);}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
.toast-success{background:#1e4a1a;}.toast-error{background:#4a1a1a;}.toast-info{background:#1a3a5c;}

/* RESPONSIVE */
@media(max-width:1024px){.section{padding:1.5rem;}.admin-layout{grid-template-columns:175px 1fr;}.hero h1{font-size:30px;}.course-detail-layout{grid-template-columns:280px 1fr;}}
@media(max-width:768px){
  .nav{padding:0 1.25rem;}.nav-links{display:none;}.hamburger{display:flex;}
  .hero{padding:2.5rem 1.25rem 1.75rem;}.hero h1{font-size:26px;}.hero p{font-size:14px;}
  .stats{padding:1.25rem;gap:10px;}.section{padding:1.25rem;}
  .courses-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;}
  .course-detail-layout{display:flex;flex-direction:column;min-height:auto;}
  .player-main{order:1;overflow:visible;}
  .lessons-sidebar{order:2;width:100%;display:flex !important;visibility:visible !important;max-height:none;overflow:visible;border-left:none;border-top:.5px solid var(--border);border-bottom:.5px solid var(--border);}
  .lessons-sidebar-header{padding:1rem 1.25rem;}
  #lessons-list{display:block !important;visibility:visible !important;max-height:none;overflow:visible;flex:none;}
  .lesson-item{display:flex !important;}
  .subscribe-box{margin:12px 1.25rem 1rem;}
  .admin-layout{grid-template-columns:1fr;}
  .admin-sidebar{display:flex;overflow-x:auto;border-left:none;border-bottom:.5px solid var(--border);padding:0;}
  .admin-sidebar-logo{display:none;}
  .admin-nav-item{white-space:nowrap;border-right:none;border-bottom:3px solid transparent;flex-shrink:0;}
  .admin-nav-item.active{border-right-color:transparent;border-bottom-color:var(--primary);}
  .admin-content{padding:1.25rem;}.metrics{grid-template-columns:repeat(2,1fr);}
  .overview-grid{grid-template-columns:1fr;}.search-bar{flex-direction:column;}
  .search-input-wrap,.search-filter{width:100%;}
}
@media(max-width:480px){
  :root{--nav-h:52px;}.nav{padding:0 1rem;}.nav-logo{font-size:17px;gap:8px;}.site-logo-img{width:36px;height:36px;}
  .hero{padding:2rem 1rem 1.5rem;}.hero h1{font-size:22px;}
  .hero-actions{flex-direction:column;align-items:center;}
  .btn-lg,.btn-google{width:100%;max-width:300px;justify-content:center;}
  .stats{padding:1rem;gap:8px;}.stat-num{font-size:20px;}.section{padding:1rem;}
  .courses-grid{grid-template-columns:1fr 1fr;gap:10px;}
  .modal{padding:1.25rem;}.modal-footer{flex-direction:column-reverse;}.modal-footer button{width:100%;}
  .admin-content{padding:1rem;}.metrics{gap:8px;}.metric{padding:10px;}.metric-val{font-size:20px;}
}
@media(max-width:360px){.hero h1{font-size:19px;}.courses-grid{grid-template-columns:1fr;}}

/* DARK OVERRIDES */
[data-theme="dark"] .form-input{background:var(--bg-secondary);color:var(--text);border-color:var(--border-strong);}
[data-theme="dark"] .form-input:focus{background:var(--bg-card);border-color:var(--primary);}
[data-theme="dark"] .search-input{background:var(--bg-card);color:var(--text);border-color:var(--border-strong);}
[data-theme="dark"] .mobile-nav-drawer{background:var(--bg-card);}
[data-theme="dark"] .mobile-nav-btn{color:var(--text);border-color:var(--border);}
[data-theme="dark"] thead tr{background:var(--bg-secondary);}
[data-theme="dark"] td,[data-theme="dark"] th{border-color:var(--border);}
[data-theme="dark"] tr:hover td{background:var(--bg-secondary);}
[data-theme="dark"] .btn-google-nav{background:var(--bg-secondary);color:var(--text);}

/* ===================== DROPDOWN USER MENU ===================== */
.user-dropdown-wrap { position: relative; }

.user-dropdown-btn {
  background: none;
  border: .5px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  font-family: 'Tajawal', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all .15s;
  white-space: nowrap;
}
.user-dropdown-btn:hover { background: var(--bg-secondary); }
.dropdown-arrow { font-size: 10px; color: var(--text-muted); transition: transform .2s; }
.user-dropdown-wrap.open .dropdown-arrow { transform: rotate(180deg); }

.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: .5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 500;
  overflow: hidden;
  animation: dropIn .15s ease;
}
.user-dropdown-wrap.open .user-dropdown-menu { display: block; }

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-secondary);
}
.dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.dropdown-name  { font-size: 14px; font-weight: 600; color: var(--text); }
.dropdown-email { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.dropdown-divider { height: .5px; background: var(--border); }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: right;
  font-family: 'Tajawal', sans-serif;
  transition: background .15s;
}
.dropdown-item:hover { background: var(--bg-secondary); }
.dropdown-logout { color: var(--danger-text) !important; }
.dropdown-logout:hover { background: var(--danger-bg) !important; }

/* NAV active link */
.nav-btn { text-decoration: none; }
.nav-active { color: var(--primary) !important; border-color: var(--primary-mid) !important; background: var(--primary-light) !important; }

/* Mobile user info */
.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}
.mobile-user-pic { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* Mobile nav as links */
.mobile-nav-btn { text-decoration: none; }

/* ===== FIXES ===== */
/* إزالة الخط من كل الروابط في الـ nav */
a { text-decoration: none !important; }
.btn-lg { text-decoration: none !important; }
.btn-primary { text-decoration: none !important; }

/* صورة المستخدم من Google */
.nav-avatar-img {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--border-strong);
}
.dropdown-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--border-strong);
}
.mobile-user-pic {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Course search - courses page */
.course-search-area{margin:0 0 1rem 0;position:relative;z-index:5;}
.course-search-wrap{max-width:none;width:100%;margin:0;}
.course-search-input{height:46px;border-radius:16px;font-size:14px;box-shadow:0 6px 18px rgba(0,0,0,.035);}
.course-search-input::-webkit-search-cancel-button{display:none;}
.course-search-suggestions{position:absolute;top:calc(100% + 8px);right:0;left:0;background:var(--bg-card);border:.5px solid var(--border);border-radius:16px;box-shadow:0 18px 40px rgba(0,0,0,.12);padding:6px;display:none;z-index:30;max-height:280px;overflow:auto;}
.course-search-suggestions.open{display:block;}
.course-suggestion{width:100%;border:0;background:transparent;color:var(--text);padding:10px 12px;border-radius:12px;cursor:pointer;text-align:right;font-family:'Tajawal',sans-serif;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.course-suggestion:hover,.course-suggestion.active{background:var(--bg-secondary);}
.course-suggestion-title{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.course-suggestion-meta{font-size:11px;color:var(--text-muted);white-space:nowrap;}
.course-search-count{display:none;margin:-.25rem 0 1rem;color:var(--text-muted);font-size:12px;}

@media(max-width:640px){
  .course-search-wrap{max-width:none;width:100%;}
  .course-search-input{height:44px;font-size:13px;border-radius:14px;}
  .course-suggestion{align-items:flex-start;flex-direction:column;gap:4px;}
  .course-suggestion-title,.course-suggestion-meta{white-space:normal;}
}

/* ADMIN THEME SETTINGS */
.theme-preview-panel{display:grid;grid-template-columns:1fr 260px;gap:16px;margin-bottom:1.5rem;align-items:stretch;}
.theme-preview-title{font-size:13px;font-weight:700;margin-bottom:8px;color:var(--text-muted);}
.theme-preview-card{background:var(--bg-card);border:.5px solid var(--border);border-radius:var(--radius-lg);padding:18px;}
.theme-preview-card h3{font-family:'Cairo',sans-serif;font-size:18px;margin:8px 0;color:var(--text);}
.theme-preview-card p{font-size:13px;line-height:1.8;color:var(--text-muted);margin-bottom:12px;}
.theme-actions-box{background:var(--bg-card);border:.5px solid var(--border);border-radius:var(--radius-lg);padding:16px;display:flex;flex-direction:column;gap:10px;justify-content:center;}
.theme-actions-box small{font-size:11px;line-height:1.7;color:var(--text-muted);}
.theme-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start;}
.theme-mode-card{overflow:visible;}
.theme-fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px;}
.theme-color-field{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--text-muted);}
.theme-color-row{display:flex;gap:8px;align-items:center;}
.theme-color-row input[type="color"]{width:44px;height:38px;border:.5px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--bg-card);padding:3px;cursor:pointer;}
.theme-hex-input{height:38px;font-family:monospace!important;direction:ltr;text-align:center;font-size:12px!important;padding:8px!important;}
@media (max-width:900px){.theme-preview-panel,.theme-settings-grid{grid-template-columns:1fr}.theme-fields-grid{grid-template-columns:1fr}}

/* Keep dashboard action buttons on one line */
td.admin-actions-cell, th.admin-actions-cell{white-space:nowrap;width:1%;min-width:220px;}

/* Theme switch inside user dropdown */
.dropdown-theme-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:11px 16px;
  background:none;
  border:0;
  border-radius:0;
  margin:0;
  width:100%;
  transition:background .15s;
}
.dropdown-theme-row:hover{
  background:var(--bg-secondary);
}
.dropdown-theme-label{
  color:var(--text);
  font-size:13px;
  font-weight:400;
  white-space:nowrap;
  display:flex;
  align-items:center;
  gap:10px;
}
.dropdown-theme-controls{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}


/* Lesson completion tracking */
.course-progress-summary{
  padding:12px 14px;
  background:var(--bg-secondary);
  border-bottom:.5px solid var(--border);
}
.course-progress-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-size:12px;
  color:var(--text-muted);
  margin-bottom:8px;
}
.course-progress-top b{color:var(--text);font-weight:700;}
.course-progress-bar{
  height:6px;
  background:var(--border);
  border-radius:99px;
  overflow:hidden;
}
.course-progress-fill{
  height:100%;
  background:var(--primary);
  border-radius:99px;
}
.lesson-item.lesson-completed .lesson-num{
  background:var(--success-bg);
  color:var(--success-text);
  font-size:16px;
  font-weight:800;
}
.completed-badge{
  background:var(--success-bg);
  color:var(--success-text);
  padding:1px 6px;
  border-radius:8px;
  font-size:10px;
  font-weight:700;
}
.lesson-completion-box{
  padding:14px 1.5rem;
  border-top:.5px solid var(--border);
  background:var(--bg-card);
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.complete-lesson-btn{
  border:0;
  background:var(--primary);
  color:#fff;
  padding:10px 16px;
  border-radius:var(--radius-md);
  font-family:'Tajawal',sans-serif;
  font-weight:700;
  cursor:pointer;
  transition:opacity .15s, transform .15s;
}
.complete-lesson-btn:hover:not(:disabled){background:var(--button-hover);transform:translateY(-1px);}
.complete-lesson-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.completion-note{
  color:var(--text-muted);
  font-size:12px;
  line-height:1.7;
}
.completion-done{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--success-bg);
  color:var(--success-text);
  padding:9px 14px;
  border-radius:var(--radius-md);
  font-size:13px;
  font-weight:700;
}


/* Lesson number with completion check */
.lesson-num .lesson-check{
  font-size:11px;
  font-weight:900;
  line-height:1;
  margin-right:2px;
}
.lesson-item.lesson-completed .lesson-num{
  gap:2px;
}


/* Courses page category tabs - same style as home category buttons */
.courses-page-section .filter-tabs{
  justify-content:center;
  gap:12px;
  margin:8px 0 1.6rem;
}
.courses-page-section .filter-tabs .tab{
  min-width:132px;
  padding:12px 18px;
  border-radius:18px;
  border:.5px solid var(--category-border);
  background:var(--category-bg);
  color:var(--category-text);
  box-shadow:0 8px 22px rgba(0,0,0,.04);
  font-size:13px;
  font-weight:700;
  line-height:1.4;
  transition:all .18s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.courses-page-section .filter-tabs .tab:hover,
.courses-page-section .filter-tabs .tab.active{
  background:var(--category-hover-bg);
  color:var(--category-hover-text);
  border-color:var(--category-hover-border);
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(0,0,0,.08);
}
@media (max-width:700px){
  .courses-page-section .filter-tabs{
    justify-content:stretch;
  }
  .courses-page-section .filter-tabs .tab{
    flex:1 1 calc(50% - 8px);
    min-width:120px;
  }
}


/* HOME SLIDER */
.home-slider-section{
  padding:28px 2rem 0;
  width:100%;
  max-width:none;
  margin:0;
  background:var(--bg);
}
.home-slider{
  position:relative;
  width:100%;
  max-width:1180px;
  margin:0 auto;
  height:clamp(220px, 28vw, 380px);
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:var(--bg-card);
  border:.5px solid var(--border);
  box-shadow:0 18px 45px rgba(0,0,0,.07);
}
.home-slider-track{
  position:absolute;
  inset:0;
  display:flex;
  width:100%;
  height:100%;
  transition:transform .95s cubic-bezier(.22, .72, .18, 1);
  will-change:transform;
}
.home-slide{
  position:relative;
  min-width:100%;
  width:100%;
  height:100%;
  flex:0 0 100%;
}
.home-slide.active{
  pointer-events:auto;
}
.home-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.home-slider-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  width:38px;
  height:38px;
  border-radius:50%;
  border:.5px solid rgba(255,255,255,.55);
  background:rgba(0,0,0,.28);
  color:#fff;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .18s, transform .18s;
}
.home-slider-arrow:hover{
  background:rgba(0,0,0,.45);
  transform:translateY(-50%) scale(1.04);
}
.home-slider-prev{right:16px;}
.home-slider-next{left:16px;}
.home-slider-dots{
  position:absolute;
  z-index:3;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:7px;
  padding:6px 9px;
  border-radius:99px;
  background:rgba(0,0,0,.22);
  backdrop-filter:blur(8px);
}
.home-slider-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  border:0;
  background:rgba(255,255,255,.55);
  cursor:pointer;
  padding:0;
  transition:width .18s, background .18s;
}
.home-slider-dot.active{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#fff;
}
@media (max-width:700px){
 .home-slider-section{
    padding:18px 1rem 0;
  }
  .home-slider{
    height:clamp(180px, 45vw, 260px);
    border-radius:var(--radius-md);
  }
  .home-slider-arrow{
    width:34px;
    height:34px;
    font-size:26px;
  }
  .home-slider-prev{right:10px;}
  .home-slider-next{left:10px;}
}


/* HOME SERVICE CARDS */
.home-services-section{
  width:100%;
  background:var(--bg);
  padding:28px 2rem 16px;
}
.home-services-grid{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.home-service-card{
  position:relative;
  min-height:365px;
  border-radius:24px;
  padding:24px 22px 20px;
  overflow:hidden;
  border:.5px solid var(--border);
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.72), transparent 32%),
    linear-gradient(145deg, var(--bg-card), var(--bg));
  box-shadow:0 16px 42px rgba(0,0,0,.055);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:18px;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.home-service-card::before{
  content:"";
  position:absolute;
  inset:auto -45px -55px auto;
  width:155px;
  height:155px;
  border-radius:50%;
  background:var(--primary-light);
  opacity:.55;
  pointer-events:none;
}
.home-service-card:hover{
  transform:translateY(-5px);
  box-shadow:0 22px 55px rgba(0,0,0,.09);
  border-color:var(--primary-mid);
}
.home-service-icon{
  width:84px;
  height:84px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--primary);
  background:var(--primary-light);
  border:.5px solid var(--primary-mid);
  position:relative;
  z-index:1;
}
.home-service-icon svg{
  width:50px;
  height:50px;
}
.home-service-content{
  position:relative;
  z-index:1;
}
.home-service-content h2{
  font-family:'Cairo',sans-serif;
  font-size:23px;
  line-height:1.35;
  margin:0 0 10px;
  color:var(--text);
  font-weight:800;
}
.home-service-content p{
  margin:0;
  color:var(--text-muted);
  font-size:15.5px;
  line-height:2;
}
.home-service-btn{
  position:relative;
  z-index:1;
  align-self:stretch;
  width:100%;
  max-width:none;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:var(--primary);
  color:#fff;
  text-decoration:none;
  border-radius:16px;
  padding:13px 18px;
  font-size:14px;
  font-weight:700;
  transition:background .18s ease, transform .18s ease;
}
.home-service-btn:hover{
  background:var(--button-hover);
  transform:translateY(-2px);
}
.service-new-project{
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.72), transparent 34%),
    linear-gradient(145deg, var(--bg-card), var(--bg));
}
.service-existing-project{
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.72), transparent 34%),
    linear-gradient(145deg, var(--bg-card), var(--bg));
}
.service-learn{
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.72), transparent 34%),
    linear-gradient(145deg, var(--bg-card), var(--bg));
}
[data-theme="dark"] .service-new-project,
[data-theme="dark"] .service-existing-project,
[data-theme="dark"] .service-learn{
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.06), transparent 34%),
    linear-gradient(145deg, var(--bg-card), var(--bg));
}
.service-page-placeholder{
  min-height:calc(100vh - var(--nav-h));
  padding:5rem 2rem;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--bg);
}
.service-page-card{
  width:100%;
  max-width:720px;
  background:var(--bg-card);
  border:.5px solid var(--border);
  border-radius:var(--radius-lg);
  padding:2rem;
  text-align:center;
  box-shadow:0 18px 45px rgba(0,0,0,.06);
}
.service-page-kicker{
  display:inline-block;
  background:var(--primary-light);
  color:var(--primary);
  padding:6px 16px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  margin-bottom:1rem;
}
.service-page-card h1{
  font-family:'Cairo',sans-serif;
  font-size:34px;
  margin:0 0 1rem;
}
.service-page-card p{
  color:var(--text-muted);
  line-height:1.9;
  margin:0 auto 1.5rem;
  max-width:560px;
}
@media (max-width:950px){
  .home-services-grid{
    grid-template-columns:repeat(3,1fr);
    gap:14px;
  }
  .home-service-card{
    min-height:340px;
    padding:20px 16px 18px;
  }
  .home-service-icon{
    width:72px;
    height:72px;
  }
  .home-service-icon svg{
    width:42px;
    height:42px;
  }
  .home-service-content h2{
    font-size:20px;
  }
  .home-service-content p{
    font-size:14px;
    line-height:1.85;
  }
  .home-service-btn{
    padding:11px 14px;
    font-size:13px;
  }
}
@media (max-width:700px){
  .home-services-section{
    padding:22px 1rem 12px;
  }
  .home-services-grid{
    grid-template-columns:1fr;
    gap:16px;
  }
  .home-service-card{
    min-height:auto;
    padding:24px 18px 22px;
    border-radius:20px;
  }
  .home-service-icon{
    width:76px;
    height:76px;
  }
  .home-service-icon svg{
    width:46px;
    height:46px;
  }
  .home-service-content h2{
    font-size:22px;
  }
  .home-service-content p{
    font-size:15px;
    line-height:1.95;
  }
}


/* HOME SECTION DIVIDER */
.home-section-divider{
  width:100%;
  max-width:1180px;
  height:1px;
  margin:14px auto 18px;
  background:var(--border);
  opacity:.55;
}
[data-theme="dark"] .home-section-divider{
  background:var(--border);
  opacity:.65;
}
@media (max-width:700px){
  .home-section-divider{
    width:calc(100% - 2rem);
    margin:12px auto 16px;
  }
}


/* HOME PROJECT INFO SECTIONS */
.home-project-info-section{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:10px 2rem 6px;
}
.home-project-info-card{
  width:100%;
  border:.5px solid var(--border);
  border-radius:24px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.58), transparent 30%),
    linear-gradient(145deg, var(--bg-card), var(--bg));
  box-shadow:0 14px 38px rgba(0,0,0,.045);
  padding:24px 26px;
  display:grid;
  grid-template-columns:92px 1fr;
  gap:24px;
  align-items:center;
}
.home-project-info-icon{
  width:82px;
  height:82px;
  border-radius:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--primary);
  background:var(--primary-light);
  border:.5px solid var(--primary-mid);
}
.home-project-info-icon svg{
  width:50px;
  height:50px;
}
.home-project-info-text h2{
  font-family:'Cairo',sans-serif;
  font-size:25px;
  font-weight:800;
  margin:0 0 10px;
  color:var(--text);
}
.home-project-info-text p{
  margin:0 0 8px;
  color:var(--text-muted);
  font-size:16px;
  line-height:2;
}
.home-project-info-text p:last-child{
  margin-bottom:0;
}
.home-info-inner-divider{
  width:100%;
  height:1px;
  margin:18px auto;
  background:var(--border);
  opacity:.55;
}
[data-theme="dark"] .home-project-info-card{
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.05), transparent 30%),
    linear-gradient(145deg, var(--bg-card), var(--bg));
}
[data-theme="dark"] .home-info-inner-divider{
  opacity:.65;
}
@media (max-width:700px){
  .home-project-info-section{
    padding:10px 1rem 4px;
  }
  .home-project-info-card{
    grid-template-columns:1fr;
    text-align:center;
    padding:22px 18px;
    gap:16px;
  }
  .home-project-info-icon{
    margin:0 auto;
    width:76px;
    height:76px;
  }
  .home-project-info-icon svg{
    width:46px;
    height:46px;
  }
  .home-project-info-text h2{
    font-size:22px;
  }
  .home-project-info-text p{
    font-size:15px;
    line-height:1.95;
  }
}


/* NEW PROJECT PACKAGES PAGE */
.new-project-page{
  width:100%;
  min-height:calc(100vh - var(--nav-h));
  background:var(--bg);
  padding:3.5rem 2rem 4rem;
}
.new-project-header{
  max-width:820px;
  margin:0 auto 2rem;
  text-align:center;
}
.new-project-header h1{
  font-family:'Cairo',sans-serif;
  font-size:36px;
  font-weight:800;
  margin:0 0 12px;
  color:var(--text);
}
.new-project-header p{
  margin:0 auto;
  max-width:720px;
  color:var(--text-muted);
  font-size:clamp(18px, 1.6vw, 22px);
  line-height:1.9;
}
.new-project-packages-grid{
  max-width:1050px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:22px;
  align-items:stretch;
}
.new-project-package-card{
  position:relative;
  min-height:560px;
  border:.5px solid var(--border);
  border-radius:28px;
  padding:30px 28px 26px;
  overflow:hidden;
  background:
    radial-gradient(circle at 14% 12%, rgba(255,255,255,.58), transparent 32%),
    linear-gradient(145deg, var(--bg-card), var(--bg));
  box-shadow:0 18px 48px rgba(0,0,0,.06);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:24px;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.new-project-package-card:hover{
  transform:translateY(-5px);
  box-shadow:0 24px 62px rgba(0,0,0,.095);
  border-color:var(--primary-mid);
}
.new-project-package-card::before{
  content:"";
  position:absolute;
  inset:auto -70px -80px auto;
  width:220px;
  height:220px;
  border-radius:50%;
  background:var(--primary-light);
  opacity:.35;
  pointer-events:none;
}
.new-project-package-icon{
  width:96px;
  height:96px;
  border-radius:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--primary);
  background:var(--primary-light);
  border:.5px solid var(--primary-mid);
  position:relative;
  z-index:1;
}
.new-project-package-icon svg{
  width:58px;
  height:58px;
}
.new-project-package-content{
  position:relative;
  z-index:1;
}
.package-code{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:54px;
  height:34px;
  padding:0 14px;
  border-radius:999px;
  background:var(--primary-light);
  color:var(--primary);
  font-weight:800;
  font-size:15px;
  margin-bottom:16px;
}
.new-project-package-content h2{
  font-family:'Cairo',sans-serif;
  font-size:36px;
  line-height:1;
  margin:0 0 16px;
  color:var(--text);
  font-weight:800;
}
.new-project-package-content h3{
  font-family:'Cairo',sans-serif;
  font-size:20px;
  margin:0 0 16px;
  color:var(--text);
  font-weight:800;
}
.new-project-package-content ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.new-project-package-content li{
  color:var(--text-muted);
  font-size:16px;
  line-height:1.7;
  position:relative;
  padding-right:22px;
}
.new-project-package-content li::before{
  content:"";
  position:absolute;
  right:0;
  top:.75em;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--primary);
}
.new-project-package-btn{
  position:relative;
  z-index:1;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:var(--primary);
  color:#fff;
  text-decoration:none;
  border-radius:18px;
  padding:14px 18px;
  font-size:15px;
  font-weight:800;
  transition:background .18s ease, transform .18s ease;
}
.new-project-package-btn:hover{
  background:var(--button-hover);
  transform:translateY(-2px);
}
[data-theme="dark"] .new-project-package-card{
  background:
    radial-gradient(circle at 14% 12%, rgba(255,255,255,.05), transparent 32%),
    linear-gradient(145deg, var(--bg-card), var(--bg));
}
@media (max-width:850px){
  .new-project-packages-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:16px;
  }
  .new-project-package-card{
    min-height:520px;
    padding:26px 22px 22px;
  }
  .new-project-package-content li{
    font-size:15px;
  }
}
@media (max-width:700px){
  .new-project-packages-grid{
    grid-template-columns:1fr;
  }
  .new-project-package-card{
    min-height:auto;
  }
}
@media (max-width:700px){
  .new-project-page{
    padding:2.5rem 1rem 3rem;
  }
  .new-project-header h1{
    font-size:30px;
  }
  .new-project-package-card{
    padding:26px 20px 22px;
    border-radius:24px;
  }
  .new-project-package-icon{
    width:84px;
    height:84px;
  }
  .new-project-package-icon svg{
    width:52px;
    height:52px;
  }
  .new-project-package-content h2{
    font-size:32px;
  }
}


/* NEW PROJECT PACKAGE REFERENCE LAYOUT */
.new-project-package-card{
  min-height:610px;
  padding:34px 34px 30px;
}
.new-project-package-top{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr 110px;
  gap:22px;
  align-items:start;
}
.new-project-package-title{
  font-family:'Cairo',sans-serif;
  font-size:48px;
  font-weight:800;
  line-height:1.15;
  color:var(--text);
  padding-top:26px;
}
.new-project-package-icon{
  width:110px;
  height:110px;
  border-radius:30px;
}
.new-project-package-icon svg{
  width:62px;
  height:62px;
}
.new-project-package-content{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  margin-top:6px;
}
.package-code{
  min-width:58px;
  height:38px;
  padding:0 18px;
  margin:0 0 26px;
  background:rgba(0,0,0,.06);
  color:var(--primary);
  font-size:16px;
  align-self:flex-start;
}
[data-theme="dark"] .package-code{
  background:rgba(0,0,0,.22);
}
.new-project-package-content > h2{
  display:none;
}
.new-project-package-content h3{
  font-size:24px;
  margin:0 0 22px;
}
.new-project-package-content ul{
  gap:15px;
}
.new-project-package-content li{
  font-size:17px;
  line-height:1.8;
  padding-right:24px;
}
.new-project-package-content li::before{
  top:.82em;
  width:9px;
  height:9px;
}
@media (max-width:850px){
  .new-project-package-card{
    min-height:560px;
    padding:28px 22px 24px;
  }
  .new-project-package-top{
    grid-template-columns:1fr 92px;
    gap:16px;
  }
  .new-project-package-title{
    font-size:36px;
    padding-top:20px;
  }
  .new-project-package-icon{
    width:92px;
    height:92px;
  }
  .new-project-package-icon svg{
    width:54px;
    height:54px;
  }
  .new-project-package-content h3{
    font-size:21px;
  }
  .new-project-package-content li{
    font-size:15px;
  }
}
@media (max-width:700px){
  .new-project-package-card{
    min-height:auto;
  }
  .new-project-package-top{
    grid-template-columns:1fr 86px;
  }
  .new-project-package-title{
    font-size:32px;
    padding-top:18px;
  }
  .new-project-package-icon{
    width:86px;
    height:86px;
  }
  .new-project-package-icon svg{
    width:50px;
    height:50px;
  }
}

/* EXISTING PROJECT PAGE */
.existing-project-page .new-project-package-title{
  max-width:260px;
}

/* Existing project package title one line */
.existing-project-page .new-project-package-title{
  white-space:nowrap;
  max-width:none;
  font-size:42px;
}
@media (max-width:850px){
  .existing-project-page .new-project-package-title{
    font-size:30px;
  }
}
@media (max-width:700px){
  .existing-project-page .new-project-package-title{
    font-size:28px;
  }
}

/* Guest/Desktop theme toggle */
.desktop-theme-toggle{
  min-width:38px;
  height:36px;
  padding:7px 10px;
  justify-content:center;
  font-size:16px;
}
@media (max-width:760px){
  .desktop-theme-toggle{
    display:none;
  }
}

/* New project service descriptions */
.new-project-page:not(.existing-project-page) .new-project-package-title{
  font-size:34px;
  line-height:1.45;
  max-width:300px;
  padding-top:12px;
}
.new-project-package-description{
  margin:0;
  color:var(--text-muted);
  font-size:18px;
  line-height:2.05;
  max-width:100%;
}
@media (max-width:850px){
  .new-project-page:not(.existing-project-page) .new-project-package-title{
    font-size:25px;
    line-height:1.55;
    padding-top:8px;
  }
  .new-project-package-description{
    font-size:15px;
    line-height:1.95;
  }
}
@media (max-width:700px){
  .new-project-page:not(.existing-project-page) .new-project-package-title{
    font-size:25px;
    line-height:1.55;
    max-width:220px;
  }
}


/* Compact layout override for service-new-project */
.new-project-page:not(.existing-project-page) .new-project-packages-grid{
  align-items:stretch;
}
.new-project-page:not(.existing-project-page) .new-project-package-card{
  min-height:460px;
  padding:28px 26px 22px;
  gap:16px;
}
.new-project-page:not(.existing-project-page) .new-project-package-top{
  grid-template-columns:1fr 92px;
  gap:18px;
}
.new-project-page:not(.existing-project-page) .new-project-package-icon{
  width:92px;
  height:92px;
  border-radius:26px;
}
.new-project-page:not(.existing-project-page) .new-project-package-icon svg{
  width:52px;
  height:52px;
}
.new-project-page:not(.existing-project-page) .new-project-package-title{
  font-size:34px;
  line-height:1.28;
  max-width:320px;
  padding-top:8px;
}
.new-project-page:not(.existing-project-page) .new-project-package-content{
  margin-top:0;
}
.new-project-page:not(.existing-project-page) .new-project-package-description{
  font-size:17px;
  line-height:2;
  margin:0;
}
.new-project-page:not(.existing-project-page) .package-code{
  display:none !important;
}
.new-project-page:not(.existing-project-page) .new-project-package-btn{
  margin-top:auto;
}
@media (max-width:850px){
  .new-project-page:not(.existing-project-page) .new-project-package-card{
    min-height:400px;
    padding:24px 20px 20px;
    gap:14px;
  }
  .new-project-page:not(.existing-project-page) .new-project-package-top{
    grid-template-columns:1fr 80px;
    gap:14px;
  }
  .new-project-page:not(.existing-project-page) .new-project-package-icon{
    width:80px;
    height:80px;
  }
  .new-project-page:not(.existing-project-page) .new-project-package-icon svg{
    width:46px;
    height:46px;
  }
  .new-project-page:not(.existing-project-page) .new-project-package-title{
    font-size:26px;
    line-height:1.35;
    max-width:240px;
    padding-top:4px;
  }
  .new-project-page:not(.existing-project-page) .new-project-package-description{
    font-size:15px;
    line-height:1.9;
  }
}
@media (max-width:700px){
  .new-project-page:not(.existing-project-page) .new-project-package-card{
    min-height:auto;
  }
  .new-project-page:not(.existing-project-page) .new-project-package-title{
    max-width:none;
  }
}


/* Service new project tighter layout v2 */
.new-project-page:not(.existing-project-page) .new-project-package-card{
  min-height:420px;
  padding:24px 24px 20px;
  gap:12px;
}
.new-project-page:not(.existing-project-page) .new-project-package-top{
  grid-template-columns:minmax(0,1fr) 88px;
  gap:16px;
}
.new-project-page:not(.existing-project-page) .new-project-package-icon{
  width:88px;
  height:88px;
  border-radius:24px;
}
.new-project-page:not(.existing-project-page) .new-project-package-icon svg{
  width:50px;
  height:50px;
}
.new-project-page:not(.existing-project-page) .new-project-package-title{
  font-size:30px;
  line-height:1.22;
  max-width:420px;
  padding-top:4px;
}
.new-project-page:not(.existing-project-page) .new-project-package-description{
  font-size:18px;
  line-height:1.95;
}
@media (max-width:850px){
  .new-project-page:not(.existing-project-page) .new-project-package-card{
    min-height:390px;
    padding:22px 18px 18px;
    gap:12px;
  }
  .new-project-page:not(.existing-project-page) .new-project-package-top{
    grid-template-columns:minmax(0,1fr) 74px;
    gap:12px;
  }
  .new-project-page:not(.existing-project-page) .new-project-package-icon{
    width:74px;
    height:74px;
  }
  .new-project-page:not(.existing-project-page) .new-project-package-icon svg{
    width:42px;
    height:42px;
  }
  .new-project-page:not(.existing-project-page) .new-project-package-title{
    font-size:25px;
    max-width:none;
  }
  .new-project-page:not(.existing-project-page) .new-project-package-description{
    font-size:16px;
    line-height:1.85;
  }
}


/* Service new project compact spacing v3 */
.new-project-page:not(.existing-project-page) .new-project-package-card{
  min-height:380px;
  padding:22px 24px 18px;
  gap:10px;
  justify-content:flex-start;
}
.new-project-page:not(.existing-project-page) .new-project-package-content{
  margin-top:0;
}
.new-project-page:not(.existing-project-page) .new-project-package-description{
  font-size:18px;
  line-height:1.9;
}
.new-project-page:not(.existing-project-page) .new-project-package-btn{
  margin-top:10px;
}
@media (max-width:850px){
  .new-project-page:not(.existing-project-page) .new-project-package-card{
    min-height:350px;
    padding:20px 18px 16px;
    gap:10px;
  }
  .new-project-page:not(.existing-project-page) .new-project-package-description{
    font-size:16px;
    line-height:1.8;
  }
  .new-project-page:not(.existing-project-page) .new-project-package-btn{
    margin-top:8px;
  }
}
@media (max-width:700px){
  .new-project-page:not(.existing-project-page) .new-project-package-card{
    min-height:auto;
  }
}

/* Service new project button lower */
.new-project-page:not(.existing-project-page) .new-project-package-card{
  min-height:405px;
}
.new-project-page:not(.existing-project-page) .new-project-package-btn{
  margin-top:34px;
}
@media (max-width:850px){
  .new-project-page:not(.existing-project-page) .new-project-package-card{
    min-height:375px;
  }
  .new-project-page:not(.existing-project-page) .new-project-package-btn{
    margin-top:26px;
  }
}

/* Service new project button closer to card bottom */
.new-project-page:not(.existing-project-page) .new-project-package-card{
  min-height:370px;
  padding-bottom:14px;
  justify-content:flex-start;
}
.new-project-page:not(.existing-project-page) .new-project-package-btn{
  margin-top:auto;
}
@media (max-width:850px){
  .new-project-page:not(.existing-project-page) .new-project-package-card{
    min-height:350px;
    padding-bottom:12px;
  }
}

/* Existing project compact service layout */
.existing-project-page .new-project-package-card{
  min-height:370px;
  padding:22px 24px 14px;
  gap:10px;
  justify-content:flex-start;
}
.existing-project-page .new-project-package-top{
  grid-template-columns:minmax(0,1fr) 88px;
  gap:16px;
}
.existing-project-page .new-project-package-icon{
  width:88px;
  height:88px;
  border-radius:24px;
}
.existing-project-page .new-project-package-icon svg{
  width:50px;
  height:50px;
}
.existing-project-page .new-project-package-title{
  white-space:normal;
  font-size:30px;
  line-height:1.22;
  max-width:420px;
  padding-top:4px;
}
.existing-project-page .new-project-package-content{
  margin-top:0;
}
.existing-project-page .new-project-package-description{
  margin:0;
  color:var(--text-muted);
  font-size:18px;
  line-height:1.9;
}
.existing-project-page .package-code{
  display:none !important;
}
.existing-project-page .new-project-package-btn{
  margin-top:auto;
}
@media (max-width:850px){
  .existing-project-page .new-project-package-card{
    min-height:350px;
    padding:20px 18px 12px;
    gap:10px;
  }
  .existing-project-page .new-project-package-top{
    grid-template-columns:minmax(0,1fr) 74px;
    gap:12px;
  }
  .existing-project-page .new-project-package-icon{
    width:74px;
    height:74px;
  }
  .existing-project-page .new-project-package-icon svg{
    width:42px;
    height:42px;
  }
  .existing-project-page .new-project-package-title{
    font-size:25px;
    max-width:none;
  }
  .existing-project-page .new-project-package-description{
    font-size:16px;
    line-height:1.8;
  }
}
@media (max-width:700px){
  .existing-project-page .new-project-package-card{
    min-height:auto;
  }
}

/* Existing project longer first title fit */
.existing-project-page .new-project-package-title{
  font-size:28px;
  line-height:1.28;
}
@media (max-width:850px){
  .existing-project-page .new-project-package-title{
    font-size:23px;
    line-height:1.32;
  }
}

/* Existing project second long title fit */
.existing-project-page .new-project-package-title{
  font-size:27px;
  line-height:1.3;
}
@media (max-width:850px){
  .existing-project-page .new-project-package-title{
    font-size:22px;
    line-height:1.35;
  }
}

/* Service details page */
.service-details-page{
  width:100%;
  min-height:calc(100vh - var(--nav-h));
  background:var(--bg);
  padding:3rem 2rem 4rem;
}
.service-details-shell{
  width:100%;
  max-width:980px;
  margin:0 auto;
}
.service-details-back{
  display:inline-flex;
  align-items:center;
  color:var(--text-muted);
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  margin-bottom:18px;
  transition:color .18s ease;
}
.service-details-back:hover{
  color:var(--primary);
}
.service-details-hero{
  display:grid;
  grid-template-columns:118px minmax(0,1fr);
  gap:24px;
  align-items:center;
  border:.5px solid var(--border);
  border-radius:28px;
  background:
    radial-gradient(circle at 12% 12%, rgba(255,255,255,.58), transparent 34%),
    linear-gradient(145deg, var(--bg-card), var(--bg));
  box-shadow:0 18px 48px rgba(0,0,0,.055);
  padding:28px 30px;
  margin-bottom:18px;
}
.service-details-icon{
  width:110px;
  height:110px;
  border-radius:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--primary);
  background:var(--primary-light);
  border:.5px solid var(--primary-mid);
}
.service-details-icon svg{
  width:62px;
  height:62px;
}
.service-details-kicker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 14px;
  border-radius:999px;
  background:var(--primary-light);
  color:var(--primary);
  font-weight:800;
  font-size:13px;
  margin-bottom:12px;
}
.service-details-hero h1{
  font-family:'Cairo',sans-serif;
  font-size:34px;
  line-height:1.35;
  margin:0 0 10px;
  color:var(--text);
  font-weight:800;
}
.service-details-hero p{
  margin:0;
  color:var(--text-muted);
  font-size:17px;
  line-height:1.9;
  max-width:720px;
}
.service-details-content{
  border:.5px solid var(--border);
  border-radius:28px;
  background:var(--bg-card);
  box-shadow:0 18px 48px rgba(0,0,0,.045);
  padding:30px;
}
.service-details-content h2{
  font-family:'Cairo',sans-serif;
  font-size:26px;
  font-weight:800;
  color:var(--text);
  margin:0 0 22px;
}
.service-details-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-bottom:26px;
}
.service-details-item{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:58px;
  padding:14px 16px;
  border:.5px solid var(--border);
  border-radius:18px;
  background:var(--bg);
  color:var(--text);
  font-size:17px;
  font-weight:700;
  line-height:1.6;
}
.service-details-check{
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--primary);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  font-size:16px;
  font-weight:800;
}
.service-details-whatsapp{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:var(--primary);
  color:#fff;
  text-decoration:none;
  border-radius:18px;
  padding:15px 20px;
  font-size:16px;
  font-weight:800;
  transition:background .18s ease, transform .18s ease;
}
.service-details-whatsapp:hover{
  background:var(--button-hover);
  transform:translateY(-2px);
}
[data-theme="dark"] .service-details-hero{
  background:
    radial-gradient(circle at 12% 12%, rgba(255,255,255,.05), transparent 34%),
    linear-gradient(145deg, var(--bg-card), var(--bg));
}
@media (max-width:760px){
  .service-details-page{
    padding:2rem 1rem 3rem;
  }
  .service-details-hero{
    grid-template-columns:1fr;
    padding:24px 20px;
  }
  .service-details-icon{
    width:88px;
    height:88px;
    border-radius:24px;
  }
  .service-details-icon svg{
    width:50px;
    height:50px;
  }
  .service-details-hero h1{
    font-size:27px;
  }
  .service-details-content{
    padding:24px 18px;
  }
  .service-details-list{
    grid-template-columns:1fr;
  }
}

/* Service details no title hero */
.service-details-content{
  margin-top:8px;
}
.service-details-content h2{
  text-align:right;
}

/* Home project info four cards */
.home-project-info-section .home-project-info-card{
  min-height:150px;
}
.home-project-info-text h2{
  line-height:1.45;
}
@media (max-width:700px){
  .home-project-info-section .home-project-info-card{
    min-height:auto;
  }
}

/* Home project info bigger description */
.home-project-info-text p{
  font-size:17px;
  line-height:2.05;
}
@media (max-width:700px){
  .home-project-info-text p{
    font-size:16px;
    line-height:2;
  }
}

/* Consultation request placeholder page */
.consultation-request-page{
  width:100%;
  min-height:calc(100vh - var(--nav-h));
  background:var(--bg);
  padding:3rem 2rem 4rem;
}
.consultation-request-shell{
  width:100%;
  max-width:980px;
  margin:0 auto;
}
.consultation-request-card{
  border:.5px solid var(--border);
  border-radius:28px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.58), transparent 30%),
    linear-gradient(145deg, var(--bg-card), var(--bg));
  box-shadow:0 18px 48px rgba(0,0,0,.045);
  padding:38px 32px;
  text-align:center;
}
.consultation-request-card h1{
  font-family:'Cairo',sans-serif;
  font-size:34px;
  font-weight:800;
  color:var(--text);
  margin:0 0 12px;
}
.consultation-request-card p{
  color:var(--text-muted);
  font-size:17px;
  line-height:2;
  margin:0;
}
[data-theme="dark"] .consultation-request-card{
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.05), transparent 30%),
    linear-gradient(145deg, var(--bg-card), var(--bg));
}
@media (max-width:700px){
  .consultation-request-page{
    padding:2rem 1rem 3rem;
  }
  .consultation-request-card{
    padding:30px 20px;
  }
  .consultation-request-card h1{
    font-size:28px;
  }
  .consultation-request-card p{
    font-size:16px;
  }
}

/* Consultation request form page */
.consultation-request-page{
  width:100%;
  min-height:calc(100vh - var(--nav-h));
  background:var(--bg);
  padding:3rem 2rem 4rem;
}
.consultation-request-shell{
  width:100%;
  max-width:980px;
  margin:0 auto;
}
.consultation-request-card{
  border:.5px solid var(--border);
  border-radius:28px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.58), transparent 30%),
    linear-gradient(145deg, var(--bg-card), var(--bg));
  box-shadow:0 18px 48px rgba(0,0,0,.045);
  padding:34px 32px;
}
.consultation-request-head{
  text-align:center;
  margin-bottom:28px;
}
.consultation-request-card h1{
  font-family:'Cairo',sans-serif;
  font-size:36px;
  font-weight:800;
  color:var(--text);
  margin:0 0 12px;
}
.consultation-request-card p{
  color:var(--text-muted);
  font-size:17px;
  line-height:2;
  margin:0;
}
.consultation-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.consultation-field{
  display:flex;
  flex-direction:column;
  gap:9px;
}
.consultation-field-full{
  grid-column:1 / -1;
}
.consultation-field label{
  color:var(--text);
  font-size:15px;
  font-weight:800;
}
.consultation-field label span{
  color:var(--text-muted);
  font-size:13px;
  font-weight:600;
}
.consultation-field input,
.consultation-field textarea{
  width:100%;
  border:.5px solid var(--border);
  border-radius:16px;
  background:var(--bg);
  color:var(--text);
  padding:14px 16px;
  font-family:'Tajawal',sans-serif;
  font-size:16px;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.consultation-field textarea{
  resize:vertical;
  min-height:145px;
  line-height:1.9;
}
.consultation-field input:focus,
.consultation-field textarea:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 4px var(--primary-light);
}
.consultation-field small{
  color:var(--text-muted);
  font-size:13px;
  line-height:1.7;
}
.consultation-submit-btn{
  grid-column:1 / -1;
  width:100%;
  border:0;
  border-radius:18px;
  background:var(--primary);
  color:#fff;
  padding:16px 22px;
  font-family:'Cairo',sans-serif;
  font-size:17px;
  font-weight:800;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.consultation-submit-btn:hover{
  transform:translateY(-2px);
  background:var(--button-hover);
  box-shadow:0 14px 32px rgba(0,0,0,.12);
}
[data-theme="dark"] .consultation-request-card{
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.05), transparent 30%),
    linear-gradient(145deg, var(--bg-card), var(--bg));
}
@media (max-width:700px){
  .consultation-request-page{
    padding:2rem 1rem 3rem;
  }
  .consultation-request-card{
    padding:28px 18px;
    border-radius:24px;
  }
  .consultation-request-card h1{
    font-size:30px;
  }
  .consultation-request-card p{
    font-size:16px;
  }
  .consultation-form{
    grid-template-columns:1fr;
    gap:16px;
  }
}

/* Consultation request centered compact tuning */
.consultation-request-card{
  max-width:820px;
  margin:0 auto;
}
.consultation-form{
  max-width:560px;
  margin:0 auto;
  grid-template-columns:1fr;
  justify-items:stretch;
}
.consultation-field,
.consultation-field-full{
  grid-column:1 / -1;
  width:100%;
}
.consultation-field label{
  text-align:center;
}
.consultation-field textarea{
  min-height:150px;
  max-height:220px;
}
.consultation-field input[type="date"],
.consultation-field input[type="time"]{
  color:var(--primary);
  font-weight:800;
}
.consultation-field input[type="date"]::-webkit-calendar-picker-indicator,
.consultation-field input[type="time"]::-webkit-calendar-picker-indicator{
  cursor:pointer;
  opacity:1;
  filter:sepia(1) saturate(7) hue-rotate(345deg);
}
.required-star{
  color:var(--primary) !important;
  font-size:18px !important;
  font-weight:900 !important;
}
@media (max-width:700px){
  .consultation-form{
    max-width:100%;
  }
  .consultation-field textarea{
    min-height:135px;
  }
}

/* Consultation request date-time inline tuning */
.consultation-form{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.consultation-field-full{
  grid-column:1 / -1;
}
.consultation-field textarea{
  min-height:125px;
  max-height:180px;
}
.consultation-field input[type="date"],
.consultation-field input[type="time"]{
  color:#fff;
  font-weight:800;
}
.consultation-field input[type="date"]::-webkit-calendar-picker-indicator,
.consultation-field input[type="time"]::-webkit-calendar-picker-indicator{
  cursor:pointer;
  opacity:1;
  filter:sepia(1) saturate(7) hue-rotate(345deg);
}
.consultation-submit-btn{
  grid-column:1 / -1;
}
@media (max-width:700px){
  .consultation-form{
    grid-template-columns:1fr;
  }
  .consultation-field textarea{
    min-height:120px;
    max-height:170px;
  }
}

/* Consultation request date-time text color fix */
.consultation-field input[type="date"],
.consultation-field input[type="time"]{
  color:var(--text);
}
.consultation-field input[type="date"]::-webkit-calendar-picker-indicator,
.consultation-field input[type="time"]::-webkit-calendar-picker-indicator{
  cursor:pointer;
  opacity:1;
  filter:sepia(1) saturate(7) hue-rotate(345deg);
}

/* Consultation request compact date-time row */
.consultation-form{
  max-width:560px;
  grid-template-columns:1fr;
}
.consultation-datetime-row{
  grid-column:1 / -1;
  width:100%;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  align-items:start;
}
.consultation-datetime-row .consultation-field{
  width:100%;
}
.consultation-time-note{
  grid-column:1 / -1;
  color:var(--text-muted);
  font-size:13px;
  line-height:1.6;
  text-align:center;
  margin-top:-4px;
}
.consultation-field textarea{
  min-height:115px;
  max-height:165px;
}
@media (max-width:520px){
  .consultation-datetime-row{
    grid-template-columns:1fr;
    gap:12px;
  }
  .consultation-field textarea{
    min-height:110px;
  }
}

/* FORCE consultation date and time side by side */
.consultation-form > .consultation-datetime-row{
  grid-column:1 / -1 !important;
  width:100% !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  column-gap:14px !important;
  row-gap:8px !important;
  align-items:start !important;
}
.consultation-form > .consultation-datetime-row > .consultation-field{
  grid-column:auto !important;
  width:100% !important;
  min-width:0 !important;
}
.consultation-form > .consultation-datetime-row > .consultation-date-field{
  grid-column:1 / 2 !important;
}
.consultation-form > .consultation-datetime-row > .consultation-time-field{
  grid-column:2 / 3 !important;
}
.consultation-form > .consultation-datetime-row > .consultation-time-note{
  grid-column:1 / -1 !important;
  color:var(--text-muted);
  font-size:13px;
  line-height:1.6;
  text-align:center;
  margin-top:0;
}
.consultation-form > .consultation-datetime-row input[type="date"],
.consultation-form > .consultation-datetime-row input[type="time"]{
  width:100% !important;
  color:var(--text) !important;
}
.consultation-field textarea{
  min-height:110px !important;
  max-height:160px !important;
}
@media (max-width:520px){
  .consultation-form > .consultation-datetime-row{
    grid-template-columns:1fr !important;
  }
  .consultation-form > .consultation-datetime-row > .consultation-date-field,
  .consultation-form > .consultation-datetime-row > .consultation-time-field{
    grid-column:1 / -1 !important;
  }
}

/* FINAL consultation date-time row fix */
.consultation-form{
  max-width:560px !important;
  margin:0 auto !important;
  display:grid !important;
  grid-template-columns:1fr !important;
}
.consultation-form > .consultation-datetime-row{
  width:100% !important;
  display:flex !important;
  flex-direction:row !important;
  gap:14px !important;
  align-items:flex-start !important;
  justify-content:center !important;
}
.consultation-form > .consultation-datetime-row > .consultation-field{
  flex:1 1 0 !important;
  width:auto !important;
  min-width:0 !important;
  display:flex !important;
}
.consultation-form > .consultation-datetime-row input[type="date"],
.consultation-form > .consultation-datetime-row input[type="time"]{
  width:100% !important;
  color:var(--text) !important;
}
.consultation-time-note{
  display:none !important;
}
@media (max-width:520px){
  .consultation-form > .consultation-datetime-row{
    flex-direction:column !important;
  }
  .consultation-form > .consultation-datetime-row > .consultation-field{
    width:100% !important;
  }
}

/* Consultation request date-time icon same as text */
.consultation-form > .consultation-datetime-row input[type="date"]::-webkit-calendar-picker-indicator,
.consultation-form > .consultation-datetime-row input[type="time"]::-webkit-calendar-picker-indicator{
  filter:var(--datetime-icon-filter, none) !important;
  opacity:1 !important;
}
[data-theme="dark"] .consultation-form > .consultation-datetime-row input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] .consultation-form > .consultation-datetime-row input[type="time"]::-webkit-calendar-picker-indicator{
  filter:invert(1) brightness(1.15) !important;
}
[data-theme="light"] .consultation-form > .consultation-datetime-row input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="light"] .consultation-form > .consultation-datetime-row input[type="time"]::-webkit-calendar-picker-indicator{
  filter:none !important;
}

/* Home service uploaded SVG icons */
.home-service-icon img{
  width:62px;
  height:62px;
  display:block;
  object-fit:contain;
}
@media (max-width:700px){
  .home-service-icon img{
    width:58px;
    height:58px;
  }
}


/* Global custom scrollbar */
:root{
  --site-scrollbar-track:#e6e6e6;
  --site-scrollbar-thumb:var(--primary);
  --site-scrollbar-thumb-hover:var(--button-hover);
}
[data-theme="dark"]{
  --site-scrollbar-track:#242424;
}
[data-theme="light"]{
  --site-scrollbar-track:#e6e6e6;
}
html{
  scrollbar-width:thin;
  scrollbar-color:var(--site-scrollbar-thumb) var(--site-scrollbar-track);
}
*{
  scrollbar-width:thin;
  scrollbar-color:var(--site-scrollbar-thumb) var(--site-scrollbar-track);
}
*::-webkit-scrollbar{
  width:14px;
  height:14px;
}
*::-webkit-scrollbar-track{
  background:var(--site-scrollbar-track);
}
*::-webkit-scrollbar-thumb{
  background:var(--site-scrollbar-thumb);
  border-radius:999px;
  border:4px solid var(--site-scrollbar-track);
  min-height:70px;
}
*::-webkit-scrollbar-thumb:hover{
  background:var(--site-scrollbar-thumb-hover);
}
*::-webkit-scrollbar-corner{
  background:var(--site-scrollbar-track);
}

/* Home project info uploaded SVG icons */
.home-project-info-icon img{
  width:62px;
  height:62px;
  display:block;
  object-fit:contain;
}
@media (max-width:700px){
  .home-project-info-icon img{
    width:58px;
    height:58px;
  }
}

/* Service new project uploaded SVG icons */
.new-project-package-icon img{
  width:66px;
  height:66px;
  display:block;
  object-fit:contain;
}
@media (max-width:700px){
  .new-project-package-icon img{
    width:60px;
    height:60px;
  }
}

/* Header brand subtitle tuning */
.nav-logo-divider{
  color:var(--text-muted);
  font-weight:500;
  margin:0 2px;
}
.nav-logo-subtitle{
  font-weight:500;
}

/* Service new project fixed two-line first title */
.new-project-package-content h2 .title-line{
  display:block;
}
.new-project-packages-grid .new-project-package-card:first-child .new-project-package-content h2{
  white-space:normal;
  word-break:keep-all;
}

/* Service new project fixed two-line second title */
.new-project-packages-grid .new-project-package-card:nth-child(2) .new-project-package-content h2 .title-line{
  display:block;
}
.new-project-packages-grid .new-project-package-card:nth-child(2) .new-project-package-content h2{
  white-space:normal;
  word-break:keep-all;
}

/* Service new project first title line primary color */
.new-project-package-content h2 .title-first-line{
  color:var(--primary);
}

/* FORCE service new project first title line primary color */
.new-project-package-card .new-project-package-content h2 .title-first-line,
.new-project-page .new-project-package-card .new-project-package-content h2 .title-first-line{
  color:var(--primary) !important;
  -webkit-text-fill-color:var(--primary) !important;
  text-shadow:none !important;
}

/* FINAL inline-supported first line primary color */
.new-project-package-content h2 span.title-first-line{
  color:var(--primary) !important;
  -webkit-text-fill-color:var(--primary) !important;
  background:none !important;
  text-shadow:none !important;
}

/* Service existing project title two-line layout and first-line color */
.existing-project-page .new-project-package-content h2 .title-first-line,
.existing-project-page .new-project-package-content h2 span.title-first-line,
.new-project-package-content h2 .title-first-line{
  display:inline-block;
  color:var(--primary) !important;
  -webkit-text-fill-color:var(--primary) !important;
  background:none !important;
  text-shadow:none !important;
}
.existing-project-page .new-project-package-content h2 .title-line,
.new-project-package-content h2 .title-line{
  display:block;
}
.existing-project-page .new-project-package-content h2{
  white-space:normal;
  word-break:keep-all;
}
@media (max-width:700px){
  .existing-project-page .new-project-package-content h2{
    line-height:1.25;
  }
}

/* Service details list single column */
.service-details-list{
  grid-template-columns:1fr !important;
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
}
.service-details-item{
  width:100%;
}

/* Service details compact item width */
.service-details-list{
  max-width:620px !important;
  width:100%;
  margin-left:auto !important;
  margin-right:auto !important;
}
.service-details-item{
  max-width:620px;
  margin-left:auto;
  margin-right:auto;
}
@media (max-width:700px){
  .service-details-list,
  .service-details-item{
    max-width:100% !important;
  }
}

/* Service details compact outer card */
.service-details-shell{
  max-width:820px !important;
}
.service-details-content{
  max-width:820px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.service-details-whatsapp{
  max-width:620px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
@media (max-width:700px){
  .service-details-shell,
  .service-details-content,
  .service-details-whatsapp{
    max-width:100% !important;
  }
}

/* Service details narrower outer card */
.service-details-shell{
  max-width:700px !important;
}
.service-details-content{
  max-width:700px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.service-details-list{
  max-width:560px !important;
}
.service-details-item{
  max-width:560px !important;
}
.service-details-whatsapp{
  max-width:560px !important;
}
@media (max-width:700px){
  .service-details-shell,
  .service-details-content,
  .service-details-list,
  .service-details-item,
  .service-details-whatsapp{
    max-width:100% !important;
  }
}

/* Service details extra narrow outer card */
.service-details-shell{
  max-width:620px !important;
}
.service-details-content{
  max-width:620px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.service-details-list{
  max-width:500px !important;
}
.service-details-item{
  max-width:500px !important;
}
.service-details-whatsapp{
  max-width:500px !important;
}
@media (max-width:700px){
  .service-details-shell,
  .service-details-content,
  .service-details-list,
  .service-details-item,
  .service-details-whatsapp{
    max-width:100% !important;
  }
}

/* Header logo text: Ihata training and consulting */
.nav-logo-text{
  display:inline-flex;
  align-items:center;
  gap:0;
  font-family:'Cairo',sans-serif;
  font-weight:800;
}
.nav-logo-brand{
  color:var(--primary) !important;
  font-family:inherit !important;
  font-weight:800 !important;
}
.nav-logo-subtitle{
  color:var(--text) !important;
  font-family:inherit !important;
  font-weight:800 !important;
}
.nav-logo-divider{
  display:none !important;
}

/* Header logo visible single space */
.nav-logo-space{
  display:inline-block;
  width:.34em;
  flex:0 0 .34em;
}


/* Desktop contact request modal */
.contact-request-lock{
  overflow:hidden;
}
.contact-request-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.contact-request-modal.open{
  display:flex;
}
.contact-request-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(4px);
}
.contact-request-dialog{
  position:relative;
  width:min(100%, 520px);
  max-height:92vh;
  overflow:auto;
  background:var(--card-bg);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
  padding:26px;
}
.contact-request-close{
  position:absolute;
  top:14px;
  left:14px;
  width:36px;
  height:36px;
  border:1px solid var(--border);
  border-radius:50%;
  background:var(--bg);
  color:var(--text);
  cursor:pointer;
  font-size:24px;
  line-height:1;
}
.contact-request-head{
  text-align:center;
  margin-bottom:20px;
}
.contact-request-head h3{
  margin:0 0 8px;
  font-size:clamp(22px,2vw,28px);
  color:var(--text);
}
.contact-request-head p{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.7;
}
.contact-request-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.contact-request-field{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.contact-request-field-full{
  grid-column:1 / -1;
}
.contact-request-field label{
  font-weight:700;
  font-size:14px;
  color:var(--text);
}
.contact-request-field label span{
  color:var(--primary);
}
.contact-request-field input,
.contact-request-field textarea{
  width:100%;
  border:1px solid var(--border);
  background:var(--bg);
  color:var(--text);
  border-radius:14px;
  padding:12px 14px;
  outline:none;
  font-family:inherit;
  font-size:15px;
}
.contact-request-field textarea{
  resize:vertical;
  min-height:105px;
}
.contact-request-field input:focus,
.contact-request-field textarea:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(24,95,165,.14);
}
.contact-request-actions{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:4px;
}
.contact-request-submit,
.contact-request-wa{
  border:0;
  border-radius:14px;
  padding:13px 16px;
  font-family:inherit;
  font-weight:800;
  cursor:pointer;
}
.contact-request-submit{
  background:var(--primary);
  color:#fff;
}
.contact-request-submit:hover{
  background:var(--button-hover);
}
.contact-request-submit:disabled{
  opacity:.7;
  cursor:not-allowed;
}
.contact-request-wa{
  background:var(--primary-light);
  color:var(--primary);
  border:1px solid rgba(24,95,165,.18);
}
.contact-request-message{
  grid-column:1 / -1;
  display:none;
  border-radius:12px;
  padding:11px 13px;
  font-weight:700;
  font-size:14px;
}
.contact-request-message.show{
  display:block;
}
.contact-request-message.success{
  color:#0f7a3b;
  background:rgba(22,163,74,.12);
  border:1px solid rgba(22,163,74,.22);
}
.contact-request-message.error{
  color:#b42318;
  background:rgba(244,63,94,.12);
  border:1px solid rgba(244,63,94,.22);
}
@media (max-width:640px){
  .contact-request-dialog{
    padding:22px;
    border-radius:20px;
  }
  .contact-request-form,
  .contact-request-actions{
    grid-template-columns:1fr;
  }
}



/* Contact request modal opaque background */
.contact-request-dialog{
  background:#ffffff !important;
}
[data-theme="dark"] .contact-request-dialog,
body.dark .contact-request-dialog,
.dark .contact-request-dialog{
  background:#171715 !important;
}
.contact-request-backdrop{
  background:rgba(0,0,0,.78) !important;
  backdrop-filter:none !important;
}



/* Contact request modal title/subtitle tuning */
.contact-request-subtitle,
.contact-request-head p{
  color:var(--muted) !important;
}



/* Contact request project name full width */
#contact-request-project-name{
  width:100% !important;
}
#contact-request-project-name.closest-fallback{}
.contact-request-field:has(#contact-request-project-name){
  grid-column:1 / -1;
}


.contact-request-project-name-field{grid-column:1 / -1;}


/* Contact requests admin */
.contact-request-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 18px;
}
.contact-request-tabs .tab{
  min-width:150px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.contact-request-tabs .tab .contact-tab-label{
  display:inline-block;
}
.contact-request-tabs .tab .contact-category-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:11px;
  font-weight:900;
  line-height:1;
  box-shadow:0 6px 18px rgba(239, 68, 68, .22);
}
.contact-status-select{
  min-width:130px;
  padding:8px 10px;
  font-weight:700;
}



/* Contact request status colors */
.contact-status-select{
  border-width:1px !important;
  font-weight:800 !important;
}
.contact-status-waiting,
.contact-status-contacted{
  background:rgba(245, 158, 11, .14) !important;
  color:#b45309 !important;
  border-color:rgba(245, 158, 11, .42) !important;
}
.contact-status-completed{
  background:rgba(34, 197, 94, .14) !important;
  color:#15803d !important;
  border-color:rgba(34, 197, 94, .42) !important;
}
.contact-status-stopped{
  background:rgba(239, 68, 68, .14) !important;
  color:#b91c1c !important;
  border-color:rgba(239, 68, 68, .42) !important;
}
[data-theme="dark"] .contact-status-waiting,
[data-theme="dark"] .contact-status-contacted,
.dark .contact-status-waiting,
.dark .contact-status-contacted{
  color:#fbbf24 !important;
}
[data-theme="dark"] .contact-status-completed,
.dark .contact-status-completed{
  color:#4ade80 !important;
}
[data-theme="dark"] .contact-status-stopped,
.dark .contact-status-stopped{
  color:#f87171 !important;
}


/* Contact requests unseen marker */
.admin-nav-count{
  margin-right:6px;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  align-items:center;
  justify-content:center;
  background:#ef4444;
  color:#fff;
  font-size:12px;
  font-weight:900;
  line-height:1;
}
.contact-new-row{
  background:rgba(245, 158, 11, .08) !important;
  box-shadow:inset 4px 0 0 rgba(245, 158, 11, .85);
}
.contact-new-dot{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right:6px;
  padding:2px 7px;
  border-radius:999px;
  background:rgba(245, 158, 11, .18);
  color:#b45309;
  border:1px solid rgba(245, 158, 11, .35);
  font-size:11px;
  font-weight:900;
}
[data-theme="dark"] .contact-new-dot,
.dark .contact-new-dot{
  color:#fbbf24;
}



/* Contact request auto archive animation */
.contact-row-archiving{
  animation:contactArchiveOut .42s ease forwards;
}
@keyframes contactArchiveOut{
  0%{
    opacity:1;
    transform:translateX(0);
    max-height:80px;
  }
  70%{
    opacity:0;
    transform:translateX(-18px);
  }
  100%{
    opacity:0;
    transform:translateX(-28px);
    max-height:0;
  }
}



/* Contact requests processing/archive tabs */
.contact-request-mode-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:-6px 0 16px;
  justify-content:flex-start;
}
.contact-request-mode-tabs .mode-tab{
  min-width:118px;
  height:36px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid var(--border-color);
  background:rgba(255,255,255,.03);
  color:var(--text-muted);
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  transition:.18s ease;
}
.contact-request-mode-tabs .mode-tab:hover{
  border-color:rgba(245, 158, 11, .45);
  color:var(--primary-color);
}
.contact-request-mode-tabs .mode-tab.active{
  background:rgba(245, 158, 11, .14);
  border-color:rgba(245, 158, 11, .55);
  color:var(--primary-color);
}



/* Contact requests mode tabs in table header */
.contact-table-header{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  flex-wrap:wrap !important;
}
.contact-table-header .contact-request-mode-tabs{
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
}
.contact-table-header .contact-request-mode-tabs .mode-tab{
  min-width:auto !important;
  height:30px !important;
  padding:0 13px !important;
  border-radius:999px !important;
  font-size:12px !important;
  font-weight:900 !important;
  border:1px solid rgba(245, 158, 11, .62) !important;
  background:rgba(245, 158, 11, .10) !important;
  color:#f59e0b !important;
  box-shadow:none !important;
}
.contact-table-header .contact-request-mode-tabs .mode-tab:hover{
  background:rgba(245, 158, 11, .18) !important;
  border-color:rgba(245, 158, 11, .9) !important;
  color:#fbbf24 !important;
}
.contact-table-header .contact-request-mode-tabs .mode-tab.active{
  background:rgba(245, 158, 11, .22) !important;
  border-color:#f59e0b !important;
  color:#fbbf24 !important;
}



/* Contact mode tabs active/inactive refinement */
.contact-table-header .contact-request-mode-tabs .mode-tab{
  opacity:.55 !important;
  background:rgba(245, 158, 11, .045) !important;
  border-color:rgba(245, 158, 11, .32) !important;
  color:rgba(245, 158, 11, .78) !important;
}
.contact-table-header .contact-request-mode-tabs .mode-tab:hover{
  opacity:.82 !important;
  background:rgba(245, 158, 11, .10) !important;
  border-color:rgba(245, 158, 11, .58) !important;
  color:#f59e0b !important;
}
.contact-table-header .contact-request-mode-tabs .mode-tab.active{
  opacity:1 !important;
  background:linear-gradient(135deg, rgba(245, 158, 11, .95), rgba(234, 88, 12, .92)) !important;
  border-color:#f59e0b !important;
  color:#111 !important;
  box-shadow:0 8px 20px rgba(245, 158, 11, .20) !important;
}
[data-theme="dark"] .contact-table-header .contact-request-mode-tabs .mode-tab.active,
.dark .contact-table-header .contact-request-mode-tabs .mode-tab.active{
  color:#111 !important;
}



/* Course booking modal: name + phone only */
.contact-request-course-mode .contact-request-project-name-field,
.contact-request-course-mode .contact-request-project-description-field{
  display:none !important;
}



/* Course subscribe card - Home card colors */
[data-theme="dark"] .subscribe-box,
.dark .subscribe-box{
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.05), transparent 32%),
    linear-gradient(145deg, var(--bg-card), var(--bg));
  border-color:var(--border);
  color:var(--text);
  box-shadow:0 16px 42px rgba(0,0,0,.18);
}



/* Course subscribe card text/button refinement */
.subscribe-box,
.subscribe-box .subscribe-price,
.subscribe-box .subscribe-desc{
  color:#fff !important;
}
.subscribe-box .subscribe-btn{
  background:var(--primary) !important;
  color:#fff !important;
  border:1px solid var(--primary) !important;
}
.subscribe-box .subscribe-btn:hover{
  background:var(--primary-dark) !important;
  border-color:var(--primary-dark) !important;
  color:#fff !important;
}



/* Course subscribe card final color tuning */
.subscribe-box .subscribe-price{
  color:var(--text) !important;
  text-shadow:none !important;
}
.subscribe-box .subscribe-btn,
.subscribe-box .subscribe-btn:hover{
  background:var(--primary) !important;
  border-color:var(--primary) !important;
  color:#fff !important;
}



/* Course subscribe description muted color */
.subscribe-box .subscribe-desc{
  color:var(--text-muted) !important;
}



/* Contact request modal: stack name and phone fields */
.contact-request-grid{
  grid-template-columns:1fr !important;
}
.contact-request-field{
  grid-column:1 / -1;
}


/* Contact request phone field LTR */
#contact-request-phone{
  direction:ltr;
  text-align:left;
}


/* Desktop booking modal: no internal scroll */
@media (min-width: 769px){
  .contact-request-dialog{
    width:min(100%, 620px) !important;
    max-height:calc(100vh - 26px) !important;
    overflow:hidden !important;
    padding:20px 24px 18px !important;
    border-radius:22px !important;
  }
  .contact-request-head{
    margin-bottom:14px !important;
  }
  .contact-request-head h3{
    font-size:clamp(24px, 2vw, 32px) !important;
    line-height:1.15 !important;
    margin-bottom:6px !important;
  }
  .contact-request-head p{
    font-size:14px !important;
    line-height:1.45 !important;
  }
  .contact-request-form{
    gap:10px !important;
  }
  .contact-request-field{
    gap:5px !important;
  }
  .contact-request-field label{
    font-size:14px !important;
    line-height:1.2 !important;
  }
  .contact-request-field input{
    height:48px !important;
    padding:8px 13px !important;
    border-radius:13px !important;
    font-size:14.5px !important;
  }
  .contact-request-field textarea{
    height:92px !important;
    min-height:92px !important;
    max-height:92px !important;
    padding:11px 13px !important;
    border-radius:13px !important;
    font-size:14.5px !important;
    resize:none !important;
  }
  .contact-request-actions{
    gap:10px !important;
    margin-top:2px !important;
  }
  .contact-request-submit,
  .contact-request-wa{
    height:50px !important;
    padding:10px 14px !important;
    border-radius:13px !important;
    font-size:15px !important;
  }
  .contact-request-message{
    margin-top:0 !important;
  }
}



/* Service details desktop compact layout to avoid page scroll */
@media (min-width: 769px){
  .service-details-page{
    min-height:calc(100vh - var(--nav-h)) !important;
    display:flex !important;
    align-items:center !important;
    padding:14px 18px 18px !important;
  }
  .service-details-shell{
    max-width:600px !important;
  }
  .service-details-content{
    max-width:600px !important;
    padding:22px 22px 18px !important;
    border-radius:24px !important;
    margin-top:0 !important;
  }
  .service-details-content h2{
    font-size:24px !important;
    margin:0 0 16px !important;
  }
  .service-details-list{
    max-width:100% !important;
    gap:10px !important;
    margin-bottom:18px !important;
  }
  .service-details-item{
    max-width:100% !important;
    min-height:50px !important;
    padding:11px 14px !important;
    border-radius:16px !important;
    font-size:15.5px !important;
    line-height:1.45 !important;
    gap:10px !important;
  }
  .service-details-check{
    width:24px !important;
    height:24px !important;
    font-size:14px !important;
  }
  .service-details-whatsapp{
    max-width:100% !important;
    padding:14px 16px !important;
    border-radius:16px !important;
    font-size:15px !important;
  }
}



/* Service landing pages desktop tighter layout to reduce page scroll */
@media (min-width: 901px){
  .new-project-page{
    min-height:calc(100vh - var(--nav-h)) !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    padding:18px 18px 16px !important;
  }
  .new-project-header{
    max-width:760px !important;
    margin:0 auto 14px !important;
  }
  .new-project-header h1{
    font-size:31px !important;
    margin:0 0 8px !important;
  }
  .new-project-header p{
    font-size:17px !important;
    line-height:1.65 !important;
  }
  .new-project-packages-grid{
    max-width:1140px !important;
    gap:18px !important;
  }
  .new-project-package-top,
  .new-project-page:not(.existing-project-page) .new-project-package-top,
  .existing-project-page .new-project-package-top{
    grid-template-columns:minmax(0,1fr) 78px !important;
    gap:14px !important;
  }
  .new-project-package-icon,
  .new-project-page:not(.existing-project-page) .new-project-package-icon,
  .existing-project-page .new-project-package-icon{
    width:78px !important;
    height:78px !important;
    border-radius:22px !important;
  }
  .new-project-package-icon svg,
  .new-project-page:not(.existing-project-page) .new-project-package-icon svg,
  .existing-project-page .new-project-package-icon svg{
    width:44px !important;
    height:44px !important;
  }
  .new-project-page:not(.existing-project-page) .new-project-package-card,
  .existing-project-page .new-project-package-card{
    min-height:336px !important;
    padding:20px 22px 14px !important;
    gap:8px !important;
    justify-content:flex-start !important;
  }
  .new-project-page:not(.existing-project-page) .new-project-package-title{
    font-size:27px !important;
    line-height:1.2 !important;
    max-width:none !important;
    padding-top:2px !important;
  }
  .existing-project-page .new-project-package-title{
    font-size:25px !important;
    line-height:1.24 !important;
    max-width:none !important;
    padding-top:2px !important;
  }
  .new-project-page:not(.existing-project-page) .new-project-package-description,
  .existing-project-page .new-project-package-description{
    font-size:15.5px !important;
    line-height:1.72 !important;
    margin:0 !important;
  }
  .new-project-package-btn,
  .new-project-page:not(.existing-project-page) .new-project-package-btn,
  .existing-project-page .new-project-package-btn{
    margin-top:auto !important;
    padding:12px 16px !important;
    border-radius:16px !important;
    font-size:15px !important;
  }
}



/* Consultation request name/phone fields */
#consultation-phone{
  direction:ltr;
  text-align:left;
}



/* Consultation request – reduce scroll on desktop */
@media (min-width: 701px){
  .consultation-request-page{
    padding:2rem 2rem 2.5rem;
  }
  .consultation-request-shell{
    max-width:1080px;
  }
  .consultation-request-card{
    padding:34px 40px;
    border-radius:26px;
  }
  .consultation-request-head{
    margin-bottom:18px;
  }
  .consultation-request-card h1{
    font-size:32px;
    margin-bottom:8px;
  }
  .consultation-request-card p{
    font-size:15px;
    line-height:1.8;
  }
  .consultation-form{
    gap:14px;
  }
  .consultation-compact-half{
    grid-column:auto;
  }
  .consultation-project-name-field{
    grid-column:1 / -1;
  }
  .consultation-field{
    gap:7px;
  }
  .consultation-field label{
    font-size:14px;
  }
  .consultation-field input,
  .consultation-field textarea{
    padding:14px 18px;
  }
  .consultation-field textarea{
    min-height:120px;
    max-height:150px;
  }
  .consultation-datetime-row{
    gap:14px;
  }
  .consultation-submit-btn{
    padding:15px 22px;
  }
}



/* Consultation request extra compact + right aligned labels */
@media (min-width:701px){
  .consultation-request-page{
    padding:1.15rem 2rem 1.25rem !important;
    min-height:calc(100vh - var(--nav-h)) !important;
    display:flex !important;
    align-items:center !important;
  }
  .consultation-request-shell{
    max-width:980px !important;
  }
  .consultation-request-card{
    max-width:760px !important;
    padding:24px 34px 22px !important;
    border-radius:24px !important;
  }
  .consultation-request-head{
    margin-bottom:14px !important;
  }
  .consultation-request-card h1{
    font-size:29px !important;
    line-height:1.15 !important;
    margin:0 0 6px !important;
  }
  .consultation-request-card p{
    font-size:14px !important;
    line-height:1.55 !important;
  }
  .consultation-form{
    max-width:560px !important;
    gap:9px !important;
  }
  .consultation-field{
    gap:4px !important;
  }
  .consultation-field label{
    text-align:right !important;
    align-self:stretch !important;
    font-size:13.5px !important;
    line-height:1.2 !important;
  }
  .consultation-field input,
  .consultation-field textarea{
    padding:10px 14px !important;
    border-radius:14px !important;
    font-size:14.5px !important;
  }
  .consultation-field input{
    height:44px !important;
  }
  .consultation-field textarea{
    min-height:82px !important;
    height:82px !important;
    max-height:82px !important;
    line-height:1.55 !important;
    resize:none !important;
  }
  .consultation-datetime-row{
    gap:10px !important;
  }
  .consultation-submit-btn{
    padding:12px 18px !important;
    border-radius:15px !important;
    font-size:15.5px !important;
    margin-top:1px !important;
  }
}



/* Contact requests details panel */
.contact-details-panel{
  min-width:150px;
  max-width:240px;
}
.contact-details-panel summary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:78px;
  height:30px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(245, 158, 11, .45);
  color:var(--primary);
  background:rgba(245, 158, 11, .08);
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  list-style:none;
}
.contact-details-panel summary::-webkit-details-marker{
  display:none;
}
.contact-details-panel[open] summary{
  background:rgba(245, 158, 11, .16);
  border-color:rgba(245, 158, 11, .75);
}
.contact-details-box{
  margin-top:8px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--bg);
  color:var(--text);
  font-size:12.5px;
  line-height:1.75;
  text-align:right;
  white-space:normal;
  box-shadow:0 10px 24px rgba(0,0,0,.10);
}
.contact-details-box b{
  color:var(--text);
}



/* Contact requests details modal */
.contact-details-btn{
  min-width:78px;
  height:32px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(245, 158, 11, .55);
  background:rgba(245, 158, 11, .10);
  color:var(--primary);
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  transition:.18s ease;
}
.contact-details-btn:hover{
  background:rgba(245, 158, 11, .18);
  border-color:rgba(245, 158, 11, .85);
}
.contact-details-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(0,0,0,.58);
}
.contact-details-modal-card{
  width:min(760px, calc(100vw - 42px));
  max-height:calc(100vh - 56px);
  overflow:auto;
  position:relative;
  border:1px solid var(--border);
  border-radius:22px;
  background:var(--bg-card);
  color:var(--text);
  padding:30px 34px 28px;
  box-shadow:0 22px 70px rgba(0,0,0,.35);
}
.contact-details-modal-card h3{
  margin:0 0 22px;
  font-family:'Cairo',sans-serif;
  font-size:26px;
  font-weight:900;
  text-align:right;
}
.contact-details-modal-close{
  position:absolute;
  top:16px;
  left:16px;
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.contact-details-modal-content{
  display:grid;
  gap:12px;
}
.contact-details-modal-row{
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:14px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--bg);
}
.contact-details-modal-row-long{
  align-items:start;
}
.contact-details-modal-label{
  color:var(--text-muted);
  font-weight:900;
}
.contact-details-modal-value{
  color:var(--text);
  font-weight:700;
  line-height:1.8;
  white-space:normal;
  word-break:break-word;
}
.contact-details-modal-ok{
  margin-top:20px;
  min-width:95px;
  height:40px;
  border-radius:12px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  font-weight:800;
  cursor:pointer;
}
@media (max-width:650px){
  .contact-details-modal-row{
    grid-template-columns:1fr;
    gap:6px;
  }
}



/* Consultation request clean subtitle/placeholders spacing */
.consultation-request-head{
  margin-bottom:14px !important;
}
.consultation-request-card h1{
  margin-bottom:0 !important;
}



/* SITE FOOTER */
.site-footer{
  margin-top:42px;
  padding:34px 2rem 18px;
  background:var(--bg);
  border-top:.5px solid var(--border);
}
.site-footer-inner{
  max-width:900px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:72px;
  align-items:start;
  justify-content:center;
}
.site-footer-logo{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:var(--text);
}
.site-footer-logo img{
  width:54px;
  height:54px;
  object-fit:contain;
  flex:0 0 auto;
}
.site-footer-logo strong{
  display:block;
  font-family:'Cairo',sans-serif;
  font-size:18px;
  line-height:1.5;
  color:var(--text);
}
.site-footer-logo small{
  display:block;
  margin-top:6px;
  max-width:390px;
  color:var(--text-muted);
  font-size:14px;
  line-height:1.9;
}
.site-footer h4{
  margin:0 0 12px;
  font-family:'Cairo',sans-serif;
  font-size:15px;
  color:var(--text);
}
.site-footer-social-icons{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.site-footer-social-icons a{
  width:54px;
  height:54px;
  border-radius:16px;
  border:.5px solid var(--border);
  background:var(--bg-card);
  color:var(--text-muted);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.site-footer-social-icons svg{
  width:23px;
  height:23px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.site-footer-social-icons .social-fill{
  fill:currentColor;
  stroke:none;
}
.site-footer-social-icons a:hover{
  color:#fff;
  background:var(--primary);
  border-color:var(--primary);
  transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(24,95,165,.18);
}
.sr-only{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.site-footer-bottom{
  max-width:1180px;
  margin:24px auto 0;
  padding-top:16px;
  border-top:.5px solid var(--border);
  color:var(--text-muted);
  font-size:13px;
  text-align:center;
}
@media (max-width:900px){
  .site-footer-inner{
    grid-template-columns:1fr;
    gap:24px;
  }
  .site-footer{
    padding:30px 1rem 16px;
  }
  .site-footer-logo{
    align-items:flex-start;
  }
}



/* Footer centered layout refinement */
.site-footer-brand,
.site-footer-social{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.site-footer-logo{
  justify-content:center;
}
.site-footer-logo small{
  margin-left:auto;
  margin-right:auto;
}
.site-footer-social-icons{
  justify-content:center;
}
@media (max-width:900px){
  .site-footer-inner{
    max-width:560px;
    text-align:center;
    justify-items:center;
  }
  .site-footer-brand,
  .site-footer-social{
    align-items:center;
  }
  .site-footer-logo{
    justify-content:center;
    text-align:center;
  }
  .site-footer-social-icons{
    justify-content:center;
  }
}



/* Footer brand text right alignment */
.site-footer-brand{
  text-align:right;
}
.site-footer-logo span{
  text-align:right;
}
.site-footer-logo small{
  text-align:right;
  margin-left:0;
  margin-right:0;
}
@media (max-width:900px){
  .site-footer-logo span,
  .site-footer-logo small{
    text-align:right;
  }
}



/* Header responsive no-overlap fix */
.nav{
  gap:14px;
}
.nav-logo{
  flex:0 1 auto;
  min-width:0;
}
.nav-logo-text{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.nav-links{
  flex:0 1 auto;
  min-width:0;
}
@media (max-width:1200px){
  .nav{
    padding:0 1.35rem;
    gap:10px;
  }
  .site-logo-img{
    width:38px;
    height:38px;
  }
  .nav-logo{
    font-size:18px;
    gap:8px;
  }
  .nav-logo .nav-logo-subtitle{
    font-size:17px;
  }
  .nav-btn,
  .btn-google-nav,
  .user-dropdown-btn{
    padding:7px 11px;
    font-size:13px;
  }
  .nav-links{
    gap:5px;
  }
}
@media (max-width:1040px){
  .nav{
    padding:0 .85rem;
    gap:6px;
  }
  .site-logo-img{
    width:34px;
    height:34px;
  }
  .nav-logo{
    font-size:15px;
    gap:6px;
    flex:1 1 auto;
    min-width:0;
  }
  .nav-logo .nav-logo-brand,
  .nav-logo .nav-logo-subtitle{
    font-size:15px;
    line-height:1.2;
  }
  .nav-btn,
  .btn-google-nav,
  .user-dropdown-btn{
    padding:6px 8px;
    font-size:12.5px;
  }
  .nav-links{
    gap:4px;
    flex-shrink:0;
  }
}
@media (max-width:900px){
  .nav-logo .nav-logo-brand{
    display:inline;
  }
}



/* Header keep full brand text while shrinking by screen width */
@media (max-width:1150px){
  .nav-logo .nav-logo-brand,
  .nav-logo .nav-logo-subtitle{
    font-size:16px;
  }
}
@media (max-width:980px){
  .nav{
    padding:0 .65rem;
    gap:5px;
  }
  .site-logo-img{
    width:32px;
    height:32px;
  }
  .nav-logo{
    gap:5px;
  }
  .nav-logo .nav-logo-brand,
  .nav-logo .nav-logo-subtitle{
    font-size:13.5px;
  }
  .nav-btn,
  .btn-google-nav,
  .user-dropdown-btn{
    padding:6px 7px;
    font-size:11.5px;
    border-radius:7px;
  }
  .nav-avatar,
  .nav-avatar-img{
    width:23px;
    height:23px;
    font-size:11px;
  }
}
@media (max-width:900px){
  .nav-logo .nav-logo-brand,
  .nav-logo .nav-logo-subtitle{
    display:inline;
    font-size:13px;
  }
}



/* Course page: keep player fixed while lessons scroll */
.course-detail-layout{
  height:calc(100vh - var(--nav-h));
  min-height:0;
  overflow:hidden;
}
.lessons-sidebar{
  height:100%;
  min-height:0;
}
#lessons-list{
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
}
.player-main{
  height:100%;
  min-height:0;
  overflow:hidden;
}
.lesson-info-area{
  flex-shrink:0;
}
@media(max-width:768px){
  .course-detail-layout{
    height:calc(100vh - var(--nav-h));
    min-height:0;
    overflow:hidden;
  }
  .player-main{
    order:1;
    flex:0 0 auto;
    height:auto;
    max-height:46vh;
    overflow:hidden;
  }
  .video-container{
    max-height:46vh;
  }
  .lessons-sidebar{
    order:2;
    flex:1 1 auto;
    min-height:0;
    height:auto;
    max-height:none;
    overflow:hidden !important;
    border-left:none;
    border-top:.5px solid var(--border);
    border-bottom:.5px solid var(--border);
  }
  #lessons-list{
    flex:1 1 auto;
    min-height:0;
    max-height:none;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  .lessons-sidebar-header,
  .subscribe-box{
    flex-shrink:0;
  }
}



/* Course page: keep title and description visible under player */
.player-main{
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch;
}
.lesson-info-area{
  display:block;
  flex-shrink:0;
}
@media(max-width:768px){
  .player-main{
    max-height:58vh;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  .video-container{
    max-height:42vh;
    flex-shrink:0;
  }
  .lesson-info-area{
    padding:1rem 1.25rem;
  }
  .lesson-title{
    font-size:18px;
    line-height:1.5;
  }
  .lesson-desc{
    font-size:13px;
    line-height:1.7;
  }
}



/* Course mobile: hide lesson title, keep compact description */
@media(max-width:768px){
  .lesson-info-area{
    padding:.85rem 1.25rem;
  }
  .lesson-info-area .lesson-title{
    display:none !important;
  }
  .lesson-info-area .lesson-desc{
    margin:0;
    font-size:12.5px;
    line-height:1.7;
    color:var(--text-muted);
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
}



/* Course mobile: hide course progress box */
@media(max-width:768px){
  .course-progress,
  .course-progress-area,
  .course-progress-box,
  .lessons-progress,
  .progress-summary,
  .course-progress-summary{
    display:none !important;
  }
}



/* Course mobile: title and meta in one row */
@media(max-width:768px){
  .lessons-sidebar-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }
  .lessons-sidebar-title{
    flex:1 1 auto;
    min-width:0;
    margin:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    font-size:18px;
    line-height:1.4;
  }
  .lessons-sidebar-meta{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    gap:6px;
    white-space:nowrap;
    font-size:12px;
    margin:0;
  }
}
@media(max-width:420px){
  .lessons-sidebar-title{
    font-size:16px;
  }
  .lessons-sidebar-meta{
    font-size:11.5px;
  }
}



/* Course mobile relayout: course info above video and lesson details inside lessons scroll */
.mobile-course-summary,
.mobile-lesson-info{
  display:none;
}
@media(max-width:768px){
  .course-detail-layout{
    height:calc(100vh - var(--nav-h));
    min-height:0;
    overflow:hidden;
    display:flex;
    flex-direction:column;
  }
  .mobile-course-summary{
    order:1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:.8rem 1.25rem;
    background:var(--bg-card);
    border-bottom:.5px solid var(--border);
    flex:0 0 auto;
  }
  .mobile-course-title{
    min-width:0;
    flex:1 1 auto;
    font-family:'Cairo',sans-serif;
    font-size:18px;
    font-weight:800;
    line-height:1.35;
    color:var(--text);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .mobile-course-meta{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:var(--text-muted);
    font-size:12px;
    white-space:nowrap;
  }
  .mobile-course-price{
    color:var(--primary);
    font-weight:800;
  }
  .player-main{
    order:2;
    flex:0 0 auto;
    height:auto;
    max-height:42vh;
    overflow:hidden !important;
  }
  .player-main .lesson-info-area{
    display:none !important;
  }
  .video-container{
    max-height:42vh;
  }
  .lessons-sidebar{
    order:3;
    flex:1 1 auto;
    min-height:0;
    height:auto;
    max-height:none;
    overflow:hidden !important;
    border-left:none;
    border-top:.5px solid var(--border);
    border-bottom:.5px solid var(--border);
  }
  .lessons-sidebar-header{
    display:none !important;
  }
  .mobile-lesson-info{
    display:block;
    flex:0 0 auto;
    background:var(--bg-card);
    border-bottom:.5px solid var(--border);
  }
  .mobile-lesson-info-toggle{
    width:100%;
    min-height:44px;
    border:0;
    background:transparent;
    color:var(--text);
    padding:.75rem 1.25rem;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    font-family:'Cairo',sans-serif;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    text-align:right;
  }
  .mobile-lesson-info-toggle span:first-child{
    min-width:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .mobile-lesson-info-arrow{
    flex:0 0 auto;
    color:var(--primary);
    transition:transform .18s ease;
  }
  .mobile-lesson-info.open .mobile-lesson-info-arrow{
    transform:rotate(180deg);
  }
  .mobile-lesson-info-body{
    display:none;
    padding:0 1.25rem .85rem;
    color:var(--text-muted);
    font-size:12.5px;
    line-height:1.8;
  }
  .mobile-lesson-info.open .mobile-lesson-info-body{
    display:block;
  }
  .mobile-lesson-info-body p{
    margin:0;
  }
  #lessons-list{
    flex:1 1 auto;
    min-height:0;
    max-height:none;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
  }
}
@media(max-width:420px){
  .mobile-course-summary{
    padding:.72rem 1rem;
  }
  .mobile-course-title{
    font-size:16px;
  }
  .mobile-course-meta{
    font-size:11.5px;
  }
  .mobile-lesson-info-toggle{
    padding:.7rem 1rem;
    font-size:13.5px;
  }
  .mobile-lesson-info-body{
    padding:0 1rem .8rem;
  }
}



/* Course mobile: remove video/title gap and hide completion message */
@media(max-width:768px){
  .player-main{
    max-height:none !important;
    line-height:0;
  }
  .player-main .video-container{
    margin:0 !important;
    max-height:none !important;
  }
  .player-main .lesson-completion-box{
    display:none !important;
  }
  .lessons-sidebar{
    border-top:0 !important;
  }
  .mobile-lesson-info{
    margin-top:0 !important;
    border-top:0 !important;
  }
  .mobile-lesson-info-toggle{
    margin-top:0 !important;
  }
}



/* Course mobile: hide top course title bar */
@media(max-width:768px){
  .mobile-course-summary{
    display:none !important;
  }
}



/* Course mobile: smaller video to show more lessons */
@media(max-width:768px){
  .player-main{
    flex:0 0 auto;
    max-height:none !important;
    overflow:hidden !important;
  }
  .player-main .video-container{
    height:clamp(210px, 42vh, 330px);
    padding-bottom:0 !important;
    max-height:none !important;
  }
  .player-main .video-iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
  }
  .lessons-sidebar{
    flex:1 1 auto;
    min-height:0;
  }
}
@media(max-width:768px) and (max-height:820px){
  .player-main .video-container{
    height:clamp(190px, 36vh, 285px);
  }
  .mobile-lesson-info-toggle{
    min-height:38px;
    padding:.58rem 1rem;
  }
}
@media(max-width:768px) and (max-height:720px){
  .player-main .video-container{
    height:clamp(170px, 32vh, 240px);
  }
}



/* Course mobile/tablet: compact subscribe box to show more lessons */
@media(max-width:1024px){
  .course-detail-layout .subscribe-box{
    margin:8px 12px 10px !important;
    padding:10px 12px !important;
    min-height:58px;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    text-align:right;
    border-radius:16px;
  }
  .course-detail-layout .subscribe-price{
    font-size:24px;
    line-height:1;
    margin:0 !important;
    flex:0 0 auto;
    white-space:nowrap;
  }
  .course-detail-layout .subscribe-desc{
    display:none !important;
  }
  .course-detail-layout .subscribe-btn{
    flex:1 1 auto;
    min-width:0;
    height:42px;
    padding:0 14px !important;
    margin:0 !important;
    border-radius:12px;
    font-size:14px;
    white-space:nowrap;
  }
}
@media(max-width:768px){
  .course-detail-layout .subscribe-box{
    margin:7px 12px 8px !important;
    padding:8px 10px !important;
    min-height:52px;
    gap:10px;
  }
  .course-detail-layout .subscribe-price{
    font-size:22px;
  }
  .course-detail-layout .subscribe-btn{
    height:38px;
    font-size:13.5px;
  }
}
@media(max-width:380px){
  .course-detail-layout .subscribe-price{
    font-size:19px;
  }
  .course-detail-layout .subscribe-btn{
    font-size:12.5px;
    padding:0 10px !important;
  }
}



/* Course desktop/iPad: hide current lesson title/description from lessons sidebar */
@media(min-width:769px){
  .lessons-sidebar .mobile-lesson-info{
    display:none !important;
  }
}
@media(max-width:768px){
  .lessons-sidebar .mobile-lesson-info{
    display:block !important;
  }
}



/* Course page: hide completed lesson message */
.lesson-completion-box{
  display:none !important;
}



/* Course mobile/tablet: keep subscribe hidden for enrolled users */
@media(max-width:1024px){
  .course-detail-layout .subscribe-box[style*="display: block"],
  .course-detail-layout .subscribe-box:not([style*="display:none"]):not([style*="display: none"]){
    display:flex !important;
  }
  .course-detail-layout .subscribe-box[style*="display:none"],
  .course-detail-layout .subscribe-box[style*="display: none"]{
    display:none !important;
  }
}



/* Course desktop: fit lesson title/description under video without normal scrolling */
@media(min-width:1025px){
  .player-main{
    height:calc(100vh - var(--nav-h));
    min-height:0;
    overflow:hidden !important;
    display:flex;
    flex-direction:column;
  }
  .player-main .video-container{
    flex:0 0 auto;
    height:clamp(430px, calc(100vh - var(--nav-h) - 170px), 640px);
    padding-bottom:0 !important;
  }
  .player-main .video-iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
  }
  .player-main .lesson-info-area{
    flex:0 1 auto;
    max-height:170px;
    overflow-y:auto;
    padding:1.2rem 1.5rem;
  }
  .player-main .lesson-title{
    margin-bottom:6px;
    line-height:1.45;
  }
  .player-main .lesson-desc{
    margin:0;
    line-height:1.75;
  }
}
@media(min-width:769px) and (max-width:1024px){
  .player-main{
    height:calc(100vh - var(--nav-h));
    min-height:0;
    overflow:hidden !important;
    display:flex;
    flex-direction:column;
  }
  .player-main .video-container{
    flex:0 0 auto;
    height:clamp(340px, calc(100vh - var(--nav-h) - 150px), 520px);
    padding-bottom:0 !important;
  }
  .player-main .lesson-info-area{
    flex:0 1 auto;
    max-height:150px;
    overflow-y:auto;
    padding:1rem 1.25rem;
  }
}



/* Course desktop: scroll full player area only when lesson description is long */
@media(min-width:1025px){
  .player-main{
    height:calc(100vh - var(--nav-h));
    min-height:0;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    display:flex;
    flex-direction:column;
    -webkit-overflow-scrolling:touch;
  }
  .player-main .video-container{
    flex:0 0 auto;
    height:clamp(430px, calc(100vh - var(--nav-h) - 170px), 640px);
    padding-bottom:0 !important;
  }
  .player-main .lesson-info-area{
    flex:0 0 auto;
    max-height:none !important;
    overflow:visible !important;
    padding:1.2rem 1.5rem;
  }
  .player-main .lesson-title{
    margin-bottom:6px;
    line-height:1.45;
  }
  .player-main .lesson-desc{
    margin:0;
    line-height:1.75;
  }
}



/* Course mobile: lesson title/details scroll with lessons, video stays fixed */
@media(max-width:768px){
  .lessons-sidebar{
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
  }
  .mobile-lesson-info{
    flex:0 0 auto;
  }
  #lessons-list{
    flex:0 0 auto !important;
    min-height:auto !important;
    max-height:none !important;
    overflow:visible !important;
  }
  .subscribe-box{
    flex:0 0 auto;
  }
}



/* Course mobile: keep subscribe CTA visible while lessons scroll */
@media(max-width:768px){
  .lessons-sidebar .subscribe-box{
    position:sticky;
    bottom:0;
    z-index:5;
    flex:0 0 auto;
    margin:7px 12px 8px !important;
    box-shadow:0 -14px 28px rgba(0,0,0,.20), 0 16px 42px rgba(0,0,0,.055);
  }
}



/* Course mobile: fixed subscribe CTA outside lessons scroll */
@media(max-width:768px){
  .course-detail-layout .lessons-sidebar{
    padding-bottom:72px;
  }
  .course-detail-layout .subscribe-box{
    position:fixed !important;
    left:12px;
    right:12px;
    bottom:10px;
    z-index:999;
    width:auto;
    margin:0 !important;
    box-shadow:0 -10px 28px rgba(0,0,0,.28), 0 16px 42px rgba(0,0,0,.055);
  }
  .course-detail-layout .subscribe-box[style*="display:none"],
  .course-detail-layout .subscribe-box[style*="display: none"]{
    display:none !important;
  }
  .course-detail-layout .subscribe-box[style*="display: block"]{
    display:flex !important;
  }
}



/* Course iPad/tablet: raise subscribe CTA above the screen edge */
@media(min-width:769px) and (max-width:1024px){
  .course-detail-layout .lessons-sidebar{
    overflow:hidden !important;
  }
  .course-detail-layout #lessons-list{
    min-height:0;
    overflow-y:auto;
  }
  .course-detail-layout .subscribe-box{
    margin:10px 14px 72px !important;
    flex-shrink:0;
    transform:translateY(-18px);
  }
}
@media(min-width:769px) and (max-width:1024px) and (max-height:760px){
  .course-detail-layout .subscribe-box{
    margin-bottom:52px !important;
    transform:translateY(-14px);
  }
}



/* Course iPad/tablet: show full description, scroll only if whole player area exceeds screen */
@media(min-width:769px) and (max-width:1024px){
  .player-main{
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch;
  }
  .player-main .lesson-info-area{
    max-height:none !important;
    overflow:visible !important;
  }
  .player-main .lesson-desc{
    max-height:none !important;
    overflow:visible !important;
  }
}



/* Mobile drawer order refinement */
.mobile-user-info-first{
  margin-bottom:14px;
}
.mobile-user-pic-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--primary);
  color:#fff;
  font-weight:800;
}
.mobile-nav-logout{
  color:var(--danger-text) !important;
  margin-top:4px;
}
@media(max-width:768px){
  .mobile-nav-drawer{
    gap:10px;
  }
}



/* Mobile course card: keep trainer name inside card */
@media(max-width:768px){
  .course-card,
  .course-card *{
    min-width:0;
  }
  .course-trainer,
  .course-trainer-row,
  .course-trainer-wrap{
    min-width:0;
    overflow:hidden;
  }
  .course-trainer-info{
    min-width:0;
    max-width:100%;
    overflow:hidden;
  }
  .course-trainer-name{
    max-width:100%;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    font-size:12px;
    line-height:1.35;
  }
}
@media(max-width:480px){
  .courses-grid{
    grid-template-columns:1fr 1fr;
  }
  .course-card{
    overflow:hidden;
  }
  .course-trainer-name{
    font-size:11.5px;
  }
}
@media(max-width:380px){
  .course-trainer-name{
    font-size:11px;
  }
}



/* Mobile course card: show full trainer name inside card */
@media(max-width:768px){
  .course-card{
    overflow:hidden;
  }
  .course-trainer,
  .course-trainer-row,
  .course-trainer-wrap{
    max-width:100%;
    overflow:visible;
  }
  .course-trainer-info{
    min-width:0;
    max-width:100%;
    overflow:visible;
  }
  .course-trainer-name{
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    word-break:normal;
    overflow-wrap:anywhere;
    max-width:100%;
    line-height:1.45;
    font-size:11.5px;
  }
}
@media(max-width:420px){
  .course-trainer-name{
    font-size:11px;
    line-height:1.5;
  }
}



/* Mobile header login button beside hamburger */
.mobile-left-actions{
  display:none;
}
.mobile-header-login-btn{
  display:none;
}
@media(max-width:768px){
  .nav .hamburger{
    display:none;
  }
  .mobile-left-actions{
    display:flex;
    align-items:center;
    gap:8px;
    flex:0 0 auto;
  }
  .mobile-left-actions .hamburger{
    display:flex;
  }
  .mobile-header-login-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    height:38px;
    padding:0 12px;
    border:.5px solid var(--border-strong);
    border-radius:9px;
    background:var(--bg-card);
    color:var(--text);
    font-family:'Tajawal',sans-serif;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    white-space:nowrap;
  }
}
@media(max-width:390px){
  .mobile-header-login-btn{
    height:36px;
    padding:0 10px;
    font-size:12px;
  }
  .mobile-left-actions{
    gap:6px;
  }
}



/* Mobile header compact login button to avoid logo overlap */
@media(max-width:768px){
  .nav{
    gap:6px;
    padding:0 .75rem;
  }
  .nav-logo{
    min-width:0;
    flex:1 1 auto;
    justify-content:flex-start;
    gap:5px;
  }
  .nav-logo-text{
    min-width:0;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
  }
  .nav-logo .nav-logo-brand,
  .nav-logo .nav-logo-subtitle{
    font-size:15px;
  }
  .site-logo-img{
    width:34px;
    height:34px;
  }
  .mobile-left-actions{
    gap:5px;
    flex:0 0 auto;
  }
  .mobile-header-login-btn{
    height:34px;
    padding:0 8px;
    gap:5px;
    font-size:12px;
    border-radius:8px;
  }
  .mobile-header-login-btn svg{
    width:14px;
    height:14px;
    flex:0 0 auto;
  }
  .hamburger{
    padding:5px;
  }
  .hamburger span{
    width:20px;
  }
}
@media(max-width:430px){
  .nav{
    padding:0 .55rem;
    gap:4px;
  }
  .nav-logo .nav-logo-brand,
  .nav-logo .nav-logo-subtitle{
    font-size:13px;
  }
  .site-logo-img{
    width:30px;
    height:30px;
  }
  .mobile-header-login-btn{
    height:32px;
    padding:0 7px;
    font-size:11.5px;
  }
  .mobile-header-login-btn svg{
    width:13px;
    height:13px;
  }
  .hamburger span{
    width:19px;
  }
}
@media(max-width:370px){
  .mobile-header-login-btn{
    width:34px;
    padding:0;
  }
  .mobile-header-login-btn{
    font-size:0;
  }
  .mobile-header-login-btn svg{
    width:16px;
    height:16px;
  }
}



/* Course responsive images */
.course-thumb picture{
  display:block;
  width:100%;
  height:100%;
}
.course-thumb picture .course-thumb-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
@media (max-width: 768px){
  .course-thumb{
    height:190px;
  }
  .course-thumb picture .course-thumb-img{
    object-fit:cover;
    object-position:center;
  }
}


/* Home slider admin + responsive picture */
.home-slide picture{
  display:block;
  width:100%;
  height:100%;
}
.home-slide picture img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.slider-form-grid{
  display:grid;
  grid-template-columns:1.5fr 1.5fr .55fr .75fr .45fr;
  gap:12px;
  align-items:end;
  padding:16px;
}
.slider-admin-check{
  display:flex;
  align-items:center;
  min-height:58px;
}
.slider-admin-thumb{
  width:88px;
  height:50px;
  object-fit:cover;
  border-radius:8px;
  border:.5px solid var(--border);
  background:var(--bg-secondary);
}
.slider-url-input{
  min-width:260px;
}
.slider-order-input{
  width:90px;
}
.slider-status-input{
  min-width:95px;
}
@media (max-width:900px){
  .slider-form-grid{
    grid-template-columns:1fr;
  }
  .slider-url-input{
    min-width:210px;
  }
}
@media (max-width:700px){
  .home-slider{
    height:clamp(180px, 45vw, 260px);
  }
}

.slider-duration-input{width:105px;}


/* Home slider dashboard refinements */
.slider-current-card{
  overflow:visible;
}
.slider-current-card .table-responsive{
  overflow:visible;
}
.slider-card-actions{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  padding:14px 16px 16px;
  border-top:.5px solid var(--border);
}
.slider-card-actions .add-btn{
  min-width:170px;
}


/* Home slider current slides: no horizontal table scroll */
.slider-current-card{
  overflow:visible;
}
.slider-current-card .table-responsive{
  overflow:visible;
}
.slider-slides-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px 16px 4px;
}
.slider-slide-card{
  display:grid;
  grid-template-columns:96px minmax(0,1fr) auto;
  gap:12px;
  align-items:end;
  padding:12px;
  border:.5px solid var(--border);
  border-radius:var(--radius-md);
  background:var(--bg-card);
}
.slider-slide-preview{
  width:96px;
  height:54px;
  border-radius:9px;
  overflow:hidden;
  border:.5px solid var(--border);
  background:var(--bg-secondary);
  align-self:center;
}
.slider-slide-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.slider-slide-fields{
  display:grid;
  grid-template-columns:minmax(160px,1.3fr) minmax(150px,1.1fr) 72px 72px 92px;
  gap:8px;
  align-items:end;
  min-width:0;
}
.slider-compact-field{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.slider-compact-field span{
  font-size:11px;
  color:var(--text-muted);
  line-height:1.2;
}
.slider-compact-field .form-input{
  height:38px;
  font-size:12px;
  padding:8px 10px;
  min-width:0;
}
.slider-url-desktop input,
.slider-url-mobile input{
  direction:ltr;
  text-align:left;
}
.slider-mini-field input,
.slider-status-field select{
  text-align:center;
}
.slider-slide-actions{
  display:flex;
  justify-content:flex-end;
  align-items:end;
}
.slider-empty-state{
  text-align:center;
  padding:1.5rem;
  color:var(--text-muted);
}
.slider-card-actions{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  padding:14px 16px 16px;
  border-top:.5px solid var(--border);
}
.slider-card-actions .add-btn{
  min-width:170px;
}
@media (max-width:1100px){
  .slider-slide-card{
    grid-template-columns:84px minmax(0,1fr);
  }
  .slider-slide-actions{
    grid-column:2;
    justify-content:flex-start;
  }
  .slider-slide-preview{
    width:84px;
    height:47px;
  }
  .slider-slide-fields{
    grid-template-columns:1fr 1fr 70px 70px 90px;
  }
}
@media (max-width:760px){
  .slider-slide-card{
    grid-template-columns:1fr;
  }
  .slider-slide-preview{
    width:100%;
    height:120px;
  }
  .slider-slide-fields{
    grid-template-columns:1fr 1fr;
  }
  .slider-url-desktop,
  .slider-url-mobile{
    grid-column:1 / -1;
  }
  .slider-slide-actions{
    grid-column:auto;
    justify-content:flex-start;
  }
}


/* Admin report buttons */
.admin-header-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.contact-request-mode-tabs .action-btn{
  min-height:36px;
}
@media (max-width:700px){
  .admin-header-actions{
    width:100%;
    justify-content:flex-start;
  }
}


/* مكتبة صيانة البزنس / المقالات */
.articles-page,.article-page{padding:2rem 0 4rem;min-height:70vh;background:var(--bg)}
.articles-shell,.article-shell{width:min(1120px,92vw);margin:0 auto}
.article-list-card,.article-full-card{background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.03));border:1px solid var(--border);border-radius:28px;box-shadow:var(--shadow);}
.articles-page-heading{padding:.8rem 0 1.8rem;margin:0 0 1rem;text-align:right;border-bottom:1px solid var(--border)}
.articles-page-heading h1{font-size:clamp(30px,4.2vw,46px);margin:0 0 .8rem;color:var(--primary);font-weight:800;line-height:1.35}
.articles-page-heading p{font-size:clamp(16px,2vw,22px);line-height:1.9;color:var(--text-muted);margin:0;max-width:1000px}
.articles-list{display:flex;flex-direction:column;gap:1.2rem}
.article-list-card{padding:1.6rem 1.8rem;display:flex;align-items:center;justify-content:space-between;gap:1rem;transition:.2s ease}
.article-list-card:hover{transform:translateY(-2px);border-color:var(--primary)}
.article-list-content h2{font-size:clamp(22px,3vw,34px);margin:0 0 .7rem;color:var(--text);line-height:1.4}
.article-list-content p{font-size:clamp(15px,1.8vw,20px);line-height:1.9;color:var(--text-muted);margin:0}
.article-read-more{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border-radius:14px;padding:.75rem 1.2rem;background:var(--primary);color:#fff;text-decoration:none;font-weight:700;box-shadow:0 10px 22px rgba(0,0,0,.18)}
.article-read-more:hover{filter:brightness(1.05)}
.articles-empty{padding:2rem;border:1px solid var(--border);border-radius:20px;background:var(--card);color:var(--text-muted);text-align:center;line-height:1.9}
.article-back-link{display:inline-flex;margin:0 0 1rem;color:var(--primary);text-decoration:none;font-weight:700}
.article-full-card{padding:2.2rem;overflow:hidden}
.article-full-card h1{font-size:clamp(30px,4vw,46px);line-height:1.35;margin:0 0 1rem;color:var(--text)}
.article-lead{font-size:clamp(17px,2vw,23px);line-height:1.9;color:var(--text-muted);margin:0 0 1.5rem;border-bottom:1px solid var(--border);padding-bottom:1.3rem}
.article-content{font-size:18px;line-height:2.05;color:var(--text)}
.article-content h2{font-size:30px;margin:2rem 0 .8rem;color:var(--text)}
.article-content h3{font-size:24px;margin:1.6rem 0 .7rem;color:var(--text)}
.article-content p{margin:.8rem 0;color:var(--text-muted)}
.article-content ul,.article-content ol{padding-right:1.4rem;margin:1rem 0;color:var(--text-muted)}
.article-content li{margin:.45rem 0}
.article-content blockquote{border-right:4px solid var(--primary);margin:1.2rem 0;padding:1rem 1.2rem;background:rgba(255,255,255,.04);border-radius:12px;color:var(--text-muted)}
.article-content table{width:100%;border-collapse:collapse;margin:1.4rem 0;border:1px solid var(--border);overflow:hidden;border-radius:14px}
.article-content th,.article-content td{border:1px solid var(--border);padding:.85rem;text-align:right;color:var(--text-muted)}
.article-content th{background:rgba(255,255,255,.06);color:var(--text);font-weight:700}
.article-content a{color:var(--primary);font-weight:700}
.article-editor-toolbar{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.article-editor-toolbar button{border:1px solid var(--border);background:var(--card);color:var(--text);border-radius:10px;padding:7px 10px;cursor:pointer}
.article-editor-toolbar button:hover{border-color:var(--primary);color:var(--primary)}
.article-content-input{font-family:Consolas,'Courier New',monospace;direction:rtl;min-height:260px}
@media(max-width:700px){.article-list-card{display:block;padding:1.3rem}.article-read-more{margin-top:1rem;width:100%}.article-full-card{padding:1.4rem}.article-content{font-size:16px}.article-content h2{font-size:24px}}

/* VISUAL ARTICLE EDITOR */
.article-content-hidden{display:none !important}
.article-visual-editor{min-height:320px;max-height:520px;overflow:auto;background:var(--bg-card);border:1px solid var(--border);border-radius:14px;padding:18px;color:var(--text);font-family:'Tajawal',sans-serif;font-size:17px;line-height:2;outline:none;direction:rtl;text-align:right}
.article-visual-editor:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(24,95,165,.14)}
.article-visual-editor:empty::before{content:attr(data-placeholder);color:var(--text-muted);opacity:.75}
.article-visual-editor h2{font-size:26px;line-height:1.5;margin:1.2rem 0 .6rem;color:var(--text);font-weight:800}
.article-visual-editor h3{font-size:22px;line-height:1.5;margin:1rem 0 .5rem;color:var(--text);font-weight:800}
.article-visual-editor p{margin:.65rem 0;color:var(--text-muted)}
.article-visual-editor ul,.article-visual-editor ol{padding-right:1.5rem;margin:.8rem 0;color:var(--text-muted)}
.article-visual-editor li{margin:.35rem 0}
.article-visual-editor table{width:100%;border-collapse:collapse;margin:1rem 0;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:rgba(255,255,255,.02)}
.article-visual-editor th,.article-visual-editor td{border:1px solid var(--border);padding:.75rem;text-align:right;color:var(--text-muted);min-width:110px}
.article-visual-editor th{background:rgba(255,255,255,.06);color:var(--text);font-weight:700}
.article-visual-editor hr{border:0;border-top:1px solid var(--border);margin:1.2rem 0}
.article-editor-toolbar{position:sticky;top:0;z-index:2;background:var(--bg-card);padding:8px;border:1px solid var(--border);border-radius:14px;margin-bottom:10px}
.article-editor-toolbar button{font-family:'Tajawal',sans-serif;font-weight:700}


/* ARTICLE EDITOR REFINEMENTS */
.article-visual-editor p,
.article-visual-editor td,
.article-visual-editor th{
  font-size:16px;
  line-height:1.9;
}
.article-visual-editor h2{
  font-size:26px !important;
  line-height:1.45 !important;
  margin:1.2rem 0 .65rem !important;
  color:var(--text) !important;
  font-weight:800 !important;
}
.article-visual-editor p{
  font-weight:400 !important;
  color:var(--text-muted) !important;
}
.article-visual-editor table{
  table-layout:auto;
}
.article-visual-editor td,
.article-visual-editor th{
  min-width:120px;
  height:42px;
  vertical-align:top;
}
.article-visual-editor td:focus,
.article-visual-editor th:focus{
  outline:2px solid var(--primary);
  outline-offset:-2px;
}
.article-editor-toolbar button{
  min-height:34px;
}


/* ARTICLE EDITOR TABLE UI */
.article-table-toolbar{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin:-2px 0 10px;
  padding:8px;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.03);
}
.article-table-toolbar-label{
  font-size:12px;
  color:var(--text-muted);
  margin-left:4px;
  font-weight:700;
}
.article-table-toolbar button{
  font-family:'Tajawal',sans-serif;
  font-weight:700;
  border:1px solid var(--border);
  background:var(--bg-card);
  color:var(--text);
  border-radius:10px;
  padding:7px 10px;
  cursor:pointer;
  min-height:34px;
}
.article-table-toolbar button:hover{
  border-color:var(--primary);
  color:var(--primary);
}
.article-visual-editor thead th{
  background:rgba(255,255,255,.12) !important;
  color:var(--text) !important;
  font-weight:900 !important;
  font-size:17px !important;
}
.article-visual-editor tbody td{
  font-size:16px !important;
  font-weight:400 !important;
}
.article-content thead th{
  background:rgba(255,255,255,.10) !important;
  color:var(--text) !important;
  font-weight:900 !important;
}
.article-content tbody td{
  font-weight:400 !important;
}

/* Overview: enrollment statistics */
.enrollment-metrics{grid-template-columns:repeat(4,minmax(0,1fr));}
.enrollment-metrics .metric{text-align:center;min-width:0;}
.enrollment-metrics .metric-val{color:var(--primary);}
.enrollment-metrics .metric-lbl{font-size:13px;color:var(--text);line-height:1.5;}
@media(max-width:900px){.enrollment-metrics{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* Overview course subscriber row */
.overview-course-row{cursor:pointer;}
.overview-course-row:hover td,.overview-course-row:focus-visible td{background:var(--bg-secondary);}
.overview-course-row:focus-visible{outline:2px solid var(--primary);outline-offset:-2px;}
