/* =============================================================================
   GOLDEN AGE MEDIA — My Account CSS
   Premium WooCommerce Theme | my-account.css
   ============================================================================= */

/* -----------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   ----------------------------------------------------------------------------- */
:root {
  --gam-primary:        #C8391A;
  --gam-primary-hover:  #A52E14;
  --gam-primary-light:  #FDF0EC;
  --gam-primary-border: #F5C9BE;
  --gam-dark:           #1A1A1A;
  --gam-heading:        #111111;
  --gam-text:           #444444;
  --gam-muted:          #777777;
  --gam-border:         #E5E5E5;
  --gam-surface:        #FFFFFF;
  --gam-bg:             #F7F5F2;
  --gam-sidebar-bg:     #FFFFFF;
  --gam-card-radius:    12px;
  --gam-input-radius:   8px;
  --gam-btn-radius:     8px;
  --gam-shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --gam-shadow-md:      0 4px 16px rgba(0,0,0,.08);
  --gam-transition:     0.2s ease;
  --gam-font-sans:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gam-font-serif:     Georgia, 'Times New Roman', serif;
  --gam-sidebar-w:      240px;
}

/* -----------------------------------------------------------------------------
   PAGE WRAPPER
   ----------------------------------------------------------------------------- */
.gam-myaccount-page {
  background: var(--gam-bg);
  min-height: 80vh;
}

.gam-myaccount-header {
  padding: 32px 0 24px;
}

.gam-myaccount-header h1 {
  font-family: var(--gam-font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--gam-heading);
  margin: 0 0 8px;
  line-height: 1.15;
}

.gam-myaccount-header p {
  font-size: 0.9375rem;
  color: var(--gam-muted);
  margin: 0;
}

/* Breadcrumb */
.gam-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--gam-muted);
  margin-bottom: 12px;
}
.gam-breadcrumb a {
  color: var(--gam-muted);
  text-decoration: none;
  transition: color var(--gam-transition);
}
.gam-breadcrumb a:hover { color: var(--gam-primary); }
.gam-breadcrumb-sep { font-size: 0.7rem; opacity: 0.5; }
.gam-breadcrumb-current { color: var(--gam-dark); font-weight: 500; }

/* Layout */
.gam-myaccount-layout {
  display: grid;
  grid-template-columns: var(--gam-sidebar-w) 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 60px;
}

/* -----------------------------------------------------------------------------
   SIDEBAR
   ----------------------------------------------------------------------------- */
.gam-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gam-sidebar-nav {
  background: var(--gam-surface);
  border-radius: var(--gam-card-radius);
  box-shadow: var(--gam-shadow-sm);
  overflow: hidden;
}

.gam-sidebar-nav-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gam-border);
}

.gam-sidebar-nav-header .gam-nav-header-icon {
  width: 20px;
  height: 20px;
  color: var(--gam-dark);
  flex-shrink: 0;
}

.gam-sidebar-nav-header span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gam-heading);
  letter-spacing: 0.01em;
}

.gam-nav-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.gam-nav-item {
  margin: 0;
}

.gam-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  text-decoration: none;
  transition: background var(--gam-transition), color var(--gam-transition);
  position: relative;
  cursor: pointer;
}

.gam-nav-link:hover {
  background: var(--gam-bg);
}

.gam-nav-link.active {
  background: var(--gam-primary-light);
}

.gam-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--gam-primary);
  border-radius: 0 3px 3px 0;
}

.gam-nav-icon {
  width: 18px;
  height: 18px;
  color: var(--gam-muted);
  flex-shrink: 0;
  transition: color var(--gam-transition);
}

.gam-nav-link.active .gam-nav-icon,
.gam-nav-link:hover .gam-nav-icon {
  color: var(--gam-primary);
}

.gam-nav-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.gam-nav-text-main {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gam-heading);
  line-height: 1.3;
  transition: color var(--gam-transition);
}

.gam-nav-link.active .gam-nav-text-main {
  color: var(--gam-primary);
  font-weight: 600;
}

.gam-nav-text-sub {
  font-size: 0.75rem;
  color: var(--gam-muted);
  line-height: 1.3;
}

.gam-nav-item--logout .gam-nav-text-main,
.gam-nav-item--logout .gam-nav-icon {
  color: var(--gam-muted);
}
.gam-nav-item--logout .gam-nav-link:hover .gam-nav-text-main,
.gam-nav-item--logout .gam-nav-link:hover .gam-nav-icon {
  color: #C0392B;
}

/* Help Card */
.gam-help-card {
  background: var(--gam-surface);
  border-radius: var(--gam-card-radius);
  box-shadow: var(--gam-shadow-sm);
  padding: 20px;
}

.gam-help-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.gam-help-card-header .gam-help-icon {
  width: 36px;
  height: 36px;
  background: var(--gam-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gam-help-card-header .gam-help-icon svg {
  width: 18px;
  height: 18px;
  color: var(--gam-primary);
}

.gam-help-card-header-text h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gam-heading);
  margin: 0 0 2px;
}

.gam-help-card-header-text p {
  font-size: 0.75rem;
  color: var(--gam-muted);
  margin: 0;
}

.gam-help-card-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gam-help-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--gam-text);
}

.gam-help-contact-item svg {
  width: 14px;
  height: 14px;
  color: var(--gam-muted);
  flex-shrink: 0;
}

.gam-help-contact-item a {
  color: var(--gam-text);
  text-decoration: none;
  transition: color var(--gam-transition);
}
.gam-help-contact-item a:hover { color: var(--gam-primary); }

/* -----------------------------------------------------------------------------
   MAIN CONTENT AREA
   ----------------------------------------------------------------------------- */
.gam-myaccount-content {
  min-width: 0;
}

/* -----------------------------------------------------------------------------
   FORMS CONTAINER (login + register side by side on desktop)
   ----------------------------------------------------------------------------- */
.gam-auth-container {
  background: var(--gam-surface);
  border-radius: var(--gam-card-radius);
  box-shadow: var(--gam-shadow-sm);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.gam-auth-divider {
  width: 1px;
  background: var(--gam-border);
  margin: 40px 0;
}

/* Form Panel */
.gam-auth-panel {
  padding: 48px 44px;
}

.gam-auth-panel-header {
  text-align: center;
  margin-bottom: 32px;
}

.gam-auth-icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--gam-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.gam-auth-icon-wrap svg {
  width: 28px;
  height: 28px;
  color: var(--gam-primary);
}

.gam-auth-panel-header h2 {
  font-family: var(--gam-font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gam-heading);
  margin: 0 0 6px;
}

.gam-auth-panel-header p {
  font-size: 0.875rem;
  color: var(--gam-muted);
  margin: 0;
}

/* Form Fields */
.gam-form-group {
  margin-bottom: 20px;
}

.gam-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gam-heading);
  margin-bottom: 8px;
}

