/* ══════════════════════════════════════════
   KALLIMACHOS Theme — css/main.css
   الأنماط الكاملة للقالب
══════════════════════════════════════════ */

:root {
  --gold:       #c9a227;
  --gold-light: #f0c94a;
  --dark:       #1a1a2e;
  --dark2:      #16213e;
  --paper:      #faf6ef;
  --paper2:     #f5ede0;
  --cream:      #ede0cc;
  --white:      #ffffff;
  --text-dark:  #1a1a2e;
  --text-mid:   #4a4a6a;
  --text-light: #8a8aaa;
  --border:     rgba(26,26,46,0.12);
  --radius:     10px;
  --radius-sm:  6px;
  --paper-var:  var(--paper);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', sans-serif;
  background: var(--paper);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  direction: rtl;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
button, input, select, textarea {
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
}
input, select, textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white); color: var(--text-dark);
  transition: border-color .2s; direction: rtl;
  display: block; margin-top: 6px;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold);
}
label { font-size: 13px; font-weight: 500; color: var(--text-mid); display: block; }

/* ══ NAVBAR ══ */
.kalli-nav {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; padding: 16px 60px;
  background: var(--dark);
  border-bottom: 1px solid rgba(201,162,39,0.2);
  position: sticky; top: 0; z-index: 200;
  transition: box-shadow .3s;
}
.kalli-brand { display: flex; align-items: center; gap: 12px; }
.kalli-mark {
  width: 44px; height: 44px; background: var(--gold);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: 'Amiri', serif; font-size: 16px; font-weight: 700; color: var(--dark);
  letter-spacing: -1px; flex-shrink: 0;
}
.kalli-name { font-family: 'Amiri', serif; font-size: 20px; color: var(--gold); }
.kalli-tagline { font-size: 10px; color: rgba(201,162,39,0.5); display: block; letter-spacing: 2px; direction: ltr; }
.nav-menu-wrap { display: flex; align-items: center; gap: 20px; }
.kalli-nav-links { display: flex; gap: 24px; list-style: none; }
.kalli-nav-links a { color: rgba(250,246,239,0.7); font-size: 14px; transition: color .2s; }
.kalli-nav-links a:hover { color: var(--gold); }
.btn-nav {
  background: var(--gold); color: var(--dark);
  padding: 9px 22px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; transition: all .2s;
  display: inline-block;
}
.btn-nav:hover { background: var(--gold-light); }
.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-mobile-toggle span {
  width: 24px; height: 2px; background: var(--gold);
  display: block; transition: all .3s;
}

/* ══ BUTTONS ══ */
.btn-primary {
  background: var(--gold); color: var(--dark);
  padding: 13px 30px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700;
  border: none; cursor: pointer; transition: all .2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--paper);
  border: 1px solid rgba(250,246,239,0.3);
  padding: 13px 30px; border-radius: var(--radius-sm);
  font-size: 15px; cursor: pointer; transition: all .2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ══ HERO ══ */
.kalli-hero {
  background: var(--dark); color: var(--paper);
  padding: 80px 60px 60px;
  display: flex; align-items: center; gap: 60px;
  min-height: 90vh;
}
.hero-content { flex: 1; }
.hero-eyebrow {
  font-size: 11px; letter-spacing: 3px; color: var(--gold);
  text-transform: uppercase; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ''; display: inline-block; width: 30px; height: 1px; background: var(--gold); }
.hero-title { font-family: 'Amiri', serif; font-size: 58px; line-height: 1.2; margin-bottom: 8px; }
.hero-title span { color: var(--gold); }
.hero-subtitle { font-size: 16px; color: rgba(250,246,239,0.6); margin-bottom: 36px; max-width: 500px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 52px; padding-top: 32px; border-top: 1px solid rgba(250,246,239,0.1); }
.stat-num { font-family: 'Amiri', serif; font-size: 36px; color: var(--gold); font-weight: 700; }
.stat-lbl { font-size: 12px; color: rgba(250,246,239,0.5); margin-top: 2px; }
.hero-visual { flex: 0 0 420px; }

