* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  background: #000;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #fff;
}

#game-canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}

.hidden {
  display: none !important;
}

/* ========== HUD ========== */
#hud {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

#crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #fff;
  text-shadow: 0 0 2px #000, 0 0 2px #000;
  user-select: none;
}

#interact-hint {
  position: absolute;
  top: calc(50% + 28px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.12s;
}

#interact-hint:empty {
  opacity: 0;
}

#interact-hint kbd {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
  font-family: inherit;
  margin: 0 2px;
}

#coin-display {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 18px;
  font-weight: 600;
  background: rgba(0,0,0,0.5);
  padding: 6px 14px;
  border-radius: 6px;
}

#build-status {
  position: absolute;
  top: calc(50% + 28px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
  user-select: none;
}

#build-status.build-blocked {
  background: rgba(255, 50, 50, 0.7);
  color: #fff;
}

#build-status.build-ok {
  background: rgba(50, 200, 50, 0.7);
  color: #fff;
}

/* ========== Hotbar ========== */
#hotbar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  z-index: 10;
  background: rgba(0,0,0,0.65);
  padding: 4px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 2px;
}

.hotbar-slot {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(60,60,60,0.8);
  border-top-color: rgba(80,80,80,0.6);
  border-left-color: rgba(80,80,80,0.6);
  border-bottom-color: rgba(30,30,30,0.9);
  border-right-color: rgba(30,30,30,0.9);
  background: rgba(30,30,30,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.hotbar-slot.selected {
  border: 2px solid #fff;
  background: rgba(255,255,255,0.08);
}

.hotbar-slot .block-preview {
  width: 34px;
  height: 34px;
  border-radius: 2px;
  image-rendering: pixelated;
}

.hotbar-slot .slot-count {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000;
}

.hotbar-slot .slot-key {
  position: absolute;
  top: 1px;
  left: 3px;
  font-size: 8px;
  opacity: 0.4;
  text-shadow: 1px 1px 0 #000;
}

/* ========== LOADING SCREEN ========== */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  background: linear-gradient(180deg, #111a11 0%, #0c150c 50%, #111a11 100%);
}

.loading-content {
  text-align: center;
}

.loading-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 42px;
  color: #4CAF50;
  text-shadow: 3px 3px 0 #2E7D32, 6px 6px 0 rgba(0,0,0,0.3);
  margin-bottom: 32px;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(76, 175, 80, 0.2);
  border-top-color: #4CAF50;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  font-size: 14px;
  color: #6a8a6a;
  letter-spacing: 1px;
}

/* ========== LOGIN SCREEN ========== */

#connect-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  background:
    linear-gradient(180deg, rgba(30,80,30,0.4) 0%, rgba(10,20,40,0.6) 50%, rgba(20,60,20,0.4) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(76,175,80,0.03) 31px, rgba(76,175,80,0.03) 32px),
    repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(76,175,80,0.03) 31px, rgba(76,175,80,0.03) 32px),
    radial-gradient(ellipse at 30% 20%, rgba(76,175,80,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(66,133,66,0.10) 0%, transparent 50%),
    linear-gradient(180deg, #111a11 0%, #0c150c 50%, #111a11 100%);
}

.login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 90%;
  max-width: 420px;
  animation: loginFadeIn 0.6s ease-out;
}

@keyframes loginFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Logo */
.login-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 42px;
  color: #4CAF50;
  text-shadow:
    3px 3px 0 #2E7D32,
    6px 6px 0 rgba(0,0,0,0.3);
  text-align: center;
  letter-spacing: 4px;
}