.gam-input-wrap {
  position: relative;
}

.gam-form-control {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--gam-border);
  border-radius: var(--gam-input-radius);
  padding: 0 16px;
  font-size: 0.9375rem;
  color: var(--gam-dark);
  background: var(--gam-surface);
  outline: none;
  transition: border-color var(--gam-transition), box-shadow var(--gam-transition);
  box-sizing: border-box;
  font-family: var(--gam-font-sans);
}

.gam-form-control::placeholder {
  color: #BBBBBB;
}

.gam-form-control:focus {
  border-color: var(--gam-primary);
  box-shadow: 0 0 0 3px rgba(200, 57, 26, 0.1);
}

.gam-form-control.gam-has-icon-left {
  padding-left: 44px;
}

.gam-input-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #BBBBBB;
  pointer-events: none;
}

.gam-input-icon-right {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #BBBBBB;
  cursor: pointer;
  transition: color var(--gam-transition);
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gam-input-icon-right:hover { color: var(--gam-muted); }

.gam-form-control.gam-has-icon-right {
  padding-right: 44px;
}

/* Password field */
.gam-password-wrap .gam-form-control {
  padding-right: 48px;
}

/* Remember / Forgot row */
.gam-form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* Checkbox */
.gam-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gam-text);
  cursor: pointer;
  user-select: none;
}

.gam-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--gam-border);
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--gam-primary);
  flex-shrink: 0;
}

.gam-forgot-link {
  font-size: 0.875rem;
  color: var(--gam-primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--gam-transition);
}
.gam-forgot-link:hover { opacity: 0.75; }

/* Buttons */
.gam-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: var(--gam-btn-radius);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--gam-font-sans);
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
  transition: background var(--gam-transition), transform var(--gam-transition), box-shadow var(--gam-transition);
  position: relative;
  overflow: hidden;
}

.gam-btn-primary {
  background: var(--gam-primary);
  color: #FFFFFF;
  width: 100%;
}

.gam-btn-primary:hover {
  background: var(--gam-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200,57,26,0.3);
}

.gam-btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.gam-btn-primary.gam-btn--loading {
  pointer-events: none;
  opacity: 0.8;
}

.gam-btn-primary.gam-btn--loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gam-spin 0.6s linear infinite;
  margin-left: 8px;
}

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

.gam-btn-outline {
  background: var(--gam-surface);
  border: 1.5px solid var(--gam-border);
  color: var(--gam-dark);
  flex: 1;
}

.gam-btn-outline:hover {
  border-color: #CCCCCC;
  background: var(--gam-bg);
}

/* Divider with text */
.gam-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-size: 0.8125rem;
  color: var(--gam-muted);
}
.gam-or-divider::before,
.gam-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gam-border);
}

/* Social buttons */
.gam-social-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.gam-btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border: 1.5px solid var(--gam-border);
  border-radius: var(--gam-btn-radius);
  background: var(--gam-surface);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gam-dark);
  cursor: pointer;
  transition: border-color var(--gam-transition), box-shadow var(--gam-transition);
  font-family: var(--gam-font-sans);
}

.gam-btn-social:hover {
  border-color: #BBBBBB;
  box-shadow: var(--gam-shadow-sm);
}

.gam-btn-social img,
.gam-btn-social svg {
  width: 20px;
  height: 20px;
}

/* Auth switch line */
.gam-auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gam-muted);
  margin-top: 20px;
}

.gam-auth-switch a {
  color: var(--gam-primary);
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--gam-transition);
}
.gam-auth-switch a:hover { opacity: 0.75; }

/* Terms checkbox */
.gam-terms-row {
  margin-bottom: 20px;
}

.gam-terms-row .gam-checkbox-label {
  font-size: 0.8125rem;
  line-height: 1.5;
}

.gam-terms-row a {
  color: var(--gam-primary);
  text-decoration: none;
  font-weight: 500;
}
.gam-terms-row a:hover { text-decoration: underline; }

/* Error / Success Messages */
.gam-message {
  border-radius: var(--gam-input-radius);
  padding: 12px 16px;
  font-size: 0.875rem;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.gam-message--error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.gam-message--success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
}

.gam-message svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Field error */
.gam-field-error {
  font-size: 0.75rem;
  color: #C0392B;
  margin-top: 5px;
  display: none;
}

.gam-form-group.has-error .gam-form-control {
  border-color: #E74C3C;
}

.gam-form-group.has-error .gam-field-error {
  display: block;
}

/* -----------------------------------------------------------------------------
   BENEFITS STRIP
   ----------------------------------------------------------------------------- */
.gam-benefits-strip {
  background: var(--gam-primary-light);
  border-radius: var(--gam-card-radius);
  padding: 40px 48px;
  margin-top: 20px;
}

.gam-benefits-title {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.gam-benefits-title h3 {
  font-family: var(--gam-font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gam-heading);
  margin: 0;
  display: inline;
}

.gam-benefits-title-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.gam-benefits-title-deco::before,
.gam-benefits-title-deco::after {
  content: '';
  width: 48px;
  height: 1.5px;
  background: var(--gam-primary);
  display: block;
}

.gam-benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.gam-benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.gam-benefit-icon {
  width: 52px;
  height: 52px;
  background: var(--gam-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--gam-shadow-sm);
}

.gam-benefit-icon svg {
  width: 22px;
  height: 22px;
  color: var(--gam-primary);
}

.gam-benefit-item h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gam-heading);
  margin: 0 0 4px;
  line-height: 1.3;
}

.gam-benefit-item p {
  font-size: 0.75rem;
  color: var(--gam-muted);
  margin: 0;
  line-height: 1.5;
}

/* -----------------------------------------------------------------------------
   MOBILE NAV CARD (used on mobile for logged-out state)
   ----------------------------------------------------------------------------- */
.gam-mobile-nav-card {
  background: var(--gam-surface);
  border-radius: var(--gam-card-radius);
  box-shadow: var(--gam-shadow-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.gam-mobile-nav-card .gam-mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gam-border);
}

.gam-mobile-nav-card .gam-mobile-nav-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gam-mobile-nav-card .gam-mobile-nav-header h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gam-heading);
  margin: 0;
}

