/* =====================================================================
   Door of Kindness (بابِ کرم) — Design System
   ---------------------------------------------------------------------
   Premium, dignified Islamic matrimonial aesthetic:
   Emerald green + antique gold + cream. Manuscript-inspired ornament,
   modern luxury layout. Loaded alongside Tailwind (CDN) — Tailwind
   handles layout utilities, this file owns the branded components.
   ===================================================================== */

/* ------------------------------------------------------------------ */
/*  Design tokens                                                      */
/* ------------------------------------------------------------------ */
:root {
    --primary:        #1e4d2b;
    --primary-dark:   #0f3a1a;
    --primary-light:  #2d5f37;
    --accent:         #c9a961;
    --accent-light:   #d4b87a;
    --accent-dark:    #a8863f;
    --cream:          #f0f5ec;
    --cream-warm:     #ede0c4;
    --charcoal:       #1a1f1c;
    --text-muted:     #5a6b5f;
    --border:         rgba(201, 169, 97, 0.30);
    --border-strong:  rgba(201, 169, 97, 0.55);
    --white:          #ffffff;
    --shadow-sm:      0 1px 3px rgba(15, 58, 26, 0.06);
    --shadow-md:      0 6px 24px rgba(15, 58, 26, 0.10);
    --shadow-lg:      0 18px 48px rgba(15, 58, 26, 0.16);
    --radius:         14px;
    --radius-sm:      9px;
    --radius-lg:      22px;
    --ease:           cubic-bezier(0.22, 0.61, 0.36, 1);

    --font-display:   'Cormorant Garamond', 'Georgia', serif;
    --font-body:      'Inter', system-ui, -apple-system, sans-serif;
    --font-arabic:    'Amiri', serif;
    --font-urdu:      'Noto Nastaliq Urdu', serif;
}

/* ------------------------------------------------------------------ */
/*  Base                                                               */
/* ------------------------------------------------------------------ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--primary);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.5em;
}

a { color: var(--primary-light); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; display: block; }

.font-arabic { font-family: var(--font-arabic); direction: rtl; }
.font-urdu   { font-family: var(--font-urdu); direction: rtl; line-height: 2.1; }
.font-display{ font-family: var(--font-display); }

/* Accessibility: visible focus ring */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Skip-to-content link */
.dok-skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--primary);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 0 0 var(--radius-sm) 0;
    z-index: 1000;
}
.dok-skip-link:focus { left: 0; color: var(--white); }

/* ------------------------------------------------------------------ */
/*  Layout container                                                   */
/* ------------------------------------------------------------------ */
.dok-container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 20px;
}
.dok-section { padding-block: clamp(48px, 8vw, 96px); }

/* ------------------------------------------------------------------ */
/*  Bismillah component                                                */
/* ------------------------------------------------------------------ */
.dok-bismillah {
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: center;
    color: var(--accent-dark);
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: .02em;
    margin: 0 auto 0.4em;
    line-height: 1.8;
}
.dok-bismillah--sm { font-size: 1.25rem; }

/* ------------------------------------------------------------------ */
/*  Ornamental divider                                                 */
/* ------------------------------------------------------------------ */
.dok-divider-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 26px auto;
    color: var(--accent);
}
.dok-divider-ornament::before,
.dok-divider-ornament::after {
    content: "";
    height: 1px;
    width: min(120px, 22vw);
    background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.dok-divider-ornament svg { width: 22px; height: 22px; flex: none; }

/* ------------------------------------------------------------------ */
/*  Section title with gold underline                                  */
/* ------------------------------------------------------------------ */
.dok-section-title {
    text-align: center;
    margin-bottom: 8px;
}
.dok-section-title h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .25em;
}
.dok-section-title .eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: .28em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 10px;
}
.dok-section-title .underline {
    width: 64px;
    height: 3px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, var(--accent-light), var(--accent-dark));
    border-radius: 3px;
}
.dok-section-title p {
    color: var(--text-muted);
    max-width: 620px;
    margin: 16px auto 0;
}

/* ------------------------------------------------------------------ */
/*  Cards                                                              */
/* ------------------------------------------------------------------ */
.dok-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    position: relative;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.dok-card--cream { background: var(--cream); }
.dok-card:hover { box-shadow: var(--shadow-md); }

