/* ===================================================================
   MudraLanka - User Authentication & Cart / Orders CSS
   Modern, Clean, High-Conversion E-Commerce & Customer Portal UI
   =================================================================== */

/* --- Navbar Buttons & Badges --- */
.nav-actions-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-cart-btn, .nav-user-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 10px;
  font-family: var(--font-heading, inherit);
  cursor: pointer;
  border: 1px solid var(--border-light, #e2e8f0);
  background: #ffffff;
  color: var(--text-primary, #0f172a);
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  flex-shrink: 0;
}

.nav-cart-btn:hover, .nav-user-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}

.nav-cart-btn {
  background: #ffffff;
}

.nav-cart-btn.has-items {
  border-color: #fdba74;
  background: #fff7ed;
  color: var(--color-accent, #ea580c);
}

.nav-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9999px;
  background: var(--color-accent, #ea580c);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.35);
}

.nav-user-btn.user-logged-in {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.nav-user-btn .user-name-text {
  display: none !important;
}

.nav-user-avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--color-accent, #ea580c);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* User Dropdown */
.nav-user-wrapper {
  position: relative;
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 240px;
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-lg, 14px);
  box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0,0,0,0.1));
  padding: 0.6rem;
  display: none;
  z-index: 1000;
  animation: dropdownFadeIn 0.18s ease-out;
}

.nav-user-dropdown.open {
  display: block;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-header {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border-light, #f1f5f9);
  margin-bottom: 0.4rem;
}

.user-dropdown-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary, #0f172a);
}

.user-dropdown-email {
  font-size: 0.75rem;
  color: var(--text-secondary, #64748b);
  word-break: break-all;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md, 8px);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
}

