.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: linear-gradient(160deg, #fff5f0 0%, #fff 60%);
}

.auth-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.08);
}

.auth-card h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.auth-card .subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.btn-block {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  background: var(--orange);
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-block:hover {
  background: var(--orange-dark);
}

.btn-block:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

.alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.alert-error {
  background: #fff0ea;
  color: #c0392b;
  border: 1px solid #ffd0b8;
}

.alert-success {
  background: #e8f8ee;
  color: #1a7f3c;
  border: 1px solid #b8e8c8;
}

/* Dashboard */
.dash-wrap {
  min-height: 100vh;
  background: var(--bg2);
}

.dash-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.dash-user .email {
  color: var(--text-muted);
}

.dash-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px;
}

.dash-main h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.dash-main .subtitle {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 20px;
}

.card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.link-result {
  margin-top: 16px;
  padding: 14px;
  background: #f9f5f2;
  border-radius: 10px;
  border: 1px solid var(--border);
  word-break: break-all;
  font-size: 0.88rem;
}

.link-result .label {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.link-result .url {
  display: flex;
  gap: 8px;
  align-items: center;
}

.link-result .url a {
  color: var(--orange);
  text-decoration: none;
  font-family: 'Courier New', monospace;
  flex: 1;
}

.btn-copy {
  padding: 5px 12px;
  font-size: 0.8rem;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-copy:hover {
  background: var(--orange-dark);
}

.btn-copy.copied {
  background: #1a7f3c;
}

.history-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

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

.history-item .origin {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  word-break: break-all;
}

.history-item .short {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--orange);
  word-break: break-all;
}

.history-item .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-text {
  background: none;
  border: none;
  color: #c0392b;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
}

.btn-text:hover {
  text-decoration: underline;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 32px 0;
  font-size: 0.95rem;
}

.btn-secondary {
  padding: 8px 16px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* Product card (Shopee preview) */
.product-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  align-items: flex-start;
}

.product-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f0f0f0;
}

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

.product-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.85rem;
}

.product-price {
  font-weight: 700;
  color: var(--orange);
}

.product-rate {
  color: var(--text-muted);
}
