/* ==========================================================================
   REDDY MATRIMONY PREMIUM THEME — PINK — Core Design System
   Layer: loaded AFTER vendors.css + aiz-core.css (overrides in place)
   Palette: deep rose / raspberry + rose gold + blush / ivory
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Brand */
    --rm-primary: #D6336C;          /* deep rose / raspberry */
    --rm-primary-dark: #A61E4D;     /* rich raspberry */
    --rm-primary-deeper: #45102B;   /* deep plum */
    --rm-primary-light: #E64980;    /* light rose */
    --rm-primary-soft: #FDE8F0;     /* soft rose tint */

    /* Gold */
    --rm-gold: #B76E79;             /* muted rose gold */
    --rm-gold-dark: #9A5460;
    --rm-gold-light: #DDADB5;
    --rm-gold-pale: #F9EDF1;

    /* Neutrals */
    --rm-cream: #FFFBFC;
    --rm-ivory: #FDF0F4;
    --rm-bg: #FFF7F9;
    --rm-white: #FFFFFF;
    --rm-text: #38202C;             /* plum charcoal */
    --rm-text-mid: #6E515F;
    --rm-text-soft: #A08C95;
    --rm-brown: #5E3446;            /* deep plum */
    --rm-border: #F2DCE2;

    /* Semantic */
    --rm-success: #0F9B6E;
    --rm-danger: #E03131;

    /* Effects */
    --rm-shadow-sm: 0 2px 10px rgba(166, 30, 77, 0.06);
    --rm-shadow-md: 0 8px 28px rgba(166, 30, 77, 0.10);
    --rm-shadow-lg: 0 18px 52px rgba(166, 30, 77, 0.16);
    --rm-radius: 10px;
    --rm-radius-lg: 14px;
    --rm-radius-xl: 18px;

    /* Typography */
    --rm-font-serif: 'Playfair Display', 'Noto Sans Telugu', Georgia, 'Times New Roman', serif;
    --rm-font-body: 'Nunito Sans', 'Noto Sans Telugu', -apple-system, 'Segoe UI', sans-serif;
    --rm-font-telugu: 'Noto Sans Telugu', 'Nunito Sans', sans-serif;

    /* Motifs (temple arch + diamond lattice, rose gold) */
    --rm-pattern-arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='26' viewBox='0 0 56 26'%3E%3Cpath d='M0 26 L0 13 Q14 -5 28 13 L28 26 M28 26 L28 13 Q42 -5 56 13 L56 26' fill='none' stroke='%23B76E79' stroke-opacity='0.22' stroke-width='1.1'/%3E%3C/svg%3E");
    --rm-pattern-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M22 3 L41 22 L22 41 L3 22 Z' fill='none' stroke='%23B76E79' stroke-opacity='0.14' stroke-width='1'/%3E%3Ccircle cx='22' cy='22' r='2.2' fill='%23B76E79' fill-opacity='0.28'/%3E%3C/svg%3E");
    --rm-pattern-arch-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='26' viewBox='0 0 56 26'%3E%3Cpath d='M0 26 L0 13 Q14 -5 28 13 L28 26 M28 26 L28 13 Q42 -5 56 13 L56 26' fill='none' stroke='%23DDADB5' stroke-opacity='0.16' stroke-width='1.1'/%3E%3C/svg%3E");
}

/* Override template colour tokens (re-pinned to pink brand palette) */
:root {
    --primary: #D6336C !important;
    --hov-primary: #A61E4D !important;
    --soft-primary: rgba(214, 51, 108, 0.10) !important;
    --secondary: #B76E79 !important;
    --soft-secondary: rgba(183, 110, 121, 0.14) !important;
}

