/*
 * OrdhekDeen Clone Companion — clone.css (v1.2.6)
 * .com colours, VERIFIED live 2026-11-18 17:47 +06 by pixel sampling
 * the rendered ordhekdeen.com guest homepage:
 * primary button purple #522b79, hero heading purple #512a79,
 * pink/magenta accent #cd2872, page background #ffffff,
 * footer background #2a1340, hero light pink #f6d1f8.
 *
 * Scoping: everything is under body.odc-nikkah-page (added by the plugin
 * via the WP core body_class filter on Nikkah slugs only). Elementor
 * pages and the rest of the site are NOT touched by these rules.
 */
/* v1.2.2 — defensive safety net (fix B). VERIFIED (live code read,
   2026-11-18 13:29 +06): without Nikkah's site.css, the language-switch
   GLOBE inline SVG (class nsm-icon, viewBox 0 0 24 24, NO width/height
   attributes) defaults to ~100% viewport width (~1900px) and the logo
   (logo-icon.png, natural 330x300px) is unconstrained. These rules
   repeat Nikkah's own values from site.css, so they are harmless on
   Nikkah pages too — they only matter if Nikkah's CSS ever fails to
   load. clone.css loads on all Nikkah pages, so the rules are
   deliberately unscoped. */
.nsm-site svg.nsm-icon,
svg.nsm-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.nsm-brand-symbol img,
.nsm-brand-symbol--image img {
  width: 42px;
  height: 42px;
  object-fit: cover;
}

.nsm-site img {
  max-width: 100%;
  height: auto;
}

body.odc-nikkah-page {
  --odc-primary: #522b79;   /* .com button purple, verified */
  --odc-secondary: #512a79; /* .com hero heading purple, verified */
  --odc-accent: #cd2872;    /* .com pink/magenta, verified */
  --odc-accent-dark: #a81e5c;
  --odc-ink: #1f2937;
  --odc-bg-soft: #fbeffc;   /* .com hero light pink, verified */
  --odc-radius: 14px;
  background: #ffffff;      /* .com page background, verified */
}

/* Buttons — Nikkah buttons, WP buttons and submit inputs on Nikkah pages. */
body.odc-nikkah-page .button,
body.odc-nikkah-page button,
body.odc-nikkah-page input[type="submit"],
body.odc-nikkah-page .nsm-btn,
body.odc-nikkah-page .nsm-button,
body.odc-nikkah-page a.button {
  background: var(--odc-primary);
  border-color: var(--odc-primary);
  color: #fff;
  border-radius: var(--odc-radius);
}

body.odc-nikkah-page .button:hover,
body.odc-nikkah-page button:hover,
body.odc-nikkah-page input[type="submit"]:hover,
body.odc-nikkah-page .nsm-btn:hover,
body.odc-nikkah-page a.button:hover {
  background: var(--odc-secondary);
  border-color: var(--odc-secondary);
  color: #fff;
}

/* Accent (pink) for secondary / favourite / CTA actions. */
body.odc-nikkah-page .odc-tab-active,
body.odc-nikkah-page .nsm-btn-accent {
  background: var(--odc-accent);
  border-color: var(--odc-accent);
  color: #fff;
}

/* Links and headings on Nikkah pages. */
body.odc-nikkah-page a {
  color: var(--odc-primary);
}

body.odc-nikkah-page a:hover {
  color: var(--odc-accent-dark);
}

body.odc-nikkah-page h1,
body.odc-nikkah-page h2,
body.odc-nikkah-page h3 {
  color: var(--odc-ink);
}

/* Cards: rounded, soft shadow, .com-style. */
body.odc-nikkah-page .nsm-card,
body.odc-nikkah-page .nsm-biodata-card,
body.odc-nikkah-page .odc-detail-extra,
body.odc-nikkah-page .odc-faq details {
  border-radius: var(--odc-radius);
  box-shadow: 0 4px 18px rgba(82, 43, 121, 0.08);
  border: 1px solid #f3e8ff;
  background: #fff;
}

/* Plugin's own forms and search. */
body.odc-nikkah-page .odc-search-extra,
body.odc-nikkah-page .odc-help-form,
body.odc-nikkah-page .odc-contact-form {
  background: var(--odc-bg-soft);
  border: 1px solid #f3e8ff;
  border-radius: var(--odc-radius);
  padding: 16px;
  margin: 16px 0;
}

body.odc-nikkah-page .odc-search-extra label,
body.odc-nikkah-page .odc-help-form label,
body.odc-nikkah-page .odc-contact-form label {
  display: block;
  margin: 10px 0;
  font-weight: 600;
}

