
    /* ── Design tokens ──────────────────────────────────────── */
    :root {
      --card-bg:      #ffffff;
      --surface:      #f8f6f2;
      --surface-2:    #ece8e0;
      --primary:      #000;
      --primary-d:    #2d1f0a;
      --primary-light:#faf5ee;
      --accent:       #b47d2d;
      --muted:        #6c757d;
      --border:       #e8e0d0;
      --shadow-soft:  0 4px 18px rgba(0,0,0,.07);
      --shadow-card:  0 2px 10px rgba(65,83,38,.08);
      --radius-lg:    20px;
      --radius-md:    14px;
      --danger:       #c0392b;
      --danger-bg:    #fdf2f2;
    }

    /* ── Base ────────────────────────────────────────────────── */
    body {
      background: linear-gradient(145deg, var(--surface) 0%, var(--surface-2) 100%) !important;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    .section { background: transparent; }

    .dashboard-shell {
      margin-top: 7em;
      padding-bottom: 72px;
    }

    /* ── Navbar profile ─────────────────────────────────────── */
    .mobile-nav-tools {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .profile-dropdown  { margin-left: 10px; }
    .profile-toggle    { padding: 0; background: transparent; border: none; }
    .profile-toggle .w-icon-dropdown-toggle { display: none; }

    .profile-list {
      left: auto;
      right: 0;
      min-width: 220px;
      padding: 8px;
      border: 1px solid var(--border);
      border-radius: 14px;
      background: #fff;
      box-shadow: 0 8px 32px rgba(0,0,0,.1);
    }

    .profile-list .dropdown-link {
      border-radius: 8px;
      margin-bottom: 2px;
    }

    .top-profile {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-left: 10px;
      padding: 5px 12px 5px 5px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: #fff;
      box-shadow: 0 1px 4px rgba(0,0,0,.06);
    }

    .top-profile-avatar {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: linear-gradient(135deg, #91621c, #c18a37);
      color: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 700;
      flex-shrink: 0;
    }

    .top-profile-name  { font-size: 12px; color: var(--primary); font-weight: 600; line-height: 1; }
    .top-profile-link  { font-size: 11px; color: var(--muted); line-height: 1; }

    /* ── Page wrapper ───────────────────────────────────────── */
    .addr-shell {
      max-width: 920px;
      margin: 0 auto;
      padding: 0 clamp(14px, 3vw, 28px);
    }

    /* ── Page hero ──────────────────────────────────────────── */
    .addr-hero {
      background: linear-gradient(135deg, #faf5ee 0%, #f5ead8 60%, #f0dfc0 100%);
      border-radius: var(--radius-lg);
      padding: clamp(28px, 4vw, 44px) clamp(22px, 4vw, 44px);
      margin: 32px 0 28px;
      color: var(--primary);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
      box-shadow: 0 4px 20px rgba(140,94,26,.1);
      border: 1.5px solid rgba(140,94,26,.16);
      position: relative;
      overflow: hidden;
    }

    .addr-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse at 110% 0%, rgba(140,94,26,.05) 0%, transparent 60%),
        radial-gradient(ellipse at -10% 110%, rgba(140,94,26,.04) 0%, transparent 55%);
      pointer-events: none;
    }

    .addr-hero-text { flex: 1; min-width: 0; }

    .addr-hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .09em;
      text-transform: uppercase;
      background: rgba(140,94,26,.12);
      border: 1px solid rgba(140,94,26,.22);
      border-radius: 999px;
      padding: 4px 11px;
      margin-bottom: 12px;
      color: var(--primary);
    }

    .addr-hero h1 {
      color: var(--primary);
      margin-bottom: 6px;
      font-size: clamp(26px, 4vw, 36px);
      line-height: 1.1;
    }

    .addr-hero p {
      color: var(--muted);
      margin: 0;
      font-size: 14px;
      max-width: 400px;
    }

    /* ── Add button ─────────────────────────────────────────── */
    .btn-add-addr {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 46px;
      padding: 11px 22px;
      border-radius: 999px;
      background: var(--primary);
      color: #fff;
      font-size: 14px;
      font-weight: 700;
      border: none;
      cursor: pointer;
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
      box-shadow: 0 4px 18px rgba(140,94,26,.28);
      white-space: nowrap;
      flex-shrink: 0;
      position: relative;
      z-index: 1;
    }

    .btn-add-addr:hover {
      background: var(--primary-d);
      transform: translateY(-1px);
      box-shadow: 0 8px 24px rgba(140,94,26,.32);
    }

    .btn-add-addr svg { flex-shrink: 0; }

    /* ── Stats bar ──────────────────────────────────────────── */
    .addr-stats {
      display: flex;
      gap: 12px;
      margin-bottom: 24px;
      flex-wrap: wrap;
    }

    .addr-stat {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 14px 20px;
      box-shadow: var(--shadow-card);
      flex: 1;
      min-width: 120px;
    }

    .addr-stat-value {
      font-size: 24px;
      font-weight: 800;
      color: var(--primary);
      line-height: 1;
      margin-bottom: 3px;
    }

    .addr-stat-label {
      font-size: 12px;
      color: var(--muted);
      font-weight: 500;
    }

    /* ── Card grid ──────────────────────────────────────────── */
    .addr-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 18px;
    }

    .addr-card {
      background: var(--card-bg);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 22px 22px 16px;
      box-shadow: var(--shadow-card);
      position: relative;
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .addr-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 28px rgba(140,94,26,.13);
    }

    .addr-card.is-default {
      border-color: rgba(140,94,26,.4);
      box-shadow: 0 4px 20px rgba(140,94,26,.14);
    }

    .addr-card-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 14px;
    }

    .addr-label-row {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .addr-icon {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      background: var(--primary-light);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
    }

    .addr-label {
      font-size: 15px;
      font-weight: 700;
      color: var(--primary);
    }

    .badge-default {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 10px;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 999px;
      background: var(--primary-light);
      color: var(--primary);
      border: 1px solid rgba(140,94,26,.18);
      letter-spacing: .03em;
      text-transform: uppercase;
    }

    .addr-divider {
      height: 1px;
      background: var(--border);
      margin: 0 0 14px;
    }

    .addr-body {
      font-size: 13.5px;
      color: #4b5563;
      line-height: 1.65;
      margin-bottom: 18px;
    }

    .addr-body .addr-line { display: block; }

    .addr-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      padding-top: 4px;
    }

    .btn-addr-action {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-height: 32px;
      padding: 5px 14px;
      border-radius: 999px;
      font-size: 12.5px;
      font-weight: 600;
      border: 1px solid transparent;
      cursor: pointer;
      transition: all .16s ease;
    }

    .btn-edit {
      background: var(--primary-light);
      color: var(--primary);
      border-color: rgba(140,94,26,.16);
    }

    .btn-edit:hover { background: #f0dfc0; }

    .btn-delete {
      background: var(--danger-bg);
      color: var(--danger);
      border-color: rgba(192,57,43,.14);
    }

    .btn-delete:hover { background: #fbd5d0; }

    /* ── Empty state ────────────────────────────────────────── */
    .addr-empty {
      grid-column: 1 / -1;
      text-align: center;
      padding: 64px 24px;
      color: var(--muted);
      background: var(--card-bg);
      border: 1.5px dashed var(--border);
      border-radius: var(--radius-lg);
    }

    .addr-empty-icon {
      font-size: 46px;
      margin-bottom: 14px;
      display: block;
      opacity: .85;
    }

    .addr-empty h3   { margin-bottom: 8px; color: var(--primary); }
    .addr-empty p    { color: var(--muted); margin: 0; }

    /* ── Skeleton ───────────────────────────────────────────── */
    .addr-skeleton {
      background: linear-gradient(90deg, #e8eceb 25%, #f1f4f0 50%, #e8eceb 75%);
      background-size: 400% 100%;
      border-radius: var(--radius-lg);
      height: 180px;
      animation: skeleton-sweep 1.6s infinite ease-in-out;
    }

    @keyframes skeleton-sweep {
      0%   { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    /* ── Modal overlay ──────────────────────────────────────── */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,.48);
      z-index: 9999;
      align-items: center;
      justify-content: center;
      padding: 16px;
      backdrop-filter: blur(2px);
    }

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

    .modal-box {
      background: #fff;
      border-radius: var(--radius-lg);
      width: 100%;
      max-width: 560px;
      max-height: 92vh;
      overflow-y: auto;
      padding: 34px 30px 28px;
      box-shadow: 0 28px 72px rgba(0,0,0,.2);
      position: relative;
      border: 1px solid rgba(0,0,0,.05);
    }

    .modal-close {
      position: absolute;
      top: 16px;
      right: 18px;
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--surface);
      border: none;
      border-radius: 50%;
      font-size: 18px;
      color: var(--muted);
      cursor: pointer;
      transition: background .16s, color .16s;
    }

    .modal-close:hover { background: var(--surface-2); color: #111; }

    .modal-header {
      padding-bottom: 18px;
      margin-bottom: 20px;
      border-bottom: 1px solid var(--border);
    }

    .modal-title {
      font-size: 19px;
      font-weight: 700;
      color: var(--primary);
      margin: 0;
    }

    .modal-subtitle {
      font-size: 13px;
      color: var(--muted);
      margin: 4px 0 0;
    }

    /* ── Form ───────────────────────────────────────────────── */
    .addr-form {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

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

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .form-group label {
      font-size: 12.5px;
      font-weight: 600;
      color: #374151;
      letter-spacing: .01em;
    }

    .required-star { color: var(--danger); }

    .form-group input[type="text"] {
      height: 42px;
      padding: 0 12px;
      border: 1.5px solid #d1d8cf;
      border-radius: 10px;
      font-size: 14px;
      color: #111;
      background: #fafafa;
      outline: none;
      transition: border-color .16s, box-shadow .16s, background .16s;
      width: 100%;
      box-sizing: border-box;
    }

    .form-group input[type="text"]:focus {
      border-color: var(--primary);
      background: #fff;
      box-shadow: 0 0 0 3px rgba(140,94,26,.1);
    }

    .address-suggestions {
      display: none;
      margin-top: 8px;
      border: 1.5px solid #d1d8cf;
      border-radius: 10px;
      background: #fff;
      max-height: 220px;
      overflow-y: auto;
      box-shadow: 0 8px 18px rgba(0,0,0,.08);
    }

    .address-suggestions.is-open {
      display: block;
    }

    .address-suggestion-item {
      width: 100%;
      border: none;
      border-bottom: 1px solid #eef1ec;
      background: transparent;
      text-align: left;
      padding: 10px 12px;
      cursor: pointer;
      transition: background .14s ease;
    }

    .address-suggestion-item:last-child {
      border-bottom: none;
    }

    .address-suggestion-item:hover {
      background: #faf5ee;
    }

    .address-suggestion-main {
      font-size: 13px;
      font-weight: 600;
      color: #111827;
      line-height: 1.35;
    }

    .address-suggestion-sub {
      margin-top: 2px;
      font-size: 12px;
      color: #6b7280;
      line-height: 1.35;
    }

    .map-picker {
      border: 1.5px solid #d1d8cf;
      border-radius: 12px;
      overflow: hidden;
      background: #fff;
    }


    .map-canvas {
      width: 100%;
      height: 220px;
      background: #f3f4f6;
    }

    .map-help {
      margin-top: 8px;
      font-size: 12px;
      color: var(--muted);
      line-height: 1.5;
    }

    .map-status {
      margin-top: 8px;
      font-size: 12px;
      color: #1f2937;
      min-height: 18px;
    }

    .map-status.is-error { color: var(--danger); }
    .map-status.is-success { color: #1c7c3f; }

    .form-check-row {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 10px 14px;
      background: var(--primary-light);
      border: 1px solid rgba(140,94,26,.14);
      border-radius: 10px;
    }

    .form-check-row input[type="checkbox"] {
      width: 16px;
      height: 16px;
      cursor: pointer;
      accent-color: var(--primary);
      flex-shrink: 0;
    }

    .form-check-row label {
      font-size: 13px;
      font-weight: 600;
      color: var(--primary);
      cursor: pointer;
    }

    .modal-actions {
      display: flex;
      gap: 10px;
      justify-content: flex-end;
      margin-top: 6px;
      padding-top: 16px;
      border-top: 1px solid var(--border);
    }

    .btn-cancel {
      min-height: 42px;
      padding: 9px 22px;
      border-radius: 999px;
      border: 1.5px solid var(--border);
      background: #fff;
      color: #374151;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: background .16s, border-color .16s;
    }

    .btn-cancel:hover { background: var(--surface); border-color: #c8cfc4; }

    .btn-save {
      min-height: 42px;
      padding: 9px 26px;
      border-radius: 999px;
      border: none;
      background: var(--primary);
      color: #fff;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: background .16s, box-shadow .16s, transform .16s;
      /* box-shadow: 0 4px 14px rgba(140,94,26,.3); */
    }

    .btn-save:hover    { background: var(--primary-d); transform: translateY(-1px); }
    .btn-save:disabled { opacity: .55; cursor: not-allowed; transform: none; }

    /* ── Confirm modal ──────────────────────────────────────── */
    .confirm-box   { max-width: 420px; }
    .confirm-inner { text-align: center; padding: 10px 0 4px; }

    .confirm-icon-wrap {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: var(--danger-bg);
      border: 1.5px solid rgba(192,57,43,.18);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 26px;
      margin: 0 auto 16px;
    }

    .confirm-title {
      font-size: 18px;
      font-weight: 700;
      color: #1f2937;
      margin-bottom: 8px;
    }

    .confirm-msg {
      font-size: 14px;
      color: var(--muted);
      margin-bottom: 24px;
      line-height: 1.55;
    }

    .btn-danger {
      min-height: 42px;
      padding: 9px 24px;
      border-radius: 999px;
      border: none;
      background: var(--danger);
      color: #fff;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: background .16s, box-shadow .16s;
      box-shadow: 0 4px 14px rgba(192,57,43,.3);
    }

    .btn-danger:hover { background: #a93226; }

    /* ── Responsive ─────────────────────────────────────────── */
    @media (max-width: 640px) {
      .form-row            { grid-template-columns: 1fr; }
      .addr-hero           { flex-direction: column; align-items: flex-start; }
      .btn-add-addr        { width: 100%; justify-content: center; }
      .modal-box           { padding: 24px 18px 20px; }
      .addr-stats          { display: none; }
    }

    @media (max-width: 480px) {
      .dashboard-shell     { margin-top: 5em; }
      .top-profile-name,
      .top-profile-link    { display: none; }
      .top-profile         { padding: 0; border: none; background: transparent; box-shadow: none; }
    }