/* --------------------------------------------------------------------------
   2. BASE / GLOBAL
   -------------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--rm-font-body) !important;
    color: var(--rm-text-mid) !important;
    font-weight: 400 !important;
    background: var(--rm-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--rm-font-body); color: var(--rm-text); }

.text-primary { color: var(--rm-primary) !important; }
.text-secondary { color: var(--rm-gold-dark) !important; }
.text-dark { color: var(--rm-text) !important; }
.text-success { color: var(--rm-success) !important; }
.text-danger { color: var(--rm-danger) !important; }

a { color: var(--rm-primary); }
a:hover, a:focus { color: var(--rm-primary-dark); }

::selection { background: var(--rm-gold); color: #fff; }

/* Elegant serif headings */
.rm-serif {
    font-family: var(--rm-font-serif) !important;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Telugu text */
.rm-telugu, .telugu-text {
    font-family: var(--rm-font-telugu) !important;
    line-height: 1.7 !important;
}

/* Section scaffolding */
.rm-section { position: relative; padding: 4.2rem 0; }
.rm-section-sm { padding: 2.6rem 0; }
.rm-bg-cream { background: var(--rm-cream); }
.rm-bg-ivory { background: var(--rm-ivory); }
.rm-bg-white { background: #fff; }

/* Section title with rose-gold ornament */
.rm-section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.rm-section-head h2 {
    font-family: var(--rm-font-serif);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--rm-primary-dark);
    margin-bottom: 0.65rem;
    line-height: 1.25;
}
.rm-section-head .rm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rm-gold-dark);
    margin-bottom: 0.8rem;
}
.rm-section-head .rm-eyebrow::before,
.rm-section-head .rm-eyebrow::after {
    content: "";
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rm-gold));
}
.rm-section-head .rm-eyebrow::after { background: linear-gradient(90deg, var(--rm-gold), transparent); }
.rm-section-head p { color: var(--rm-text-soft); font-size: 0.98rem; margin: 0; }

/* Gold ornament divider (diamond + lines) */
.rm-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--rm-gold);
}
.rm-ornament::before, .rm-ornament::after {
    content: "";
    height: 1px;
    width: 56px;
    background: linear-gradient(90deg, transparent, var(--rm-gold));
}
.rm-ornament::after { background: linear-gradient(90deg, var(--rm-gold), transparent); }
.rm-ornament .rm-ornament-diamond {
    width: 9px;
    height: 9px;
    background: var(--rm-gold);
    transform: rotate(45deg);
    border-radius: 1.5px;
    box-shadow: 0 0 0 4px rgba(183, 110, 121, 0.18);
}

/* --------------------------------------------------------------------------
   3. BUTTONS
   -------------------------------------------------------------------------- */
.btn { font-weight: 600; letter-spacing: 0.2px; border-radius: var(--rm-radius); transition: all 0.22s ease; }
.btn:focus { box-shadow: 0 0 0 0.22rem rgba(183, 110, 121, 0.35) !important; }

.btn-primary,
.bg-primary-grad {
    background: linear-gradient(135deg, var(--rm-primary) 0%, var(--rm-primary-dark) 100%) !important;
    border: 1px solid var(--rm-primary-dark) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(166, 30, 77, 0.22);
}
.btn-primary:hover, .btn-primary:focus,
.bg-primary-grad:hover {
    background: linear-gradient(135deg, var(--rm-primary-light) 0%, var(--rm-primary) 100%) !important;
    border-color: var(--rm-primary) !important;
    box-shadow: 0 8px 22px rgba(166, 30, 77, 0.30);
    transform: translateY(-1px);
}