body.odc-nikkah-page .odc-search-extra input,
body.odc-nikkah-page .odc-search-extra select,
body.odc-nikkah-page .odc-help-form input,
body.odc-nikkah-page .odc-help-form textarea,
body.odc-nikkah-page .odc-contact-form input,
body.odc-nikkah-page .odc-contact-form textarea {
  width: 100%;
  max-width: 420px;
  padding: 9px 10px;
  border: 1px solid #d8b4fe;
  border-radius: 10px;
  margin-top: 4px;
}

body.odc-nikkah-page .odc-search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

body.odc-nikkah-page .odc-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--odc-primary);
  text-decoration: none;
}

body.odc-nikkah-page .odc-form-ok {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 12px;
}

body.odc-nikkah-page .odc-form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  padding: 12px;
}

body.odc-nikkah-page .odc-detail-extra table {
  width: 100%;
  border-collapse: collapse;
}

body.odc-nikkah-page .odc-detail-extra th,
body.odc-nikkah-page .odc-detail-extra td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #f3e8ff;
}

body.odc-nikkah-page .odc-faq details {
  padding: 12px 16px;
  margin: 8px 0;
}

body.odc-nikkah-page .odc-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--odc-primary);
}

/* Injected filters (clone.js) — v1.2.2: the block now sits BEFORE the
   sticky .nsm-mx-filter-actions bar, as its own block in the form
   flow (it used to be inserted inside that bar, before the submit
   button, and squeezed the button to a 20-25px sliver). Do NOT alter
   .nsm-mx-filter-actions layout here. */
body.odc-nikkah-page .odc-injected-filters {
  display: block;
  margin: 12px 0;
}

body.odc-nikkah-page .odc-injected-filters label {
  display: block;
  margin: 10px 0;
  font-weight: 600;
}

body.odc-nikkah-page .odc-injected-filters input,
body.odc-nikkah-page .odc-injected-filters select {
  padding: 9px 10px;
  border: 1px solid #d8b4fe;
  border-radius: 10px;
  margin-top: 4px;
}

body.odc-nikkah-page .odc-injected-filters input[type="text"] {
  width: 100%;
  max-width: 420px;
}

body.odc-nikkah-page .odc-injected-note {
  font-size: 0.85em;
  color: #6b7280;
  margin: 6px 0 0;
}

/* v1.2.0 — connections, packages, purchases, directory override. */
body.odc-nikkah-page .odc-balance-card,
body.odc-nikkah-page .odc-contact-notice,
body.odc-nikkah-page .odc-buy-form,
body.odc-nikkah-page .odc-purchases,
body.odc-nikkah-page .odc-filtered-directory {
  background: var(--odc-bg-soft);
  border: 1px solid #f3e8ff;
  border-radius: var(--odc-radius);
  padding: 16px;
  margin: 16px 0;
}

body.odc-nikkah-page .odc-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

body.odc-nikkah-page .odc-package {
  background: #fff;
  border: 1px solid #f3e8ff;
  border-radius: var(--odc-radius);
  box-shadow: 0 4px 18px rgba(82, 43, 121, 0.08);
  padding: 16px;
}

body.odc-nikkah-page .odc-package-tag {
  background: var(--odc-accent);
  color: #fff;
  font-size: 0.75em;
  border-radius: 999px;
  padding: 2px 10px;
}

body.odc-nikkah-page .odc-buy-form label {
  display: block;
  margin: 10px 0;
  font-weight: 600;
}

body.odc-nikkah-page .odc-buy-form input[type="text"] {
  width: 100%;
  max-width: 420px;
  padding: 9px 10px;
  border: 1px solid #d8b4fe;
  border-radius: 10px;
  margin-top: 4px;
}

body.odc-nikkah-page .odc-purchases table,
body.odc-nikkah-page .odc-filtered-directory table {
  width: 100%;
  border-collapse: collapse;
}

body.odc-nikkah-page .odc-purchases th,
body.odc-nikkah-page .odc-purchases td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #f3e8ff;
}

body.odc-nikkah-page .odc-dir-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

body.odc-nikkah-page .odc-dir-card {
  background: #fff;
  border: 1px solid #f3e8ff;
  border-radius: var(--odc-radius);
  box-shadow: 0 4px 18px rgba(82, 43, 121, 0.08);
  padding: 16px;
}

body.odc-nikkah-page .odc-filtered-note {
  font-size: 0.9em;
  color: #6b7280;
}