/* Gold corner accents */
.dok-corner-ornament::before,
.dok-corner-ornament::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent);
    opacity: .6;
}
.dok-corner-ornament::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.dok-corner-ornament::after  { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }

/* ------------------------------------------------------------------ */
/*  Buttons                                                            */
/* ------------------------------------------------------------------ */
.dok-button-primary,
.dok-button-outline,
.dok-button-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .02em;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
    text-align: center;
    line-height: 1;
}
.dok-button-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--accent);
}
.dok-button-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.dok-button-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border-strong);
}
.dok-button-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    border-color: var(--accent);
}
.dok-button-gold {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    color: var(--primary-dark);
    font-weight: 700;
}
.dok-button-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--primary-dark); }
.dok-button-sm { padding: 9px 18px; font-size: .85rem; }
.dok-button-block { width: 100%; }
.dok-button-primary:disabled,
.dok-button-outline:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------------------ */
/*  Badges                                                             */
/* ------------------------------------------------------------------ */
.dok-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--cream-warm);
    color: var(--accent-dark);
    border: 1px solid var(--border);
}
.dok-badge--verified { background: rgba(201,169,97,.16); color: var(--accent-dark); border-color: var(--accent); }
.dok-badge--featured { background: var(--primary); color: var(--accent-light); border-color: var(--accent); }
.dok-badge--new      { background: rgba(30,77,43,.10); color: var(--primary); }
.dok-badge--active   { background: #e6f4ea; color: #1b7a3d; border-color: #bfe3c9; }
.dok-badge--pending  { background: #fff4d6; color: #8a6d1a; border-color: #f0dca0; }
.dok-badge--approved { background: #e6f4ea; color: #1b7a3d; border-color: #bfe3c9; }
.dok-badge--rejected { background: #fbe6e6; color: #a12d2d; border-color: #f0c0c0; }
.dok-badge svg { width: 13px; height: 13px; }

/* ------------------------------------------------------------------ */
/*  Forms                                                              */
/* ------------------------------------------------------------------ */
.dok-label {
    display: block;
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 500;
    color: var(--primary-light);
    font-size: .9rem;
    margin-bottom: 7px;
}
.dok-input,
.dok-select,
.dok-textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.dok-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.dok-input:focus,
.dok-select:focus,
.dok-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201,169,97,.22);
}
.dok-input::placeholder { color: #9aa89e; }
.dok-field { margin-bottom: 20px; }
.dok-field-hint { font-size: .8rem; color: var(--text-muted); margin-top: 6px; }
.dok-field-error { font-size: .82rem; color: #a12d2d; margin-top: 6px; }
.dok-input--error { border-color: #d98080; }

.dok-checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.dok-checkbox-row input[type="checkbox"],
.dok-checkbox-row input[type="radio"] {
    width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex: none;
}

/* ------------------------------------------------------------------ */
/*  Flash messages / toasts                                            */
/* ------------------------------------------------------------------ */
.dok-flash-stack { margin: 0 auto 18px; max-width: 1200px; padding-inline: 20px; }
.dok-flash {
    position: relative;
    border-radius: var(--radius-sm);
    padding: 14px 44px 14px 18px;
    margin-bottom: 10px;
    font-size: .95rem;
    border: 1px solid;
    animation: dok-fade-in .4s var(--ease);
}
.dok-flash--success { background: #e6f4ea; color: #1b5e2e; border-color: #bfe3c9; }
.dok-flash--error   { background: #fbe6e6; color: #8f2424; border-color: #f0c0c0; }
.dok-flash--info    { background: #e8f0fb; color: #234b8a; border-color: #c3d6f0; }
.dok-flash--warning { background: #fff4d6; color: #7a5e15; border-color: #f0dca0; }
.dok-flash__close {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: inherit; opacity: .6;
}
.dok-flash__close:hover { opacity: 1; }

/* ------------------------------------------------------------------ */
/*  Header / navigation                                                */
/* ------------------------------------------------------------------ */
.dok-topstrip {
    background: var(--primary-dark);
    color: var(--accent-light);
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: center;
    font-size: .95rem;
    padding: 6px 12px;
    letter-spacing: .02em;
}
.dok-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(240,245,236,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.dok-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 18px;
}
.dok-logo { display: flex; align-items: center; gap: 12px; }
.dok-logo__mark { width: 42px; height: 42px; flex: none; }
.dok-logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.dok-logo__text .en { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; color: var(--primary); letter-spacing: .04em; }
.dok-logo__text .ur { font-family: var(--font-urdu); font-size: .85rem; color: var(--accent-dark); }

.dok-nav { display: flex; align-items: center; gap: 6px; }
.dok-nav a.dok-nav__link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: .95rem;
    color: var(--charcoal);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    position: relative;
}
.dok-nav a.dok-nav__link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .25s var(--ease);
}
.dok-nav a.dok-nav__link:hover { color: var(--primary); }
.dok-nav a.dok-nav__link:hover::after,
.dok-nav a.dok-nav__link.active::after { transform: scaleX(1); }
.dok-nav__actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

.dok-hamburger {
    display: none;
    background: none; border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm); padding: 9px; cursor: pointer; color: var(--primary);
}
.dok-hamburger svg { width: 22px; height: 22px; }

.dok-mobile-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px 22px;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
}
.dok-mobile-nav.open { display: flex; }
.dok-mobile-nav a {
    padding: 12px 10px; font-weight: 500; color: var(--charcoal);
    border-bottom: 1px solid var(--border); border-radius: 0;
}
.dok-mobile-nav .dok-button-primary,
.dok-mobile-nav .dok-button-outline { margin-top: 10px; border-bottom: none; }

/* ------------------------------------------------------------------ */
/*  Hero                                                               */
/* ------------------------------------------------------------------ */
.dok-hero {
    position: relative;
    background:
        radial-gradient(1200px 500px at 50% -10%, rgba(201,169,97,.12), transparent 60%),
        linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
    color: var(--cream);
    overflow: hidden;
    text-align: center;
    padding-block: clamp(70px, 12vw, 130px);
}
.dok-hero::before {
    /* subtle geometric pattern overlay */
    content: ""; position: absolute; inset: 0; opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0l15 15-15 15-15-15zM30 30l15 15-15 15-15-15z' fill='none' stroke='%23c9a961' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}
.dok-hero > * { position: relative; z-index: 1; }
.dok-hero .dok-bismillah { color: var(--accent-light); }
.dok-hero h1 {
    color: var(--cream);
    font-size: clamp(2.3rem, 6vw, 4.2rem);
    margin: 12px auto 18px;
    max-width: 14ch;
    line-height: 1.08;
}
.dok-hero .lead-ur {
    font-family: var(--font-urdu);
    direction: rtl;
    color: var(--accent-light);
    font-size: clamp(1.05rem, 2.6vw, 1.5rem);
    max-width: 40ch;
    margin: 0 auto 14px;
}
.dok-hero .lead-en {
    color: rgba(240,245,236,.86);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 56ch;
    margin: 0 auto 32px;
}
.dok-hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.dok-hero .dok-divider-ornament { color: var(--accent-light); }
.dok-hero .dok-divider-ornament::before,
.dok-hero .dok-divider-ornament::after { background: linear-gradient(to right, transparent, var(--accent-light), transparent); }

/* ------------------------------------------------------------------ */
/*  Stats bar                                                          */
/* ------------------------------------------------------------------ */
.dok-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    background: var(--primary-dark);
    color: var(--cream);
    border-radius: var(--radius);
    padding: 30px 24px;
    margin-top: -46px;
    position: relative;
    z-index: 5;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--accent);
}
.dok-stat { text-align: center; }
.dok-stat .num { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--accent-light); font-weight: 600; }
.dok-stat .lbl { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(240,245,236,.78); }
.dok-stat + .dok-stat { border-left: 1px solid rgba(201,169,97,.3); }

/* ------------------------------------------------------------------ */
/*  Steps (How it works)                                               */
/* ------------------------------------------------------------------ */
.dok-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dok-step { text-align: center; padding: 32px 24px; }
.dok-step__icon {
    width: 72px; height: 72px; margin: 0 auto 18px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--cream); border: 1.5px solid var(--accent);
    color: var(--primary);
}
.dok-step__icon svg { width: 32px; height: 32px; }
.dok-step__num {
    display: inline-block; font-family: var(--font-display); font-weight: 700;
    color: var(--accent-dark); font-size: .9rem; letter-spacing: .2em; margin-bottom: 6px;
}
.dok-step h3 { font-size: 1.4rem; }
.dok-step p { color: var(--text-muted); font-size: .95rem; }

/* ------------------------------------------------------------------ */
/*  Values                                                             */
/* ------------------------------------------------------------------ */
.dok-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dok-value { text-align: center; padding: 28px 18px; }
.dok-value__icon { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--accent-dark); }
.dok-value h4 { font-size: 1.25rem; margin-bottom: 6px; }
.dok-value p { color: var(--text-muted); font-size: .9rem; }

/* ------------------------------------------------------------------ */
/*  Profile cards                                                      */
/* ------------------------------------------------------------------ */
.dok-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.dok-profile-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    display: flex; flex-direction: column;
}
.dok-profile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dok-profile-card.is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.dok-profile-card__media { position: relative; aspect-ratio: 4 / 5; background: var(--cream-warm); overflow: hidden; }
.dok-profile-card__media img { width: 100%; height: 100%; object-fit: cover; }
.dok-profile-card__media img.blurred { filter: blur(14px); transform: scale(1.08); }
.dok-profile-card__lock {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(15,58,26,.28); color: var(--cream); text-align: center; padding: 16px;
}
.dok-profile-card__lock svg { width: 30px; height: 30px; margin-bottom: 6px; }
.dok-profile-card__lock span { font-size: .8rem; letter-spacing: .04em; }
.dok-profile-card__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; max-width: 80%; }
.dok-profile-card__heart {
    position: absolute; top: 10px; right: 10px;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.9); border: 1px solid var(--border);
    display: grid; place-items: center; cursor: pointer; color: var(--primary);
    transition: transform .2s var(--ease), color .2s;
}
.dok-profile-card__heart:hover { transform: scale(1.1); }
.dok-profile-card__heart.active { color: #c0392b; }
.dok-profile-card__heart svg { width: 19px; height: 19px; }
.dok-profile-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dok-profile-card__code { font-family: var(--font-body); font-weight: 700; letter-spacing: .06em; color: var(--accent-dark); font-size: .82rem; }
.dok-profile-card__summary { font-family: var(--font-display); font-size: 1.35rem; color: var(--primary); font-weight: 600; }
.dok-profile-card__meta { font-size: .88rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 3px; }
.dok-profile-card__meta .row { display: flex; align-items: center; gap: 7px; }
.dok-profile-card__meta svg { width: 15px; height: 15px; color: var(--accent-dark); flex: none; }
.dok-profile-card__foot { margin-top: auto; padding-top: 14px; display: flex; gap: 8px; }
.dok-profile-card__active { font-size: .76rem; color: var(--text-muted); }

/* ------------------------------------------------------------------ */
/*  FAQ accordion                                                      */
/* ------------------------------------------------------------------ */
.dok-faq { max-width: 760px; margin: 0 auto; }
.dok-faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--white); overflow: hidden; }
.dok-faq__q {
    width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    padding: 18px 20px; font-family: var(--font-display); font-size: 1.2rem; color: var(--primary);
    display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600;
}
.dok-faq__q .chev { transition: transform .3s var(--ease); color: var(--accent-dark); flex: none; }
.dok-faq__item.open .chev { transform: rotate(180deg); }
.dok-faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.dok-faq__a-inner { padding: 0 20px 18px; color: var(--text-muted); }
.dok-faq__item.open .dok-faq__a { max-height: 320px; }