.gam-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gam-mobile-nav-list li {
  border-bottom: 1px solid var(--gam-border);
}

.gam-mobile-nav-list li:last-child {
  border-bottom: none;
}

.gam-mobile-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  text-decoration: none;
  transition: background var(--gam-transition);
}

.gam-mobile-nav-list a:hover,
.gam-mobile-nav-list a.active {
  background: var(--gam-primary-light);
}

.gam-mobile-nav-list a.active {
  border-left: 3px solid var(--gam-primary);
}

.gam-mobile-nav-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gam-mobile-nav-item-left svg:first-child {
  width: 18px;
  height: 18px;
  color: var(--gam-muted);
}

.gam-mobile-nav-list a.active .gam-mobile-nav-item-left svg:first-child,
.gam-mobile-nav-list a:hover .gam-mobile-nav-item-left svg:first-child {
  color: var(--gam-primary);
}

.gam-mobile-nav-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.gam-mobile-nav-text-main {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gam-heading);
}

.gam-mobile-nav-list a.active .gam-mobile-nav-text-main {
  color: var(--gam-primary);
  font-weight: 600;
}

.gam-mobile-nav-text-sub {
  font-size: 0.75rem;
  color: var(--gam-muted);
}

.gam-mobile-nav-chevron {
  width: 16px;
  height: 16px;
  color: var(--gam-muted);
}

/* Mobile help card */
.gam-mobile-help-card {
  background: var(--gam-surface);
  border-radius: var(--gam-card-radius);
  box-shadow: var(--gam-shadow-sm);
  padding: 20px;
  margin-top: 20px;
}

.gam-mobile-help-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gam-heading);
  margin: 0 0 14px;
}

.gam-mobile-help-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gam-mobile-help-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--gam-text);
}

.gam-mobile-help-contact svg {
  width: 14px;
  height: 14px;
  color: var(--gam-primary);
  flex-shrink: 0;
}

.gam-mobile-help-contact a {
  color: var(--gam-text);
  text-decoration: none;
}

/* -----------------------------------------------------------------------------
   DASHBOARD (logged-in state)
   ----------------------------------------------------------------------------- */
/* Dashboard Page */
.gam-dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gam-dashboard-header {
  background: var(--gam-surface);
  border-radius: var(--gam-card-radius);
  padding: 24px 28px;
  border: 1px solid var(--gam-border);
  box-shadow: var(--gam-shadow-sm);
}

.gam-dashboard-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--gam-font-serif);
  color: var(--gam-heading);
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.gam-dashboard-subtitle {
  font-size: 0.875rem;
  color: var(--gam-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gam-dashboard-email {
  font-weight: 600;
  color: var(--gam-primary);
}

.gam-dashboard-sep {
  opacity: 0.4;
}

.gam-dashboard-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gam-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gam-heading);
  margin: 0;
}

/* Stats row */
.gam-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gam-stat-card {
  background: var(--gam-surface);
  border-radius: var(--gam-card-radius);
  padding: 20px;
  box-shadow: var(--gam-shadow-sm);
  border: 1px solid var(--gam-border);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--gam-transition), transform var(--gam-transition), border-color var(--gam-transition);
}

.gam-stat-card:hover {
  box-shadow: var(--gam-shadow-md);
  transform: translateY(-2px);
  border-color: var(--gam-primary);
}

.gam-stat-card-icon {
  width: 36px;
  height: 36px;
  background: var(--gam-primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.gam-stat-card-icon svg {
  width: 18px;
  height: 18px;
  color: var(--gam-primary);
}

.gam-stat-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gam-heading);
  line-height: 1.2;
  margin-bottom: 4px;
  font-family: var(--gam-font-serif);
}

.gam-stat-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gam-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gam-quick-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.gam-dashboard-grid-2col {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: start;
}

.gam-dashboard-sidebar-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Content cards */
.gam-content-card {
  background: var(--gam-surface);
  border-radius: var(--gam-card-radius);
  box-shadow: var(--gam-shadow-sm);
  overflow: hidden;
}

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

.gam-content-card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gam-heading);
  margin: 0;
}

.gam-content-card-header a {
  font-size: 0.8125rem;
  color: var(--gam-primary);
  text-decoration: none;
  font-weight: 500;
}
.gam-content-card-header a:hover { text-decoration: underline; }

.gam-content-card-body {
  padding: 24px;
}

/* Orders table */
.gam-orders-table {
  width: 100%;
  border-collapse: collapse;
}

.gam-orders-table th {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gam-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 0 12px;
  text-align: left;
  border-bottom: 1px solid var(--gam-border);
}

.gam-orders-table td {
  padding: 14px 0;
  font-size: 0.875rem;
  color: var(--gam-text);
  border-bottom: 1px solid var(--gam-border);
  vertical-align: middle;
}

.gam-orders-table tr:last-child td {
  border-bottom: none;
}

.gam-order-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.gam-order-status--completed  { background: #F0FDF4; color: #166534; }
.gam-order-status--processing { background: #EFF6FF; color: #1D4ED8; }
.gam-order-status--pending    { background: #FFFBEB; color: #92400E; }
.gam-order-status--cancelled  { background: #FEF2F2; color: #991B1B; }

.gam-orders-table a {
  color: var(--gam-primary);
  text-decoration: none;
  font-weight: 500;
}

/* Quick actions */
.gam-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gam-quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--gam-bg);
  border: 1.5px solid var(--gam-border);
  border-radius: var(--gam-card-radius);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--gam-transition), background var(--gam-transition), transform var(--gam-transition);
  font-family: var(--gam-font-sans);
}

.gam-quick-action-btn:hover {
  border-color: var(--gam-primary);
  background: var(--gam-primary-light);
  transform: translateY(-2px);
}

.gam-quick-action-btn svg {
  width: 22px;
  height: 22px;
  color: var(--gam-primary);
}

.gam-quick-action-btn span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gam-heading);
  text-align: center;
}

/* -----------------------------------------------------------------------------
   WALLET PAGE
   ----------------------------------------------------------------------------- */
.gam-wallet-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gam-wallet-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gam-wallet-stat-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--gam-card-radius);
  background: var(--gam-surface);
  border: 1px solid var(--gam-border);
  box-shadow: var(--gam-shadow-sm);
}

.gam-wallet-stat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.gam-wallet-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gam-primary-light, rgba(200, 57, 26, 0.08));
  color: var(--gam-primary);
}