/* v1.2.5 — Google sign-in block ([nsm_auth] wrapper, section 5e).
   Only the wrapper's own spacing/divider is styled here — Nextend
   Social Login's own button is NOT restyled. The block only exists
   when Nextend is active; otherwise the auth page is Nikkah's
   untouched output. */
body.odc-nikkah-page .odc-social-login {
  margin-top: 16px;
}

body.odc-nikkah-page .odc-social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6b7280;
  margin: 0 0 12px;
}

body.odc-nikkah-page .odc-social-divider::before,
body.odc-nikkah-page .odc-social-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* v1.2.6 — .com-verified colours (live pixel sample 2026-11-18 17:47 +06).
   Footer: .com dark purple #2a1340 with a pink top border and light text.
   Selectors are prefixed with body.odc-nikkah-page so they beat Nikkah's
   own .nsm-footer rules without !important. */
body.odc-nikkah-page .nsm-footer.nsm-footer-premium {
  background: #2a1340 !important;
  border-top: 2px solid #cd2872;
  color: #f6d1f8;
}

body.odc-nikkah-page .nsm-footer.nsm-footer-premium a {
  color: #f6d1f8;
}

body.odc-nikkah-page .nsm-footer.nsm-footer-premium a:hover {
  color: #ffffff;
}

body.odc-nikkah-page .nsm-footer.nsm-footer-premium strong {
  color: #ffffff;
}

body.odc-nikkah-page .nsm-footer.nsm-footer-premium .nsm-footer-bottom {
  color: #f6d1f8;
}

/* v1.2.6 — homepage hero (Elementor "COMPLETE Homepage" widget).
   Its green/gold come from --nsm-rf-green/--nsm-rf-gold on .nsm-rf-root
   (verified live: --nsm-rf-green:#123f32;--nsm-rf-gold:#b59159).
   Override to .com purple/pink. v1.2.7: !important added — the widget
   sets these variables INLINE on .nsm-rf-root (style attribute), which
   beats a stylesheet rule without !important; that is why v1.2.6 did
   not recolor the hero (live check 2026-11-19 00:55 +06). Harmless if
   the accent migration already recolors it (same values). */
body.odc-nikkah-page .nsm-rf-root {
  --nsm-rf-green: #522b79 !important;
  --nsm-rf-gold: #cd2872 !important;
}

/* v1.2.7 — hero headline contrast (live check 2026-11-19 00:55 +06:
   the hero headline renders in very dark text on the dark hero, hard
   to read). The hero background is the dark accent colour, so the
   headline and section text are forced white. The section-level rule
   covers spans/divs without their own colour; the heading rule covers
   the headline itself. Form controls keep their own colours (the UA
   stylesheet sets input text), so the search form is unaffected. */
body.odc-nikkah-page .nsm-rf-hero {
  color: #ffffff;
}

body.odc-nikkah-page .nsm-rf-hero h1,
body.odc-nikkah-page .nsm-rf-hero h2,
body.odc-nikkah-page .nsm-rf-hero h3 {
  color: #ffffff !important;
}

/* v1.2.8 — hero background (VERIFIED 2026-11-19 01:32 +06, read-only
   search of all 8 nikkah-studio/assets/css/*.css files): the green is
   NOT the --nsm-rf-green variable at all. reference.css line 10 paints
   it with a HARDCODED radial gradient:
   radial-gradient(circle at 60% 35%, #1a5542, #123f32 62%, #0c352a).
   That is why the v1.2.6/v1.2.7 variable overrides never recolored it
   (the variable only feeds the hero search button, which IS purple
   now). Recolor the gradient to dark purple, keeping its shape, so
   the white headline, light paragraph and purple search button stay
   readable. The hero stays DARK (not .com's light pink #f6d1f8):
   flipping it light would need the heading, paragraph and search-form
   colours restyled too. The diamond pattern overlay (reference.css
   line 11) is recolored from light green to light lavender so it
   still reads as a pattern on purple. */