.login-tagline {
  font-size: 15px;
  color: #9ab;
  text-align: center;
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.login-features {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-pill {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.25);
  color: #6fbf6f;
  letter-spacing: 0.3px;
}

/* Card */
.login-card {
  width: 100%;
  background: rgba(40, 50, 45, 0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(24px);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.login-card-header {
  text-align: center;
  margin-bottom: 20px;
}

.login-card-title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #eee;
  margin-bottom: 6px;
}

.login-card-sub {
  display: block;
  font-size: 13px;
  color: #9aa;
}

/* Auth form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6a7;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
}

.auth-form input {
  width: 100%;
  padding: 13px 14px 13px 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  color: #eee;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input:focus {
  border-color: rgba(76, 175, 80, 0.6);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.auth-form input::placeholder {
  color: #7a8a7a;
}

.auth-error {
  background: rgba(255, 50, 50, 0.1);
  border: 1px solid rgba(255, 50, 50, 0.25);
  color: #f66;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 4px;
}

/* Buttons */
.btn-primary {
  padding: 13px 20px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #4CAF50, #43A047);
  color: #fff;
  transition: all 0.2s;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #56C45A, #4CAF50);
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.login-divider span {
  font-size: 11px;
  color: #445;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-ghost {
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: #778;
  transition: all 0.2s;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: #aab;
}

.login-footer {
  text-align: center;
  font-size: 13px;
  color: #8a9a8a;
  margin-top: 20px;
  line-height: 1.5;
}

.login-footer a {
  color: #4CAF50;
  text-decoration: none;
  font-weight: 600;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* ========== GENERAL MODALS ========== */
#shop-modal, #pause-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  z-index: 100;
}

.modal-content {
  background: #1a1a2e;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
}

.modal-content.modal-wide {
  max-width: 560px;
}

.modal-content h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.modal-content h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.modal-content p {
  color: #aaa;
  margin-bottom: 8px;
  line-height: 1.5;
}

.modal-content .subtitle {
  color: #4CAF50;
  font-weight: 600;
  margin-bottom: 16px;
}

.controls-hint {
  font-size: 13px;
  color: #666 !important;
  margin-top: 4px;
}

button {
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

/* ========== Pause Menu ========== */
.pause-card {
  background: rgba(20, 24, 30, 0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 48px 56px;
  width: 480px;
  height: 460px;
  max-width: 92%;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 60px rgba(0,0,0,0.6);
  animation: pauseFadeIn 0.15s ease-out;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@keyframes pauseFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.pause-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 32px;
  color: #4CAF50;
  text-shadow: 2px 2px 0 #2E7D32;
  margin-bottom: 6px;
}

.pause-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 5px;
  color: #666;
  margin-bottom: 32px;
}

.pause-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.pause-btn {
  width: 100%;
  padding: 18px 24px;
  border-radius: 12px;
  border: none;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.3px;
}

.pause-btn-resume {
  background: linear-gradient(135deg, #4CAF50, #43A047);
  color: #fff;
}

.pause-btn-resume:hover {
  background: linear-gradient(135deg, #56C45A, #4CAF50);
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
  transform: translateY(-1px);
}

.pause-btn-stripe {
  background: rgba(99, 91, 255, 0.12);
  border: 1px solid rgba(99, 91, 255, 0.3);
  color: #a78bfa;
}

.pause-btn-stripe:hover {
  background: rgba(99, 91, 255, 0.2);
  border-color: rgba(99, 91, 255, 0.5);
  color: #c4b5fd;
}

.pause-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #888;
}

.control-row kbd {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 12px;
  font-family: monospace;
  color: #aaa;
  min-width: 32px;
  text-align: center;
}

/* Stripe submenu */
.stripe-submenu {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stripe-submenu-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.stripe-back-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.15s;
  line-height: 1;
}

.stripe-back-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.stripe-submenu-title {
  font-size: 18px;
  font-weight: 700;
  color: #a78bfa;
}

.stripe-submenu-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 91, 255, 0.3) transparent;
}

.stripe-submenu-body::-webkit-scrollbar {
  width: 6px;
}

.stripe-submenu-body::-webkit-scrollbar-track {
  background: transparent;
}

.stripe-submenu-body::-webkit-scrollbar-thumb {
  background: rgba(99, 91, 255, 0.3);
  border-radius: 3px;
}

.stripe-submenu-body::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 91, 255, 0.5);
}

/* Connection items list */
.stripe-connections-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stripe-connection-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(99, 91, 255, 0.08);
  border: 1px solid rgba(99, 91, 255, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: left;
}

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

.stripe-connection-key {
  font-size: 13px;
  font-family: monospace;
  color: #c4b5fd;
  font-weight: 600;
}

.stripe-connection-label {
  font-size: 11px;
  color: #888;
}

.stripe-connection-remove {
  background: none;
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #f66;
  font-size: 11px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.stripe-connection-remove:hover {
  background: rgba(255, 50, 50, 0.15);
  border-color: rgba(255, 80, 80, 0.6);
  color: #ff8888;
}

.stripe-no-connections {
  font-size: 13px;
  color: #666;
  padding: 8px 0;
}

.stripe-rates {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-shrink: 0;
}

.stripe-rate {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
}

.rate-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.rate-value {
  font-size: 14px;
  font-weight: 700;
  color: #FFD54F;
}

.stripe-generate-link {
  display: block;
  font-size: 13px;
  color: #a78bfa;
  text-decoration: none;
  padding: 10px 14px;
  background: rgba(99, 91, 255, 0.08);
  border: 1px solid rgba(99, 91, 255, 0.2);
  border-radius: 8px;
  text-align: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.stripe-generate-link:hover {
  background: rgba(99, 91, 255, 0.15);
  border-color: rgba(99, 91, 255, 0.4);
  color: #c4b5fd;
}

/* ========== Minecraft-Style Shop ========== */
.shop-container {
  background: #1a1a1a;
  border: 3px solid #555;
  border-top-color: #777;
  border-left-color: #666;
  border-bottom-color: #333;
  border-right-color: #333;
  border-radius: 4px;
  width: 90%;
  max-width: 640px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
}

.shop-header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255,255,255,0.05);
  border-bottom: 2px solid #333;
}

.shop-title {
  font-size: 16px;
  font-weight: 700;
  color: #eee;
  flex: 1;
}

.shop-coins-display {
  font-size: 14px;
  font-weight: 600;
  color: #FFD54F;
  margin-right: 16px;
}

.shop-close-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.shop-close-btn:hover {
  color: #fff;
}

.shop-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.shop-panel {
  padding: 12px;
}

.shop-panel + .shop-panel {
  border-top: 2px solid #333;
}

.shop-panel-title {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-align: center;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.shop-slot {
  aspect-ratio: 1;
  border: 2px solid #444;
  border-top-color: #555;
  border-left-color: #555;
  border-bottom-color: #2a2a2a;
  border-right-color: #2a2a2a;
  background: rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.1s;
  min-height: 70px;
}

.shop-slot:hover {
  border-color: #4CAF50;
  background: rgba(76, 175, 80, 0.08);
}

.shop-slot .slot-block {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  image-rendering: pixelated;
}

.shop-slot .slot-label {
  font-size: 10px;
  color: #ccc;
  margin-top: 3px;
  font-weight: 600;
}

.shop-slot .slot-price {
  font-size: 9px;
  color: #FFD54F;
  font-weight: 600;
}

.shop-slot .slot-count {
  position: absolute;
  bottom: 3px;
  right: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000;
}

.shop-slot.empty-slot {
  cursor: default;
}

.shop-slot.empty-slot:hover {
  border-color: #444;
  background: rgba(0,0,0,0.4);
}

.shop-slot .buy-hint {
  font-size: 8px;
  color: #4CAF50;
  margin-top: 2px;
}

/* ========== Shop Inventory Grid ========== */
#shop-inventory-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
}

.inv-slot {
  aspect-ratio: 1;
  border: 2px solid #3a3a3a;
  background: rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.1s;
  min-height: 48px;
}

.inv-slot:hover {
  border-color: #666;
  background: rgba(255,255,255,0.04);
}

.inv-slot-hotbar {
  border-color: #555;
  background: rgba(255,255,255,0.03);
}

.inv-slot-empty {
  cursor: default;
  opacity: 0.5;
}

.inv-slot-selected {
  border-color: #4CAF50 !important;
  background: rgba(76, 175, 80, 0.15) !important;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

.inv-slot .slot-block {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  image-rendering: pixelated;
}

.inv-slot .slot-label {
  font-size: 8px;
  color: #aaa;
  margin-top: 2px;
  font-weight: 600;
  text-align: center;
  line-height: 1;
  max-width: 100%;
  overflow: hidden;
}

.inv-slot .slot-count {
  position: absolute;
  bottom: 1px;
  right: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000;
}

.inv-slot .slot-key-hint {
  font-size: 10px;
  color: #444;
  font-weight: 600;
}

.inv-separator {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4px 0 2px;
  font-size: 10px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
}

/* ========== Sign Prompt (in-world plot buying) ========== */
#sign-prompt {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 100;
}

.sign-prompt-card {
  background: rgba(30, 30, 50, 0.95);
  border: 2px solid rgba(255, 152, 0, 0.5);
  border-radius: 12px;
  padding: 28px 36px 32px;
  min-width: 340px;
  max-width: 400px;
  width: 90vw;
  text-align: center;
  position: relative;
  box-shadow: 0 0 30px rgba(255, 152, 0, 0.15);
  animation: signFadeIn 0.15s ease-out;
}

@keyframes signFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.sign-close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #888;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.sign-close-btn:hover {
  color: #fff;
}

