/* GLAFIMS Membership - navy & gold */
:root {
  --navy: #0b2e59; --navy-2: #12417a; --gold: #c9a227; --gold-2: #b08a17;
  --ink: #1d2433; --muted: #667085; --line: #e3e7ef; --bg: #f4f6fa; --card: #fff;
  --ok: #1a7f4b; --warn: #b26a00; --bad: #b42318; --info: #175cd3;
  --r: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--navy-2); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: 1.75rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
code { background: #eef1f6; padding: 1px 5px; border-radius: 4px; font-size: .9em; word-break: break-all; }
code.big { font-size: 1.3em; padding: 4px 10px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 24px; padding-bottom: 48px; min-height: 60vh; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; } .danger { color: var(--bad); }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--gold-2); margin: 0 0 6px; font-weight: 600; }
.eyebrow a { color: inherit; text-decoration: none; }

/* header */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-right: auto; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; background: #fff; }
.brand b { display: block; font-size: 1.1rem; letter-spacing: .04em; }
.brand small { display: block; font-size: .72rem; opacity: .75; max-width: 320px; line-height: 1.2; }
.mainnav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mainnav a { color: #dfe7f3; text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: .93rem; }
.mainnav a:hover, .mainnav a.on { color: #fff; background: rgba(255,255,255,.1); }
.mainnav a.btn { color: var(--navy); background: #fff; }
.mainnav a.btn-gold { background: var(--gold); color: #1a1405; }
.mainnav .muted-link { opacity: .7; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }
@media (max-width: 1300px) { .brand small { display: none; } }
@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .mainnav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .nav-open .mainnav { display: flex; }
  .brand small { display: none; }
}

/* footer */
.footer { background: #0a2340; color: #b9c6d8; padding: 32px 0 16px; font-size: .9rem; }
.footer a { color: #e3ebf6; }
.footer-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer .copy { margin-top: 20px; opacity: .6; font-size: .8rem; }

/* cards & layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.card.highlight { border-color: var(--gold); background: #fffcf1; }
.page-head { margin-bottom: 18px; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.grid2, .grid3 { display: grid; gap: 0 18px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid2 > .card, .grid3 > .card { margin-bottom: 18px; }
.span2 { grid-column: span 2; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }

/* forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=search], input:not([type]), select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #cfd6e3; border-radius: 7px; font: inherit; background: #fff; color: inherit;
}
table input:not([type=checkbox]), table select, table textarea { width: auto; padding: 5px 7px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(201,162,39,.35); border-color: var(--gold); }
input[disabled], select[disabled] { background: #f2f4f7; color: #777; }
.help { display: block; color: var(--muted); font-size: .8rem; margin-top: 3px; }
.req { color: var(--bad); }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; font-weight: 400 !important; }
.check input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input { width: auto; flex: 1 1 180px; }
form.inline { display: inline; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px; }
.filters input, .filters select { width: auto; flex: 1 1 150px; }

/* buttons */
.btn { display: inline-block; border: 1px solid var(--navy); background: var(--navy); color: #fff; padding: 9px 16px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; line-height: 1.3; }
.btn:hover { background: var(--navy-2); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn small { display: block; font-weight: 400; font-size: .78rem; opacity: .8; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1a1405; }
.btn-gold:hover { background: #d9b23a; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-dark { background: #fff; color: var(--navy); border-color: #cfd6e3; }
.btn-ghost-dark:hover { background: #f2f4f7; }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-sm { padding: 5px 10px; font-size: .85rem; }
.btn-lg { padding: 12px 22px; font-size: 1.02rem; }
.btn-block { display: block; width: 100%; margin: 8px 0; }

/* alerts */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; border: 1px solid; }
.alert .btn { margin-left: 8px; }
.alert-success { background: #ecfdf3; border-color: #abefc6; color: #05603a; }
.alert-error { background: #fef3f2; border-color: #fecdca; color: #912018; }
.alert-info { background: #eff8ff; border-color: #b2ddff; color: #1849a9; }
.alert-tip { background: #fffaeb; border-color: #fedf89; color: #93370d; }

/* badges & tags */
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: #eef1f6; color: #344054; white-space: nowrap; }
.st-active { background: #dcfae6; color: #067647; }
.st-temporary { background: #fef0c7; color: #93370d; }
.st-pending_payment, .st-applied { background: #e0eaff; color: #3538cd; }
.st-expired, .st-rejected, .st-suspended { background: #fee4e2; color: #b42318; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .78rem; background: #e8eef8; color: var(--navy); margin: 2px 2px 2px 0; }
.tag-gold { background: #fbf3d5; color: #7a5c00; }
.tags { margin: 8px 0; }

/* tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #fafbfd; }
.table.compact td { padding: 5px; }
.kv-table { width: 100%; margin-bottom: 16px; }
.kv-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 12px 6px 0; width: 30%; }
.kv-table td.amount { font-size: 1.5rem; font-weight: 700; color: var(--navy); }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0; font-size: .92rem; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; }

/* tabs & pager */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 9px 13px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 500; font-size: .93rem; }
.tabs a.on { color: var(--navy); border-color: var(--gold); }
.tabs.small a { font-size: .85rem; padding: 6px 10px; }
.pager { display: flex; gap: 4px; flex-wrap: wrap; margin: 12px 0; }
.pager a, .pager span { padding: 5px 11px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; background: #fff; }
.pager .cur { background: var(--navy); color: #fff; }

/* home */
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; background: linear-gradient(135deg, var(--navy), #164a85); color: #fff; padding: 40px; border-radius: 16px; margin-bottom: 24px; }
.hero h1 { color: #fff; font-size: 2.1rem; }
.hero .eyebrow { color: #f1d47a; }
.hero .lead { font-size: 1.08rem; opacity: .9; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; }
.hero-stats div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 16px; text-align: center; }
.hero-stats b { display: block; font-size: 2rem; color: #f1d47a; }
.hero-stats span { font-size: .85rem; opacity: .85; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; padding: 24px; } .hero h1 { font-size: 1.6rem; } }
.features .feature { text-decoration: none; color: inherit; transition: transform .1s; }
.features .feature:hover { transform: translateY(-2px); border-color: var(--gold); }
.features .feature p { margin: 0; color: var(--muted); }

/* member cards */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.member-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 12px; text-align: center; text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: var(--shadow); }
.member-card:hover { border-color: var(--gold); }
.member-card img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; border: 3px solid #f3ead0; background: #eef1f6; }
.member-card b { color: var(--navy); font-size: .95rem; }
.member-card span { font-size: .8rem; color: var(--muted); }
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.unit-card { text-decoration: none; color: inherit; margin: 0; }
.unit-card:hover { border-color: var(--gold); }
.unit-card p { margin: 4px 0; }

/* profile */
.profile { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; } }
.profile-side { text-align: center; align-self: start; }
.profile-side dl.kv { text-align: left; }
.profile-side h1 { font-size: 1.4rem; margin-top: 10px; }
.profile-photo { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; border: 5px solid #f3ead0; background: #eef1f6; }
.link-pill { display: inline-block; margin: 3px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: .85rem; text-decoration: none; }

/* sign-up category picker */
.cat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 12px; }
.cat-option { display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; }
.cat-option:has(input:checked) { border-color: var(--gold); background: #fffcf1; box-shadow: 0 0 0 2px rgba(201,162,39,.25); }
.cat-option b { display: block; color: var(--navy); }
.cat-option em { display: block; font-style: normal; font-weight: 600; color: var(--gold-2); font-size: .9rem; }
.cat-option small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }

/* misc */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.6rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: .85rem; }
.stat-card h3 { margin-bottom: 8px; }
.link-list { padding-left: 18px; margin: 0; } .link-list li { margin: 6px 0; }
.checklist { list-style: none; padding: 0; } .checklist li { padding: 4px 0; } .checklist .ok { color: var(--ok); } .checklist .bad { color: var(--bad); font-weight: 600; }
.steps li { margin-bottom: 8px; }
.verify-result { display: flex; gap: 16px; align-items: center; border-radius: 10px; padding: 16px; margin-top: 16px; }
.verify-result.ok { background: #ecfdf3; border: 1px solid #abefc6; } .verify-result.warn { background: #fffaeb; border: 1px solid #fedf89; }
.verify-result img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; }
.verify-result p { margin: 4px 0; }
.notice { display: block; text-decoration: none; color: inherit; } .notice:hover { border-color: var(--gold); } .notice p { margin: 4px 0; }
.files { padding-left: 0; list-style: none; } .files li { padding: 4px 0; }
.pay-options { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; }
apple-pay-button { --apple-pay-button-width: 100%; --apple-pay-button-height: 46px; --apple-pay-button-border-radius: 8px; display: block; margin-bottom: 10px; }
pre.log { white-space: pre-wrap; font-size: .8rem; max-height: 70vh; overflow: auto; }
.person { padding: 4px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.logo-row { display: flex; gap: 16px; align-items: center; }
details summary { cursor: pointer; margin: 10px 0; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.auth h1 { text-align: center; }
.msg p { margin: 8px 0; }

/* logos, QR codes, social links */
.hero-logo { width: 96px; height: 96px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); margin-bottom: 12px; display: block; }
.form-logo { display: block; width: 72px; height: 72px; margin: 0 auto 8px; }
.footer-logo { width: 72px; height: 72px; border-radius: 50%; background: #fff; flex: none; }
.footer-org { flex: 1 1 260px; }
.profile-welcome { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.profile-welcome img { width: 64px; height: 64px; flex: none; }
.profile-welcome h1 { margin: 0; font-size: 1.6rem; }
.profile-side .profile-name { font-size: 1.3rem; margin-top: 10px; }
.profile-qr { text-align: center; margin: 14px 0 8px; }
.profile-qr img { display: block; margin: 0 auto 4px; border: 1px solid #e3e7ef; border-radius: 8px; background: #fff; }
.qr-card { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qr-card img { border: 1px solid #e3e7ef; border-radius: 8px; background: #fff; flex: none; }
.qr-card > div { flex: 1 1 240px; }
.about-glafims { margin-top: 12px; padding: 12px 14px; background: #f6f8fc; border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; color: #3a4252; }
.about-glafims p { margin: 0; }
.social-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; }
.social-list li { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid #eef1f6; }
.social-list a { display: flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--navy); }
.social-list small { color: #7a8494; margin-left: 26px; overflow-wrap: anywhere; }
.social-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.social-row a { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255,255,255,.1); color: #e3ebf6; }
.social-row a:hover { background: var(--gold); color: #1a1405; }
.soc-facebook svg { color: #1877f2; } .soc-twitter svg { color: #111; } .soc-linkedin svg { color: #0a66c2; }
.soc-instagram svg { color: #c13584; } .soc-youtube svg { color: #ff0000; } .soc-whatsapp svg { color: #25d366; }
.social-row .soc svg { color: inherit; }
@media (max-width: 640px) { .profile-welcome h1 { font-size: 1.25rem; } .profile-welcome img { width: 48px; height: 48px; } }