.gam-wallet-stat-icon svg {
  width: 18px;
  height: 18px;
}

.gam-wallet-stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gam-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gam-wallet-stat-amount {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--gam-font-serif);
  color: var(--gam-heading);
  margin-bottom: 12px;
  line-height: 1.2;
}

.gam-wallet-stat-amount--primary {
  color: var(--gam-primary);
}

.gam-wallet-stat-amount--cashback {
  color: #166534;
}

.gam-wallet-stat-note {
  font-size: 0.75rem;
  color: var(--gam-muted);
  margin: 0;
}

.gam-wallet-meta {
  display: flex;
  gap: 32px;
}

.gam-wallet-meta-item label {
  font-size: 0.75rem;
  opacity: 0.7;
  display: block;
  margin-bottom: 4px;
}

.gam-wallet-meta-item span {
  font-size: 1.0625rem;
  font-weight: 600;
}

.gam-wallet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  width: 100%;
}

.gam-wallet-actions .gam-btn {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.8125rem;
  padding: 0 12px;
  height: 38px;
  box-sizing: border-box;
}

.gam-btn-white {
  background: #FFFFFF;
  color: var(--gam-primary);
  font-weight: 600;
  border: none;
  padding: 0 24px;
  height: 44px;
  border-radius: var(--gam-btn-radius);
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity var(--gam-transition);
  font-family: var(--gam-font-sans);
}

.gam-btn-white:hover { opacity: 0.9; }

.gam-btn-white-outline {
  background: transparent;
  color: #FFF;
  border: 1.5px solid rgba(255,255,255,0.5);
  padding: 0 24px;
  height: 44px;
  border-radius: var(--gam-btn-radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--gam-transition), background var(--gam-transition);
  font-family: var(--gam-font-sans);
}

.gam-btn-white-outline:hover {
  border-color: #FFF;
  background: rgba(255,255,255,0.1);
}

.gam-wallet-transactions {
  background: var(--gam-surface);
  border-radius: var(--gam-card-radius);
  box-shadow: var(--gam-shadow-sm);
  overflow: hidden;
}

.gam-wallet-filters {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gam-border);
  overflow-x: auto;
}

.gam-filter-btn,
.gam-wallet-filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1.5px solid var(--gam-border);
  background: var(--gam-surface);
  color: var(--gam-muted);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: all var(--gam-transition);
  font-family: var(--gam-font-sans);
}

.gam-filter-btn.active,
.gam-filter-btn:hover,
.gam-wallet-filter-btn.active,
.gam-wallet-filter-btn:hover {
  border-color: var(--gam-primary);
  color: var(--gam-primary);
  background: var(--gam-primary-light);
}

.gam-transaction-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gam-transaction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gam-border);
  transition: background var(--gam-transition);
}

.gam-transaction-item:last-child { border-bottom: none; }
.gam-transaction-item:hover { background: var(--gam-bg); }

.gam-transaction-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gam-transaction-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gam-transaction-icon--credit  { background: #F0FDF4; color: #16A34A; }
.gam-transaction-icon--debit   { background: #FEF2F2; color: #DC2626; }
.gam-transaction-icon--refund  { background: #EFF6FF; color: #2563EB; }
.gam-transaction-icon--cashback { background: #FFFBEB; color: #D97706; }

.gam-transaction-icon svg {
  width: 18px;
  height: 18px;
}

.gam-transaction-info h4 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gam-heading);
  margin: 0 0 3px;
}

.gam-transaction-info span {
  font-size: 0.75rem;
  color: var(--gam-muted);
}

.gam-transaction-amount {
  font-size: 0.9375rem;
  font-weight: 600;
}

.gam-transaction-amount--credit  { color: #16A34A; }
.gam-transaction-amount--debit   { color: #DC2626; }
.gam-transaction-amount--refund  { color: #2563EB; }
.gam-transaction-amount--cashback { color: #D97706; }

/* Wallet disabled notice */
.gam-wallet-disabled {
  background: var(--gam-surface);
  border-radius: var(--gam-card-radius);
  padding: 48px 24px;
  text-align: center;
  box-shadow: var(--gam-shadow-sm);
}

.gam-wallet-disabled svg {
  width: 48px;
  height: 48px;
  color: #CCC;
  margin-bottom: 16px;
}

.gam-wallet-disabled h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gam-heading);
  margin: 0 0 8px;
}

.gam-wallet-disabled p {
  font-size: 0.875rem;
  color: var(--gam-muted);
  margin: 0;
}

/* -----------------------------------------------------------------------------
   SIDEBAR WALLET CARD
   ----------------------------------------------------------------------------- */
.gam-sidebar-wallet-card {
  background: var(--gam-primary);
  border-radius: var(--gam-card-radius);
  padding: 18px 20px;
  color: #FFF;
}

.gam-sidebar-wallet-card-label {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-bottom: 6px;
}

.gam-sidebar-wallet-card-amount {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
  font-family: var(--gam-font-serif);
}

.gam-sidebar-wallet-card-link {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 6px 14px;
  border-radius: 20px;
  transition: background var(--gam-transition), border-color var(--gam-transition);
}

.gam-sidebar-wallet-card-link:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
}

/* -----------------------------------------------------------------------------
   WISHLIST PAGE
   ----------------------------------------------------------------------------- */
.gam-wishlist-empty {
  background: var(--gam-surface);
  border-radius: var(--gam-card-radius);
  padding: 64px 24px;
  text-align: center;
  box-shadow: var(--gam-shadow-sm);
}

.gam-wishlist-empty svg {
  width: 52px;
  height: 52px;
  color: #DDD;
  margin-bottom: 16px;
}

.gam-wishlist-empty h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gam-heading);
  margin: 0 0 8px;
}

.gam-wishlist-empty p {
  font-size: 0.875rem;
  color: var(--gam-muted);
  margin: 0 0 24px;
}

/* -----------------------------------------------------------------------------
   TOAST NOTIFICATIONS
   ----------------------------------------------------------------------------- */
.gam-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.gam-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--gam-card-radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 360px;
  pointer-events: all;
  animation: gam-toast-in 0.3s ease both;
  transform-origin: top right;
}