/* ------------------------------------------------------------------ */
/*  Testimonials                                                       */
/* ------------------------------------------------------------------ */
.dok-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dok-testimonial { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.dok-testimonial__quote { font-family: var(--font-display); font-size: 3rem; color: var(--accent); line-height: 0.5; height: 22px; }
.dok-testimonial p { color: var(--charcoal); font-style: italic; }
.dok-testimonial .who { margin-top: 14px; font-weight: 600; color: var(--primary); font-style: normal; }

/* ------------------------------------------------------------------ */
/*  CTA band                                                           */
/* ------------------------------------------------------------------ */
.dok-cta-band {
    background:
        radial-gradient(800px 300px at 80% 120%, rgba(201,169,97,.18), transparent),
        linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--cream); text-align: center; border-radius: var(--radius-lg);
    padding: clamp(40px, 7vw, 72px); border: 1px solid var(--accent);
}
.dok-cta-band h2 { color: var(--cream); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.dok-cta-band p { color: rgba(240,245,236,.85); max-width: 50ch; margin: 0 auto 26px; }

/* ------------------------------------------------------------------ */
/*  Footer                                                             */
/* ------------------------------------------------------------------ */
.dok-footer { background: var(--charcoal); color: #c5d2c9; margin-top: 64px; }
.dok-footer__bismillah {
    background: var(--primary-dark); color: var(--accent-light);
    font-family: var(--font-arabic); direction: rtl; text-align: center;
    padding: 12px; font-size: 1.2rem;
}
.dok-footer__grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
    padding-block: 56px;
}
.dok-footer h5 { color: var(--accent-light); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; font-family: var(--font-body); margin-bottom: 18px; }
.dok-footer a { color: #c5d2c9; display: block; padding: 5px 0; font-size: .92rem; }
.dok-footer a:hover { color: var(--accent-light); }
.dok-footer__brand .en { font-family: var(--font-display); font-size: 1.5rem; color: var(--cream); }
.dok-footer__brand .ur { font-family: var(--font-urdu); color: var(--accent-light); }
.dok-footer__brand p { color: #9fb0a5; font-size: .9rem; margin-top: 12px; }
.dok-footer__social { display: flex; gap: 12px; margin-top: 16px; }
.dok-footer__social a { width: 38px; height: 38px; border: 1px solid rgba(201,169,97,.3); border-radius: 50%; display: grid; place-items: center; padding: 0; }
.dok-footer__social svg { width: 18px; height: 18px; }
.dok-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.08); padding-block: 22px;
    display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
    font-size: .85rem; color: #8ea297;
}

/* ------------------------------------------------------------------ */
/*  Empty / loading states                                             */
/* ------------------------------------------------------------------ */
.dok-empty { text-align: center; padding: 60px 24px; color: var(--text-muted); }
.dok-empty svg { width: 64px; height: 64px; color: var(--accent); margin: 0 auto 18px; opacity: .8; }
.dok-empty h3 { color: var(--primary); }

.dok-spinner {
    width: 40px; height: 40px; margin: 0 auto;
    color: var(--accent);
    animation: dok-spin 1.1s linear infinite;
}
@keyframes dok-spin { to { transform: rotate(360deg); } }
@keyframes dok-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Scroll reveal */
.dok-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.dok-reveal.visible { opacity: 1; transform: none; }

/* Scroll-to-top */
.dok-to-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 60;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--primary); color: var(--cream); border: 1px solid var(--accent);
    display: grid; place-items: center; cursor: pointer;
    opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
    box-shadow: var(--shadow-md);
}
.dok-to-top.show { opacity: 1; pointer-events: auto; }
.dok-to-top:hover { transform: translateY(-3px); }
.dok-to-top svg { width: 20px; height: 20px; }