.sign-title {
  font-size: 20px;
  font-weight: 700;
  color: #FF9800;
  margin-bottom: 4px;
}

.sign-details {
  font-size: 13px;
  color: #999;
  margin-bottom: 14px;
}

.sign-price {
  font-size: 22px;
  font-weight: 700;
  color: #FFD54F;
  margin-bottom: 6px;
}

.sign-status {
  font-size: 13px;
  margin-bottom: 10px;
  min-height: 18px;
}

.sign-status-owned {
  color: #4CAF50;
  font-weight: 600;
}

.sign-status-taken {
  color: #f44;
  font-weight: 600;
}

.sign-status-expensive {
  color: #f44;
}

.sign-buy-btn {
  width: 100%;
  margin-top: 4px;
}

.sign-buy-btn:disabled {
  background: #333 !important;
  color: #666 !important;
  cursor: not-allowed;
}

/* Owner info card on plot sign */
.sign-owner-info {
  margin: 10px 0;
}

.owner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 14px;
}

.owner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
}

.owner-details {
  text-align: left;
}

.owner-name {
  font-size: 14px;
  font-weight: 700;
  color: #eee;
}

.owner-mrr {
  font-size: 12px;
  color: #4CAF50;
  font-weight: 600;
}

.owner-website {
  font-size: 11px;
  color: #64B5F6;
  text-decoration: none;
  word-break: break-all;
}

