/* ============================================================
   Sanskar Matrimony - Design System
   Palette:  #FBF6EF (ivory bg) · #7A1E3C (deep maroon) ·
             #C9A227 (antique gold) · #2E2A2C (ink) ·
             #F4E3D3 (blush) · #4B7B6B (sage - success accents)
   Display face : "Cormorant Garamond" (wedding-invite serif)
   Body face    : "Mulish"
   Signature    : arched profile cards + hairline gold rule motif
   ============================================================ */

:root {
    --ivory: #FBF6EF;
    --maroon: #7A1E3C;
    --maroon-dark: #591430;
    --gold: #C9A227;
    --gold-soft: #E8D5A3;
    --ink: #2E2A2C;
    --blush: #F4E3D3;
    --sage: #4B7B6B;
    --muted: #8A8078;
    --border: #E6D9C8;
    --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Mulish', sans-serif;
    background: var(--ivory);
    color: var(--ink);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: var(--maroon-dark);
    margin: 0 0 12px;
    letter-spacing: 0.3px;
}

h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }

p { margin: 0 0 14px; color: #4a4340; }

a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--gold); }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Divider motif: hairline + diamond, used as section signature --- */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 10px 0 34px;
}
.divider::before, .divider::after {
    content: '';
    height: 1px;
    width: 60px;
    background: var(--gold);
}
.divider span {
    width: 8px; height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
    display: inline-block;
}

/* ---------------- Header ---------------- */
.site-header {
    background: var(--ivory);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}
.brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--maroon-dark);
}
.brand-mark { color: var(--gold); margin-right: 4px; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.main-nav a:hover { color: var(--maroon); }
.btn-nav {
    background: var(--maroon);
    color: #fff !important;
    padding: 9px 18px;
    border-radius: var(--radius);
}
.btn-nav:hover { background: var(--maroon-dark); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--maroon); cursor: pointer; }

/* ---------------- Alerts ---------------- */
.alert { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; font-size: 14.5px; }
.alert-success { background: #E9F3EE; color: var(--sage); border: 1px solid #cfe6db; }
.alert-error { background: #FBEAEA; color: #A13A3A; border: 1px solid #f2caca; }

/* ---------------- Hero ---------------- */
.hero {
    background: linear-gradient(180deg, var(--blush) 0%, var(--ivory) 100%);
    padding: 70px 0 50px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12.5px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 10px;
}
.hero h1 { max-width: 700px; margin: 0 auto 14px; }
.hero p.lead { max-width: 560px; margin: 0 auto 30px; font-size: 17px; }

.search-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    max-width: 780px;
    margin: 0 auto;
    box-shadow: 0 12px 30px rgba(122,30,60,0.07);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 12px;
}
.search-box select, .search-box input {
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    color: var(--ink);
}
.search-box button, .btn {
    background: var(--maroon);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background .2s;
    display: inline-block;
}
.search-box button:hover, .btn:hover { background: var(--maroon-dark); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #b48f1f; color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--maroon); color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; text-align: center; }

/* ---------------- Sections ---------------- */
section.section { padding: 60px 0; }
.section-head { text-align: center; margin-bottom: 10px; }
.section-head .eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 3px; font-size: 12.5px; font-weight: 700; }

/* ---------------- Feature grid (about/home) ---------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 30px;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    text-align: center;
}
.feature-card .icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--blush);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    color: var(--maroon);
    font-size: 20px;
}
.feature-card h3 { font-size: 19px; margin-bottom: 6px; }
.feature-card p { font-size: 14px; margin: 0; }

/* ---------------- Profile cards (arched signature) ---------------- */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 26px;
    margin-top: 30px;
}
.profile-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 120px 120px 8px 8px;
    padding: 22px 18px 24px;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.profile-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(122,30,60,0.12); }
.profile-card .avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold-soft);
    margin: 0 auto 14px;
    display: block;
    background: var(--blush);
}
.profile-card h3 { font-size: 20px; margin-bottom: 2px; }
.profile-card .meta { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.profile-card .tags { font-size: 12.5px; color: var(--sage); margin-bottom: 14px; }

/* ---------------- Forms ---------------- */
.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    max-width: 640px;
    margin: 40px auto;
    box-shadow: 0 12px 30px rgba(122,30,60,0.06);
}
.form-card.wide { max-width: 820px; }
.form-card h2 { text-align: center; }
.form-card .sub { text-align: center; color: var(--muted); margin-bottom: 26px; font-size: 14.5px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=tel], input[type=file], select, textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14.5px;
    background: #fdfaf5;
    color: var(--ink);
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.form-actions { text-align: center; margin-top: 8px; }
.form-note { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------------- Profile view page ---------------- */
.profile-detail {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
    margin: 30px 0;
}
.profile-detail .avatar-lg {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 140px 140px 12px 12px;
    border: 4px solid var(--gold-soft);
    background: var(--blush);
}
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 18px 0 22px; }
.detail-list div span.label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); font-weight: 700; }
.detail-list div span.value { font-size: 15px; }