/* Signature rose-gold CTA */
.btn-gold {
    background: linear-gradient(135deg, #E09EA8 0%, var(--rm-gold) 55%, var(--rm-gold-dark) 100%) !important;
    border: 1px solid var(--rm-gold-dark) !important;
    color: #5E2038 !important;
    box-shadow: 0 5px 16px rgba(154, 84, 96, 0.38);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-gold:hover, .btn-gold:focus {
    background: linear-gradient(135deg, #ECAEB7 0%, #DB96A0 55%, #B47882 100%) !important;
    color: #4A182C !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(154, 84, 96, 0.5);
}

.btn-outline-primary {
    background: transparent !important;
    border: 1.5px solid var(--rm-primary) !important;
    color: var(--rm-primary) !important;
}
.btn-outline-primary:hover {
    background: var(--rm-primary) !important;
    color: #fff !important;
}

.btn-outline-gold {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid var(--rm-gold-light) !important;
    color: #FEF3F6 !important;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.btn-outline-gold:hover {
    background: rgba(247, 224, 229, 0.22);
    border-color: var(--rm-gold-light) !important;
    color: #fff !important;
}

.btn-soft-primary {
    background: var(--rm-primary-soft) !important;
    color: var(--rm-primary) !important;
    border: 1px solid rgba(214, 51, 108, 0.12) !important;
}
.btn-soft-primary:hover {
    background: rgba(214, 51, 108, 0.14) !important;
    color: var(--rm-primary-dark) !important;
}

.btn-soft-gold {
    background: var(--rm-gold-pale) !important;
    color: var(--rm-gold-dark) !important;
    border: 1px solid rgba(154, 84, 96, 0.25) !important;
}
.btn-soft-gold:hover { background: #F7E7EB !important; }

.btn-light {
    background: #fff !important;
    border: 1px solid var(--rm-border) !important;
    color: var(--rm-text-mid) !important;
}
.btn-light:hover { background: var(--rm-ivory) !important; }

.btn-success {
    background: linear-gradient(135deg, #12A876, var(--rm-success)) !important;
    border: 1px solid #0D7C58 !important;
}

/* Gradient text (was pink) */
.text-primary-grad {
    background: linear-gradient(120deg, var(--rm-gold-dark) 0%, var(--rm-gold) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* SVG gradient stops used across profile icons */
.fill-primary-grad stop:nth-child(1) { stop-color: var(--rm-gold-dark) !important; }
.fill-primary-grad stop:nth-child(2) { stop-color: var(--rm-primary) !important; }
.fill-dark { fill: var(--rm-brown) !important; }

/* --------------------------------------------------------------------------
   4. FORMS
   -------------------------------------------------------------------------- */
.form-control, .form-select {
    border-radius: var(--rm-radius) !important;
    border: 1.5px solid var(--rm-border) !important;
    background: #fff !important;
    color: var(--rm-text) !important;
    font-weight: 500;
    min-height: 46px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--rm-gold) !important;
    box-shadow: 0 0 0 0.22rem rgba(183, 110, 121, 0.22) !important;
}
.form-control::placeholder { color: #B7A4AA; font-weight: 400; }
.form-label {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--rm-brown);
    margin-bottom: 0.45rem;
    letter-spacing: 0.02em;
}
textarea.form-control { min-height: 96px; }

/* bootstrap-select dropdowns */
.bootstrap-select > .dropdown-toggle {
    border-radius: var(--rm-radius) !important;
    border: 1.5px solid var(--rm-border) !important;
    min-height: 46px;
    background: #fff !important;
    color: var(--rm-text) !important;
    font-weight: 500;
}
.bootstrap-select > .dropdown-toggle:focus { border-color: var(--rm-gold) !important; outline: none !important; }
.dropdown-menu {
    border-radius: var(--rm-radius);
    border: 1px solid var(--rm-border);
    box-shadow: var(--rm-shadow-md);
    padding: 6px;
}
.dropdown-item { border-radius: 7px; font-size: 0.9rem; }
.dropdown-item:hover, .dropdown-item.active { background: var(--rm-primary-soft) !important; color: var(--rm-primary-dark); }
.bootstrap-select .form-control { min-height: 40px; }

/* checkbox accent */
.aiz-checkbox input[type="checkbox"] { accent-color: var(--rm-primary); }

/* date range picker */
.daterangepicker { border-radius: var(--rm-radius-lg); box-shadow: var(--rm-shadow-lg); border: 1px solid var(--rm-border); }

/* --------------------------------------------------------------------------
   5. CARDS / BADGES / MISC COMPONENTS
   -------------------------------------------------------------------------- */
.card { border-radius: var(--rm-radius-lg) !important; border: 1px solid var(--rm-border) !important; box-shadow: var(--rm-shadow-sm); }
.card-header { background: var(--rm-cream); border-bottom: 1px solid var(--rm-border); }
.shadow-sm, .shadow-md { box-shadow: var(--rm-shadow-sm) !important; }
.shadow-lg, .shadow-xl { box-shadow: var(--rm-shadow-lg) !important; }
.round-btn { border-radius: var(--rm-radius) !important; }

/* Status badges */
.rm-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3em 0.75em;
    border-radius: 999px;
    line-height: 1.5;
}
.rm-badge-verified { background: rgba(15, 155, 110, 0.12); color: var(--rm-success); border: 1px solid rgba(15, 155, 110, 0.3); }
.rm-badge-premium { background: linear-gradient(135deg, #EEB7BE, var(--rm-gold)); color: #7A2D48; border: 1px solid var(--rm-gold-dark); box-shadow: 0 3px 10px rgba(154, 84, 96, 0.35); }
.rm-badge-new { background: rgba(214, 51, 108, 0.08); color: var(--rm-primary); border: 1px solid rgba(214, 51, 108, 0.22); }
.rm-badge-soft { background: var(--rm-ivory); color: var(--rm-text-soft); border: 1px solid var(--rm-border); }

/* template badges */
.badge-inline { border-radius: 999px; padding: 0.35em 0.85em; font-weight: 600; }
.badge-primary { background: var(--rm-primary) !important; }
.badge-success { background: var(--rm-gold) !important; color: #7A2D48 !important; }
.badge-info { background: var(--rm-ivory) !important; color: var(--rm-text-mid) !important; border: 1px solid var(--rm-border); }

/* Alerts */
.alert { border-radius: var(--rm-radius-lg); border-width: 1px; }
.alert-info { background: var(--rm-gold-pale); border-color: rgba(154, 84, 96, 0.3); color: var(--rm-brown); }

/* Pagination */
.aiz-pagination .page-link,
.pagination .page-link {
    border-radius: 8px !important;
    border: 1.5px solid var(--rm-border) !important;
    color: var(--rm-text-mid) !important;
    margin: 0 3px;
    font-weight: 600;
    min-width: 38px;
    text-align: center;
}
.aiz-pagination .page-item.active .page-link,
.pagination .page-item.active .page-link {
    background: var(--rm-primary) !important;
    border-color: var(--rm-primary) !important;
    color: #fff !important;
}
.aiz-pagination .page-link:hover { border-color: var(--rm-gold) !important; color: var(--rm-primary) !important; }

/* Modals */
.modal-content { border-radius: var(--rm-radius-lg) !important; border: none; box-shadow: var(--rm-shadow-lg); }
.modal-header { border-bottom: 1px solid var(--rm-border); }
.modal-footer { border-top: 1px solid var(--rm-border); }

/* Cookie alert */
.aiz-cookie-alert .bg-dark { background: var(--rm-primary-deeper) !important; }

/* Empty / loading states */
.rm-empty-state { text-align: center; padding: 3.5rem 1.5rem; color: var(--rm-text-soft); }
.rm-empty-state i { font-size: 2.8rem; color: var(--rm-gold); margin-bottom: 0.8rem; display: inline-block; }

/* --------------------------------------------------------------------------
   6. HEADER
   -------------------------------------------------------------------------- */
/* Offset fix for fixed header on inner pages (template adds pt-8 pt-lg-10) */
.aiz-main-wrapper.pt-8 { padding-top: 6.9rem !important; }
@media (min-width: 992px) {
    .aiz-main-wrapper.pt-lg-10 { padding-top: 7.3rem !important; }
    .aiz-main-wrapper.rm-has-memberbar.pt-lg-10 { padding-top: 9.1rem !important; }
    .aiz-main-wrapper.rm-has-memberbar.pt-8 { padding-top: 9.1rem !important; }
}

.rm-header-wrap { will-change: transform; z-index: 1020; }

/* Utility top bar */
.rm-topbar {
    background: var(--rm-primary-deeper);
    border-bottom: 1px solid rgba(221, 173, 181, 0.18);
    font-size: 0.8rem;
    color: rgba(255, 252, 253, 0.78);
    padding: 0.5rem 0;
}
.rm-topbar a { color: rgba(255, 252, 253, 0.85); }
.rm-topbar a:hover { color: var(--rm-gold-light); }
.rm-topbar .rm-topbar-link { display: inline-flex; align-items: center; gap: 6px; }
.rm-topbar .rm-topbar-link i { color: var(--rm-gold); font-size: 0.95rem; }
.rm-topbar .rm-helpline { display: inline-flex; align-items: center; gap: 7px; }
.rm-topbar .rm-helpline i { color: var(--rm-gold); }
.rm-topbar .rm-helpline strong { color: #fff; font-weight: 600; letter-spacing: 0.02em; }

/* Icon buttons in topbar */
.rm-topbar .rm-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: rgba(255, 252, 253, 0.85);
    transition: all 0.2s ease;
}
.rm-topbar .rm-icon-btn:hover { background: rgba(221, 173, 181, 0.16); color: var(--rm-gold-light); }
.rm-topbar .rm-icon-btn .badge-dot { position: absolute; top: 4px; right: 4px; }
.rm-topbar .dropdown-menu { margin-top: 10px; }
.rm-topbar .list-inline-item { margin-left: 4px; }
.rm-topbar .dropdown-toggle::after { display: none; }

/* Main header bar */
.rm-header {
    position: relative;
    background: linear-gradient(120deg, var(--rm-primary-dark) 0%, var(--rm-primary) 58%, #C2255C 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(69, 16, 43, 0.35);
}
.rm-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--rm-pattern-arch-dark);
    background-repeat: repeat-x;
    background-position: top center;
    opacity: 0.9;
    pointer-events: none;
}
.rm-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rm-gold-dark), var(--rm-gold-light), var(--rm-gold), var(--rm-gold-light), var(--rm-gold-dark));
    opacity: 0.9;
}
.rm-header .container { position: relative; z-index: 1; }
.rm-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }

/* Brand */
.rm-brand { display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; }
.rm-brand img { max-height: 46px; width: auto; }
.rm-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.rm-brand-text .rm-brand-name {
    font-family: var(--rm-font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 10px rgba(69, 16, 43, 0.45);
}
.rm-brand-text .rm-brand-name .rm-brand-gold { color: var(--rm-gold-light); }
.rm-brand-text .rm-brand-tag {
    font-size: 0.66rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(221, 173, 181, 0.9);
    font-weight: 500;
    margin-top: 3px;
}
.rm-brand-ornament {
    width: 40px; height: 40px; flex: 0 0 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--rm-gold);
    border-radius: 50%;
    color: var(--rm-gold-light);
    background: radial-gradient(circle at 30% 30%, rgba(221, 173, 181, 0.22), rgba(183, 110, 121, 0.06));
    box-shadow: 0 0 0 4px rgba(183, 110, 121, 0.14);
}
.rm-brand-ornament i { font-size: 1.2rem; }

/* Main navigation */
.rm-nav { display: flex; align-items: stretch; align-self: stretch; }
.rm-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 1.15rem;
    color: rgba(255, 252, 253, 0.92);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}
.rm-nav-link::after {
    content: "";
    position: absolute;
    left: 50%; right: 50%;
    bottom: 14px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--rm-gold);
    transition: all 0.26s ease;
}
.rm-nav-link:hover { color: #fff; }
.rm-nav-link:hover::after { left: 18%; right: 18%; }
.rm-nav-link.rm-active { color: var(--rm-gold-light); }
.rm-nav-link.rm-active::after { left: 18%; right: 18%; background: linear-gradient(90deg, var(--rm-gold-dark), var(--rm-gold-light)); }

/* Header actions */
.rm-header-actions { display: flex; align-items: center; gap: 10px; }
.rm-header-actions .btn { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.rm-login-link {
    color: rgba(255, 252, 253, 0.92);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    border: 1.5px solid rgba(221, 173, 181, 0.4);
    transition: all 0.2s ease;
}
.rm-login-link:hover { background: rgba(221, 173, 181, 0.14); color: var(--rm-gold-light); }

/* Member quick nav row (logged in, desktop) */
.rm-member-nav { border-top: 1px solid rgba(221, 173, 181, 0.16); background: rgba(69, 16, 43, 0.5); }
.rm-member-nav .container { position: relative; }
.rm-member-nav ul { display: flex; align-items: center; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.rm-member-nav li { display: inline-flex; }
.rm-member-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.7rem 1.1rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: rgba(255, 252, 253, 0.75);
    border-bottom: 2.5px solid transparent;
    transition: all 0.2s ease;
}
.rm-member-nav a i { color: var(--rm-gold); font-size: 1rem; }
.rm-member-nav a:hover { color: #fff; background: rgba(221, 173, 181, 0.08); }
.rm-member-nav a.rm-active { color: var(--rm-gold-light); border-bottom-color: var(--rm-gold); }

/* Hamburger */
.rm-hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px; height: 46px;
    padding: 0 11px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(221, 173, 181, 0.45);
    border-radius: 10px;
}
.rm-hamburger span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--rm-gold-light);
    transition: all 0.25s ease;
}
body.rm-menu-open .rm-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.rm-menu-open .rm-hamburger span:nth-child(2) { opacity: 0; }
body.rm-menu-open .rm-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.rm-mobile-menu {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(86vw, 340px);
    background: linear-gradient(160deg, var(--rm-primary-deeper), var(--rm-primary-dark) 70%);
    z-index: 1060;
    transform: translateX(-105%);
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 12px 0 48px rgba(69, 16, 43, 0.5);
}
body.rm-menu-open .rm-mobile-menu { transform: translateX(0); }
.rm-mobile-menu::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 120px;
    background-image: var(--rm-pattern-arch-dark);
    background-repeat: repeat-x;
    opacity: 0.7;
    pointer-events: none;
}
.rm-mobile-menu .rm-mm-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(221, 173, 181, 0.2);
}
.rm-mobile-menu .rm-mm-close {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(221, 173, 181, 0.35);
    color: var(--rm-gold-light);
    font-size: 1.3rem;
}
.rm-mobile-menu .rm-mm-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rm-mobile-menu .rm-mm-user img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--rm-gold); }
.rm-mobile-menu .rm-mm-user .rm-mm-name { color: #fff; font-weight: 600; font-size: 0.95rem; }
.rm-mobile-menu .rm-mm-user .rm-mm-sub { color: rgba(221, 173, 181, 0.85); font-size: 0.72rem; letter-spacing: 0.06em; }

.rm-mobile-menu nav.rm-mm-nav { position: relative; padding: 0.9rem 0.85rem; flex: 1 1 auto; }
.rm-mobile-menu nav.rm-mm-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.95rem 1.05rem;
    margin-bottom: 4px;
    border-radius: 12px;
    color: rgba(255, 252, 253, 0.92);
    font-size: 0.98rem;
    font-weight: 600;
    min-height: 52px;
    transition: all 0.18s ease;
}
.rm-mobile-menu nav.rm-mm-nav a i {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(183, 110, 121, 0.14);
    border: 1px solid rgba(221, 173, 181, 0.3);
    border-radius: 10px;
    color: var(--rm-gold-light);
    font-size: 1.15rem;
    flex: 0 0 38px;
}
.rm-mobile-menu nav.rm-mm-nav a:hover,
.rm-mobile-menu nav.rm-mm-nav a.rm-active { background: rgba(183, 110, 121, 0.16); color: #fff; }

.rm-mobile-menu .rm-mm-foot { position: relative; padding: 1.1rem 1.25rem 1.6rem; border-top: 1px solid rgba(221, 173, 181, 0.2); }
.rm-mobile-menu .rm-mm-cta { display: grid; gap: 10px; }
.rm-mobile-menu .rm-mm-helpline { margin-top: 14px; text-align: center; color: rgba(255, 252, 253, 0.65); font-size: 0.8rem; }
.rm-mobile-menu .rm-mm-helpline i { color: var(--rm-gold); margin-right: 5px; }

.rm-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(69, 16, 43, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1055;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease;
}
body.rm-menu-open .rm-menu-backdrop { opacity: 1; visibility: visible; }

/* Sticky shadow when scrolled */
.rm-header-wrap.rm-scrolled .rm-header { box-shadow: 0 10px 30px rgba(69, 16, 43, 0.45); }

/* Mobile: compact header */
@media (max-width: 991.98px) {
    .rm-header-inner { min-height: 62px; padding: 8px 0; }
    .rm-brand img { max-height: 36px; }
    .rm-brand-text .rm-brand-name { font-size: 1.15rem; }
    .rm-header-actions .btn { padding: 0.45rem 1rem; font-size: 0.8rem; }
    .rm-hamburger { width: 42px; height: 42px; padding: 0 9px; }
    .rm-hamburger span { height: 2px; }
}

@media (max-width: 767.98px) {
    .rm-header-inner { min-height: 58px; }
    .rm-brand { gap: 8px; }
    .rm-brand img { max-height: 34px; }
    .rm-brand-ornament { width: 34px; height: 34px; flex: 0 0 34px; }
    .rm-brand-ornament i { font-size: 1rem; }
    .rm-brand-text .rm-brand-name { font-size: 1.05rem; }
    .rm-brand-text .rm-brand-tag { font-size: 0.6rem; letter-spacing: 0.25em; }
}

/* --------------------------------------------------------------------------
   7. MOBILE BOTTOM NAV (existing — restyled)
   -------------------------------------------------------------------------- */
.aiz-mobile-bottom-nav {
    border-top: 2px solid var(--rm-gold) !important;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 1030;
}
.aiz-mobile-bottom-nav a { padding-top: 6px; }
.aiz-mobile-bottom-nav a i { color: var(--rm-text-soft); }
.aiz-mobile-bottom-nav a span { color: var(--rm-text-soft); }
.aiz-mobile-bottom-nav a:hover i, .aiz-mobile-bottom-nav a:hover span { color: var(--rm-primary); }
.aiz-mobile-bottom-nav .badge-primary { background: var(--rm-primary) !important; }
.aiz-mobile-bottom-nav img { border: 1.5px solid var(--rm-gold); }

/* Body bottom padding so fixed bottom nav doesn't cover content on mobile */
@media (max-width: 1199.98px) {
    body { padding-bottom: 64px; }
}

/* --------------------------------------------------------------------------
   8. FOOTER
   -------------------------------------------------------------------------- */
.rm-footer {
    position: relative;
    background:
        radial-gradient(1100px 380px at 85% -10%, rgba(183, 110, 121, 0.12), transparent 60%),
        linear-gradient(165deg, var(--rm-primary-deeper) 0%, var(--rm-primary-dark) 55%, #4A0E2C 100%);
    color: rgba(255, 250, 251, 0.82);
    padding-top: 4.4rem;
    margin-top: auto;
    overflow: hidden;
}
.rm-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--rm-gold-dark), var(--rm-gold-light), var(--rm-gold), var(--rm-gold-light), var(--rm-gold-dark));
}
.rm-footer::after {
    content: "";
    position: absolute;
    top: 5px; left: 0; right: 0;
    height: 30px;
    background-image: var(--rm-pattern-arch-dark);
    background-repeat: repeat-x;
    opacity: 0.55;
    pointer-events: none;
}
.rm-footer .container { position: relative; z-index: 1; }