.user-dropdown-item:hover {
  background: #f8fafc;
  color: var(--color-accent, #ea580c);
}

.user-dropdown-item.logout {
  color: #ef4444;
  border-top: 1px solid var(--border-light, #f1f5f9);
  margin-top: 0.35rem;
  padding-top: 0.65rem;
}

.user-dropdown-item.logout:hover {
  background: #fef2f2;
}

/* --- Slide-Over Cart & Orders Drawer --- */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cart-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cart-orders-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 490px;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-orders-drawer.open {
  transform: translateX(0);
}

.drawer-top-bar {
  padding: 1.25rem 1.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border-light, #e2e8f0);
  background: #ffffff;
}

.drawer-headline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.drawer-headline-row h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.drawer-close-btn {
  background: #f1f5f9;
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Drawer Tabs */
.drawer-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: -1px;
}

.drawer-tab-btn {
  flex: 1;
  padding: 0.65rem 0.75rem;
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  font-family: var(--font-heading, inherit);
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.drawer-tab-btn:hover {
  color: #0f172a;
}

.drawer-tab-btn.active {
  color: var(--color-accent, #ea580c);
  border-bottom-color: var(--color-accent, #ea580c);
}

.drawer-tab-btn .badge-count {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
}

.drawer-tab-btn.active .badge-count {
  background: #ffedd5;
  color: #ea580c;
}

.drawer-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
}

/* Orders Cards inside Drawer */
.order-card-compact {
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-lg, 12px);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.order-card-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.order-compact-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  gap: 0.5rem;
}

.order-compact-id {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary, #0f172a);
}

.order-compact-date {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.status-review {
  background: #fef3c7;
  color: #b45309;
}

.status-printing {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-dispatched {
  background: #f3e8ff;
  color: #7e22ce;
}

.status-delivered {
  background: #dcfce7;
  color: #15803d;
}

.order-compact-title {
  font-weight: 700;
  font-size: 0.925rem;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.order-compact-specs {
  font-size: 0.78rem;
  color: #475569;
  background: #f8fafc;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm, 6px);
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.order-compact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--border-light, #e2e8f0);
  padding-top: 0.65rem;
  margin-top: 0.5rem;
}

.order-compact-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary, #0f172a);
}

.order-compact-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-order-action {
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-light, #cbd5e1);
  background: #ffffff;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-order-action:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-order-action.primary {
  background: var(--color-accent, #ea580c);
  border-color: var(--color-accent, #ea580c);
  color: white;
}

.btn-order-action.primary:hover {
  background: var(--color-accent-hover, #c2410c);
}

/* Cart Items inside Drawer */
.cart-item-card {
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-lg, 12px);
  padding: 1rem;
  margin-bottom: 0.85rem;
  display: flex;
  gap: 0.85rem;
  position: relative;
}

.cart-item-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md, 8px);
  object-fit: contain;
  background: #ffffff;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-specs-text {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.cart-item-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
}

.cart-item-price {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-primary, #0f172a);
}

.cart-item-remove-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 4px;
  transition: color 0.15s;
}

.cart-item-remove-btn:hover {
  color: #ef4444;
}

/* Drawer Footer */
.drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-light, #e2e8f0);
  background: #ffffff;
}

.drawer-footer-summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: #64748b;
}

.drawer-footer-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.btn-drawer-checkout {
  width: 100%;
  padding: 0.85rem;
  background: var(--color-accent, #ea580c);
  color: white;
  border: none;
  border-radius: var(--radius-md, 10px);
  font-family: var(--font-heading, inherit);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.btn-drawer-checkout:hover {
  background: var(--color-accent-hover, #c2410c);
  transform: translateY(-1px);
}

/* Empty State inside Drawer */
.drawer-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.drawer-empty-icon {
  font-size: 3rem;
  margin-bottom: 0.85rem;
}

.drawer-empty-state h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.drawer-empty-state p {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* --- Auth Modal (Sign Up & Sign In) --- */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.auth-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.auth-modal-box {
  background: #ffffff;
  border-radius: var(--radius-xl, 20px);
  max-width: 440px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light, #e2e8f0);
  overflow: hidden;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-backdrop.active .auth-modal-box {
  transform: scale(1);
}

.auth-modal-header {
  padding: 1.75rem 1.75rem 1rem 1.75rem;
  text-align: center;
  position: relative;
}

.auth-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #f1f5f9;
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 1rem;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: #fff7ed;
  color: #ea580c;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.auth-modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.auth-modal-sub {
  font-size: 0.85rem;
  color: #64748b;
}

/* Auth Modal Tabs */
.auth-tabs-bar {
  display: flex;
  margin: 0.75rem 1.75rem 0 1.75rem;
  background: #f1f5f9;
  border-radius: var(--radius-md, 10px);
  padding: 0.25rem;
}

.auth-tab-pill {
  flex: 1;
  padding: 0.55rem;
  background: none;
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading, inherit);
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab-pill.active {
  background: #ffffff;
  color: var(--text-primary, #0f172a);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.auth-modal-body {
  padding: 1.25rem 1.75rem 1.75rem 1.75rem;
}

.auth-form-group {
  margin-bottom: 0.95rem;
}

.auth-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.3rem;
}

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

.auth-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border-light, #cbd5e1);
  border-radius: var(--radius-md, 8px);
  font-size: 0.9rem;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
  outline: none;
  border-color: var(--color-accent, #ea580c);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.auth-toggle-pwd {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  font-size: 0.85rem;
}

.btn-auth-submit {
  width: 100%;
  padding: 0.8rem;
  background: var(--color-accent, #ea580c);
  color: white;
  border: none;
  border-radius: var(--radius-md, 8px);
  font-family: var(--font-heading, inherit);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
  transition: all 0.2s;
}

.btn-auth-submit:hover {
  background: var(--color-accent-hover, #c2410c);
  transform: translateY(-1px);
}

.btn-auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-alert {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md, 8px);
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: none;
}

.auth-alert.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  display: block;
}

.auth-alert.success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  display: block;
}

/* Toast Notifications */
.printcraft-toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.printcraft-toast {
  background: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
  animation: toastPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastPop {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes successPop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.auth-redirect-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2.5px solid #fdba74;
  border-top-color: #ea580c;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .nav-user-btn span.user-name-text {
    display: none;
  }
  .cart-orders-drawer {
    max-width: 100%;
  }
}

/* Free Gmail OTP Verification Specific Styles */
.otp-digit-input {
  letter-spacing: 0.5rem;
  font-family: monospace;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  color: #0f172a;
}
.otp-info-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #15803d;
  margin-bottom: 0.95rem;
}
.otp-change-email-btn {
  background: none;
  border: none;
  color: #0284c7;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.otp-resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: #64748b;
}
.btn-resend-otp {
  background: none;
  border: none;
  color: #ea580c;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
}
.btn-resend-otp:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

/* 1-Click Google Sign-In Button */
.btn-google-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border: 1.5px solid #dadce0;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #3c4043;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(60,64,67,0.08);
}
.btn-google-signin:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(60,64,67,0.15);
  transform: translateY(-1px);
}
.btn-google-signin:active {
  background: #f1f5f9;
  transform: scale(0.99);
}
.btn-google-signin svg {
  flex-shrink: 0;
}

/* In-Modal Google Sign-In Sheet */
.google-signin-sheet {
  background: #ffffff;
  border-radius: 14px;
  animation: googleSheetFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes googleSheetFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.google-sheet-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.25rem;
}

.google-sheet-logo-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.google-sheet-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.01em;
}

.google-sheet-sub {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.google-sheet-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.google-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: left;
}

.google-input-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
}