/* Notification bell */
.dok-bell-wrap { position: relative; }
.dok-bell {
    position: relative; background: none; border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm); padding: 8px; cursor: pointer; color: var(--primary);
    display: grid; place-items: center;
}
.dok-bell svg { width: 19px; height: 19px; }
.dok-bell__dot { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: #c0392b; border: 2px solid var(--cream); }
.dok-bell-panel {
    position: absolute; right: 0; top: calc(100% + 10px); width: 340px; max-width: 90vw;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); z-index: 80; display: none; overflow: hidden;
}
.dok-bell-panel.open { display: block; animation: dok-fade-in .25s var(--ease); }
.dok-bell-panel__head { padding: 14px 16px; font-weight: 700; color: var(--primary); border-bottom: 1px solid var(--border); }
.dok-bell-panel__empty { padding: 24px 16px; text-align: center; color: var(--text-muted); font-size: .9rem; }
.dok-bell-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--charcoal); }
.dok-bell-item:hover { background: var(--cream); }
.dok-bell-item.unread { background: rgba(201,169,97,.08); }
.dok-bell-item strong { display: block; font-size: .9rem; color: var(--primary); }
.dok-bell-item span { display: block; font-size: .82rem; color: var(--text-muted); margin: 2px 0; }
.dok-bell-item em { font-size: .72rem; color: var(--accent-dark); font-style: normal; }