.rm-footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.rm-footer-brand img { max-height: 52px; }
.rm-footer-about {
    color: rgba(255, 250, 251, 0.66);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-top: 1rem;
    max-width: 340px;
}
.rm-footer-trust { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 1.2rem; }
.rm-footer-trust .rm-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--rm-gold-light);
    border: 1px solid rgba(221, 173, 181, 0.35);
    background: rgba(183, 110, 121, 0.1);
    padding: 0.4em 0.9em;
    border-radius: 999px;
    letter-spacing: 0.03em;
}
.rm-footer-trust .rm-trust-chip i { font-size: 0.9rem; }

.rm-footer-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rm-gold-light);
    margin-bottom: 1.35rem;
}
.rm-footer-title::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(221, 173, 181, 0.45), transparent);
}
.rm-footer-links { list-style: none; padding: 0; margin: 0; }
.rm-footer-links li { margin-bottom: 0.7rem; }
.rm-footer-links a {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 250, 251, 0.72);
    font-size: 0.92rem;
    transition: all 0.18s ease;
}
.rm-footer-links a::before {
    content: "\25C6";
    font-size: 0.5rem;
    color: var(--rm-gold);
    margin-right: 10px;
    transition: transform 0.18s ease;
}
.rm-footer-links a:hover { color: #fff; transform: translateX(3px); }
.rm-footer-links a:hover::before { transform: scale(1.5); }

.rm-footer-contact { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.rm-footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 0.95rem;
    color: rgba(255, 250, 251, 0.72);
    line-height: 1.6;
}
.rm-footer-contact li i {
    width: 34px; height: 34px;
    flex: 0 0 34px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(183, 110, 121, 0.13);
    border: 1px solid rgba(221, 173, 181, 0.32);
    border-radius: 9px;
    color: var(--rm-gold-light);
    font-size: 0.95rem;
}
.rm-footer-contact li a { color: rgba(255, 250, 251, 0.8); }
.rm-footer-contact li a:hover { color: var(--rm-gold-light); }

.rm-footer-app img { border-radius: 8px; }

/* footer social */
.rm-footer .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(221, 173, 181, 0.3);
    color: var(--rm-gold-light);
    transition: all 0.2s ease;
}
.rm-footer .social a:hover {
    background: var(--rm-gold);
    border-color: var(--rm-gold);
    color: #5E2038;
    transform: translateY(-2px);
}
.rm-footer .social { display: flex; gap: 9px; }