/* ---------------- Admin ---------------- */
.admin-body { background: #F5F0E9; }
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--maroon-dark); color: #fff; padding: 26px 18px; }
.admin-sidebar .brand { color: #fff; font-size: 22px; margin-bottom: 30px; display: block; }
.admin-sidebar a { display: block; color: #f0e3e9; padding: 10px 12px; border-radius: 6px; font-size: 14.5px; margin-bottom: 4px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.12); color: #fff; }
.admin-main { padding: 34px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--border); }
.stat-card .num { font-family: 'Cormorant Garamond', serif; font-size: 34px; color: var(--maroon); font-weight: 700; }
.stat-card .lbl { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

table.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
table.admin-table th, table.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
table.admin-table th { background: var(--blush); color: var(--maroon-dark); font-weight: 700; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-pending { background: #FCEFD6; color: #9c6b0b; }
.badge-approved { background: #E4F3EA; color: var(--sage); }
.badge-rejected { background: #FBEAEA; color: #A13A3A; }
.action-links a { margin-right: 10px; font-size: 13px; font-weight: 700; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--maroon-dark); color: #f0e3e9; padding: 50px 0 0; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.footer-brand { color: #fff; margin-bottom: 10px; }
.footer-inner p { color: #d9c3cd; font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #f0e3e9; font-size: 14px; }
.footer-links a:hover { color: var(--gold); }
.footer-contact p { margin: 0 0 8px; font-size: 14px; color: #f0e3e9; }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; text-align: center; font-size: 13px; color: #d9c3cd; }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
    .feature-grid { grid-template-columns: 1fr; }
    .search-box { grid-template-columns: 1fr 1fr; }
    .profile-detail { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .admin-shell { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .main-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--border); padding: 16px 20px; gap: 14px; }
    .main-nav.open { display: flex; }
    .nav-toggle { display: block; }
    .search-box { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    h1 { font-size: 32px; }
}

/* ============================================================
   UPGRADE ADDITIONS: nav badges, plans/pricing, interests, matches
   ============================================================ */

/* --- Nav "interest" badge --- */
.nav-with-badge { position: relative; }
.nav-badge {
    background: var(--gold);
    color: var(--maroon-dark);
    font-size: 11px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 20px;
    margin-left: 4px;
    vertical-align: middle;
}
.admin-nav-badge {
    background: var(--gold);
    color: var(--maroon-dark);
    font-size: 11px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 20px;
    margin-left: 4px;
}
.stat-card.stat-alert { border-color: var(--gold); background: #FFFBF0; }

/* --- Optional tag / hint text on forms --- */
.optional-tag { color: var(--muted); font-weight: 400; font-size: 12px; text-transform: none; letter-spacing: 0; }
.field-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* --- Featured / premium flair on profile cards --- */
.profile-card { position: relative; }
.profile-card.profile-featured {
    border-color: var(--gold);
    box-shadow: 0 10px 26px rgba(201,162,39,0.18);
}
.featured-flag {
    position: absolute;
    top: 12px; left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--maroon-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* --- Match flag on profile detail page --- */
.match-flag {
    text-align: center;
    margin-top: 12px;
    background: var(--blush);
    color: var(--maroon-dark);
    font-weight: 800;
    padding: 8px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--gold-soft);
}

/* --- Tabs (My Interests page) --- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin: 26px 0 6px; }
.tab-link {
    padding: 10px 18px;
    font-weight: 700;
    font-size: 14px;
    color: var(--muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}
.tab-link.active { color: var(--maroon); border-bottom-color: var(--maroon); }
.tab-badge {
    background: var(--maroon);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 20px;
    margin-left: 4px;
}

/* --- Interest rows list --- */
.interest-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.interest-row {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
}
.interest-row.match-row { border-color: var(--gold); background: #FFFDF6; }
.interest-row .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-soft); background: var(--blush); }
.interest-info h3 { font-size: 17px; margin-bottom: 2px; }
.interest-info .meta { font-size: 13px; color: var(--muted); }
.interest-actions { display: flex; gap: 8px; }
.contact-line { font-size: 13.5px; margin-top: 4px; color: var(--sage); font-weight: 600; }
.contact-line.locked { color: var(--muted); font-weight: 500; }

/* --- Pricing plans --- */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 30px;
    align-items: stretch;
}
.plan-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 30px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(122,30,60,0.1); }
.plan-card.plan-highlight { border: 2px solid var(--gold); box-shadow: 0 14px 30px rgba(201,162,39,0.18); }
.plan-card.plan-current { border-color: var(--sage); }
.plan-tag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: var(--maroon-dark);
    font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
    padding: 4px 14px; border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.plan-card h3 { margin-bottom: 6px; }
.plan-price { margin-bottom: 10px; }
.plan-price .amount { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 700; color: var(--maroon); }
.plan-price .period { font-size: 13px; color: var(--muted); }
.plan-desc { font-size: 13.5px; min-height: 44px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 22px; text-align: left; flex-grow: 1; }
.plan-features li { font-size: 13.5px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.plan-features li:last-child { border-bottom: none; }

/* --- Checkout / payment box --- */
.payment-box {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    align-items: center;
    background: var(--blush);
    border: 1px solid var(--gold-soft);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 22px;
}
.payment-box p { margin: 0 0 6px; font-size: 14px; }
.qr-img { width: 100%; border-radius: 8px; border: 1px solid var(--border); background: #fff; padding: 6px; }

/* ---------------- Responsive additions ---------------- */
@media (max-width: 960px) {
    .plans-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .plans-grid { grid-template-columns: 1fr; }
    .interest-row { grid-template-columns: 48px 1fr; }
    .interest-actions { grid-column: 1 / -1; justify-content: flex-start; margin-top: 8px; }
    .payment-box { grid-template-columns: 1fr; text-align: center; }
    .qr-img { max-width: 160px; margin: 0 auto; }
}