.gam-toast--success { background: #166534; color: #FFF; }
.gam-toast--error   { background: #991B1B; color: #FFF; }
.gam-toast--info    { background: var(--gam-dark); color: #FFF; }

.gam-toast.gam-toast--out {
  animation: gam-toast-out 0.25s ease both;
}

@keyframes gam-toast-in {
  from { opacity: 0; transform: translateX(24px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes gam-toast-out {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(24px) scale(0.95); }
}

.gam-toast svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* -----------------------------------------------------------------------------
   SECTION PAGE HEADING
   ----------------------------------------------------------------------------- */
.gam-section-heading {
  font-family: var(--gam-font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gam-heading);
  margin: 0 0 20px;
}

/* -----------------------------------------------------------------------------
   ADDRESSES PAGE
   ----------------------------------------------------------------------------- */
.gam-addresses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gam-address-card {
  background: var(--gam-surface);
  border-radius: var(--gam-card-radius);
  box-shadow: var(--gam-shadow-sm);
  overflow: hidden;
}

.gam-address-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gam-border);
}

.gam-address-card-header h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gam-heading);
  margin: 0;
}

.gam-address-card-body {
  padding: 20px;
  font-size: 0.875rem;
  color: var(--gam-text);
  line-height: 1.7;
}

.gam-address-card-body address {
  font-style: normal;
}

/* -----------------------------------------------------------------------------
   EDIT ACCOUNT FORM
   ----------------------------------------------------------------------------- */
.gam-edit-account-card {
  background: var(--gam-surface);
  border-radius: var(--gam-card-radius);
  box-shadow: var(--gam-shadow-sm);
  padding: 32px;
}

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

.gam-form-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gam-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 32px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gam-border);
}

.gam-form-section-title:first-child { margin-top: 0; }

/* -----------------------------------------------------------------------------
   LOADING SKELETON
   ----------------------------------------------------------------------------- */
.gam-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: gam-shimmer 1.2s infinite;
  border-radius: 6px;
}

@keyframes gam-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

/* Tablet */
@media (max-width: 1024px) {
  :root { --gam-sidebar-w: 220px; }

  .gam-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .gam-benefit-item:nth-child(n+4) {
    /* remaining items center-align on second row */
  }

  .gam-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gam-auth-panel { padding: 36px 28px; }
}

/* Mobile */
@media (max-width: 768px) {
  .gam-myaccount-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gam-sidebar { display: none; }

  .gam-auth-container {
    grid-template-columns: 1fr;
  }

  .gam-auth-divider {
    display: none;
  }

  .gam-auth-panel {
    padding: 28px 24px;
    border-bottom: 1px solid var(--gam-border);
  }

  .gam-auth-panel:last-child { border-bottom: none; }

  .gam-benefits-grid {
    grid-template-columns: repeat(5, 160px);
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gam-benefits-grid::-webkit-scrollbar { display: none; }

  .gam-benefits-strip {
    padding: 28px 24px;
  }

  .gam-stats-grid,
  .gam-wallet-summary-grid {
    grid-template-columns: 1fr;
  }

  .gam-quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .gam-addresses-grid {
    grid-template-columns: 1fr;
  }

  .gam-form-row-2 {
    grid-template-columns: 1fr;
  }

  .gam-wallet-meta {
    flex-direction: column;
    gap: 16px;
  }

  .gam-wallet-actions {
    flex-direction: column;
  }

  .gam-myaccount-header h1 {
    font-size: 1.75rem;
  }

  .gam-edit-account-card {
    padding: 24px 20px;
  }

  .gam-toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
  }

  .gam-toast {
    max-width: 100%;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .gam-auth-panel { padding: 24px 20px; }

  .gam-benefits-strip { padding: 24px 20px; }

  .gam-stat-card { padding: 16px; }

  .gam-stat-card-value { font-size: 1.25rem; }

  .gam-welcome-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
  }

  .gam-wallet-balance-amount { font-size: 2rem; }

  .gam-social-btns { grid-template-columns: 1fr; }

  .gam-quick-actions { grid-template-columns: 1fr 1fr; }

  .gam-orders-table { display: block; overflow-x: auto; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* =============================================================================
   ACCOUNT AUTH — 1.0.3
   Self-contained login/register layout. These selectors intentionally sit at
   the end of the file so WooCommerce core form rules cannot squeeze the page.
   ============================================================================= */

body.gam-myaccount-page .page-hero,
body.woocommerce-account .page-hero {
  padding: 30px 0 20px;
  background:
    radial-gradient(circle at 85% 10%, rgba(212, 175, 55, .12), transparent 32%),
    linear-gradient(180deg, #fffdf9 0%, #f8f3ed 100%);
  border-bottom: 1px solid #eadfd5;
}

body.gam-myaccount-page .page-hero h1,
body.woocommerce-account .page-hero h1 {
  margin: 0 0 6px;
  color: #7f2f2a;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}

body.gam-myaccount-page .page-hero .breadcrumb,
body.woocommerce-account .page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #75645c;
  font-size: .875rem;
}

body.gam-myaccount-page .page-content,
body.woocommerce-account .page-content {
  padding: 42px 0 72px;
  background: #f8f5f1;
}

body.gam-myaccount-page .page-content > .container,
body.woocommerce-account .page-content > .container {
  width: 100%;
  max-width: 1280px;
}

body.gam-myaccount-page .entry-content,
body.gam-myaccount-page .entry-content > .woocommerce,
body.woocommerce-account .entry-content,
body.woocommerce-account .entry-content > .woocommerce {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.gam-account-auth,
.gam-account-auth * {
  box-sizing: border-box;
}

.gam-account-auth {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(285px, 330px) minmax(0, 1fr);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eadfd5;
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(69, 43, 32, .10);
}

body.woocommerce-account:not(.logged-in) .entry-content > .woocommerce {
  display: block !important;
  grid-template-columns: none !important;
}

.gam-account-welcome {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 42px 34px 30px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(155deg, rgba(126, 46, 37, .98), rgba(157, 60, 39, .96)),
    #8b3b30;
}

.gam-account-welcome::before,
.gam-account-welcome::after {
  content: '';
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 225, 170, .18);
  border-radius: 50%;
}

.gam-account-welcome::before {
  width: 270px;
  height: 270px;
  top: -155px;
  right: -120px;
}

.gam-account-welcome::after {
  width: 190px;
  height: 190px;
  right: -100px;
  bottom: -90px;
}

.gam-account-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #f4d888;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.gam-account-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
}

.gam-account-welcome h2 {
  max-width: 280px;
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--ga-font-heading, Georgia, serif);
  font-size: clamp(1.75rem, 2.35vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -.02em;
}

.gam-account-welcome__inner > p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
  line-height: 1.7;
}

.gam-account-benefits {
  display: grid;
  gap: 18px;
  margin: 32px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.gam-account-benefits li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0;
}

.gam-account-benefit-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #f4d888;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 11px;
}