.owner-website:hover {
  text-decoration: underline;
}

/* Owner edit section */
.sign-owner-edit {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.edit-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.edit-field {
  margin-bottom: 12px;
}

.edit-field:last-child {
  margin-bottom: 0;
}

.edit-label {
  display: block;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #999;
  margin-bottom: 6px;
}

.edit-row {
  display: flex;
  gap: 8px;
}

.edit-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.4);
  color: #eee;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.edit-input:focus {
  border-color: rgba(255, 152, 0, 0.5);
}

.edit-input::placeholder {
  color: #555;
}

.edit-save-btn {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  background: #4CAF50;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.edit-save-btn:hover {
  background: #43A047;
}

.edit-save-btn:disabled {
  background: #444;
  color: #888;
  cursor: not-allowed;
}

/* ========== Stripe Connection ========== */
.stripe-connect-form {
  flex-shrink: 0;
}

.stripe-input-row {
  display: flex;
  gap: 10px;
}

.stripe-input-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.4);
  color: #eee;
  font-size: 13px;
  font-family: monospace;
  outline: none;
}

.stripe-input-row input:focus {
  border-color: rgba(103, 58, 183, 0.5);
  box-shadow: 0 0 0 2px rgba(103, 58, 183, 0.15);
}

.btn-stripe {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #635BFF, #7C3AED);
  color: #fff;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-stripe:hover {
  background: linear-gradient(135deg, #7C6FFF, #8B5CF6);
  box-shadow: 0 2px 12px rgba(99, 91, 255, 0.3);
}

.btn-stripe:disabled {
  background: #444;
  color: #888;
  cursor: not-allowed;
}

.stripe-error {
  font-size: 13px;
  color: #f66;
  margin-top: 10px;
}