.google-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.google-input-box svg {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.google-input-box input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.65rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.google-input-box input:focus {
  background: #ffffff;
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.google-sheet-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-google-back {
  padding: 0.75rem 1.25rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-google-back:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-google-submit {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: #1a73e8;
  border: none;
  border-radius: 9999px;
  font-size: 0.925rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-google-submit:hover {
  background: #1557b0;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
  transform: translateY(-1px);
}

.btn-google-submit:active {
  transform: scale(0.98);
}

.btn-google-submit:disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ===================================================================
   Vistaprint-Inspired Authentication Modal UI (Clean, Modern, Trusted)
   =================================================================== */
.vp-auth-header {
  text-align: center;
  padding: 1.75rem 2rem 0.5rem 2rem;
  position: relative;
}

.vp-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ea580c;
  background: #fff7ed;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid #ffedd5;
  margin-bottom: 0.65rem;
}

.vp-auth-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin: 0 0 0.35rem 0;
  font-family: var(--font-heading, inherit);
}

.vp-auth-sub {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

.vp-auth-body {
  padding: 1rem 2rem 2rem 2rem;
}

/* Action 1: Sign in with passcode */
.btn-vp-passcode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: #e0f2fe;
  color: #0284c7;
  border: 1.5px solid #bae6fd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.65rem;
}

.btn-vp-passcode:hover {
  background: #bae6fd;
  color: #0369a1;
  border-color: #7dd3fc;
  transform: translateY(-1px);
}

/* Action 2: Continue with Google */
.btn-vp-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.825rem 1.25rem;
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #dadce0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  margin-bottom: 0.65rem;
}

.btn-vp-google:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
  transform: translateY(-1px);
}

/* Action 3: Social Row (Apple & Facebook) */
.vp-social-row {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.btn-vp-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 0.5rem;
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #dadce0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-vp-social:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Divider: Or, sign in with email. */
.vp-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
}

.vp-divider::before,
.vp-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.vp-divider span {
  padding: 0 0.85rem;
}

/* Input Fields */
.vp-form-group {
  margin-bottom: 0.85rem;
  position: relative;
}

.vp-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.vp-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.vp-pwd-wrap {
  position: relative;
}

.vp-pwd-toggle {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Links row */
.vp-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.65rem 0 1rem 0;
}

.vp-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0284c7;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.vp-link:hover {
  color: #0369a1;
}

/* Primary Submit Button */
.btn-vp-primary {
  width: 100%;
  padding: 0.85rem;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15);
}

.btn-vp-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-vp-primary:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

/* Switch & Footer */
.vp-switch-text {
  text-align: center;
  margin-top: 1.15rem;
  font-size: 0.875rem;
  color: #64748b;
}

.vp-switch-text button {
  background: none;
  border: none;
  color: #0284c7;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.vp-terms-text {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.725rem;
  color: #94a3b8;
  line-height: 1.5;
}

.vp-terms-text a {
  color: #64748b;
  text-decoration: underline;
}

/* Back Link for views */
.vp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 0.85rem;
  padding: 0;
}

.vp-back-btn:hover {
  color: #0f172a;
}

/* Cart Artwork Badges & Warning Styles */
.cart-item-card.item-missing-artwork {
  border-color: #fde68a;
  background: #fffdfa;
}

.cart-item-card.pulse-warning-border {
  animation: pulse-cart-warning 1s infinite alternate ease-in-out;
}

@keyframes pulse-cart-warning {
  0% {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
  }
  100% {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.5);
  }
}

.cart-art-badge {
  transition: all 0.2s ease;
}

.btn-cart-upload:hover {
  background: #c2410c !important;
}

.btn-cart-edit:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}