.gam-account-benefit-icon svg {
  width: 19px;
  height: 19px;
}

.gam-account-benefits strong,
.gam-account-benefits small {
  display: block;
}

.gam-account-benefits strong {
  color: #fff;
  font-size: .85rem;
  line-height: 1.3;
}

.gam-account-benefits small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .68);
  font-size: .73rem;
  line-height: 1.45;
}

.gam-account-welcome__note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 34px 0 0;
  padding-top: 18px;
  color: rgba(255, 255, 255, .70);
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .75rem;
  line-height: 1.5;
}

.gam-account-welcome__note span {
  color: #f4d888;
}

.gam-auth-stage {
  min-width: 0;
  padding: 34px;
  background:
    radial-gradient(circle at 100% 0, rgba(184, 96, 26, .05), transparent 28%),
    #fff;
}

.gam-auth-tabs {
  display: none;
}

.gam-auth-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.gam-account-auth:not(.has-registration) .gam-auth-panels {
  grid-template-columns: minmax(0, 500px);
  justify-content: center;
}

.gam-account-auth .gam-auth-panel {
  min-width: 0;
  padding: 28px;
  background: #fff;
  border: 1px solid #eadfd5;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(69, 43, 32, .055);
}

.gam-account-auth .gam-auth-panel-header {
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 0 0 25px;
  text-align: left;
}

.gam-account-auth .gam-auth-icon-wrap {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  margin: 0;
  color: #a4472d;
  background: #fbede7;
  border: 1px solid #f2d4c8;
  border-radius: 14px;
}

.gam-account-auth .gam-auth-icon-wrap svg {
  width: 22px;
  height: 22px;
  color: inherit;
}

