    :root {
      --teal: #3FA0AD;
      --teal-dark: #2D7A85;
      --teal-darker: #1E5A63;
      --teal-pale: #D4ECEF;
      --gold: #E8B547;
      --gold-bright: #F5CF5A;
      --pink-bright: #E87598;
      --pistachio: #A8C88A;
      --pistachio-dark: #7FA668;
      --cream: #FEF8E8;
      --cream-warm: #FAEEC8;
      --ink: #1A2E33;
      --ink-soft: #3D4F54;
      --muted: #7A8A8E;
      --border: rgba(26, 46, 51, 0.12);
      --danger: #E87598;
      --font-display: 'Fraunces', Georgia, serif;
      --font-body: 'Inter', sans-serif;
      --font-hand: 'Caveat', cursive;
      --font-ar: 'Cairo', 'Inter', sans-serif;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: var(--font-body);
      background: var(--cream);
      color: var(--ink);
      min-height: 100vh;
    }

    html[dir="rtl"] body {
      font-family: var(--font-ar);
    }

    html[dir="rtl"] .profile-stats {
      margin-left: 0;
      margin-right: auto;
    }

    /* Nav */
    .nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(254, 248, 232, 0.9);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      padding: 16px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
    }

    .nav-logo {
      font-family: var(--font-display);
      font-weight: 900;
      font-style: italic;
      font-size: 28px;
      color: var(--teal-dark);
      text-decoration: none;
      letter-spacing: -1px;
      flex-shrink: 0;
      cursor: default;
      user-select: none;
    }

    .nav-logo em {
      color: var(--gold);
    }

    .nav-actions {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
    }

    .nav-link {
      color: var(--ink-soft);
      text-decoration: none;
      font-size: 13px;
      font-weight: 600;
      padding: 10px 14px;
      border-radius: 999px;
    }

    .nav-link:hover {
      background: var(--teal-pale);
      color: var(--teal-darker);
    }

    .nav-btn {
      border: none;
      background: none;
      cursor: pointer;
      font-family: inherit;
    }

    /* Inline language switcher in top nav */
    .lang-switch {
      display: inline-flex;
      gap: 2px;
      background: white;
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 3px;
    }

    .lang-btn {
      border: none;
      background: transparent;
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      color: var(--ink-soft);
      font-family: inherit;
      transition: background 0.15s, color 0.15s;
      min-width: 36px;
    }

    .lang-btn:hover {
      color: var(--ink);
    }

    .lang-btn.active {
      background: var(--ink);
      color: var(--gold-bright);
    }

    /* Main Layout */
    .account-container {
      max-width: 1200px;
      margin: 40px auto;
      padding: 0 24px;
    }

    /* Profile Header */
    .profile-header {
      background: linear-gradient(135deg, var(--teal-darker), var(--teal-dark));
      border-radius: 24px;
      padding: 40px;
      color: var(--cream);
      display: flex;
      gap: 24px;
      align-items: center;
      margin-bottom: 24px;
      position: relative;
      overflow: hidden;
    }

    .profile-header::before {
      content: '';
      position: absolute;
      top: -40px;
      right: -40px;
      width: 200px;
      height: 200px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(232, 181, 71, 0.2), transparent 70%);
      pointer-events: none;
    }

    .profile-avatar {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: var(--gold);
      color: var(--ink);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-display);
      font-weight: 900;
      font-size: 32px;
      border: 3px solid var(--gold-bright);
      flex-shrink: 0;
    }

    .profile-info h1 {
      font-family: var(--font-display);
      font-weight: 900;
      font-style: italic;
      font-size: 32px;
      color: var(--gold-bright);
      margin-bottom: 4px;
    }

    html[dir="rtl"] .profile-info h1 {
      font-family: var(--font-ar);
      font-style: normal;
    }

    .profile-info p {
      font-size: 14px;
      opacity: 0.9;
    }

    .profile-loyalty {
      font-family: var(--font-hand);
      font-size: 18px;
      color: var(--gold-bright);
      margin-top: 8px;
    }

    html[dir="rtl"] .profile-loyalty {
      font-family: var(--font-ar);
      font-size: 15px;
    }

    .profile-stats {
      display: flex;
      gap: 24px;
      margin-left: auto;
    }

    .profile-stat {
      text-align: center;
    }

    .profile-stat-value {
      font-family: var(--font-display);
      font-weight: 900;
      font-size: 28px;
      color: var(--gold-bright);
      min-height: 34px;
    }

    .profile-stat-label {
      font-size: 10px;
      letter-spacing: 2px;
      text-transform: uppercase;
      opacity: 0.7;
    }

    /* Loyalty progress bar inside profile header */
    .loyalty-progress {
      width: 100%;
      margin-top: 14px;
      background: rgba(255, 255, 255, 0.15);
      border-radius: 999px;
      height: 8px;
      overflow: hidden;
    }

    .loyalty-progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--gold), var(--gold-bright));
      border-radius: 999px;
      transition: width 0.6s ease;
      width: 0%;
    }

    .loyalty-hint {
      font-size: 12px;
      opacity: 0.85;
      margin-top: 6px;
      letter-spacing: 0.3px;
    }

    /* Tabs */
    .account-tabs {
      display: flex;
      gap: 4px;
      background: white;
      border-radius: 16px;
      padding: 6px;
      margin-bottom: 24px;
      /* Enable horizontal scroll as fallback but with nicer visual */
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      scrollbar-color: var(--border) transparent;
    }

    .account-tabs::-webkit-scrollbar {
      height: 4px;
    }

    .account-tabs::-webkit-scrollbar-thumb {
      background: var(--border);
      border-radius: 4px;
    }

    .account-tabs::-webkit-scrollbar-track {
      background: transparent;
    }

    .account-tab {
      padding: 10px 14px;
      border: none;
      background: transparent;
      cursor: pointer;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      color: var(--muted);
      font-family: inherit;
      border-radius: 10px;
      white-space: nowrap;
      transition: background 0.15s, color 0.15s;
      flex-shrink: 0;
    }

    .account-tab:hover {
      background: var(--cream);
      color: var(--ink);
    }

    .account-tab.active {
      background: var(--ink);
      color: var(--gold-bright);
    }

    .account-tab:focus-visible {
      outline: 2px solid var(--teal);
      outline-offset: 2px;
    }

    /* Arabic: no uppercase (looks broken with Arabic glyphs) */
    html[dir="rtl"] .account-tab {
      text-transform: none;
      letter-spacing: normal;
      font-size: 13px;
    }

    /* Content */
    .account-section {
      display: none;
      animation: fadeIn 0.3s;
    }

    .account-section.active {
      display: block;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(8px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .section-title {
      font-family: var(--font-display);
      font-weight: 900;
      font-style: italic;
      font-size: 28px;
      color: var(--ink);
      margin-bottom: 16px;
    }

    html[dir="rtl"] .section-title {
      font-family: var(--font-ar);
      font-style: normal;
    }

    .section-subtitle {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 18px;
      margin: 24px 0 12px;
    }

    html[dir="rtl"] .section-subtitle {
      font-family: var(--font-ar);
    }

    /* Cards */
    .card {
      background: white;
      border-radius: 16px;
      padding: 24px;
      margin-bottom: 16px;
      border: 1px solid var(--border);
    }

    .card h3 {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 18px;
      margin-bottom: 12px;
    }

    html[dir="rtl"] .card h3 {
      font-family: var(--font-ar);
    }

    .card .card-desc {
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 12px;
      line-height: 1.5;
    }

    .card.danger {
      border-color: var(--danger);
    }

    .card.danger h3 {
      color: var(--danger);
    }

    /* Orders List */
    .order-card {
      display: grid;
      grid-template-columns: auto 1fr auto auto;
      gap: 20px;
      align-items: center;
      padding: 20px;
      background: white;
      border-radius: 16px;
      border: 1px solid var(--border);
      margin-bottom: 12px;
      transition: all 0.2s;
      cursor: pointer;
    }

    .order-card:hover {
      box-shadow: 0 8px 24px rgba(26, 46, 51, 0.08);
    }

    .order-card:focus-visible {
      outline: 2px solid var(--teal);
      outline-offset: 2px;
    }

    .order-status-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .order-status-dot.pending {
      background: var(--gold);
    }

    .order-status-dot.preparing,
    .order-status-dot.confirmed {
      background: var(--pink-bright);
      animation: pulse 1.5s infinite;
    }

    .order-status-dot.ready,
    .order-status-dot.completed {
      background: var(--pistachio-dark);
    }

    .order-status-dot.delivered {
      background: var(--muted);
    }

    .order-status-dot.cancelled {
      background: #999;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0.5;
      }
    }

    .order-info h3 {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 18px;
      margin-bottom: 4px;
    }

    html[dir="rtl"] .order-info h3 {
      font-family: var(--font-ar);
    }

    .order-info p {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.5;
    }

    .order-info .order-updated {
      font-size: 11px;
      color: var(--muted);
      margin-top: 4px;
      opacity: 0.8;
    }

    .order-price {
      font-family: var(--font-display);
      font-weight: 900;
      font-size: 22px;
      color: var(--gold);
      white-space: nowrap;
    }

    .order-arrow {
      color: var(--muted);
      font-size: 20px;
    }

    html[dir="rtl"] .order-arrow {
      transform: scaleX(-1);
    }

    /* Order status badges (inside list) */
    .status-badge {
      display: inline-block;
      padding: 3px 10px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.5px;
      background: var(--cream);
      color: var(--ink-soft);
    }

    .status-badge.preparing,
    .status-badge.confirmed {
      background: #FFE4EC;
      color: #B8456B;
    }

    .status-badge.ready,
    .status-badge.completed {
      background: #E4F0D8;
      color: #557A3F;
    }

    .status-badge.pending {
      background: #FFF3D4;
      color: #8B6914;
    }

    .status-badge.delivered {
      background: var(--teal-pale);
      color: var(--teal-darker);
    }

    .status-badge.cancelled {
      background: #EEE;
      color: var(--muted);
    }

    /* Order details modal */
    .modal-bg {
      position: fixed;
      inset: 0;
      background: rgba(26, 46, 51, 0.6);
      z-index: 200;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      backdrop-filter: blur(6px);
    }

    .modal-bg.open {
      display: flex;
    }

    .modal-box {
      background: white;
      border-radius: 20px;
      padding: 28px;
      max-width: 520px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
    }

    .modal-box h3 {
      font-family: var(--font-display);
      font-weight: 900;
      font-style: italic;
      font-size: 24px;
      margin-bottom: 4px;
    }

    html[dir="rtl"] .modal-box h3 {
      font-family: var(--font-ar);
      font-style: normal;
    }

    .modal-close-x {
      position: absolute;
      top: 14px;
      right: 14px;
      background: transparent;
      border: none;
      font-size: 24px;
      cursor: pointer;
      color: var(--muted);
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    html[dir="rtl"] .modal-close-x {
      right: auto;
      left: 14px;
    }

    .modal-close-x:hover {
      background: var(--cream);
      color: var(--ink);
    }

    /* ===== Order details modal — professional layout ===== */
    .order-modal-head {
      margin: 2px 44px 18px 0;
    }

    html[dir="rtl"] .order-modal-head {
      margin: 2px 0 18px 44px;
    }

    .order-modal-eyebrow {
      display: inline-block;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--teal-dark);
      margin-bottom: 4px;
    }

    .order-modal-head h3 {
      font-size: 23px;
      letter-spacing: -0.3px;
      line-height: 1.15;
      margin: 0;
    }

    .order-modal-meta {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 9px;
      font-size: 13px;
      color: var(--muted);
    }

    .order-section {
      background: var(--cream);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 12px 16px;
      margin-bottom: 14px;
    }

    .order-section-title {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 4px;
    }

    .order-item-row {
      display: flex;
      align-items: baseline;
      gap: 10px;
      padding: 9px 0;
      border-bottom: 1px dashed var(--border);
      font-size: 15px;
    }

    .order-item-row:last-child {
      border-bottom: none;
    }

    .order-item-row .item-qty {
      flex: 0 0 auto;
      min-width: 28px;
      font-weight: 800;
      color: var(--teal-dark);
      font-variant-numeric: tabular-nums;
    }

    .order-item-row .item-name {
      flex: 1;
      color: var(--ink);
    }

    .order-item-row .item-price {
      white-space: nowrap;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      color: var(--ink);
    }

    .order-summary {
      padding: 2px 4px 0;
    }

    .order-summary-line {
      display: flex;
      justify-content: space-between;
      font-size: 14px;
      color: var(--ink-soft);
      padding: 6px 0;
    }

    .order-summary-line .pay-val {
      font-weight: 600;
      color: var(--ink);
    }

    .order-summary-line.save {
      color: #557A3F;
      font-weight: 700;
    }

    .order-summary-line.total {
      font-family: var(--font-display);
      font-weight: 900;
      font-size: 22px;
      color: var(--ink);
      align-items: baseline;
      padding: 14px 0 2px;
      margin-top: 6px;
      border-top: 2px solid var(--border);
    }

    .order-summary-line.total .amount {
      color: var(--gold);
    }

    .order-address-block {
      margin-top: 6px;
      padding: 14px 16px;
      background: var(--teal-pale);
      border-radius: 12px;
      font-size: 13px;
      line-height: 1.55;
      color: var(--teal-darker);
    }

    .order-modal-actions {
      display: flex;
      gap: 10px;
      margin-top: 22px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .order-modal-actions .btn-danger {
      background: #fff;
      color: #C0392B;
      border: 1.5px solid rgba(192, 57, 43, 0.35);
    }

    .order-modal-actions .btn-danger:hover {
      background: #C0392B;
      color: #fff;
      border-color: #C0392B;
    }

    /* ===== Payment badge (modal meta) ===== */
    .pay-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 10px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.4px;
    }

    .pay-badge.paid {
      background: #E4F0D8;
      color: #557A3F;
    }

    .pay-badge.unpaid {
      background: #FFF3D4;
      color: #8B6914;
    }

    /* ===== "On the way" status colours (list + modal) ===== */
    .status-badge.out_for_delivery {
      background: var(--teal-pale);
      color: var(--teal-darker);
    }

    .order-status-dot.out_for_delivery {
      background: var(--teal);
    }

    /* ===== Delivery progress tracker ===== */
    .order-track-wrap {
      margin-bottom: 16px;
    }

    .order-track {
      display: flex;
      align-items: flex-start;
    }

    .ot-step {
      flex: 1 1 0;
      position: relative;
      text-align: center;
      min-width: 0;
    }

    .ot-step .ot-dot {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      margin: 0 auto 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 900;
      color: #fff;
      background: var(--border);
      position: relative;
      z-index: 2;
    }

    .ot-step::before {
      content: "";
      position: absolute;
      top: 13px;
      right: 50%;
      width: 100%;
      height: 3px;
      background: var(--border);
      z-index: 1;
    }

    .ot-step:first-child::before {
      display: none;
    }

    html[dir="rtl"] .ot-step::before {
      right: auto;
      left: 50%;
    }

    .ot-step.done .ot-dot {
      background: var(--teal-dark);
    }

    .ot-step.done::before {
      background: var(--teal-dark);
    }

    .ot-step.current .ot-dot {
      background: var(--gold);
      color: var(--ink);
      box-shadow: 0 0 0 4px rgba(232, 181, 71, 0.25);
      animation: otPulse 1.6s ease-in-out infinite;
    }

    @keyframes otPulse {
      0%, 100% { box-shadow: 0 0 0 4px rgba(232, 181, 71, 0.25); }
      50%      { box-shadow: 0 0 0 7px rgba(232, 181, 71, 0.12); }
    }

    .ot-step .ot-lbl {
      font-size: 11.5px;
      font-weight: 700;
      color: var(--ink-soft);
      line-height: 1.2;
    }

    .ot-step.todo .ot-lbl {
      color: var(--muted);
      font-weight: 600;
    }

    .ot-step .ot-ts {
      font-size: 10.5px;
      color: var(--muted);
      margin-top: 2px;
      font-variant-numeric: tabular-nums;
      min-height: 12px;
    }

    .order-track-note {
      margin-top: 12px;
      text-align: center;
      font-size: 13px;
      font-weight: 700;
      color: var(--teal-darker);
      background: var(--teal-pale);
      padding: 8px 12px;
      border-radius: 10px;
    }

    .order-cancelled-banner {
      margin-bottom: 16px;
      padding: 12px 16px;
      background: #FBEAEA;
      color: #C0392B;
      border-radius: 12px;
      font-weight: 800;
      font-size: 14px;
      text-align: center;
    }

    /* MwSt (included tax) — muted sub-line under the total */
    .order-summary-line.mwst {
      font-size: 12px;
      color: var(--muted);
      padding: 4px 0 0;
    }

    /* Gift Cards Grid */
    .giftcards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 16px;
    }

    .giftcard-item {
      border-radius: 20px;
      padding: 28px;
      color: white;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.2s;
    }

    .giftcard-item:hover {
      transform: translateY(-4px);
    }

    .giftcard-item.sent {
      background: linear-gradient(135deg, var(--teal-dark), var(--teal-darker));
    }

    .giftcard-item.received {
      background: linear-gradient(135deg, var(--gold), var(--pink-bright));
    }

    .giftcard-item.used {
      background: linear-gradient(135deg, var(--muted), #555);
      opacity: 0.75;
    }

    .giftcard-label {
      font-size: 10px;
      letter-spacing: 2px;
      text-transform: uppercase;
      opacity: 0.8;
      margin-bottom: 8px;
    }

    .giftcard-amount {
      font-family: var(--font-display);
      font-weight: 900;
      font-size: 40px;
      color: var(--gold-bright);
      line-height: 1;
    }

    .giftcard-item.received .giftcard-amount {
      color: white;
    }

    .giftcard-balance {
      font-size: 14px;
      margin-top: 4px;
      opacity: 0.9;
    }

    .giftcard-code {
      font-family: monospace;
      font-size: 12px;
      letter-spacing: 1.5px;
      background: rgba(0, 0, 0, 0.2);
      padding: 8px 12px;
      border-radius: 6px;
      margin-top: 16px;
      text-align: center;
      direction: ltr;
    }

    .giftcard-meta {
      font-size: 11px;
      margin-top: 12px;
      opacity: 0.8;
    }

    /* Addresses */
    .address-card {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
      padding: 20px;
      background: white;
      border-radius: 16px;
      border: 1px solid var(--border);
      margin-bottom: 12px;
    }

    .address-card.default {
      border-color: var(--gold);
      background: linear-gradient(135deg, var(--cream-warm), white);
    }

    .address-label {
      display: inline-block;
      padding: 4px 10px;
      background: var(--teal-pale);
      color: var(--teal-darker);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      border-radius: 999px;
      margin-bottom: 8px;
    }

    .address-card.default .address-label {
      background: var(--gold);
      color: var(--ink);
    }

    .address-details p {
      font-size: 14px;
      line-height: 1.5;
    }

    .address-actions {
      display: flex;
      gap: 8px;
      flex-shrink: 0;
      flex-wrap: wrap;
    }

    .action-btn {
      padding: 8px 12px;
      border: none;
      background: var(--cream);
      border-radius: 8px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
    }

    .action-btn:hover {
      background: var(--teal-pale);
    }

    .action-btn.danger {
      color: var(--pink-bright);
    }

    .action-btn:focus-visible {
      outline: 2px solid var(--teal);
      outline-offset: 2px;
    }

    /* Profile Form */
    .profile-form {
      max-width: 600px;
    }

    .form-field {
      margin-bottom: 16px;
    }

    .form-field label {
      display: block;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--ink-soft);
      margin-bottom: 6px;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
      width: 100%;
      padding: 12px 16px;
      border: 2px solid var(--border);
      border-radius: 12px;
      font-size: 14px;
      font-family: inherit;
      color: var(--ink);
      background: var(--cream);
    }

    .form-field input:focus,
    .form-field select:focus,
    .form-field textarea:focus {
      outline: none;
      border-color: var(--teal);
      background: white;
    }

    .form-field input:disabled {
      opacity: 0.7;
      cursor: not-allowed;
    }

    .form-field input[aria-invalid="true"],
    .form-field input.invalid {
      border-color: var(--danger);
      background: #FFF5F8;
    }

    .form-field .field-hint {
      font-size: 11px;
      color: var(--muted);
      margin-top: 4px;
      letter-spacing: 0.2px;
    }

    .form-field .field-error {
      display: none;
      font-size: 12px;
      color: var(--danger);
      margin-top: 4px;
      font-weight: 600;
    }

    .form-field .field-error.show {
      display: block;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    /* Checkbox row */
    .checkbox-row {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      font-size: 14px;
      cursor: pointer;
      line-height: 1.5;
      padding: 6px 0;
    }

    .checkbox-row input[type="checkbox"] {
      margin-top: 3px;
      accent-color: var(--teal-dark);
      width: 18px;
      height: 18px;
      flex-shrink: 0;
    }

    .checkbox-row span {
      flex: 1;
    }

    /* Buttons */
    .btn {
      padding: 12px 20px;
      border-radius: 999px;
      border: none;
      cursor: pointer;
      font-family: inherit;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      transition: all 0.2s;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .btn-primary {
      background: var(--ink);
      color: var(--gold-bright);
    }

    .btn-primary:hover {
      background: var(--teal-darker);
    }

    .btn-primary:disabled {
      opacity: 0.6;
      cursor: wait;
    }

    .btn-danger {
      background: transparent;
      color: var(--danger);
      border: 1px solid var(--danger);
    }

    .btn-danger:hover {
      background: var(--danger);
      color: white;
    }

    .btn-secondary {
      background: var(--cream);
      color: var(--ink);
    }

    .btn-secondary:hover {
      background: var(--cream-warm);
    }

    .btn-ghost {
      background: transparent;
      color: var(--ink-soft);
      border: 1px solid var(--border);
    }

    .btn-ghost:hover {
      background: var(--cream);
      color: var(--ink);
    }

    .btn-sm {
      padding: 8px 14px;
      font-size: 11px;
    }

    .btn:focus-visible {
      outline: 2px solid var(--teal);
      outline-offset: 2px;
    }

    /* Spinner */
    .spinner {
      width: 14px;
      height: 14px;
      border: 2px solid currentColor;
      border-right-color: transparent;
      border-radius: 50%;
      display: inline-block;
      animation: spin 0.7s linear infinite;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    /* Empty State */
    .empty-state {
      text-align: center;
      padding: 60px 24px;
    }

    .empty-state-icon {
      font-size: 64px;
      margin-bottom: 16px;
    }

    .empty-state h3 {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 24px;
      margin-bottom: 8px;
    }

    html[dir="rtl"] .empty-state h3 {
      font-family: var(--font-ar);
    }

    .empty-state p {
      color: var(--muted);
      font-size: 15px;
      margin-bottom: 20px;
      line-height: 1.5;
    }

    /* Error State */
    .error-state {
      text-align: center;
      padding: 40px 24px;
      background: #FFF5F8;
      border: 1px solid #FFD4DF;
      border-radius: 16px;
      margin-bottom: 16px;
    }

    .error-state-icon {
      font-size: 48px;
      margin-bottom: 12px;
    }

    .error-state h3 {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 18px;
      color: #B8456B;
      margin-bottom: 6px;
    }

    html[dir="rtl"] .error-state h3 {
      font-family: var(--font-ar);
    }

    .error-state p {
      color: var(--ink-soft);
      font-size: 13px;
      margin-bottom: 16px;
    }

    /* Loading skeleton */
    .skeleton {
      background: linear-gradient(90deg, #eee, #f5f5f5, #eee);
      background-size: 200% 100%;
      animation: skel 1.2s ease-in-out infinite;
      border-radius: 8px;
    }

    @keyframes skel {
      0% {
        background-position: 200% 0
      }

      100% {
        background-position: -200% 0
      }
    }

    .skel-line {
      height: 14px;
      margin-bottom: 10px;
    }

    /* Redeem Gift Card */
    .redeem-box {
      background: linear-gradient(135deg, var(--gold), var(--gold-bright));
      border-radius: 16px;
      padding: 24px;
      margin-bottom: 16px;
      display: flex;
      gap: 16px;
      align-items: center;
      flex-wrap: wrap;
    }

    .redeem-box h3 {
      font-family: var(--font-display);
      font-weight: 900;
      font-style: italic;
      font-size: 20px;
      color: var(--ink);
      margin-bottom: 4px;
    }

    html[dir="rtl"] .redeem-box h3 {
      font-family: var(--font-ar);
      font-style: normal;
    }

    .redeem-box .redeem-text {
      flex: 1;
      min-width: 200px;
    }

    .redeem-box .redeem-text p {
      color: var(--ink-soft);
      font-size: 13px;
    }

    .redeem-box input {
      padding: 12px 16px;
      border: 2px solid var(--ink);
      border-radius: 12px;
      font-family: monospace;
      font-size: 14px;
      letter-spacing: 1.5px;
      background: white;
      min-width: 240px;
      direction: ltr;
    }

    /* Toast notifications */
    .toast-container {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 10px;
      pointer-events: none;
    }

    html[dir="rtl"] .toast-container {
      right: auto;
      left: 20px;
    }

    .toast {
      background: var(--ink);
      color: var(--gold-bright);
      padding: 14px 20px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 600;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
      pointer-events: auto;
      animation: slideIn 0.25s ease-out;
      max-width: 360px;
      display: flex;
      gap: 10px;
      align-items: center;
    }

    .toast.success {
      background: var(--pistachio-dark);
      color: white;
    }

    .toast.error {
      background: var(--pink-bright);
      color: white;
    }

    .toast.info {
      background: var(--teal-dark);
      color: white;
    }

    @keyframes slideIn {
      from {
        opacity: 0;
        transform: translateX(40px);
      }

      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    html[dir="rtl"] .toast {
      animation-name: slideInRtl;
    }

    @keyframes slideInRtl {
      from {
        opacity: 0;
        transform: translateX(-40px);
      }

      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    .toast.fade-out {
      opacity: 0;
      transform: translateY(-10px);
      transition: all 0.3s;
    }

    /* Confirm modal */
    .confirm-box {
      text-align: center;
      max-width: 440px !important;
    }

    .confirm-box p {
      color: var(--ink-soft);
      font-size: 14px;
      margin-bottom: 20px;
      line-height: 1.5;
    }

    .confirm-actions {
      display: flex;
      gap: 10px;
      justify-content: center;
      flex-wrap: wrap;
    }

    /* Delete account special confirm */
    .delete-confirm-input {
      width: 100%;
      padding: 12px 16px;
      border: 2px solid var(--danger);
      border-radius: 10px;
      font-family: monospace;
      font-size: 14px;
      letter-spacing: 1px;
      margin: 12px 0;
      direction: ltr;
      text-align: center;
    }

    .delete-confirm-input:focus {
      outline: none;
      background: #FFF5F8;
    }

    /* Loyalty card on Settings */
    .loyalty-summary-card {
      background: linear-gradient(135deg, var(--cream-warm), var(--cream));
      border: 1px solid var(--gold);
    }

    .loyalty-next-reward {
      display: flex;
      gap: 12px;
      align-items: center;
      padding: 12px;
      background: white;
      border-radius: 12px;
      margin-top: 12px;
      font-size: 13px;
    }

    .loyalty-next-icon {
      font-size: 24px;
    }

    /* Preferences card */
    .pref-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding: 10px 0;
      border-bottom: 1px dashed var(--border);
    }

    .pref-row:last-child {
      border-bottom: none;
    }

    .pref-row label {
      font-size: 13px;
      color: var(--ink);
      font-weight: 500;
      display: block;
      margin-bottom: 0;
      text-transform: none;
      letter-spacing: 0;
    }

    .pref-row .pref-desc {
      font-size: 11px;
      color: var(--muted);
      margin-top: 2px;
    }

    /* Activity summary tiles */
    .activity-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 12px;
    }

    .activity-tile {
      background: var(--cream);
      border-radius: 12px;
      padding: 14px;
      text-align: center;
    }

    .activity-tile-value {
      font-family: var(--font-display);
      font-weight: 900;
      font-size: 22px;
      color: var(--ink);
      line-height: 1;
    }

    .activity-tile-label {
      font-size: 10px;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--muted);
      margin-top: 6px;
    }

    /* Small icons for inline elements */
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    @media (max-width: 700px) {
      .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
      }

      .profile-stats {
        margin-left: 0 !important;
        margin-right: 0 !important;
      }

      .order-card {
        grid-template-columns: auto 1fr;
        gap: 12px;
      }

      .order-price,
      .order-arrow {
        grid-column: 1 / -1;
      }

      .form-row {
        grid-template-columns: 1fr;
        gap: 0;
      }

      .nav {
        padding: 12px 16px;
      }

      .nav-actions {
        gap: 4px;
      }

      .nav-link {
        padding: 8px 10px;
        font-size: 12px;
      }

      .lang-btn {
        padding: 5px 8px;
        font-size: 11px;
        min-width: 30px;
      }

      .address-card {
        flex-direction: column;
      }

      .redeem-box input {
        min-width: 0;
        width: 100%;
      }
    }

    /* ==== Gad's Crew / Loyalty section ==== */
    .crew-hero {
      background: linear-gradient(135deg, var(--teal-darker) 0%, var(--teal-dark) 50%, var(--teal) 100%);
      border-radius: 24px;
      padding: 32px;
      color: var(--cream);
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 28px;
      align-items: center;
      margin-bottom: 20px;
      position: relative;
      overflow: hidden;
    }

    .crew-hero::before {
      content: '';
      position: absolute;
      top: -60px;
      right: -60px;
      width: 240px;
      height: 240px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(232, 181, 71, 0.25), transparent 70%);
      pointer-events: none;
    }

    html[dir="rtl"] .crew-hero::before {
      right: auto;
      left: -60px;
    }

    .crew-qr-box {
      background: white;
      border-radius: 18px;
      padding: 16px;
      width: 200px;
      min-width: 200px;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
      position: relative;
      z-index: 1;
    }

    .crew-qr-canvas {
      width: 168px;
      height: 168px;
      display: block;
      margin: 0 auto;
      image-rendering: pixelated;
    }

    .crew-qr-caption {
      margin-top: 8px;
      font-size: 11px;
      color: var(--muted);
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .crew-qr-skeleton {
      width: 168px;
      height: 168px;
      margin: 0 auto;
      border-radius: 8px;
      background: linear-gradient(90deg, #eee 0%, #f5f5f5 50%, #eee 100%);
      background-size: 200% 100%;
      animation: qr-skel 1.5s ease-in-out infinite;
    }

    @keyframes qr-skel {
      0% {
        background-position: 200% 0
      }

      100% {
        background-position: -200% 0
      }
    }

    .crew-info {
      min-width: 0;
      position: relative;
      z-index: 1;
    }

    .crew-balance-num {
      font-family: var(--font-display);
      font-weight: 900;
      font-size: 64px;
      line-height: 1;
      color: var(--gold-bright);
      margin: 8px 0 4px 0;
    }

    html[dir="rtl"] .crew-balance-num {
      font-family: var(--font-ar);
    }

    .crew-balance-label {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      opacity: 0.85;
    }

    .crew-value-hint {
      margin-top: 12px;
      font-size: 14px;
      color: var(--cream);
    }

    .crew-value-hint strong {
      color: var(--gold-bright);
      font-weight: 800;
    }

    .crew-tier-row {
      margin-top: 14px;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .crew-tier-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      background: var(--gold);
      color: var(--ink);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .crew-tier-chip .tier-emoji {
      font-size: 14px;
      line-height: 1;
    }

    /* 5-tier color system — each tier gets a distinct gradient + emoji */
    .crew-tier-chip[data-tier="bronze"] {
      background: linear-gradient(135deg, #B87333 0%, #D89A6F 100%);
      color: #fff;
    }

    .crew-tier-chip[data-tier="silver"] {
      background: linear-gradient(135deg, #C0C0C0 0%, #E8E8E8 100%);
      color: #2A2A2A;
    }

    .crew-tier-chip[data-tier="gold"] {
      background: linear-gradient(135deg, #E8B547 0%, #F5CF5A 100%);
      color: #1A2E33;
    }

    .crew-tier-chip[data-tier="platinum"] {
      background: linear-gradient(135deg, #6E7E8E 0%, #B8C4D0 50%, #E5EAEF 100%);
      color: #1A2E33;
    }

    .crew-tier-chip[data-tier="diamond"] {
      background: linear-gradient(135deg, #58E1D6 0%, #7B61FF 50%, #E879F9 100%);
      color: #fff;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
      box-shadow: 0 4px 16px rgba(123, 97, 255, 0.4);
      animation: diamond-shimmer 3s ease-in-out infinite;
    }

    @keyframes diamond-shimmer {

      0%,
      100% {
        filter: brightness(1);
      }

      50% {
        filter: brightness(1.15);
      }
    }

    /* BIG tier badge displayed in hero */
    .tier-badge-big {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      border-radius: 999px;
      font-family: var(--font-display, 'Fraunces', serif);
      font-weight: 900;
      font-size: 14px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      background: var(--gold);
      color: var(--ink);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
      position: relative;
      overflow: hidden;
    }

    .tier-badge-big .tier-emoji-big {
      font-size: 18px;
    }

    .tier-badge-big[data-tier="bronze"] {
      background: linear-gradient(135deg, #B87333 0%, #D89A6F 100%);
      color: #fff;
    }

    .tier-badge-big[data-tier="silver"] {
      background: linear-gradient(135deg, #C0C0C0 0%, #E8E8E8 100%);
      color: #2A2A2A;
    }

    .tier-badge-big[data-tier="gold"] {
      background: linear-gradient(135deg, #E8B547 0%, #F5CF5A 100%);
      color: #1A2E33;
    }

    .tier-badge-big[data-tier="platinum"] {
      background: linear-gradient(135deg, #6E7E8E 0%, #B8C4D0 50%, #E5EAEF 100%);
      color: #1A2E33;
    }

    .tier-badge-big[data-tier="diamond"] {
      background: linear-gradient(135deg, #58E1D6 0%, #7B61FF 50%, #E879F9 100%);
      color: #fff;
    }

    /* Tier-themed hero gradient — overrides default crew-hero when set */
    .crew-hero[data-tier="bronze"] {
      background: linear-gradient(135deg, #5C3A1F 0%, #B87333 100%);
    }

    .crew-hero[data-tier="silver"] {
      background: linear-gradient(135deg, #2A3540 0%, #6E7E8E 100%);
    }

    .crew-hero[data-tier="gold"] {
      background: linear-gradient(135deg, #2D7A85 0%, #E8B547 100%);
    }

    .crew-hero[data-tier="platinum"] {
      background: linear-gradient(135deg, #1A2E33 0%, #6E7E8E 60%, #B8C4D0 100%);
    }

    .crew-hero[data-tier="diamond"] {
      background:
        radial-gradient(circle at 80% 20%, rgba(232, 121, 249, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(88, 225, 214, 0.4) 0%, transparent 60%),
        linear-gradient(135deg, #1A1A2E 0%, #16213E 60%, #0F3460 100%);
    }

    .crew-actions {
      margin-top: 14px;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .crew-actions .btn {
      background: rgba(255, 255, 255, .12);
      color: var(--cream);
      border: 1px solid rgba(255, 255, 255, .3);
      padding: 8px 14px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s;
    }

    .crew-actions .btn:hover {
      background: rgba(255, 255, 255, .22);
    }

    .crew-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 12px;
      margin-bottom: 20px;
    }

    .crew-mini-card {
      background: white;
      border-radius: 16px;
      padding: 18px;
      border: 1px solid var(--border);
      text-align: center;
    }

    .crew-mini-card .val {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 28px;
      color: var(--teal-dark);
      margin-bottom: 4px;
    }

    .crew-mini-card .lbl {
      font-size: 12px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      font-weight: 600;
    }

    .crew-how-card {
      background: var(--cream-warm);
      border-radius: 16px;
      padding: 20px 24px;
      margin-bottom: 20px;
      border: 1px solid var(--border);
    }

    .crew-how-card h4 {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 18px;
      color: var(--ink);
      margin-bottom: 10px;
    }

    .crew-how-steps {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-top: 12px;
    }

    .crew-how-step {
      display: flex;
      gap: 10px;
      align-items: flex-start;
    }

    .crew-how-step-num {
      flex-shrink: 0;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--teal-dark);
      color: var(--gold-bright);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 13px;
    }

    .crew-how-step-text {
      font-size: 13px;
      color: var(--ink-soft);
      line-height: 1.5;
    }

    .crew-history-card {
      background: white;
      border-radius: 16px;
      padding: 8px 0;
      border: 1px solid var(--border);
      overflow: hidden;
    }

    .crew-history-header {
      padding: 14px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--border);
    }

    .crew-history-header h3 {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 18px;
      color: var(--ink);
    }

    .crew-history-list {
      max-height: 400px;
      overflow-y: auto;
    }

    .crew-history-item {
      padding: 14px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--border);
      gap: 12px;
    }

    .crew-history-item:last-child {
      border-bottom: none;
    }

    .crew-history-item-left {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .crew-history-icon {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
    }

    .crew-history-icon.earn {
      background: rgba(168, 200, 138, 0.22);
      color: var(--pistachio-dark);
    }

    .crew-history-icon.redeem {
      background: rgba(232, 181, 71, 0.22);
      color: #B88710;
    }

    .crew-history-icon.expire {
      background: rgba(122, 138, 142, 0.18);
      color: var(--muted);
    }

    .crew-history-item-info {
      min-width: 0;
    }

    .crew-history-item-info .desc {
      font-weight: 600;
      font-size: 14px;
      color: var(--ink);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .crew-history-item-info .meta {
      font-size: 12px;
      color: var(--muted);
      margin-top: 2px;
    }

    .crew-history-item-delta {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 18px;
      flex-shrink: 0;
    }

    .crew-history-item-delta.pos {
      color: var(--pistachio-dark);
    }

    .crew-history-item-delta.neg {
      color: var(--gold);
    }

    /* ---- Unified Verlauf: title / date / badges / filters ---- */
    .crew-history-item-title {
      font-weight: 600;
      font-size: 14px;
      color: var(--ink);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .crew-history-item-date {
      font-size: 12px;
      color: var(--muted);
      margin-top: 2px;
    }

    .crew-history-icon.order {
      background: rgba(63, 160, 173, 0.16);
      color: var(--teal);
    }

    .crew-history-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 6px;
    }

    .hist-badge {
      display: inline-flex;
      align-items: center;
      font-size: 11px;
      font-weight: 600;
      line-height: 1;
      padding: 4px 8px;
      border-radius: 999px;
      background: rgba(122, 138, 142, 0.12);
      color: var(--muted);
      white-space: nowrap;
    }

    .hist-badge.is-used { background: rgba(168, 200, 138, 0.22); color: var(--pistachio-dark); }
    .hist-badge.is-expired { background: rgba(122, 138, 142, 0.18); color: var(--muted); }
    .hist-badge.is-cat { background: rgba(232, 181, 71, 0.20); color: #B88710; }
    .hist-badge.is-deducted { background: rgba(63, 160, 173, 0.16); color: var(--teal); }
    .hist-badge.is-order { background: rgba(63, 160, 173, 0.10); color: var(--teal); }
    .hist-badge.is-muted { background: rgba(122, 138, 142, 0.10); color: var(--muted); }

    .crew-history-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 12px 20px;
      border-bottom: 1px solid var(--border);
    }

    .crew-history-chip {
      font-size: 13px;
      font-weight: 600;
      padding: 6px 14px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: white;
      color: var(--muted);
      cursor: pointer;
      transition: background 0.15s, color 0.15s, border-color 0.15s;
    }

    .crew-history-chip:hover { border-color: var(--teal); color: var(--teal); }
    .crew-history-chip.active { background: var(--teal); color: white; border-color: var(--teal); }

    /* QR fullscreen modal (for showing QR bigger to staff) */
    .qr-fullscreen-bg {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .85);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 500;
      padding: 20px;
    }

    .qr-fullscreen-bg.active {
      display: flex;
    }

    .qr-fullscreen-box {
      background: white;
      border-radius: 20px;
      padding: 28px;
      max-width: 420px;
      width: 100%;
      text-align: center;
    }

    .qr-fullscreen-box canvas {
      width: 320px;
      height: 320px;
      max-width: 100%;
      display: block;
      margin: 0 auto;
      image-rendering: pixelated;
    }

    .qr-fullscreen-title {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 22px;
      color: var(--ink);
      margin-bottom: 8px;
    }

    .qr-fullscreen-sub {
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 16px;
    }

    .qr-fullscreen-close {
      margin-top: 20px;
      width: 100%;
      padding: 12px;
      border-radius: 10px;
      background: var(--teal-dark);
      color: white;
      border: none;
      font-weight: 700;
      cursor: pointer;
      font-size: 14px;
      font-family: inherit;
    }

    @media (max-width: 720px) {
      .crew-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px;
      }

      .crew-qr-box {
        margin: 0 auto;
      }

      .crew-grid {
        grid-template-columns: 1fr;
      }

      .crew-how-steps {
        grid-template-columns: 1fr;
      }

      .crew-balance-num {
        font-size: 52px;
      }
    }

    /* ============================================================
   CREW REDEEM RESULT CARDS — match brand palette
   ============================================================ */
    .crew-redeem-card {
      margin-bottom: 24px;
    }

    .redeemed-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      margin-top: 6px;
    }

    .redeemed-banner {
      font-weight: 800;
      font-size: 14px;
      letter-spacing: 0.4px;
      padding: 10px 18px;
      border-radius: 999px;
    }

    .redeemed-banner.success {
      background: linear-gradient(135deg, var(--pistachio, #A8C88A) 0%, var(--teal, #3FA0AD) 100%);
      color: white;
      box-shadow: 0 6px 24px rgba(63, 160, 173, 0.25);
    }

    .redeemed-hint {
      font-size: 13px;
      color: var(--muted);
      text-align: center;
    }

    .crew-result-card.crew-result-error {
      display: flex;
      gap: 14px;
      align-items: center;
      background: rgba(224, 91, 91, 0.08);
      border: 1px solid rgba(224, 91, 91, 0.3);
      border-radius: 14px;
      padding: 16px 18px;
      width: 100%;
    }

    .crew-result-icon {
      font-size: 28px;
    }

    .crew-result-title {
      font-weight: 800;
      color: #B83A3A;
      margin-bottom: 4px;
    }

    .crew-result-desc {
      font-size: 13px;
      color: var(--ink-soft);
    }

    /* Welcome card — luxe gold + teal, brand feel */
    .welcome-card {
      position: relative;
      overflow: hidden;
      width: 100%;
      max-width: 380px;
      background:
        radial-gradient(circle at 20% 0%, rgba(245, 207, 90, 0.4) 0%, transparent 55%),
        linear-gradient(135deg, var(--teal-darker, #1E5A63) 0%, var(--teal-dark, #2D7A85) 50%, #0F3940 100%);
      color: var(--cream, #F5EFE3);
      border-radius: 24px;
      padding: 32px 26px 28px;
      text-align: center;
      box-shadow: 0 20px 60px rgba(15, 57, 64, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .welcome-card .wc-shine {
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
      animation: wc-shine 4.5s ease-in-out infinite;
    }

    @keyframes wc-shine {

      0%,
      100% {
        transform: translateX(-30%);
        opacity: 0.5;
      }

      50% {
        transform: translateX(30%);
        opacity: 1;
      }
    }

    .welcome-card .wc-emoji {
      font-size: 56px;
      line-height: 1;
      margin-bottom: 10px;
      filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    }

    .welcome-card .wc-title {
      font-family: var(--font-display, 'Fraunces', serif);
      font-weight: 900;
      font-size: 28px;
      line-height: 1.1;
      color: var(--gold-bright, #F5CF5A);
      margin-bottom: 6px;
    }

    .welcome-card .wc-sub {
      font-size: 14px;
      opacity: 0.9;
      margin-bottom: 18px;
    }

    .welcome-card .wc-discount {
      font-family: var(--font-display, 'Fraunces', serif);
      font-weight: 900;
      font-size: 38px;
      color: var(--gold-bright, #F5CF5A);
      text-shadow: 0 2px 12px rgba(245, 207, 90, 0.4);
      margin-bottom: 18px;
    }

    .wc-code-box {
      background: rgba(0, 0, 0, 0.28);
      border: 1px dashed rgba(245, 207, 90, 0.5);
      border-radius: 14px;
      padding: 12px 16px;
      margin-bottom: 16px;
      position: relative;
    }

    .wc-code-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      opacity: 0.7;
      margin-bottom: 4px;
    }

    .wc-code {
      font-family: 'Inter', monospace;
      font-weight: 800;
      font-size: 20px;
      letter-spacing: 2px;
      color: var(--gold-bright, #F5CF5A);
    }

    .wc-conditions {
      display: flex;
      flex-direction: column;
      gap: 6px;
      font-size: 12px;
      opacity: 0.85;
      text-align: start;
    }

    .wc-cond {
      padding: 4px 0;
    }

    /* Event card themes — share same shape, different gradient */
    .event-card {
      position: relative;
      overflow: hidden;
      width: 100%;
      max-width: 380px;
      border-radius: 24px;
      padding: 32px 26px 28px;
      text-align: center;
      color: white;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    }

    .event-card .ec-emoji {
      font-size: 64px;
      margin-bottom: 10px;
      filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    }

    .event-card .ec-label {
      font-family: var(--font-display, 'Fraunces', serif);
      font-weight: 900;
      font-size: 22px;
      margin-bottom: 8px;
      text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    }

    .event-card .ec-discount {
      font-family: var(--font-display, 'Fraunces', serif);
      font-weight: 900;
      font-size: 40px;
      margin-bottom: 18px;
    }

    .event-ramadan {
      background: linear-gradient(135deg, #1E3A5F 0%, #2D5F8D 60%, #5B8DBE 100%);
    }

    .event-ramadan .ec-discount,
    .event-ramadan .wc-code {
      color: #F5CF5A;
    }

    .event-eid {
      background: linear-gradient(135deg, #2D7A85 0%, #3FA0AD 60%, #7FC0CB 100%);
    }

    .event-eid .ec-discount,
    .event-eid .wc-code {
      color: #F5CF5A;
    }

    .event-xmas {
      background: linear-gradient(135deg, #7A1F1F 0%, #C8102E 50%, #2F6B3F 100%);
    }

    .event-xmas .ec-discount,
    .event-xmas .wc-code {
      color: #F5CF5A;
    }

    .event-newyear {
      background: linear-gradient(135deg, #0B0B0B 0%, #2D2D2D 40%, #0B0B0B 100%);
    }

    .event-newyear .ec-discount,
    .event-newyear .wc-code {
      color: #F5CF5A;
    }

    .event-valentine {
      background: linear-gradient(135deg, #E87598 0%, #D4537E 100%);
    }

    .event-valentine .ec-discount,
    .event-valentine .wc-code {
      color: #FFF8E2;
    }

    .event-ostern {
      background: linear-gradient(135deg, #A8C88A 0%, #E8B547 100%);
      color: #1A2E33;
    }

    .event-ostern .ec-label,
    .event-ostern .ec-discount,
    .event-ostern .wc-code {
      color: #1A2E33;
    }

    .event-ostern .wc-code-box {
      background: rgba(255, 255, 255, 0.5);
      border-color: rgba(26, 46, 51, 0.3);
    }

    .event-ostern .wc-code-label {
      color: #1A2E33;
    }

    .event-ostern .wc-conditions {
      color: #1A2E33;
    }

    .event-oktoberfest {
      background: linear-gradient(135deg, #2A4A1F 0%, #5C7E2D 50%, #C49B3A 100%);
    }

    .event-oktoberfest .ec-discount,
    .event-oktoberfest .wc-code {
      color: #F5CF5A;
    }

    .event-muttertag {
      background: linear-gradient(135deg, #E87598 0%, #F5CF5A 100%);
    }

    .event-muttertag .ec-discount,
    .event-muttertag .wc-code {
      color: #FFFFFF;
    }

    .event-vatertag {
      background: linear-gradient(135deg, #2D5F8D 0%, #1E3A5F 100%);
    }

    .event-vatertag .ec-discount,
    .event-vatertag .wc-code {
      color: #F5CF5A;
    }

    .event-birthday {
      background: linear-gradient(135deg, #E87598 0%, #F5CF5A 100%);
    }

    .event-birthday .ec-discount,
    .event-birthday .wc-code {
      color: #FFFFFF;
    }

    .event-event {
      background: linear-gradient(135deg, var(--teal-dark, #2D7A85) 0%, var(--gold, #E8B547) 100%);
    }

    .event-event .ec-discount,
    .event-event .wc-code {
      color: #FFFFFF;
    }

    /* RTL adjustments */
    html[dir="rtl"] .wc-conditions {
      text-align: end;
    }

    html[dir="rtl"] .welcome-card .wc-code {
      font-family: var(--font-ar, 'Cairo', sans-serif);
    }

    /* Mobile */
    @media (max-width: 640px) {

      .welcome-card,
      .event-card {
        padding: 26px 20px 22px;
      }

      .welcome-card .wc-title {
        font-size: 24px;
      }

      .welcome-card .wc-discount,
      .event-card .ec-discount {
        font-size: 32px;
      }

      .wc-code {
        font-size: 17px;
        letter-spacing: 1.5px;
      }
    }


    /* ============================================================
   MEINE KARTE — Customer Loyalty QR Card
   ============================================================ */
    .section-subtitle-lead {
      color: var(--muted);
      font-size: 15px;
      margin: -8px 0 24px;
      max-width: 560px;
    }

    .gads-card-wrap {
      max-width: 460px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .gads-card {
      position: relative;
      background: linear-gradient(145deg, #1F5962 0%, #2D7A85 40%, #1A2E33 100%);
      border-radius: 24px;
      padding: 28px 24px 24px;
      color: #FEF8E8;
      box-shadow:
        0 20px 60px rgba(26, 46, 51, 0.35),
        0 4px 12px rgba(26, 46, 51, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
      overflow: hidden;
      isolation: isolate;
    }

    /* Decorative glow */
    .gads-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 15% 15%, rgba(245, 207, 90, 0.18), transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(232, 117, 152, 0.12), transparent 45%);
      pointer-events: none;
      z-index: -1;
    }

    /* Top stripe like the auth card */
    .gads-card::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 6px;
      background: linear-gradient(90deg, #3FA0AD, #E8B547, #E87598, #A8C88A);
    }

    .gads-card-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 20px;
      gap: 12px;
    }

    .gads-card-brand {
      display: flex;
      flex-direction: column;
    }

    .gads-card-brand-main {
      font-family: var(--font-display);
      font-weight: 900;
      font-style: italic;
      font-size: 38px;
      line-height: 1;
      color: #3FA0AD;
      letter-spacing: -1.5px;
    }

    .gads-card-brand-main em {
      color: #F5CF5A;
      font-style: italic;
    }

    .gads-card-brand-sub {
      font-family: var(--font-hand);
      font-size: 15px;
      color: rgba(254, 248, 232, 0.75);
      margin-top: 2px;
    }

    html[dir="rtl"] .gads-card-brand-sub {
      font-family: var(--font-ar);
      font-weight: 500;
    }

    .gads-card-tier {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      backdrop-filter: blur(10px);
      white-space: nowrap;
    }

    .gads-card-tier-dot {
      display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #B88710;
      box-shadow: 0 0 8px rgba(245, 207, 90, 0.5);
    }

    .gads-card-tier[data-tier="bronze"] .gads-card-tier-dot {
      background: #B87333;
      box-shadow: 0 0 8px rgba(184, 115, 51, 0.6);
    }

    .gads-card-tier[data-tier="silver"] .gads-card-tier-dot {
      background: #C0C0C0;
      box-shadow: 0 0 8px rgba(192, 192, 192, 0.6);
    }

    .gads-card-tier[data-tier="gold"] .gads-card-tier-dot {
      background: #F5CF5A;
      box-shadow: 0 0 10px rgba(245, 207, 90, 0.7);
    }

    .gads-card-tier[data-tier="platinum"] .gads-card-tier-dot {
      background: #E5EAEF;
      box-shadow: 0 0 10px rgba(229, 234, 239, 0.6);
    }

    .gads-card-tier[data-tier="diamond"] .gads-card-tier-dot {
      background: linear-gradient(135deg, #58E1D6 0%, #E879F9 100%);
      box-shadow: 0 0 12px rgba(123, 97, 255, 0.6);
      animation: diamond-shimmer 3s ease-in-out infinite;
    }

    /* QR block */
    .gads-card-qr-box {
      background: #FEF8E8;
      border-radius: 20px;
      padding: 20px;
      margin-bottom: 20px;
      text-align: center;
    }

    .gads-card-qr {
      width: 240px;
      height: 240px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .gads-card-qr canvas,
    .gads-card-qr img,
    .gads-card-qr svg {
      max-width: 100%;
      height: auto;
      display: block;
    }

    .gads-card-qr.is-loading::before {
      content: '';
      width: 48px;
      height: 48px;
      border: 4px solid rgba(26, 46, 51, 0.1);
      border-top-color: #3FA0AD;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      position: absolute;
    }

    .gads-card-qr.is-empty::before {
      content: '⚠️';
      font-size: 40px;
      position: absolute;
    }

    .gads-card-scanhint {
      margin-top: 12px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: #2D7A85;
    }

    html[dir="rtl"] .gads-card-scanhint {
      letter-spacing: 0.5px;
    }

    /* Customer info */
    .gads-card-name {
      font-family: var(--font-display);
      font-weight: 800;
      font-style: italic;
      font-size: 24px;
      color: #F5CF5A;
      line-height: 1.2;
      margin-bottom: 4px;
    }

    html[dir="rtl"] .gads-card-name {
      font-family: var(--font-ar);
      font-style: normal;
    }

    .gads-card-email {
      font-size: 13px;
      color: rgba(254, 248, 232, 0.7);
      margin-bottom: 18px;
      word-break: break-all;
    }

    .gads-card-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      padding: 14px 0;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      margin-bottom: 14px;
    }

    .gads-card-stat {
      text-align: center;
    }

    .gads-card-stat-value {
      font-family: var(--font-display);
      font-weight: 900;
      font-style: italic;
      font-size: 26px;
      color: #F5CF5A;
      line-height: 1;
    }

    html[dir="rtl"] .gads-card-stat-value {
      font-family: var(--font-ar);
      font-style: normal;
    }

    .gads-card-stat-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: rgba(254, 248, 232, 0.65);
      margin-top: 4px;
    }

    .gads-card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: rgba(254, 248, 232, 0.6);
    }

    .gads-card-id {
      font-family: 'SF Mono', Menlo, Consolas, monospace;
      letter-spacing: 0.5px;
      text-transform: none;
    }

    /* ============================================================
       MY CARD — Theme variable layer (10 styles).
       Vars are set on :root by JS so the card, the points bar and
       Gad's Crew all follow the chosen style. Fallbacks = Classic.
       ============================================================ */
    .gads-card {
      background: var(--gc-bg, linear-gradient(145deg, #1F5962, #2D7A85 42%, #1A2E33));
      color: var(--gc-text, #FEF8E8);
    }

    .gads-card::before {
      background: var(--gc-fx, radial-gradient(circle at 15% 15%, rgba(245, 207, 90, .18), transparent 45%), radial-gradient(circle at 85% 85%, rgba(232, 117, 152, .12), transparent 45%));
      background-size: var(--gc-fxsize, auto);
    }

    .gads-card::after {
      background: var(--gc-stripe, linear-gradient(90deg, #3FA0AD, #E8B547, #E87598, #A8C88A));
    }

    .gads-card-brand-main {
      color: var(--gc-brand, #3FA0AD);
    }

    .gads-card-brand-main em {
      color: var(--gc-em, #F5CF5A);
    }

    .gads-card-brand-sub {
      color: var(--gc-sub, rgba(254, 248, 232, .75));
    }

    .gads-card-tier {
      color: var(--gc-accent, #F5CF5A);
      background: var(--gc-tierbg, rgba(255, 255, 255, .08));
      border-color: var(--gc-border, rgba(255, 255, 255, .18));
    }

    .gads-card-name {
      color: var(--gc-name, var(--gc-em, #F5CF5A));
    }

    .gads-card-email {
      color: var(--gc-sub, rgba(254, 248, 232, .7));
    }

    .gads-card-stats {
      border-top-color: var(--gc-border, rgba(255, 255, 255, .1));
      border-bottom-color: var(--gc-border, rgba(255, 255, 255, .1));
    }

    .gads-card-stat-value {
      color: var(--gc-accent, #F5CF5A);
    }

    .gads-card-stat-label {
      color: var(--gc-sub, rgba(254, 248, 232, .65));
    }

    .gads-card-footer {
      color: var(--gc-sub, rgba(254, 248, 232, .6));
    }

    /* Points progress bar follows the theme */
    :root[data-card-theme] .loyalty-progress-fill {
      background: var(--gc-stripe, linear-gradient(90deg, var(--gold), var(--gold-bright)));
    }

    /* Gad's Crew hero follows the chosen card style */
    :root[data-card-theme] .crew-hero {
      background: var(--gc-bg);
      color: var(--gc-text);
    }

    :root[data-card-theme] .crew-balance-num {
      color: var(--gc-accent);
    }

    :root[data-card-theme] .crew-value-hint {
      color: var(--gc-text);
    }

    :root[data-card-theme] .crew-value-hint strong {
      color: var(--gc-accent);
    }

    :root[data-card-theme] .crew-balance-label {
      color: var(--gc-text);
    }

    /* ============================================================
       PHASE 5 — the chosen card style spreads across Gad's Crew:
       barcode/QR frame, membership badge, "since" chip & mini-cards.
       All scoped to :root[data-card-theme] so the un-themed
       fallback (Classic teal/gold) is untouched.
       ============================================================ */

    /* Barcode / QR: code stays white & scannable, frame takes the style */
    :root[data-card-theme] .crew-qr-box {
      border: 3px solid var(--gc-accent);
      box-shadow: 0 10px 30px rgba(0, 0, 0, .28), 0 0 0 2px var(--gc-border);
    }

    :root[data-card-theme] .crew-qr-caption {
      color: var(--teal-dark);
    }

    /* Membership badge keeps its tier color, gains a ring in the card accent */
    :root[data-card-theme] #crewTierChip {
      box-shadow: 0 0 0 2px var(--gc-accent), 0 4px 16px rgba(0, 0, 0, .22);
    }

    /* "Member since" chip follows the card surface (readable on any theme) */
    :root[data-card-theme] #crewMemberSinceChip {
      background: var(--gc-tierbg) !important;
      color: var(--gc-text) !important;
      border: 1px solid var(--gc-border);
    }

    /* Mini stat cards adopt the chosen card look (proven readable combos) */
    :root[data-card-theme] .crew-mini-card {
      background: var(--gc-bg);
      border-color: var(--gc-border);
      position: relative;
      overflow: hidden;
    }

    :root[data-card-theme] .crew-mini-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: var(--gc-fx, none);
      background-size: var(--gc-fxsize, auto);
      opacity: .55;
      pointer-events: none;
    }

    :root[data-card-theme] .crew-mini-card .val {
      color: var(--gc-accent);
      position: relative;
    }

    :root[data-card-theme] .crew-mini-card .lbl {
      color: var(--gc-sub);
      position: relative;
    }

    /* ---- Theme picker (swatch strip) ---- */
    .gads-card-themes {
      margin-top: 22px;
    }

    .gads-card-themes-head {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 12px;
    }

    .gads-card-themes-title {
      font-family: var(--font-display);
      font-style: italic;
      font-weight: 800;
      font-size: 19px;
      color: var(--teal-dark);
    }

    html[dir="rtl"] .gads-card-themes-title {
      font-family: var(--font-ar);
      font-style: normal;
    }

    .gads-card-themes-hint {
      font-size: 12px;
      color: var(--muted);
      font-weight: 600;
    }

    .gads-card-themes-track {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 10px;
    }

    @media (max-width: 520px) {
      .gads-card-themes-track {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .gct-swatch {
      position: relative;
      aspect-ratio: 1.6 / 1;
      border-radius: 12px;
      border: 2px solid transparent;
      cursor: pointer;
      overflow: hidden;
      padding: 0;
      display: flex;
      align-items: flex-end;
      justify-content: flex-start;
      box-shadow: 0 4px 12px rgba(26, 46, 51, .16);
      transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
      font-family: inherit;
    }

    .gct-swatch:hover {
      transform: translateY(-2px);
    }

    .gct-swatch::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: var(--sw-stripe);
    }

    .gct-swatch.is-active {
      border-color: var(--gold);
      box-shadow: 0 6px 18px rgba(232, 181, 71, .4);
    }

    .gct-swatch-name {
      position: relative;
      z-index: 1;
      font-size: 11px;
      font-weight: 800;
      padding: 6px 8px;
      color: var(--sw-tx, #fff);
      text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    }

    .gct-swatch.is-light .gct-swatch-name {
      text-shadow: none;
    }

    .gct-check {
      position: absolute;
      top: 5px;
      inset-inline-end: 6px;
      z-index: 3;
      width: 19px;
      height: 19px;
      border-radius: 50%;
      background: var(--gold);
      color: #1A2E33;
      font-size: 12px;
      font-weight: 900;
      display: none;
      align-items: center;
      justify-content: center;
    }

    .gct-swatch.is-active .gct-check {
      display: flex;
    }

    .gct-swatch.is-locked {
      cursor: not-allowed;
    }

    .gct-swatch.is-locked::before {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 1;
      background: rgba(20, 30, 35, .58);
    }

    .gct-lock {
      position: absolute;
      inset: 0;
      z-index: 2;
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      text-align: center;
      padding: 4px;
    }

    .gct-lock-ic {
      font-size: 15px;
    }

    .gct-swatch.is-locked .gct-lock {
      display: flex;
    }

    .gct-swatch.is-locked .gct-swatch-name {
      opacity: 0;
    }

    /* Action buttons */
    .gads-card-actions {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }

    .gads-card-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 12px 10px;
      font-size: 12px;
      letter-spacing: 1px;
    }

    .gads-card-btn span:first-child {
      font-size: 16px;
      line-height: 1;
    }

    /* Wallet buttons */
    .gads-wallet-buttons {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 4px;
    }

    .gads-wallet-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 12px 14px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: var(--ink);
      color: white;
      cursor: pointer;
      font-family: inherit;
      text-align: start;
      transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    }

    .gads-wallet-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 18px rgba(26, 46, 51, 0.18);
    }

    .gads-wallet-btn:disabled,
    .gads-wallet-btn[data-disabled="1"] {
      opacity: 0.55;
      cursor: not-allowed;
    }

    .gads-wallet-logo {
      font-size: 22px;
      line-height: 1;
      min-width: 24px;
      text-align: center;
    }

    .gads-wallet-google .gads-wallet-logo {
      background: linear-gradient(45deg, #4285F4, #34A853, #FBBC05, #EA4335);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      font-weight: 900;
      font-family: var(--font-display);
    }

    .gads-wallet-text {
      display: flex;
      flex-direction: column;
      line-height: 1.2;
    }

    .gads-wallet-sub {
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      opacity: 0.75;
    }

    .gads-wallet-main {
      font-size: 13px;
      font-weight: 700;
      margin-top: 1px;
    }

    .gads-card-note {
      font-size: 13px;
      color: var(--muted);
      text-align: center;
      line-height: 1.6;
      padding: 8px 4px 0;
    }

    /* Fullscreen overlay */
    .gads-card-fullscreen {
      position: fixed;
      inset: 0;
      background: rgba(26, 46, 51, 0.96);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      animation: fadeIn 0.2s;
    }

    .gads-card-fullscreen[hidden] {
      display: none;
    }

    .gads-card-fullscreen-close {
      position: absolute;
      top: 20px;
      inset-inline-end: 20px;
      width: 44px;
      height: 44px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      background: rgba(255, 255, 255, 0.05);
      color: #FEF8E8;
      border-radius: 50%;
      font-size: 24px;
      font-weight: 300;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }

    .gads-card-fullscreen-close:hover {
      background: rgba(255, 255, 255, 0.15);
    }

    .gads-card-fullscreen-inner {
      background: #FEF8E8;
      padding: 36px 28px;
      border-radius: 28px;
      text-align: center;
      max-width: 92vw;
      max-height: 92vh;
    }

    .gads-card-fullscreen-qr {
      width: min(75vmin, 420px);
      height: min(75vmin, 420px);
      margin: 0 auto 20px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .gads-card-fullscreen-qr canvas,
    .gads-card-fullscreen-qr img,
    .gads-card-fullscreen-qr svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .gads-card-fullscreen-name {
      font-family: var(--font-display);
      font-weight: 800;
      font-style: italic;
      font-size: 26px;
      color: #1A2E33;
      margin-bottom: 6px;
    }

    html[dir="rtl"] .gads-card-fullscreen-name {
      font-family: var(--font-ar);
      font-style: normal;
    }

    .gads-card-fullscreen-hint {
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: #7A8A8E;
    }

    @media (max-width: 520px) {
      .gads-card-wrap {
        max-width: 100%;
      }

      .gads-card {
        padding: 22px 18px 20px;
      }

      .gads-card-brand-main {
        font-size: 32px;
      }

      .gads-card-qr {
        width: 200px;
        height: 200px;
      }

      .gads-card-qr-box {
        padding: 16px;
      }

      .gads-card-name {
        font-size: 20px;
      }

      .gads-card-stat-value {
        font-size: 22px;
      }

      .gads-card-actions {
        grid-template-columns: 1fr;
      }

      .gads-wallet-buttons {
        grid-template-columns: 1fr;
      }
    }