.rm-footer-bottom {
    border-top: 1px solid rgba(221, 173, 181, 0.18);
    padding: 1.5rem 0 1.7rem;
    margin-top: 3rem;
    font-size: 0.84rem;
    color: rgba(255, 250, 251, 0.6);
}
.rm-footer-bottom a { color: var(--rm-gold-light); }

/* --------------------------------------------------------------------------
   9. RTL ESSENTIALS (site supports RTL languages)
   -------------------------------------------------------------------------- */
[dir="rtl"] .rm-nav-link::after { left: auto; right: 50%; }
[dir="rtl"] .rm-mobile-menu { left: auto; right: 0; transform: translateX(105%); }
[dir="rtl"] body.rm-menu-open .rm-mobile-menu { transform: translateX(0); }
[dir="rtl"] .rm-footer-links a:hover { transform: translateX(-3px); }
[dir="rtl"] .rm-footer-links a::before { margin-right: 0; margin-left: 10px; }

/* Pink polish: footer mobile breathing room */
@media (max-width: 575.98px) {
    .rm-footer { padding-top: 3.4rem; }
    .rm-footer-title { font-size: 0.95rem; margin-bottom: 1.05rem; }
    .rm-footer-links li, .rm-footer-contact li { margin-bottom: 0.85rem; }
    .rm-footer-about { line-height: 1.75; }
}
