[hidden] { display: none !important; }

.account-page { margin: 0; background: var(--paper); color: var(--ink); }
.account-site-header { min-height: 94px; padding: 0 clamp(22px, 6vw, 88px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.account-site-header nav { display: flex; align-items: center; gap: 26px; }
.account-site-header nav a { color: inherit; font-size: 10px; font-weight: 900; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.account-bag-link { min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: 999px; }

.account-hero { min-height: 330px; padding: 72px clamp(24px, 8vw, 126px) 68px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); align-items: end; gap: clamp(40px, 8vw, 130px); border-bottom: 1px solid var(--line); background: linear-gradient(120deg, #fffaf1 45%, #e7ede8); }
.account-hero h1 { margin: 12px 0 0; font: 500 clamp(46px, 6vw, 82px)/.98 Georgia, serif; letter-spacing: -.045em; }
.account-hero h1 em { color: var(--orange); font-weight: 500; }
.account-hero > p { max-width: 470px; margin: 0 0 7px; color: var(--ink-soft); font-size: 17px; line-height: 1.75; }
.account-loading { min-height: 420px; display: grid; place-content: center; justify-items: center; color: var(--ink-soft); }

.auth-shell { width: min(1200px, calc(100% - 40px)); margin: 70px auto 110px; display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: #fffdf8; box-shadow: 0 26px 70px rgba(18,50,61,.08); }
.auth-story { position: relative; padding: clamp(45px, 6vw, 82px); overflow: hidden; background: var(--navy); color: #edf4ef; }
.auth-story::after { content: ""; position: absolute; width: 360px; height: 360px; right: -160px; bottom: -165px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.035), 0 0 0 82px rgba(255,255,255,.025); }
.auth-story h2 { max-width: 420px; margin: 12px 0 48px; font: 500 clamp(42px, 5vw, 66px)/1 Georgia, serif; }
.auth-story ul { margin: 0; padding: 0; list-style: none; }
.auth-story li { padding: 17px 0; display: flex; align-items: center; gap: 15px; border-top: 1px solid rgba(255,255,255,.14); color: #d7e4df; font-size: 14px; }
.auth-story li span { color: var(--yellow); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.auth-security { max-width: 450px; margin: 48px 0 0; color: #9fb7b2; font-size: 12px; line-height: 1.65; }
.auth-postmark { position: absolute; top: 34px; right: 34px; width: 66px; height: 66px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; color: #dbe7e2; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-align: center; transform: rotate(8deg); }
.auth-card { padding: clamp(36px, 6vw, 76px); }
.auth-tabs { margin-bottom: 46px; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth-tabs button { padding: 0 8px 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.auth-tabs button.active { border-color: var(--orange); color: var(--ink); }
.form-heading h2 { margin: 7px 0 30px; font: 500 40px Georgia, serif; }
.form-heading > p:last-child:not(.eyebrow) { margin: -17px 0 28px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.account-form, .profile-form { display: grid; gap: 18px; }
.account-form label, .profile-form label { display: grid; gap: 8px; color: var(--ink-soft); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.account-form label span small, .profile-form label span small { font-weight: 600; text-transform: none; }
.account-form input, .profile-form input { width: 100%; min-height: 50px; box-sizing: border-box; padding: 0 15px; border: 1px solid #cfd7d1; border-radius: 11px; outline: 0; background: white; color: var(--ink); font: 500 15px Arial, sans-serif; }
.account-form input:focus, .profile-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(73,118,107,.12); }
.profile-form input[readonly] { background: #f2f1eb; color: #66716b; }
.account-form > small { margin-top: -10px; color: var(--ink-soft); font-size: 11px; }
.form-grid { display: grid; gap: 16px; }
.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.address-grid { grid-template-columns: 1.25fr .65fr .75fr; }
.account-error { padding: 12px 14px; border-radius: 10px; background: #fff0ed; color: #9c3f34; font-size: 13px; line-height: 1.5; }
.account-success { margin: 0; padding: 13px 15px; border: 1px solid #cbd9d3; border-radius: 10px; background: #eff5f1; color: #285b4e; font-size: 13px; line-height: 1.55; }
.form-link { width: fit-content; margin: -8px 0 2px auto; color: var(--ink-soft); }
.form-back { width: fit-content; margin: 0 auto; color: var(--ink-soft); }
.sandbox-action { width: fit-content; color: var(--teal); text-decoration: none; }
.account-form > .sandbox-action { margin: -5px auto 0; }
.form-fine-print { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; text-align: center; }

.account-dashboard { width: min(1280px, calc(100% - 40px)); margin: 70px auto 120px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 45px; }
.account-sidebar { position: sticky; top: 24px; height: fit-content; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: #fffdf8; }
.account-avatar { width: 62px; height: 62px; margin-bottom: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: white; font: 700 21px Georgia, serif; }
.account-sidebar h2 { margin: 6px 0; font: 500 25px Georgia, serif; }
.account-sidebar > p:not(.eyebrow) { margin: 0; overflow-wrap: anywhere; color: var(--ink-soft); font-size: 12px; }
.account-sidebar nav { margin: 29px 0; padding: 14px 0; display: grid; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.account-sidebar nav a { padding: 11px 0; color: inherit; font-size: 11px; font-weight: 800; text-decoration: none; }
.account-signout { color: #8f4338; }
.clover-sync-badge { margin-top: 19px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; border-radius: 999px; background: #edf3ee; color: #346355; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.clover-sync-badge.permission, .clover-sync-badge.unverified { background: #fff4d9; color: #7d5a13; }
.clover-sync-badge.error { background: #fff0ed; color: #9c3f34; }
.sync-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.account-content { min-width: 0; display: grid; gap: 24px; }
.account-welcome-card { min-height: 210px; padding: clamp(30px, 5vw, 58px); display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; border-radius: 26px; background: var(--navy); color: #edf4ef; }
.account-welcome-card h2 { margin: 8px 0 13px; font: 500 clamp(36px, 5vw, 54px) Georgia, serif; }
.account-welcome-card p:last-child { max-width: 590px; margin: 0; color: #abc0bb; line-height: 1.65; }
.welcome-mark { color: var(--yellow); font: 500 105px Georgia, serif; transform: rotate(-12deg); }
.verification-card, .sync-detail-card { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #ead59a; border-radius: 18px; background: #fff8e4; }
.sync-detail-card { border-color: #cbd9d3; background: #eff5f1; }
.verification-card strong, .sync-detail-card strong { font: 700 17px Georgia, serif; }
.verification-card p, .sync-detail-card p { margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.verification-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; }
.account-panel { padding: clamp(26px, 5vw, 52px); border: 1px solid var(--line); border-radius: 26px; background: #fffdf8; }
.panel-heading { margin-bottom: 34px; padding-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 7px 0 0; font: 500 34px Georgia, serif; }
.panel-heading > span { color: var(--ink-soft); font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.form-divider { margin: 12px 0 0; display: flex; align-items: center; gap: 14px; color: var(--teal); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.form-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.profile-actions { margin-top: 8px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap; }
.profile-actions .account-error { margin-right: auto; }
.save-message { margin: 0 auto 0 0; color: var(--teal); font-size: 13px; font-weight: 700; }
.orders-loading { min-height: 120px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--ink-soft); font-size: 13px; }
.orders-list { display: grid; gap: 12px; }
.order-card { padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.order-card header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-card h3 { margin: 0; font: 700 17px Georgia, serif; }
.order-card time { color: var(--ink-soft); font-size: 11px; }
.order-status { padding: 5px 8px; border-radius: 999px; background: #edf3ee; color: #346355; font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.order-card p { margin: 10px 0 0; color: var(--ink-soft); font-size: 12px; }
.order-total { text-align: right; }
.order-total strong { display: block; font: 500 22px Georgia, serif; }
.order-total span { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.orders-empty { min-height: 290px; display: grid; place-content: center; justify-items: center; text-align: center; }
.orders-empty > span { color: var(--orange); font: 500 50px Georgia, serif; }
.orders-empty h3 { margin: 5px 0; font: 500 28px Georgia, serif; }
.orders-empty p { margin: 0 0 22px; color: var(--ink-soft); }
.orders-source-note { margin: 20px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.account-footer { min-height: 150px; padding: 38px clamp(24px, 7vw, 100px); display: flex; align-items: center; justify-content: space-between; gap: 30px; background: #0b2a34; color: #e7eee9; }
.account-footer > span { font: 700 20px Georgia, serif; }
.account-footer div { display: flex; gap: 22px; color: #9cb6b3; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 900px) {
  .account-hero { grid-template-columns: 1fr; align-items: start; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: 430px; }
  .account-dashboard { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .account-sidebar nav { grid-template-columns: 1fr 1fr; gap: 16px; }
  .account-sidebar nav a { text-align: center; }
}

@media (max-width: 620px) {
  .account-site-header { min-height: 76px; padding-inline: 14px; }
  .account-site-header .brand-place, .account-site-header nav > a:first-child { display: none; }
  .account-site-header nav { gap: 9px; }
  .account-hero { min-height: 0; padding: 56px 20px; }
  .account-hero h1 { font-size: 48px; }
  .auth-shell, .account-dashboard { width: calc(100% - 24px); margin-top: 30px; }
  .auth-story, .auth-card, .account-panel { padding: 30px 20px; }
  .auth-story { min-height: 0; }
  .auth-postmark { display: none; }
  .two-column, .address-grid { grid-template-columns: 1fr; }
  .account-welcome-card { min-height: 0; }
  .welcome-mark { display: none; }
  .verification-card, .sync-detail-card, .panel-heading { align-items: flex-start; flex-direction: column; }
  .verification-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .verification-actions .button { width: 100%; }
  .profile-actions { align-items: stretch; flex-direction: column; }
  .profile-actions .button { width: 100%; }
  .order-card { grid-template-columns: 1fr; }
  .order-total { text-align: left; }
  .account-footer { align-items: flex-start; flex-direction: column; }
  .account-footer div { flex-direction: column; gap: 7px; }
}

.security-check {
  max-width: 100%;
  overflow: hidden;
}

.security-check:empty {
  display: none;
}

.security-check iframe {
  max-width: 100%;
}