/* Mock Browser */
.mock-browser { background: var(--dark2); border-radius: 12px; border: 1px solid rgba(201,162,39,0.2); overflow: hidden; }
.mock-bar { background: rgba(255,255,255,0.05); padding: 10px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.m-dot { width: 10px; height: 10px; border-radius: 50%; }
.m-red { background: #ff5f57; } .m-yellow { background: #ffbd2e; } .m-green { background: #28c941; }
.mock-url { flex: 1; background: rgba(255,255,255,0.07); border-radius: 4px; padding: 4px 12px; font-size: 11px; color: rgba(201,162,39,0.7); direction: ltr; text-align: left; margin: 0 8px; }
.mock-body { padding: 18px; }
.mock-kpis { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.mock-kpi { background: rgba(201,162,39,0.08); border: 1px solid rgba(201,162,39,0.15); border-radius: 6px; padding: 10px; text-align: center; }
.mock-kpi-n { font-size: 20px; font-family: 'Amiri', serif; color: var(--gold); font-weight: 700; }
.mock-kpi-l { font-size: 9px; color: rgba(250,246,239,0.4); margin-top: 2px; }
.mock-rows { display: flex; flex-direction: column; gap: 6px; }
.mock-row { background: rgba(255,255,255,0.03); border-radius: 5px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; }
.mock-icon { width: 28px; height: 28px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.mock-title { font-size: 10px; color: rgba(250,246,239,0.8); }
.mock-sub { font-size: 9px; color: rgba(250,246,239,0.4); }
.mock-badge { font-size: 8px; padding: 2px 7px; border-radius: 20px; margin-right: auto; }

/* ══ SECTIONS ══ */
.kalli-section { padding: 80px 60px; }
.kalli-section.dark { background: var(--dark); color: var(--paper); }
.kalli-section.light { background: var(--paper); }
.kalli-section.cream { background: var(--paper2); }
.publishers-bar { padding: 40px 60px !important; }
.kalli-container { max-width: 1200px; margin: 0 auto; }
.section-eyebrow { font-size: 11px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; margin-bottom: 12px; text-align: center; }
.section-title { font-family: 'Amiri', serif; font-size: 40px; text-align: center; margin-bottom: 8px; }
.section-sub { font-size: 15px; text-align: center; color: var(--text-mid); max-width: 600px; margin: 0 auto 52px; line-height: 1.8; }
.dark .section-sub { color: rgba(250,246,239,0.6); }

/* Publishers */
.publishers-label { font-size: 12px; letter-spacing: 2px; color: rgba(201,162,39,0.6); margin-bottom: 20px; }
.pub-cards { display: flex; gap: 14px; flex-wrap: wrap; }
.pub-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(201,162,39,0.15); border-radius: var(--radius); padding: 18px; min-width: 160px; transition: all .2s; }
.pub-card:hover { background: rgba(201,162,39,0.1); border-color: var(--gold); transform: translateY(-3px); }
.pub-avatar { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: 'Amiri', serif; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.pub-name { font-size: 13px; font-weight: 600; color: var(--paper); }
.pub-domain { font-size: 10px; color: rgba(250,246,239,0.35); margin-top: 3px; direction: ltr; }
.pub-count { font-size: 11px; color: var(--gold); margin-top: 8px; }
.pub-card-new { border-style: dashed; cursor: default; }
.pub-avatar-new { background: rgba(250,246,239,0.05); color: rgba(250,246,239,0.2); }
.pub-name-muted { color: rgba(250,246,239,0.3); }
.pub-domain-muted { color: rgba(250,246,239,0.15); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .2s; }
.feature-card:hover { transform: translateY(-3px); }
.feature-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.feature-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 13px; color: var(--text-mid); line-height: 1.7; }

/* Steps */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.steps-row::before { content: ''; position: absolute; top: 36px; right: 12%; width: 76%; height: 2px; background: linear-gradient(to left, transparent, var(--gold), transparent); }
.step-card { text-align: center; position: relative; z-index: 1; }
.step-num { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); color: var(--dark); display: flex; align-items: center; justify-content: center; font-family: 'Amiri', serif; font-size: 28px; font-weight: 700; margin: 0 auto 18px; }
.step-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--paper); }
.step-desc { font-size: 13px; color: rgba(250,246,239,0.55); line-height: 1.6; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.price-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; transition: transform .2s; position: relative; }
.price-card.featured { border: 2px solid var(--gold); }
.price-card:hover { transform: translateY(-4px); }
.price-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--dark); font-size: 11px; font-weight: 700; padding: 4px 16px; border-radius: 20px; white-space: nowrap; }
.price-plan { font-size: 14px; color: var(--text-mid); margin-bottom: 8px; }
.price-amount { font-family: 'Amiri', serif; font-size: 48px; color: var(--dark); font-weight: 700; line-height: 1; }
.price-currency { font-size: 18px; vertical-align: top; margin-top: 10px; display: inline-block; }
.price-period { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }
.price-features { list-style: none; margin-bottom: 28px; text-align: right; }
.price-features li { font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.price-features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.price-features li:last-child { border-bottom: none; }
.btn-price { display: block; width: 100%; padding: 12px; background: var(--dark); color: var(--paper); border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s; text-align: center; }
.btn-price.gold { background: var(--gold); color: var(--dark); }
.btn-price:hover { opacity: .85; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.testimonial-text { font-size: 14px; line-height: 1.8; color: var(--text-mid); margin-bottom: 20px; font-style: italic; }
.testimonial-text::before { content: '"'; color: var(--gold); font-size: 28px; font-family: 'Amiri', serif; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Amiri', serif; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.author-name { font-size: 14px; font-weight: 700; }
.author-pub { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* CTA */
.kalli-cta { background: var(--dark); padding: 100px 60px; text-align: center; position: relative; overflow: hidden; }
.kalli-cta::before { content: 'KALLIMACHOS'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: 'Amiri', serif; font-size: 160px; color: rgba(201,162,39,0.04); white-space: nowrap; pointer-events: none; font-weight: 700; letter-spacing: -4px; }
.cta-title { font-family: 'Amiri', serif; font-size: 48px; color: var(--paper); margin-bottom: 16px; position: relative; }
.cta-title span { color: var(--gold); }
.cta-sub { font-size: 15px; color: rgba(250,246,239,0.6); margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.8; position: relative; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* Footer */
.kalli-footer { background: #0d0d1a; color: rgba(250,246,239,0.6); padding: 60px 60px 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand-name { font-family: 'Amiri', serif; font-size: 22px; color: var(--gold); margin-bottom: 12px; }
.footer-brand-desc { font-size: 13px; line-height: 1.8; color: rgba(250,246,239,0.4); max-width: 280px; }
.footer-email { font-size: 12px; color: var(--gold); display: block; margin-top: 12px; }
.footer-col-title { font-size: 13px; font-weight: 700; color: var(--paper); margin-bottom: 16px; letter-spacing: 1px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: rgba(250,246,239,0.4); transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(250,246,239,0.3); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom a { color: rgba(250,246,239,0.3); transition: color .2s; }
.footer-bottom a:hover { color: var(--gold); }

/* Page & Article */
.kalli-main-content, .kalli-page-content { padding: 60px; }
.page-heading { font-family: 'Amiri', serif; font-size: 36px; margin-bottom: 24px; }
.page-body, .article-content { font-size: 15px; line-height: 1.8; color: var(--text-mid); max-width: 780px; }
.article-title { font-family: 'Amiri', serif; font-size: 32px; margin-bottom: 20px; }

/* Animations */
.kalli-animate { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.kalli-animate.visible { opacity: 1; transform: translateY(0); }

/* ══ RESPONSIVE ══ */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { flex: 0 0 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .kalli-hero { flex-direction: column; padding: 50px 24px 40px; }
  .hero-visual { display: none; }
  .hero-title { font-size: 40px; }
  .kalli-section { padding: 60px 24px; }
  .publishers-bar { padding: 30px 24px !important; }
  .kalli-nav { padding: 14px 20px; }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .steps-row::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .kalli-cta { padding: 60px 24px; }
  .kalli-footer { padding: 40px 24px 20px; }
  .kalli-main-content, .kalli-page-content { padding: 40px 24px; }
}
@media (max-width: 768px) {
  .kalli-nav-links { display: none; }
  .nav-menu-wrap { display: none; }
  .nav-menu-wrap.open { display: flex; flex-direction: column; position: fixed; inset: 0; top: 60px; background: var(--dark); padding: 30px; z-index: 199; }
  .nav-mobile-toggle { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 34px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .steps-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
}


/* ══════════════════════════════════════════
   صفحة التسجيل — KALLIMACHOS Register
══════════════════════════════════════════ */

/* Layout */
.kalli-register-wrap { min-height: calc(100vh - 62px); background: var(--paper); }
.reg-split { display: flex; min-height: calc(100vh - 62px); }

/* الجانب الأيسر (العلامة التجارية) */
.reg-brand {
  flex: 0 0 42%; background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 48px; position: sticky; top: 62px;
  height: calc(100vh - 62px); overflow-y: auto;
}
.reg-brand-inner { max-width: 380px; }
.reg-back { font-size: 12px; color: rgba(250,246,239,.4); display: block; margin-bottom: 28px; transition: color .2s; }
.reg-back:hover { color: var(--gold); }
.reg-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.reg-brand-h { font-family: 'Amiri', serif; font-size: 28px; color: var(--paper); margin-bottom: 10px; }
.reg-brand-sub { font-size: 14px; color: rgba(250,246,239,.55); line-height: 1.7; margin-bottom: 28px; }

/* قائمة المميزات */
.reg-perks { list-style: none; margin-bottom: 28px; }
.reg-perks li { font-size: 13px; color: rgba(250,246,239,.7); padding: 7px 0; display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.05); }
.reg-perks li:last-child { border-bottom: none; }
.perk-ico { color: var(--gold); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* الخطة المختارة */
.reg-selected-plan { background: rgba(201,162,39,.1); border: 1px solid rgba(201,162,39,.3); border-radius: 8px; padding: 14px 18px; }
.rsp-label { font-size: 10px; letter-spacing: 2px; color: rgba(201,162,39,.6); text-transform: uppercase; margin-bottom: 4px; }
.rsp-name  { font-size: 18px; font-weight: 700; color: var(--gold); }
.rsp-price { font-size: 14px; color: rgba(250,246,239,.6); margin-top: 4px; }
.rsp-price span { font-size: 12px; }

/* الجانب الأيمن (النموذج) */
.reg-form-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 36px; overflow-y: auto; }
.reg-form-wrap { width: 100%; max-width: 440px; }
.reg-step-badge { font-size: 11px; letter-spacing: 1px; color: var(--gold); font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.reg-title { font-size: 28px; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.reg-subtitle { font-size: 14px; color: var(--text-light); margin-bottom: 24px; }

/* حقول النموذج */
.rg-field { margin-bottom: 16px; }
.rg-field label { font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 5px; }
.field-hint { font-size: 11px; color: var(--text-light); margin-top: 5px; }
.rg-sep { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* النطاق الفرعي */
.sub-input-wrap { display: flex; align-items: stretch; }
.sub-suffix {
  background: var(--paper2); border: 1.5px solid var(--border); border-right: none;
  border-radius: 6px 0 0 6px; padding: 11px 12px;
  font-size: 13px; color: var(--text-light); white-space: nowrap;
  display: flex; align-items: center;
}
.sub-status { font-size: 12px; margin-top: 5px; min-height: 18px; }

/* حالة قوة كلمة المرور */
.pass-strength-bar { width: 0; transition: width .4s, background .3s; }

/* Checkbox الموافقة */
.rg-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-mid); cursor: pointer; margin-bottom: 16px; }
.rg-check input { width: auto; margin-top: 3px; flex-shrink: 0; }
.rg-check a { color: var(--gold); }

/* زر التسجيل */
.reg-submit { margin-top: 8px; }
.reg-login-link { text-align: center; font-size: 13px; color: var(--text-light); margin-top: 16px; }
.reg-login-link a { color: var(--gold); font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
  .reg-split { flex-direction: column; }
  .reg-brand { flex: none; position: relative; top: auto; height: auto; padding: 36px 24px; }
  .reg-form-side { padding: 32px 20px; }
}
@media (max-width: 500px) {
  .reg-brand { display: none; }
  .reg-form-wrap { max-width: 100%; }
  .reg-form-side { padding: 24px 16px; }
}