.gam-account-auth .gam-auth-panel-header h2 {
  margin: 0 0 4px;
  color: #502b24;
  font-family: var(--ga-font-heading, Georgia, serif);
  font-size: clamp(1.32rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.gam-account-auth .gam-auth-panel-header p {
  margin: 0;
  color: #7b6b63;
  font-size: .78rem;
  line-height: 1.45;
}

.gam-account-auth .gam-auth-form {
  margin: 0;
  padding: 0;
  border: 0;
}

.gam-account-auth .gam-form-group {
  margin: 0 0 16px;
}

.gam-account-auth .gam-form-label {
  margin: 0 0 7px;
  color: #3d2b25;
  font-size: .78rem;
  font-weight: 700;
}

.gam-account-auth .gam-form-control {
  display: block;
  width: 100%;
  min-width: 0;
  height: 47px;
  margin: 0;
  padding: 0 14px;
  color: #2d2420;
  background: #fff;
  border: 1px solid #dfd3ca;
  border-radius: 10px;
  outline: none;
  box-shadow: none;
  font-family: var(--ga-font-body, sans-serif);
  font-size: .875rem;
  line-height: 47px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.gam-account-auth .gam-form-control.gam-has-icon-left {
  padding-left: 42px;
}

.gam-account-auth .gam-form-control.gam-has-icon-right {
  padding-right: 44px;
}

.gam-account-auth .gam-form-control::placeholder {
  color: #a99c95;
  opacity: 1;
}

.gam-account-auth .gam-form-control:hover {
  border-color: #c9b6aa;
}

.gam-account-auth .gam-form-control:focus {
  border-color: #b8601a;
  background: #fffdfb;
  box-shadow: 0 0 0 3px rgba(184, 96, 26, .11);
}

.gam-account-auth .gam-input-icon-left {
  left: 14px;
  width: 17px;
  height: 17px;
  color: #9f8d84;
}

.gam-account-auth .gam-input-icon-right {
  right: 12px;
  width: 32px;
  height: 32px;
  color: #8a7870;
  border-radius: 8px;
}

.gam-account-auth .gam-input-icon-right:hover {
  color: #8b3b30;
  background: #fbede7;
}

.gam-account-auth .gam-input-icon-right svg {
  width: 18px;
  height: 18px;
}

.gam-account-auth .gam-form-row-between {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 18px;
}

.gam-account-auth .gam-checkbox-label {
  min-width: 0;
  color: #64554e;
  font-size: .78rem;
  line-height: 1.45;
}

.gam-account-auth .gam-checkbox-label input[type="checkbox"] {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #a4472d;
}

.gam-account-auth .gam-forgot-link {
  color: #a4472d;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.gam-account-auth .gam-btn-primary {
  width: 100%;
  min-height: 48px;
  height: auto;
  margin: 0;
  padding: 13px 20px;
  color: #fff;
  background: linear-gradient(135deg, #b5532e, #963625);
  border: 0;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(139, 59, 48, .18);
  font-family: var(--ga-font-body, sans-serif);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .01em;
}

.gam-account-auth .gam-btn-primary:hover,
.gam-account-auth .gam-btn-primary:focus {
  color: #fff;
  background: linear-gradient(135deg, #a74729, #7f2f25);
  box-shadow: 0 10px 24px rgba(139, 59, 48, .25);
  transform: translateY(-1px);
}

.gam-account-auth .gam-auth-switch {
  margin: 16px 0 0;
  color: #7b6b63;
  font-size: .76rem;
  line-height: 1.5;
}

.gam-account-auth .gam-auth-switch a,
.gam-account-auth .gam-terms-row a {
  color: #a4472d;
  font-weight: 800;
}

.gam-account-auth .gam-terms-row {
  margin-top: 2px;
}

.gam-account-auth .gam-terms-row .gam-checkbox-label {
  align-items: flex-start;
  font-size: .72rem;
}

.gam-account-auth .gam-auth-password-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.gam-account-auth .gam-field-error {
  margin-top: 5px;
  color: #b42318;
  font-size: .7rem;
}

.gam-account-auth .gam-message {
  margin: 0 0 16px;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: .76rem;
  line-height: 1.45;
}

.gam-auth-security {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  margin: 20px 0 0;
  color: #8b7c74;
  font-size: .72rem;
  line-height: 1.4;
}

.gam-auth-security svg {
  width: 16px;
  height: 16px;
  color: #4a7c59;
}

body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-message {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 18px;
  padding: 14px 16px 14px 46px;
  color: #4f3730;
  background: #fff;
  border: 1px solid #eadfd5;
  border-top: 3px solid #b8601a;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(69, 43, 32, .06);
  font-size: .85rem;
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .gam-account-auth {
    grid-template-columns: 1fr;
    max-width: 920px;
  }

  .gam-account-welcome {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    gap: 32px;
    padding: 32px;
  }

  .gam-account-welcome h2 {
    max-width: 540px;
  }

  .gam-account-benefits {
    align-content: center;
    margin: 0 !important;
  }

  .gam-account-welcome__note {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  body.gam-myaccount-page .page-content,
  body.woocommerce-account .page-content {
    padding: 24px 0 48px;
  }

  .gam-account-auth {
    border-radius: 18px;
  }

  .gam-account-welcome {
    display: block;
    padding: 28px 24px 24px;
  }

  .gam-account-welcome h2 {
    max-width: 560px;
    font-size: 1.8rem;
  }

  .gam-account-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px !important;
  }

  .gam-account-benefits li {
    display: block;
    padding: 12px;
    text-align: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
  }

  .gam-account-benefit-icon {
    margin: 0 auto 9px;
  }

  .gam-account-benefits small {
    display: none;
  }

  .gam-account-welcome__note {
    margin-top: 22px;
  }

  .gam-auth-stage {
    padding: 20px;
  }

  .gam-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 0 0 18px;
    padding: 4px;
    background: #f4eee8;
    border-radius: 12px;
  }

  .gam-auth-tab {
    padding: 10px 12px;
    color: #75645c;
    border-radius: 9px;
    font-size: .78rem;
    font-weight: 800;
    text-align: center;
  }

  .gam-auth-tab.is-active {
    color: #7f2f25;
    background: #fff;
    box-shadow: 0 3px 10px rgba(69, 43, 32, .08);
  }

  .gam-auth-panels {
    display: block;
  }

  .gam-account-auth .gam-auth-panel {
    padding: 25px;
  }

  .gam-account-auth .gam-auth-panel + .gam-auth-panel {
    margin-top: 18px;
  }

  .gam-account-auth.has-registration.gam-auth-js .gam-auth-panel {
    display: none;
    margin-top: 0;
  }

  .gam-account-auth.has-registration.gam-auth-js .gam-auth-panel.is-active {
    display: block;
  }
}

@media (max-width: 480px) {
  body.gam-myaccount-page .page-hero,
  body.woocommerce-account .page-hero {
    padding: 22px 0 16px;
  }

  body.gam-myaccount-page .page-hero h1,
  body.woocommerce-account .page-hero h1 {
    font-size: 2rem;
  }

  body.gam-myaccount-page .page-content > .container,
  body.woocommerce-account .page-content > .container {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .gam-account-auth {
    border-radius: 15px;
  }

  .gam-account-welcome {
    padding: 24px 20px 20px;
  }

  .gam-account-welcome__inner > p {
    font-size: .82rem;
  }

  .gam-account-benefits {
    grid-template-columns: 1fr;
  }

  .gam-account-benefits li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 9px 11px;
    text-align: left;
  }

  .gam-account-benefit-icon {
    width: 34px;
    height: 34px;
    margin: 0;
  }

  .gam-auth-stage {
    padding: 14px;
  }

  .gam-account-auth .gam-auth-panel {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .gam-account-auth .gam-auth-panel-header {
    align-items: flex-start;
  }

  .gam-account-auth .gam-form-row-between {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .gam-account-auth .gam-forgot-link {
    white-space: normal;
  }
}

/* =============================================================================
   LOGGED-IN WOOCOMMERCE ACCOUNT SHELL — 1.0.4
   Keeps native WooCommerce endpoints dependable while matching the theme.
   ============================================================================= */
body.woocommerce-account .gam-myaccount-layout {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 0 64px;
}

body.woocommerce-account .gam-myaccount-sidebar {
  min-width: 0;
}

body.woocommerce-account .gam-myaccount-sidebar .woocommerce-MyAccount-navigation {
  position: sticky;
  top: 24px;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #eadfd7;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(64, 38, 25, 0.06);
}

body.admin-bar.woocommerce-account .gam-myaccount-sidebar .woocommerce-MyAccount-navigation {
  top: 56px;
}

body.woocommerce-account .gam-myaccount-sidebar .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.woocommerce-account .gam-myaccount-sidebar .woocommerce-MyAccount-navigation li {
  margin: 0;
  padding: 0;
  border: 0;
}

body.woocommerce-account .gam-myaccount-sidebar .woocommerce-MyAccount-navigation li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 9px;
  color: #493c36;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

body.woocommerce-account .gam-myaccount-sidebar .woocommerce-MyAccount-navigation li a:hover,
body.woocommerce-account .gam-myaccount-sidebar .woocommerce-MyAccount-navigation li a:focus-visible {
  background: #fbf4ef;
  color: #9f3f20;
  transform: translateX(2px);
}

body.woocommerce-account .gam-myaccount-sidebar .woocommerce-MyAccount-navigation li.is-active a {
  background: linear-gradient(135deg, #fff1e9, #f8e6dc);
  color: #8b3525;
  box-shadow: inset 3px 0 0 #c65319;
}

body.woocommerce-account .gam-myaccount-sidebar .woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 6px;
  padding-top: 6px !important;
  border-top: 1px solid #f0e5de !important;
}

body.woocommerce-account .gam-myaccount-sidebar .woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #a13e36;
}

body.woocommerce-account .gam-myaccount-content {
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
  background: #fff;
  border: 1px solid #eadfd7;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(64, 38, 25, 0.065);
}

body.woocommerce-account .gam-myaccount-content > :first-child {
  margin-top: 0;
}

body.woocommerce-account .gam-myaccount-content > :last-child {
  margin-bottom: 0;
}

body.woocommerce-account .gam-myaccount-content p {
  color: #65564f;
  font-size: 0.96rem;
  line-height: 1.75;
}

body.woocommerce-account .gam-myaccount-content a {
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.woocommerce-account .gam-myaccount-content .button,
body.woocommerce-account .gam-myaccount-content button.button,
body.woocommerce-account .gam-myaccount-content input.button {
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #b84620, #d5632a);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.2;
  box-shadow: 0 7px 18px rgba(184, 70, 32, 0.2);
}

body.woocommerce-account .gam-myaccount-content .button:hover,
body.woocommerce-account .gam-myaccount-content button.button:hover,
body.woocommerce-account .gam-myaccount-content input.button:hover {
  background: #713029;
  color: #fff;
}

@media (max-width: 768px) {
  body.woocommerce-account .gam-myaccount-layout {
    gap: 14px;
    padding-bottom: 42px;
  }

  body.woocommerce-account .gam-myaccount-sidebar .woocommerce-MyAccount-navigation {
    position: static;
    overflow-x: auto;
    padding: 8px;
    border-radius: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.woocommerce-account .gam-myaccount-sidebar .woocommerce-MyAccount-navigation::-webkit-scrollbar {
    display: none;
  }

  body.woocommerce-account .gam-myaccount-sidebar .woocommerce-MyAccount-navigation ul {
    display: flex;
    width: max-content;
    min-width: 100%;
    gap: 6px;
  }

  body.woocommerce-account .gam-myaccount-sidebar .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto;
  }

  body.woocommerce-account .gam-myaccount-sidebar .woocommerce-MyAccount-navigation li a {
    min-height: 40px;
    padding: 9px 12px;
    white-space: nowrap;
  }

  body.woocommerce-account .gam-myaccount-sidebar .woocommerce-MyAccount-navigation li a:hover,
  body.woocommerce-account .gam-myaccount-sidebar .woocommerce-MyAccount-navigation li a:focus-visible {
    transform: none;
  }

  body.woocommerce-account .gam-myaccount-sidebar .woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: 0;
    padding-top: 0 !important;
    border-top: 0 !important;
  }

  body.woocommerce-account .gam-myaccount-content {
    padding: 22px 18px;
    border-radius: 12px;
  }
}

/* =============================================================================
   EDIT ADDRESS FORM STYLES
   ============================================================================= */
.gam-edit-address-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gam-edit-address-card {
  background: var(--gam-surface, #FFFFFF);
  border-radius: var(--gam-card-radius, 12px);
  border: 1px solid var(--gam-border, #E2E8F0);
  box-shadow: var(--gam-shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
  overflow: hidden;
}

.gam-edit-address-card-body {
  padding: 28px 32px !important;
}

/* 2-Column Grid on Desktop / Laptop */
.gam-address-fields-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px 24px !important;
  width: 100% !important;
}

.gam-address-fields-grid .form-row {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  clear: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

/* Column spans */
.gam-address-fields-grid .form-row-wide,
.gam-address-fields-grid #billing_address_1_field,
.gam-address-fields-grid #billing_address_2_field,
.gam-address-fields-grid #shipping_address_1_field,
.gam-address-fields-grid #shipping_address_2_field,
.gam-address-fields-grid #billing_country_field,
.gam-address-fields-grid #shipping_country_field,
.gam-address-fields-grid #billing_email_field,
.gam-address-fields-grid #billing_phone_field {
  grid-column: span 2 !important;
}

.gam-address-fields-grid .form-row-first,
.gam-address-fields-grid .form-row-last,
.gam-address-fields-grid #billing_first_name_field,
.gam-address-fields-grid #billing_last_name_field,
.gam-address-fields-grid #shipping_first_name_field,
.gam-address-fields-grid #shipping_last_name_field,
.gam-address-fields-grid #billing_city_field,
.gam-address-fields-grid #billing_state_field,
.gam-address-fields-grid #billing_postcode_field,
.gam-address-fields-grid #shipping_city_field,
.gam-address-fields-grid #shipping_state_field,
.gam-address-fields-grid #shipping_postcode_field {
  grid-column: span 1 !important;
}

/* Labels */
.woocommerce-address-fields .form-row label {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--gam-heading, #1E293B) !important;
  margin: 0 !important;
  display: block !important;
}

.woocommerce-address-fields .form-row label .required {
  color: var(--gam-primary, #C8391A) !important;
  text-decoration: none !important;
}

/* Inputs & Textareas */
.woocommerce-address-fields input.input-text,
.woocommerce-address-fields select,
.woocommerce-address-fields textarea {
  height: 46px !important;
  padding: 0 16px !important;
  border: 1.5px solid var(--gam-border, #CBD5E1) !important;
  border-radius: var(--gam-btn-radius, 8px) !important;
  font-size: 0.875rem !important;
  font-family: var(--gam-font-sans, inherit) !important;
  color: var(--gam-heading, #1E293B) !important;
  background-color: var(--gam-surface, #FFFFFF) !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.woocommerce-address-fields textarea {
  height: auto !important;
  padding: 12px 16px !important;
  min-height: 80px !important;
}

.woocommerce-address-fields input.input-text:focus,
.woocommerce-address-fields select:focus,
.woocommerce-address-fields textarea:focus {
  border-color: var(--gam-primary, #C8391A) !important;
  box-shadow: 0 0 0 3px rgba(200, 57, 26, 0.12) !important;
  outline: none !important;
}

/* Select2 / Country & State Selects */
.woocommerce-address-fields .select2-container--default .select2-selection--single {
  height: 46px !important;
  border: 1.5px solid var(--gam-border, #CBD5E1) !important;
  border-radius: var(--gam-btn-radius, 8px) !important;
  background-color: var(--gam-surface, #FFFFFF) !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.woocommerce-address-fields .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 44px !important;
  color: var(--gam-heading, #1E293B) !important;
  padding-left: 0 !important;
  font-size: 0.875rem !important;
  font-family: var(--gam-font-sans, inherit) !important;
}

.woocommerce-address-fields .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px !important;
  right: 12px !important;
}

.woocommerce-address-fields .select2-container--default.select2-container--open .select2-selection--single,
.woocommerce-address-fields .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--gam-primary, #C8391A) !important;
  box-shadow: 0 0 0 3px rgba(200, 57, 26, 0.12) !important;
  outline: none !important;
}

/* Phone Field Alignment */
#billing_phone_field input,
#shipping_phone_field input {
  height: 46px !important;
}

/* Save Address Button */
.gam-save-address-btn,
button[name="save_address"] {
  height: 48px !important;
  padding: 0 32px !important;
  border-radius: var(--gam-btn-radius, 8px) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  background-color: var(--gam-primary, #C8391A) !important;
  color: #FFFFFF !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(200, 57, 26, 0.2) !important;
}

.gam-save-address-btn:hover,
button[name="save_address"]:hover {
  background-color: #a92a10 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(200, 57, 26, 0.3) !important;
}

.gam-save-address-btn:active,
button[name="save_address"]:active {
  transform: translateY(0) !important;
}

/* Responsive Mobile Stacking */
@media (max-width: 768px) {
  .gam-edit-address-card-body {
    padding: 20px 16px !important;
  }

  .gam-address-fields-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .gam-address-fields-grid .form-row {
    grid-column: span 1 !important;
  }

  .gam-save-address-btn,
  button[name="save_address"] {
    width: 100% !important;
  }
}