/* WhatsApp button accent */
.dok-button-whatsapp { background: #1f7a44; color: #fff; border-color: var(--accent); }
.dok-button-whatsapp:hover { background: #176235; color: #fff; transform: translateY(-2px); }

/* Progress bar (profile completion / registration steps) */
.dok-progress { height: 10px; background: var(--cream-warm); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.dok-progress__bar { height: 100%; background: linear-gradient(90deg, var(--accent-light), var(--accent-dark)); transition: width .5s var(--ease); }

/* ------------------------------------------------------------------ */
/*  Responsive                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .dok-values { grid-template-columns: repeat(2, 1fr); }
    .dok-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 860px) {
    .dok-nav { display: none; }
    .dok-hamburger { display: inline-grid; place-items: center; }
    .dok-steps,
    .dok-profile-grid,
    .dok-testimonials { grid-template-columns: 1fr; }
    .dok-stats { grid-template-columns: 1fr; gap: 22px; }
    .dok-stat + .dok-stat { border-left: 0; border-top: 1px solid rgba(201,169,97,.3); padding-top: 18px; }
}
@media (max-width: 560px) {
    .dok-values { grid-template-columns: 1fr; }
    .dok-footer__grid { grid-template-columns: 1fr; }
    .dok-card { padding: 22px; }
    body { font-size: 15px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .dok-reveal { opacity: 1; transform: none; }
}

/* Print (profile pages) */
@media print {
    .dok-header, .dok-footer, .dok-topstrip, .dok-to-top, .dok-hamburger,
    .dok-button-whatsapp, .dok-profile-card__heart { display: none !important; }
    body { background: #fff; }
}

/* ==================================================================== */
/*  GLOBAL RESPONSIVE LAYER  (frontend + admin, every page)             */
/*  ------------------------------------------------------------------- */
/*  Many pages use inline multi-column grids / sticky sidebars / flex   */
/*  rows. On phones & small tablets these would stay side-by-side and   */
/*  overflow. The rules below collapse them to a single, full-width     */
/*  column. Attribute selectors + !important override element inline    */
/*  styles, and are supported by every browser (IE9+, all modern).      */
/* ==================================================================== */

/* Never let anything cause a horizontal scrollbar on the page. */
html, body { max-width: 100%; }
img, svg, video, canvas, table { max-width: 100%; }

/* --- Tablet & below ------------------------------------------------- */
@media (max-width: 1024px) {
    /* Two-column "sidebar + content" inline grids (e.g. profile, search,
       admin user-view, contact) collapse to one column. */
    [style*="grid-template-columns:300px"],
    [style*="grid-template-columns: 300px"],
    [style*="grid-template-columns:340px"],
    [style*="grid-template-columns: 340px"],
    [style*="grid-template-columns:320px"],
    [style*="grid-template-columns: 320px"],
    [style*="grid-template-columns:2fr"] {
        grid-template-columns: 1fr !important;
    }
    /* Sidebars must not stick once stacked. */
    [style*="position:sticky"], [style*="position: sticky"] {
        position: static !important; top: auto !important; max-height: none !important;
    }
}

/* --- Phones & small tablets ----------------------------------------- */
@media (max-width: 768px) {
    /* ANY inline CSS grid → single column. */
    [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

    /* Inline flex rows wrap instead of overflowing. */
    [style*="display:flex"], [style*="display: flex"] { flex-wrap: wrap; }

    /* Sticky elements become static (re-stated for this breakpoint). */
    [style*="position:sticky"], [style*="position: sticky"] {
        position: static !important; top: auto !important; max-height: none !important;
    }

    /* Tighter section padding so content isn't lost in whitespace. */
    .dok-section { padding-block: 40px; }
    .dok-container { padding-inline: 16px; }

    /* Branded card grids (classes) — ensure single column too. */
    .dok-profile-grid, .dok-steps, .dok-testimonials, .dok-values,
    .dok-stats, .dok-footer__grid, .uv-layout, .uv-grid2 {
        grid-template-columns: 1fr !important;
    }

    /* Wide admin/data tables scroll horizontally inside their card. */
    .adm-card, .dok-card { overflow-x: auto; }
}

/* --- Small phones --------------------------------------------------- */
@media (max-width: 480px) {
    body { font-size: 15px; }
    .dok-button-primary, .dok-button-outline, .dok-button-gold,
    .dok-button-whatsapp { padding: 12px 18px; font-size: .9rem; }
    .dok-card { padding: 18px; }
    .dok-section-title h2 { font-size: 1.6rem; }
}
