/* Geldikçe · Kiremit & Adaçayı. Shared palette; tenant content remains independent. */
:root {
  color-scheme: light;
  --g-primary: #9A4438;
  --g-primary-hover: #80372E;
  --g-sage: #899263;
  --g-sage-soft: #E9ECDD;
  --g-paper: #F7F0E6;
  --g-surface: #FFFFFF;
  --g-ink: #352E2A;
  --g-muted: #6C625B;
  --g-line: #E3D8CC;
  --g-success: #346454;
  --g-danger: #B23C44;
  --brand-primary: var(--g-primary);
  --brand-secondary: var(--g-ink);
  --on-primary: #FFFFFF;
  --site-primary: var(--g-primary);
  --platform-bg: var(--g-paper);
  --paper: var(--g-paper);
  --white: var(--g-surface);
  --ink: var(--g-ink);
  --muted: var(--g-muted);
  --line: var(--g-line);
  --accent: var(--g-sage);
  --dark: var(--g-ink);
  background: var(--g-paper);
  color: var(--g-ink);
}
body { background: var(--g-paper); color: var(--g-ink); }
a { color: var(--g-primary); }
button, input, select, textarea { accent-color: var(--g-primary); }
button, .button {
  background: var(--g-primary);
  color: #FFFFFF;
  border-color: var(--g-primary);
}
.button:not(:disabled):hover, button:not(:disabled):hover {
  background: var(--g-primary-hover);
  border-color: var(--g-primary-hover);
}
.button:focus-visible, button:focus-visible, a:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--g-primary);
  outline-offset: 3px;
}
input, select, textarea {
  color: var(--g-ink);
  background: var(--g-surface);
  border-color: var(--g-line);
}
input::placeholder, textarea::placeholder { color: var(--g-muted); opacity: 1; }
.site-header { background: var(--g-paper); border-color: var(--g-line); }
.brand, .brand small, .hero-label { color: var(--g-ink) !important; }
.member-nav a, .member-nav button { color: var(--g-ink); }
.member-nav button, .member-nav button:hover {
  background: transparent;
  border-color: transparent;
}
.member-nav a:hover, .member-nav button:hover { color: var(--g-primary); }
.eyebrow { color: var(--g-primary); }
.welcome-copy h1 { color: var(--g-ink); }
.welcome-copy p { color: var(--g-muted); }
.welcome-art { background: radial-gradient(ellipse, var(--g-sage-soft), transparent 70%); }
.preview-card { box-shadow: 0 22px 38px #75483724; }
.how-it-works, .loyalty-steps article { border-color: var(--g-line); }
.loyalty-steps article { background: var(--g-surface); }
.loyalty-steps article > span {
  color: var(--g-ink);
  background: var(--g-sage-soft);
  opacity: 1;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: .95rem;
}
.wallet-card, .preview-card, .loyalty-card, .branch-symbol {
  background: var(--g-primary) !important;
  color: #FFFFFF !important;
}
.wallet-card > small, .wallet-card .wallet-meta, .wallet-card p { opacity: 1; }
.wallet-greeting, .wallet-section h2 { color: var(--g-ink); }
.wallet-tabs, .wallet-section, .wallet-info, .qr-actions a,
.member-box, .account-list article, .account-list > a,
.branch-card, .loyalty-footer { border-color: var(--g-line); }
.wallet-tabs { grid-template-columns: repeat(4,minmax(0,1fr)); }
.wallet-tabs a { opacity: 1; color: var(--g-muted); font-size: .82rem; }
.wallet-tabs a.selected { color: var(--g-primary); border-color: var(--g-primary); }
.wallet-section, .wallet-info, .qr-actions a, .member-box,
.account-list article, .account-list > a, .legal-document, .branch-card {
  background: var(--g-surface);
}
.qr-actions a { color: var(--g-ink); }
.qr-actions a:hover, .branch-card:hover { border-color: var(--g-primary); }
.qr-actions span { color: var(--g-primary); }
.loyalty-secondary, .secondary {
  background: var(--g-surface) !important;
  color: var(--g-primary) !important;
  border-color: var(--g-line) !important;
}
.loyalty-secondary:hover, .secondary:hover { background: var(--g-paper) !important; }
.compact-ledger article { border-color: var(--g-line); }
.compact-ledger small { color: var(--g-muted); opacity: 1; }
.point-plus { color: var(--g-success); }
.account-list small, .loyalty-footer { color: var(--g-muted); }
.branch-card small { color: var(--g-ink); background: var(--g-sage-soft); }
.branch-intro em { color: var(--g-primary); }
.notice { background: var(--g-sage-soft); color: var(--g-ink); }
.error { background: #F9E8E5; color: #8E3038; }
dialog { color: var(--g-ink); background: var(--g-surface); border-color: var(--g-line); }
dialog::backdrop { background: #352E2ABB; }
.loyalty-admin .admin-sidebar { background: var(--g-surface); border-color: var(--g-line); }
.loyalty-admin .admin-brand { color: var(--g-primary); }
.loyalty-admin .admin-brand span { color: var(--g-muted); }
.loyalty-admin .admin-sidebar nav a { color: var(--g-ink); }
.loyalty-admin .admin-sidebar nav a:hover { background: var(--g-sage-soft); }
.loyalty-admin .admin-main > header small, .loyalty-admin .card > small { color: var(--g-muted); }
.loyalty-admin .card { background: var(--g-surface); border-color: var(--g-line); }
.loyalty-admin th { background: var(--g-paper); color: var(--g-muted); }
.loyalty-admin th, .loyalty-admin td, .loyalty-admin details, .loyalty-admin fieldset { border-color: var(--g-line); }
.loyalty-admin td small { color: var(--g-muted); }
.loyalty-admin .split > *, .loyalty-admin .card, .loyalty-admin .form-grid { min-width: 0; }
.loyalty-admin table { overflow-wrap: anywhere; }
@media(max-width:700px) {
  .member-nav a, .member-nav button { min-height: 44px; display: inline-flex; align-items: center; }
  .member-form .button, .welcome-buttons .button { min-height: 48px; }
}

/* Platform pages are independent of the selected business. */
.g-platform-header { border-bottom: 1px solid var(--g-line); }
.g-platform-header > .wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.g-wordmark { color: var(--g-primary); font-size: 32px; font-weight: 800; letter-spacing: -.065em; text-decoration: none; }
.g-wordmark span { color: var(--g-sage); }
.g-platform-header nav { display: flex; gap: 24px; align-items: center; font-size: 14px; }
.g-platform-header nav a { text-decoration: none; }
.g-platform-header nav .button { padding: 11px 22px; }
.g-platform-header form { margin: 0; }
.g-text-button, .g-text-button:hover { background: transparent; color: var(--g-primary); border: 0; padding: 10px 0; }
.g-platform-main { min-height: 65vh; }
.g-platform-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 72px 0 65px; }
.g-eyebrow { font-size: 12px; letter-spacing: .18em; color: var(--g-primary); font-weight: 700; }
.g-platform-hero h1 { font-size: clamp(42px,5.6vw,76px); letter-spacing: -.065em; line-height: 1.04; margin: 22px 0; font-weight: 750; }
.g-lead { font-size: 19px; line-height: 1.6; color: var(--g-muted); }
.g-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.g-hero-actions .button { padding: 16px 22px; min-height: 50px; text-decoration: none; display: inline-flex; align-items: center; gap: 30px; }
.g-hero-actions > a:not(.button) { font-size: 14px; }
.g-hero-art { position: relative; padding: 46px 24px 40px; min-width: 0; isolation: isolate; }
.g-art-orbit { position: absolute; inset: 0; background: var(--g-sage-soft); border-radius: 50%; z-index: -1; }
.g-demo-card { background: var(--g-primary); color: #FFFFFF; border-radius: 24px; padding: 28px; width: min(100%,390px); margin: auto; transform: rotate(-5deg); box-shadow: 0 25px 35px #75483726; }
.g-demo-name { display: block; font-size: 24px; font-weight: 750; letter-spacing: -.06em; }
.g-demo-name > span { color: #DCE3BB; }
.g-demo-label { display: block; margin-top: 3px; font-size: 11px; }
.g-demo-card > strong { font-size: 36px; letter-spacing: -.04em; line-height: 1.15; display: block; margin: 28px 0; }
.g-demo-bottom { display: flex; gap: 12px; align-items: end; justify-content: space-between; font-size: 11px; }
.g-card-dots { letter-spacing: 3px; color: #E1E6C7; white-space: nowrap; }
.g-art-label { text-align: center; font-size: 13px; margin-top: 32px; color: var(--g-ink); }
.g-platform-steps { border-top: 1px solid var(--g-line); border-bottom: 1px solid var(--g-line); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 35px; padding: 32px 0; }
.g-platform-steps article > span { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--g-sage-soft); border-radius: 50%; font-size: 12px; margin-bottom: 12px; }
.g-platform-steps h2 { font-size: 18px; letter-spacing: -.02em; margin: 0 0 8px; }
.g-platform-steps p { font-size: 14px; line-height: 1.6; color: var(--g-muted); margin: 0; }
.g-discover { padding: 58px 0; scroll-margin-top: 24px; }
.g-section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.g-section-heading h2 { font-size: 30px; letter-spacing: -.04em; margin: 9px 0 0; }
.g-section-heading > p, .g-discover-note { font-size: 13px; color: var(--g-muted); }
.g-business-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.g-business-card { padding: 24px; background: var(--g-surface); border: 1px solid var(--g-line); border-radius: 18px; min-width: 0; }
.g-business-title { display: flex; align-items: center; gap: 15px; }
.g-business-title img, .g-business-initial { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; flex-shrink: 0; }
.g-business-initial { display: grid; place-items: center; background: var(--g-sage-soft); color: var(--g-ink); font-size: 24px; }
.g-business-title h2, .g-business-title h3 { font-size: 20px; margin: 0 0 5px; letter-spacing: -.03em; overflow-wrap: anywhere; }
.g-business-title p { margin: 0; font-size: 13px; color: var(--g-muted); overflow-wrap: anywhere; }
.g-business-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.g-business-card .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; text-decoration: none; font-size: 14px; }
.g-detail-link { flex-basis: 100%; font-size: 13px; margin-top: 8px; }
.g-joined { display: inline-block; background: var(--g-sage-soft); color: var(--g-ink); font-size: 12px; padding: 4px 9px; border-radius: 20px; margin-top: 16px; }
.g-discover-note { margin-top: 20px; }
.g-platform-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; flex-wrap: wrap; border-top: 1px solid var(--g-line); padding: 25px 0; }
.g-platform-footer .g-wordmark { font-size: 24px; }
.g-platform-footer nav { display: flex; gap: 20px; font-size: 13px; }
.g-platform-footer > span { color: var(--g-muted); font-size: 12px; }
.g-my-businesses { padding: 40px 0 60px; }
.g-my-businesses h1 { font-size: 40px; letter-spacing: -.05em; margin: 15px 0; }
.g-my-businesses .g-business-grid { margin-top: 28px; }
.g-membership-date, .g-membership-inactive { color: var(--g-muted); font-size: 13px; margin: 22px 0; }
.g-discover-more { display: inline-block; margin-top: 28px; font-size: 14px; }
.g-platform-form { margin-block: 40px; }
.g-platform-header nav a[aria-current=page] { font-weight: 700; text-decoration: underline; text-underline-offset: 7px; }
.g-business-summary { font-size: 14px; line-height: 1.6; color: var(--g-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; margin: 20px 0 0; }
.g-business-actions { align-items: center; }
.g-business-actions .button { margin: 0; }
.g-account-qr { max-width: 520px; margin: 25px 0 35px; }
.g-account-qr a { min-height: 60px; display: grid; place-items: center; color: var(--g-primary); background: var(--g-surface); }
.g-business-balance { margin: 22px 0; color: var(--g-muted); font-size: 14px; }
.g-business-balance strong { color: var(--g-primary); font-size: 36px; letter-spacing: -.05em; }
.g-wallet-open { display: inline-flex; padding: 12px 15px; min-height: 44px; font-size: 13px; text-decoration: none; }
.g-account-settings { border-top: 1px solid var(--g-line); margin-top: 35px; padding-top: 20px; }
.g-account-settings > summary { color: var(--g-primary); min-height: 44px; padding: 10px 0; }
.g-account-logout { margin-top: 20px; }
.g-reward-badge { display: grid; gap: 5px; background: var(--g-sage-soft); padding: 12px 14px; border-radius: 10px; margin: 18px 0 0; color: var(--g-ink); }
.g-reward-badge strong { font-size: 16px; line-height: 1.4; }
.g-reward-badge span { font-size: 12px; line-height: 1.5; }
.g-reward-muted { background: var(--g-paper); color: var(--g-muted); }
.g-reward-muted strong { font-size: 14px; font-weight: 400; }
/* Card facts use ordinary document flow, independent of the old branch badges. */
.g-business-card { display: flex; flex-direction: column; min-width: 0; }
.g-business-title > div { min-width: 0; flex: 1; }
.g-business-card > .g-business-actions { margin-top: auto; padding-top: 22px; }
.g-business-actions .button { max-width: 100%; white-space: normal; }
.g-points-summary { margin-top: 20px; min-width: 0; }
.g-points-facts { display: grid; gap: 10px; margin: 0; padding: 0; }
.g-points-facts > div { display: grid; grid-template-columns: minmax(105px,.9fr) minmax(0,1.15fr); align-items: start; gap: 10px; }
.g-points-facts dt { margin: 0; font-size: 13px; line-height: 1.5; font-weight: 400; color: var(--g-muted); }
.g-points-facts dd { margin: 0; min-width: 0; font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--g-ink); overflow-wrap: anywhere; }
.g-points-conditions { margin: 12px 0 0; padding: 0; font-size: 12px; line-height: 1.6; color: var(--g-muted); overflow-wrap: anywhere; }
.g-location-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 20px; }
.g-location-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 22px; border: 1px solid var(--g-line); border-radius: 15px; background: var(--g-surface); }
.g-location-card > h3 { margin: 0; font-size: 19px; line-height: 1.4; letter-spacing: -.025em; overflow-wrap: anywhere; }
.g-location-contact { display: grid; gap: 8px; min-width: 0; }
.g-location-contact p { display: block; margin: 0; font-size: 13px; line-height: 1.6; color: var(--g-muted); overflow-wrap: anywhere; }
.g-location-card > .g-points-summary { margin-top: auto; padding-top: 4px; }
@media(max-width:1100px) { .g-location-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) { .g-location-grid { grid-template-columns: 1fr; } }
.g-remove-business { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--g-line); }
.g-remove-business summary { color: var(--g-muted); font-size: 12px; padding: 8px 0; min-height: 36px; }
.g-remove-business p { color: var(--g-muted); font-size: 12px; line-height: 1.6; }
.g-empty-business { padding: 10px 0 25px; }
.g-empty-business .button { display: inline-flex; text-decoration: none; padding: 12px 20px; }
.g-business-intro { max-width: 760px; margin: 25px auto 45px; }
.g-business-intro h1 { font-size: clamp(36px,5vw,60px); letter-spacing: -.05em; margin: 20px 0; }
.g-intro-logo { width: 95px; height: 95px; object-fit: contain; margin: 10px 0 22px; }
.g-back { margin-top: 25px; font-size: 14px; }
.g-business-intro .g-business-actions a { display: inline-flex; min-height: 48px; padding: 12px 24px; text-decoration: none; }
.g-wallet { padding: 30px 0; }
.g-wallet h1 { font-size: 28px; letter-spacing: -.035em; margin: 25px 0; }
.g-wallet-back { display: inline-flex; min-height: 44px; align-items: center; }
.g-join-dialog { width: min(460px,calc(100% - 32px)); padding: 24px; border: 1px solid var(--g-line); border-radius: 15px; }
.g-dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.g-dialog-heading h2 { margin: 4px 0 15px; font-size: 24px; overflow-wrap: anywhere; }
.g-dialog-heading button { min-height: 44px; padding: 9px 12px; }
.g-join-dialog .check-line { margin: 20px 0; }
.g-join-dialog form > button { width: 100%; min-height: 48px; }
.g-qr-photo { position: relative; text-align: center; display: block; cursor: pointer; padding: 14px; }
.g-qr-photo input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.g-scanner { width: min(26rem,calc(100% - 2rem)); border: 1px solid var(--g-line); border-radius: 12px; }
.g-scanner video { display: block; width: 100%; max-height: 50dvh; background: #111; border-radius: 8px; }
.g-manual-code { margin-top: 25px; }
.g-manual-code summary { min-height: 44px; padding: 10px 0; color: var(--g-primary); }
.g-platform-form > h1 { font-size: 32px; }
.g-platform-form h2 { font-size: 25px; letter-spacing: -.04em; margin: 10px 0 24px; }
.g-platform-form > p { line-height: 1.6; color: var(--g-muted); }
.g-platform-form form button { min-height: 46px; }
.g-platform-form textarea { width: 100%; padding: 12px; border: 1px solid var(--g-line); border-radius: 7px; font: inherit; }
.g-form-hint { color: var(--g-muted); font-size: 12px; line-height: 1.5; margin: 0; }
.g-form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.g-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; max-width: 1000px; margin-inline: auto; }
.g-profile-grid .member-box { width: 100%; min-width: 0; align-self: start; }
.g-add-business { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 18px; font-size: 14px; text-decoration: none; }
.g-business-invitation { padding: 32px; margin-bottom: 55px; background: var(--g-sage-soft); display: flex; align-items: center; justify-content: space-between; gap: 25px; border-radius: 18px; }
.g-business-invitation h2 { font-size: 28px; letter-spacing: -.04em; margin: 10px 0; }
.g-business-invitation p:not(.g-eyebrow) { color: var(--g-muted); font-size: 14px; line-height: 1.6; }
.g-business-invitation .button { text-decoration: none; padding: 15px 22px; white-space: nowrap; }
.g-platform-footer nav { flex-wrap: wrap; }
.g-platform-legal { margin: 40px auto; }
.g-application-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.g-embedded-branches { border-top: 1px solid var(--g-line); padding: 30px 0; scroll-margin-top: 24px; }
.g-embedded-branches > h2 { font-size: 25px; letter-spacing: -.03em; margin: 0 0 22px; }
.g-embedded-branches h3 { font-size: 18px; margin: 0 0 14px; }
.g-embedded-branches .branch-card { transition: none; }
.g-embedded-branches .branch-card:hover { transform: none; border-color: var(--g-line); }
.g-embedded-branches .branch-card p { display: block; line-height: 1.6; font-size: 14px; }
.g-embedded-branches .branch-card small { display: inline-block; line-height: 1.5; }
@media(max-width:1000px) {
  .g-business-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .g-profile-grid, .g-form-columns { grid-template-columns: 1fr; }
  .g-profile-grid { gap: 0; }
  .g-profile-grid .member-box + .member-box { margin-top: 0; }
  .g-business-invitation { flex-direction: column; align-items: start; padding: 24px; margin-bottom: 35px; }
  .g-business-invitation h2 { font-size: 25px; }
  .geldikce-platform .wrap { width: calc(100% - 36px); }
  .g-platform-header > .wrap { min-height: 76px; gap: 10px; flex-wrap: wrap; padding: 14px 0; }
  .g-wordmark { font-size: 27px; }
  .g-platform-header nav { gap: 14px; flex-wrap: wrap; font-size: 12px; }
  .g-platform-header nav > a:first-child { display: none; }
  .g-platform-header nav .button { padding: 10px 14px; min-height: 44px; }
  .g-platform-hero { grid-template-columns: 1fr; gap: 30px; padding: 35px 0; }
  .g-platform-hero h1 { font-size: clamp(42px,12vw,64px); margin-top: 15px; }
  .g-lead { font-size: 17px; }
  .g-hero-actions { margin-top: 24px; gap: 20px; }
  .g-hero-art { padding: 30px 20px; max-width: 440px; width: 100%; margin: auto; }
  .g-demo-card { padding: 24px; }
  .g-demo-card > strong { font-size: 32px; margin: 24px 0; }
  .g-platform-steps { grid-template-columns: 1fr; gap: 22px; padding: 28px 0; }
  .g-platform-steps article { display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; }
  .g-platform-steps article > span { grid-row: span 2; margin: 0; }
  .g-business-grid { grid-template-columns: 1fr; }
  .g-business-card { padding: 22px; }
  .g-discover { padding: 34px 0; }
  .g-section-heading h2 { font-size: 27px; }
  .g-platform-footer { gap: 20px; }
}
@media(max-width:700px) {
  .g-profile-grid, .g-form-columns { grid-template-columns: 1fr; }
  .g-profile-grid { gap: 0; }
  .g-profile-grid .member-box + .member-box { margin-top: 0; }
  .g-business-invitation { flex-direction: column; align-items: start; padding: 24px; margin-bottom: 35px; }
  .g-business-invitation h2 { font-size: 25px; }
}
@media(max-width:700px) {
  .g-platform-header > .wrap { padding: 10px 0 0; }
  .g-platform-header nav { width: 100%; justify-content: space-between; gap: 4px; flex-wrap: nowrap; }
  .g-platform-header nav > a, .g-platform-header nav > a:first-child { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; font-size: 14px; }
  .g-business-grid .g-business-actions { gap: 8px; }
  .g-business-balance strong { font-size: 32px; }
}

.g-business-banner { width:100%; aspect-ratio:8/3; overflow:hidden; border-radius:18px; background:#fff; border:1px solid var(--g-border,#e5ddd2); margin:0 0 28px; }
.g-business-banner img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.g-business-banner-logo { display:flex; align-items:center; justify-content:center; padding:20px; box-sizing:border-box; }
.g-business-banner-logo img { width:100%; height:100%; object-fit:contain; }