body.odc-nikkah-page .nsm-rf-hero {
  background: radial-gradient(circle at 60% 35%, #6b3a9e, #522b79 62%, #3a1c5c) !important;
}

body.odc-nikkah-page .nsm-rf-hero:before {
  background-image: repeating-linear-gradient(45deg, transparent 0, transparent 26px, #c9a8e8 27px, transparent 28px), repeating-linear-gradient(-45deg, transparent 0, transparent 27px, #d3b8ef 28px, transparent 29px) !important;
}

/* v1.2.8 — Find Biodata main search button (VERIFIED 2026-11-19
   01:32 +06): the submit button is a bare <button type="submit">
   with NO class (class-member-experience.php lines 189-190, inside
   .nsm-mx-filter-actions). Its green is a THIRD green, #174b3b, from
   member-experience.css: --nsm-mx:#174b3b (line 2) plus two
   !important rules (line 19 .nsm-mx-filter-actions button, line 89
   .nsm-root.nsm-mx-directory .nsm-mx-filter-actions button). The
   generic clone.css button rule loses to those, so this targeted rule
   beats line 89 on specificity (0,4,2 vs 0,3,1), both !important.
   The portal main button (line 89's second selector) gets the same
   treatment — it is the same green primary button. */
body.odc-nikkah-page .nsm-root.nsm-mx-directory .nsm-mx-filter-actions button,
body.odc-nikkah-page .nsm-root.nsm-mx-portal .nsm-mx-main-button {
  background: #522b79 !important;
  border-color: #522b79 !important;
  color: #fff !important;
}

/* v1.2.8 — header CTA button (VERIFIED 2026-11-19 01:32 +06): on
   /about-us/, /buy-connections/ and /faq/ the CTA ("অ্যাকাউন্ট খুলুন"
   logged out, "লগআউট" logged in) is present in the DOM but invisible
   — white text on the cream header, because its background never
   paints there. The only CTA background rule in Nikkah CSS is
   reference.css line 26, scoped .nsm-site .nsm-header .nsm-header-cta
   (green #123f32); it paints on plugin pages (homepage, Find Biodata,
   Member Access) and not on the plain pages. This unscoped rule makes
   it purple on every page clone.css loads on. */
body.odc-nikkah-page .nsm-header .nsm-header-cta {
  background: #522b79 !important;
  color: #fff !important;
}

body.odc-nikkah-page .nsm-header .nsm-header-cta:hover {
  background: #3a1c5c !important;
}

/* v1.2.8 — member-access left panel (VERIFIED 2026-11-19 01:41 +06,
   read-only inspection): the dark-green panel is
   <div class="nsm-access-aside"> inside .nsm-container.nsm-access-grid
   inside .nsm-root.nsm-access. The ONLY rule styling it is
   premium-member-190.css line 108, which sets a green gradient
   background and NO padding at all — no rule in any of Nikkah's 8 CSS
   files sets padding on it. Text starts flush at the panel edge and
   the 20px border-radius slices the first glyphs ("স্ব" of "স্বাগতম").
   Add padding on all sides and recolor the gradient purple (it was
   #174836 to #245e4a, another green). The inner image (width:100%)
   now sits inside the padding instead of running flush to the edges.
   v1.2.9 — WHY THE v1.2.8 RULE FAILED LIVE (verified 2026-11-19
   02:04 +06): the panel stayed green and clipped even on a
   cache-bypass URL (?odc-check=1), so it was NOT a stale cache — and
   the header CTA on the same page IS purple, which proves clone.css
   loads on /member-access/ and body.odc-nikkah-page is present. The
   v1.2.8 selector required a .nsm-site ancestor
   (body.odc-nikkah-page .nsm-site .nsm-root.nsm-access
   .nsm-access-aside), but our own shell templates/odc-page-shell.php
   — a VERBATIM copy of the vendor page-shell.php — contains NO
   .nsm-site wrapper anywhere, so that ancestor does not exist on
   our-shell pages and the rule never matched. (The 01:41 inference
   that .nsm-site sits above .nsm-root was wrong; the panel's green
   source is still unidentified — it is NOT premium-member-190.css
   line 108, which needs the same missing ancestor.) The selector is
   now the bare .nsm-access-aside class (plus the body-scoped form),
   which cannot miss as long as clone.css loads. */
body.odc-nikkah-page .nsm-access-aside,
.nsm-access-aside {
  padding: 48px 44px !important;
  background: linear-gradient(145deg, #5a2d8a, #3a1c5c) !important;
}

/* v1.2.6 — header Services dropdown (our shell only, templates/odc-page-shell.php).
   Opens on hover and on keyboard focus; the trigger inherits the nav
   link look. The submenu is a plain white card with purple links. */
body.odc-nikkah-page .odc-nav-drop {
  position: relative;
  display: inline-block;
}

body.odc-nikkah-page .odc-nav-drop > a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

body.odc-nikkah-page .odc-nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #f3e8ff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(82, 43, 121, 0.12);
  padding: 8px;
  z-index: 50;
}

body.odc-nikkah-page .odc-nav-drop:hover .odc-nav-drop-menu,
body.odc-nikkah-page .odc-nav-drop:focus-within .odc-nav-drop-menu {
  display: block;
}

body.odc-nikkah-page .odc-nav-drop-menu a {
  display: block;
  padding: 8px 12px;
  color: #522b79;
}

