/* ==========================================
   GLOBAL STYLES
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #111;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Body variants for different pages */
body.drawing-page {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

body.rewards-page,
body.gallery-page {
  display: block;
  position: relative;
  overflow-x: hidden;
}

/* ==========================================
   REUSABLE BUTTON STYLES
   ========================================== */

/* Primary Button - Gradient Cyan */
.btn-primary,
.connect-wallet-btn,
.claim-btn {
  background: linear-gradient(45deg, #2f00ff, #8b2fc9);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(184, 67, 229, 0.3);
  text-decoration: none;
  display: inline-block;
}

/* Generic button styling - for "Go to PulseChain Tablet" buttons */
button:not(.btn-secondary):not(.btn-danger):not(.btn-small):not(#mintBtn):not(#aiBtn):not(#shareBtn):not(#resetBtn):not(#aiDrawBtn):not(.disconnect-btn):not(.hamburger-button):not(.ai-modal-close):not(.ai-cancel-btn):not(.ai-generate-btn):not(.ai-example-btn):not(.modal-btn):not(.clear-search):not(.claim-btn):not(.connect-wallet-btn) {
  background: linear-gradient(45deg, #2f00ff, #8b2fc9);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(184, 67, 229, 0.3);
}

button:not(.btn-secondary):not(.btn-danger):not(.btn-small):not(#mintBtn):not(#aiBtn):not(#shareBtn):not(#resetBtn):not(#aiDrawBtn):not(.disconnect-btn):not(.hamburger-button):not(.ai-modal-close):not(.ai-cancel-btn):not(.ai-generate-btn):not(.ai-example-btn):not(.modal-btn):not(.clear-search):not(.claim-btn):not(.connect-wallet-btn):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 67, 229, 0.4);
}

.btn-primary:hover,
.connect-wallet-btn:hover,
.claim-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 67, 229, 0.4);
}

.btn-primary:disabled,
.claim-btn:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Secondary Button - Transparent with Border */
.btn-secondary,
.disconnect-btn {
  background: transparent;
  border: 2px solid #666;
  color: #ccc;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover,
.disconnect-btn:hover {
  border-color: #999;
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

/* Danger Button - Red */
.btn-danger {
  background: transparent;
  border: 1px solid rgba(255, 107, 107, 0.5);
  color: #ff6b6b;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: rgba(255, 107, 107, 0.1);
  border-color: #ff6b6b;
}

/* Small Action Buttons (like AI, Share, Mint) */
.btn-small,
#mintBtn,
#aiBtn,
#shareBtn {
  background: linear-gradient(45deg, #ff6b6b, #8b2fc9);
  border: none;
  padding: 4px 8px;
  border-radius: 3px;
  color: white;
  font-size: 9px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-small:hover,
#mintBtn:hover,
#aiBtn:hover,
#shareBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(184, 67, 229, 0.5);
}

/* Reset Button - Only fixed position on drawing page */
body.drawing-page #resetBtn {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

body.drawing-page #resetBtn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   MAIN APP CONTAINER (Drawing Page)
   ========================================== */

body.drawing-page #tablet-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
}

body.drawing-page #tablet-frame {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: calc(100vh - 60px);
  max-height: calc(100dvh - 60px);
  object-fit: contain;
  display: block;
}

body.drawing-page #draw-area {
  position: absolute;
  top: 47.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 21%;
  height: 55%;
  border: none;
  cursor: crosshair;
  touch-action: none;
}

body.drawing-page #top-controls {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 8px;
  z-index: 10;
  padding: 5px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
}

#drawingName {
  background: rgba(184, 67, 229, 0.9);
  border: none;
  padding: 4px 6px;
  border-radius: 3px;
  color: #000;
  font-size: 10px;
  width: 80px;
}

#ai-controls {
  position: absolute;
  top: 14%;
  left: 42%;
  display: flex;
  flex-direction: row;
  gap: 8px;
  z-index: 10;
}

#aiPrompt {
  background: rgba(255, 107, 107, 0.9);
  border: none;
  padding: 4px 6px;
  border-radius: 3px;
  color: #000;
  font-size: 10px;
  width: 100px;
}

#aiDrawBtn {
  background: linear-gradient(45deg, #ff6b6b, #8b2fc9);
  border: none;
  padding: 4px 8px;
  border-radius: 3px;
  color: white;
  font-size: 9px;
  font-weight: bold;
  cursor: pointer;
  width: 60px;
}

#aiDrawBtn:hover {
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

/* ==========================================
   NAVIGATION BAR (Rewards/Gallery Pages)
   ========================================== */

.navbar {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-bottom: 2px solid #2f00ff;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(184, 67, 229, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  border: 2px solid #2f00ff;
  object-fit: cover;
}

.brand-name {
  font-size: 24px;
  font-weight: bold;
  color: #2f00ff;
  text-shadow: 0 0 10px rgba(184, 67, 229, 0.5);
}

.wallet-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.wallet-connected {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(184, 67, 229, 0.1);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(184, 67, 229, 0.3);
}

.wallet-address {
  font-family: monospace;
  font-size: 14px;
  color: #2f00ff;
}

/* ==========================================
   HAMBURGER MENU (Drawing Page)
   ========================================== */

.hamburger-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: rgba(184, 67, 229, 0.9);
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(184, 67, 229, 0.3);
  transition: all 0.3s ease;
}

.hamburger-button:hover {
  box-shadow: 0 6px 16px rgba(184, 67, 229, 0.5);
}

.hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: #000;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.hamburger-button.active .hamburger-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.hamburger-button.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-button.active .hamburger-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.hamburger-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-right: 2px solid #2f00ff;
  box-shadow: 2px 0 20px rgba(184, 67, 229, 0.2);
  transition: left 0.3s ease;
  z-index: 999;
  padding: 80px 20px 20px 20px;
  overflow-y: auto;
}

.hamburger-menu.menu-open {
  left: 0;
}

.menu-section {
  margin-bottom: 30px;
}

.menu-section h3 {
  color: #2f00ff;
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(184, 67, 229, 0.3);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 6px;
  margin: 5px 0;
  background: rgba(184, 67, 229, 0.05);
  border: 1px solid rgba(184, 67, 229, 0.2);
}

.menu-item:hover {
  color: #2f00ff;
  background: rgba(184, 67, 229, 0.15);
  border-color: #2f00ff;
  transform: translateX(5px);
}

.menu-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.social-links img {
  width: 32px;
  height: 32px;
}

.social-link {
  color: #2f00ff;
  font-size: 20px;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  transform: scale(1.2);
}

.contract-info {
  background: rgba(184, 67, 229, 0.1);
  border: 1px solid rgba(184, 67, 229, 0.3);
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

.contract-address {
  font-family: monospace;
  font-size: 11px;
  color: #2f00ff;
  word-break: break-all;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px;
  border-radius: 4px;
  margin: 8px 0;
}

/* ==========================================
   REWARDS PAGE STYLES
   ========================================== */

body.rewards-page .container,
body.gallery-page .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
}

body.rewards-page .hero-section,
body.gallery-page .hero-section {
  text-align: center;
  margin-bottom: 50px;
}

body.rewards-page .hero-title,
body.gallery-page .hero-title {
  font-size: 48px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
  background: linear-gradient(45deg, #2f00ff, #8b2fc9, #2f00ff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s infinite;
}

body.rewards-page .hero-subtitle,
body.gallery-page .hero-subtitle {
  font-size: 18px;
  color: #999;
  max-width: 600px;
  margin: 0 auto;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-bottom: 30px;
}

.stats-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-box {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(184, 67, 229, 0.3);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
}

.stat-box:hover {
  border-color: #2f00ff;
  box-shadow: 0 0 30px rgba(184, 67, 229, 0.2);
  transform: translateY(-2px);
}

.stat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  background: rgba(184, 67, 229, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-label {
  color: #999;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}

.stat-subtext {
  color: #2f00ff;
  font-size: 13px;
}

.tier-progress {
  margin-top: 20px;
  padding: 20px;
  background: rgba(184, 67, 229, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(184, 67, 229, 0.2);
}

.current-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, #2f00ff, #8b2fc9);
  color: #000;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 15px;
}

.tier-list-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.tier-item-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border-left: 3px solid rgba(184, 67, 229, 0.3);
  transition: all 0.2s ease;
}

.tier-item-compact.active {
  background: rgba(184, 67, 229, 0.1);
  border-left-color: #2f00ff;
}

.tier-range {
  font-size: 13px;
  color: #ccc;
}

.tier-rate {
  font-size: 13px;
  color: #2f00ff;
  font-weight: 600;
}

.rewards-panel {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid #2f00ff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 0 40px rgba(184, 67, 229, 0.3);
  position: relative;
  overflow: hidden;
}

.rewards-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(184, 67, 229, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rewards-content {
  position: relative;
  z-index: 1;
}

.rewards-header {
  text-align: center;
  margin-bottom: 30px;
}

.rewards-label {
  font-size: 14px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.pending-rewards-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: rgba(184, 67, 229, 0.05);
  border-radius: 15px;
  border: 2px dashed rgba(184, 67, 229, 0.3);
  margin-bottom: 30px;
  position: relative;
}

.rewards-amount {
  font-size: 72px;
  font-weight: bold;
  color: #2f00ff;
  text-shadow: 0 0 30px rgba(184, 67, 229, 0.6);
  animation: glow 2s ease-in-out infinite;
  margin-bottom: 10px;
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 30px rgba(184, 67, 229, 0.6); }
  50% { text-shadow: 0 0 40px rgba(184, 67, 229, 0.9); }
}

.rewards-token {
  font-size: 24px;
  color: #999;
  font-weight: 600;
}

.rewards-usd {
  font-size: 16px;
  color: #666;
  margin-top: 10px;
}

.claim-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.claim-btn {
  padding: 20px 80px;
  font-size: 20px;
  position: relative;
  overflow: hidden;
}

.claim-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.claim-btn:hover::before {
  left: 100%;
}

.claim-info {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 20px;
}

.info-item {
  text-align: center;
}

.info-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.info-value {
  font-size: 16px;
  color: #2f00ff;
  font-weight: 600;
  font-family: monospace;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.history-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(184, 67, 229, 0.3);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.history-card:hover {
  border-color: #2f00ff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(184, 67, 229, 0.2);
}

.history-value {
  font-size: 32px;
  font-weight: bold;
  color: #2f00ff;
  margin-bottom: 8px;
}

.history-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.alert-box {
  background: rgba(255, 167, 38, 0.1);
  border: 1px solid #ffa726;
  border-left: 4px solid #ffa726;
  border-radius: 8px;
  padding: 15px 20px;
  margin-top: 20px;
  display: none;
  align-items: center;
  gap: 10px;
}

.alert-box.show {
  display: flex;
}

.alert-icon {
  font-size: 24px;
}

.alert-text {
  color: #ffa726;
  font-size: 14px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 18px;
  margin-bottom: 10px;
}

.empty-state-subtext {
  font-size: 14px;
  color: #555;
}

/* ==========================================
   GALLERY PAGE STYLES
   ========================================== */

.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(45deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
}

.gradient-bg::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(184, 67, 229, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 47, 201, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(184, 67, 229, 0.1) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(5%, -5%) rotate(120deg); }
  66% { transform: translate(-5%, 5%) rotate(240deg); }
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
  animation: float 20s infinite ease-in-out;
}

.orb1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184, 67, 229, 0.4), transparent);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.orb2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 47, 201, 0.3), transparent);
  bottom: -150px;
  right: -150px;
  animation-delay: -7s;
}

.orb3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(184, 67, 229, 0.25), transparent);
  top: 50%;
  right: 10%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.gallery-container {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  margin: 0 auto;
  padding: 60px 30px;
}

.contract-display {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 67, 229, 0.2);
  border-radius: 16px;
  padding: 20px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #2f00ff;
  word-break: break-all;
  max-width: 700px;
  margin: 0 auto 40px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.contract-display:hover {
  border-color: #2f00ff;
  box-shadow: 
    0 8px 32px rgba(184, 67, 229, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.search-container {
  max-width: 700px;
  margin: 0 auto 50px;
  position: relative;
}

.search-wrapper {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(184, 67, 229, 0.3);
  border-radius: 20px;
  padding: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.search-wrapper:focus-within {
  border-color: #2f00ff;
  box-shadow: 
    0 8px 32px rgba(184, 67, 229, 0.4),
    0 0 0 4px rgba(184, 67, 229, 0.1);
  transform: translateY(-2px);
}

.search-input {
  width: 100%;
  padding: 18px 60px 18px 24px;
  background: transparent;
  border: none;
  color: #120d0d;
  font-size: 16px;
  outline: none;
}

.search-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.search-icon {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: #2f00ff;
  font-size: 20px;
  pointer-events: none;
}

.clear-search {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(184, 67, 229, 0.2);
  border: none;
  color: #2f00ff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: none;
  transition: all 0.2s ease;
}

.clear-search:hover {
  background: rgba(184, 67, 229, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.clear-search.visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 67, 229, 0.2);
  border-radius: 20px;
  padding: 24px 40px;
  text-align: center;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184, 67, 229, 0.1), transparent);
  transition: left 0.5s ease;
}

.stat-item:hover {
  border-color: #2f00ff;
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(184, 67, 229, 0.3);
}

.stat-item:hover::before {
  left: 100%;
}

.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.nft-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 67, 229, 0.2);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.nft-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(184, 67, 229, 0) 0%, rgba(184, 67, 229, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.nft-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: #2f00ff;
  box-shadow: 
    0 20px 60px rgba(184, 67, 229, 0.4),
    0 0 0 1px rgba(184, 67, 229, 0.5);
}

.nft-card:hover::before {
  opacity: 1;
}

.nft-image-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.nft-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.nft-card:hover .nft-image {
  transform: scale(1.1);
}

.nft-image.loading {
  background: linear-gradient(90deg, #1a1a2e 25%, #2a2a3e 50%, #1a1a2e 75%);
  background-size: 200% 100%;
  animation: shimmerGallery 1.5s infinite;
}

@keyframes shimmerGallery {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.nft-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(184, 67, 229, 0.9);
  backdrop-filter: blur(10px);
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(184, 67, 229, 0.4);
}

.nft-details {
  padding: 24px;
  position: relative;
  z-index: 2;
}

.nft-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nft-id {
  font-size: 13px;
  color: #2f00ff;
  margin-bottom: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nft-owner-section {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.owner-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f00ff, #8b2fc9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  color: #000;
}

.nft-owner {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Courier New', monospace;
  flex: 1;
}

.nft-owner strong {
  color: rgba(255, 255, 255, 0.9);
}

/* NFT Gallery in Menu */
.nft-gallery {
  max-height: 400px;
  overflow-y: auto;
}

.nft-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 67, 229, 0.2);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.nft-item:hover {
  transform: scale(1.05);
  border-color: #2f00ff;
}

.nft-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  background: #333;
}

.nft-info {
  padding: 10px;
}

.nft-info h4 {
  color: #2f00ff;
  font-size: 12px;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nft-info p {
  color: #ccc;
  font-size: 10px;
  margin: 2px 0;
}

/* ==========================================
   LOADING & ERROR STATES
   ========================================== */

.loading {
  text-align: center;
  padding: 100px 20px;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 30px;
  border: 4px solid rgba(184, 67, 229, 0.2);
  border-top: 4px solid #2f00ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 30px rgba(184, 67, 229, 0.3);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 18px;
  color: #2f00ff;
  font-weight: 600;
}

.error-message, .no-results {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 20px;
  padding: 60px 40px;
  margin: 40px 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.error-message h3 {
  color: #ff6b6b;
  font-size: 24px;
  margin-bottom: 15px;
}

.error-message p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.no-results {
  border-color: rgba(184, 67, 229, 0.3);
}

.no-results p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   MODAL STYLES
   ========================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  animation: fadeIn 0.2s ease-out forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.modal-container {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: 2px solid #2f00ff;
  border-radius: 15px;
  box-shadow: 
    0 0 30px rgba(184, 67, 229, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-width: 500px;
  width: 90%;
  padding: 0;
  overflow: hidden;
  transform: scale(0.9);
  animation: modalSlideIn 0.3s ease-out forwards;
}

@keyframes modalSlideIn {
  to {
    transform: scale(1);
  }
}

.modal-header {
  background: linear-gradient(90deg, #2f00ff 0%, #8b2fc9 100%);
  padding: 15px 20px;
  color: #000;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header.success {
  background: linear-gradient(90deg, #2f00ff 0%, #8b2fc9 100%);
}

.modal-header.error {
  background: linear-gradient(90deg, #ff6b6b 0%, #ff4757 100%);
  color: white;
}

.modal-header.warning {
  background: linear-gradient(90deg, #ffa726 0%, #ff9800 100%);
}

.modal-header.info {
  background: linear-gradient(90deg, #2f00ff 0%, #8b2fc9 100%);
}

.modal-body {
  padding: 20px;
  color: #fff;
  line-height: 1.6;
  font-size: 14px;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 15px 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.05);
}

.modal-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
  min-width: 70px;
}

.modal-btn.primary {
  background: linear-gradient(45deg, #2f00ff, #8b2fc9);
  color: #000;
}

.modal-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 67, 229, 0.3);
}

.modal-btn.secondary {
  background: transparent;
  color: #2f00ff;
  border: 1px solid #2f00ff;
}

.modal-btn.secondary:hover {
  background: rgba(184, 67, 229, 0.1);
}

.modal-btn.danger {
  background: linear-gradient(45deg, #ff6b6b, #ff4757);
  color: white;
}

.modal-btn.danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.tx-hash {
  background: rgba(184, 67, 229, 0.1);
  padding: 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 12px;
  word-break: break-all;
  margin: 10px 0;
  border: 1px solid rgba(184, 67, 229, 0.3);
}

.progress-container {
  margin: 15px 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  height: 6px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2f00ff, #8b2fc9);
  border-radius: 10px;
  transition: width 0.3s ease;
  width: 0%;
}

/* ==========================================
   AI MODAL STYLES
   ========================================== */

.ai-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.ai-modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: 2px solid #9b59b6;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 30px rgba(155, 89, 182, 0.5);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.ai-modal-header {
  background: linear-gradient(90deg, #9b59b6 0%, #e74c3c 100%);
  padding: 15px 20px;
  border-radius: 13px 13px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-modal-header h3 {
  color: white;
  font-size: 18px;
  margin: 0;
}

.ai-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
}

.ai-modal-close:hover {
  color: #ff6b6b;
}

.ai-modal-body {
  padding: 20px;
}

.ai-info {
  color: #2f00ff;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.5;
}

#ai-prompt {
  width: 100%;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #9b59b6;
  border-radius: 8px;
  padding: 12px;
  color: white;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 15px;
}

#ai-prompt:focus {
  outline: none;
  border-color: #2f00ff;
  box-shadow: 0 0 10px rgba(184, 67, 229, 0.3);
}

#ai-prompt::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.ai-examples {
  background: rgba(184, 67, 229, 0.1);
  border: 1px solid rgba(184, 67, 229, 0.3);
  border-radius: 8px;
  padding: 12px;
}

.ai-examples p {
  color: #2f00ff;
  font-size: 12px;
  margin-bottom: 8px;
  font-weight: bold;
}

.ai-example-btn {
  background: rgba(155, 89, 182, 0.3);
  border: 1px solid #9b59b6;
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 11px;
  cursor: pointer;
  margin: 4px;
  transition: all 0.2s ease;
}

.ai-example-btn:hover {
  background: rgba(155, 89, 182, 0.6);
  transform: translateY(-2px);
}

.ai-modal-footer {
  padding: 15px 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 13px 13px;
}

.ai-cancel-btn {
  background: transparent;
  border: 2px solid #666;
  color: #ccc;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-cancel-btn:hover {
  border-color: #999;
  color: white;
}

.ai-generate-btn {
  background: linear-gradient(45deg, #9b59b6, #e74c3c);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(155, 89, 182, 0.4);
}

.ai-generate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.hidden {
  display: none !important;
}

/* ==========================================
   SAFE AREA INSETS FOR NOTCHED DEVICES
   ========================================== */

@supports (padding: env(safe-area-inset-top)) {
  #top-controls {
    top: calc(10px + env(safe-area-inset-top));
  }
  
  #resetBtn {
    bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

/* ==========================================
   RESPONSIVE DESIGN - TABLET
   ========================================== */

@media (max-width: 1200px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .history-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nft-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 36px;
  }
}

/* ==========================================
   RESPONSIVE DESIGN - MOBILE
   ========================================== */

@media (max-width: 768px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
    width: 100vw;
    height: 100vh;
    height: 100dvh;
  }

  /* Navigation */
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 15px;
    gap: 10px;
  }

  .logo {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 18px;
  }

  .wallet-connected {
    flex-direction: column;
    align-items: flex-end;
    padding: 6px 12px;
    gap: 6px;
  }

  .wallet-address {
    font-size: 12px;
  }

  /* Container & Hero */
  .container {
    padding: 20px 15px;
  }

  .gallery-container {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
    padding: 0 10px;
  }

  /* Drawing Page */
  #tablet-container {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
  }
  
  #draw-area {
    width: 85% !important;
    height: 50% !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
  
  #top-controls {
    flex-wrap: nowrap;
    justify-content: center;
  }
  
  #drawingName, #mintBtn {
    width: 100px;
    font-size: 10px;
    padding: 4px 6px;
  }

  #aiBtn {
    width: 30px;
    font-size: 8px;
    padding: 3px 5px;
  }

  #shareBtn {
    width: 40px;
    font-size: 8px;
    padding: 3px 5px;
  }

  #resetBtn {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Hamburger Menu */
  .hamburger-menu {
    width: 100vw;
    left: -100vw;
  }

  .hamburger-menu.menu-open {
    left: 0;
  }

  /* Stats & Rewards */
  .stat-box {
    padding: 20px;
  }

  .stat-value {
    font-size: 28px;
  }

  .stats-bar {
    gap: 15px;
  }

  .stat-item {
    min-width: 140px;
    padding: 20px 30px;
  }

  .rewards-panel {
    padding: 20px;
  }

  .rewards-amount {
    font-size: 42px;
  }

  .pending-rewards-display {
    min-height: 150px;
  }

  .claim-btn {
    padding: 16px 40px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
  }

  .claim-info {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .history-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Gallery */
  .nft-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
  }

  .nft-image-wrapper {
    height: 200px;
  }

  .nft-details {
    padding: 16px;
  }

  .nft-name {
    font-size: 16px;
  }

  /* Modals */
  .modal-container {
    max-width: 95%;
    margin: 10px;
  }
  
  .modal-header {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .modal-body {
    padding: 15px;
    font-size: 13px;
  }
  
  .modal-footer {
    padding: 12px 15px;
    flex-direction: column;
  }
  
  .modal-btn {
    width: 100%;
  }

  .ai-modal-content {
    width: 95%;
    margin: 10px;
  }

  #ai-prompt {
    height: 100px;
    font-size: 13px;
  }

  /* Tap targets */
  input, select, textarea, button {
    font-size: 16px !important;
  }

  .btn-primary,
  .connect-wallet-btn,
  .disconnect-btn,
  .claim-btn {
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

/* ==========================================
   RESPONSIVE DESIGN - SMALL MOBILE
   ========================================== */

@media (max-width: 480px) {
  .hero-title {
    font-size: 24px;
  }

  #draw-area {
    width: 90%;
    height: 48%;
    top: 47%;
  }
  
  #top-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }
  
  #drawingName, #mintBtn {
    width: 90px;
    font-size: 9px;
  }

  .stat-value {
    font-size: 24px;
  }

  .rewards-amount {
    font-size: 36px;
  }

  .history-value {
    font-size: 24px;
  }

  .claim-btn {
    padding: 14px 30px;
    font-size: 15px;
  }

  .tier-progress {
    padding: 15px;
  }

  .current-tier-badge {
    font-size: 12px;
    padding: 6px 12px;
  }

  .nft-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nft-image-wrapper {
    height: 250px;
  }
}

/* ==========================================
   WEBKIT SUPPORT FOR iOS DEVICES
   ========================================== */

@supports (-webkit-touch-callout: none) {
  body {
    height: -webkit-fill-available;
    min-height: -webkit-fill-available;
  }
  
  #tablet-container {
    height: -webkit-fill-available;
  }

  html {
    overflow-x: hidden;
  }

  body {
    position: relative;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .navbar {
    position: -webkit-sticky;
    position: sticky;
  }
}

/* ==========================================
   LANDSCAPE ORIENTATION
   ========================================== */

@media screen and (orientation: landscape) and (max-height: 500px) {
  #top-controls {
    padding: 3px;
    gap: 5px;
  }
  
  #resetBtn {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  #drawingName, #mintBtn, #aiBtn, #shareBtn {
    font-size: 8px;
    padding: 3px 5px;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .hero-section {
    margin-bottom: 20px;
  }

  .rewards-amount {
    font-size: 32px;
  }

  .pending-rewards-display {
    min-height: 120px;
  }

  .stat-box {
    padding: 15px;
  }
}

/* ==========================================
   SHILLER PAGE SPECIFIC STYLES
   Add these to your existing CSS file
   ========================================== */

/* Shiller Page Body */
body.shiller-page {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Shiller Header */
header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-bottom: 2px solid #2f00ff;
  padding: 20px 40px;
  box-shadow: 0 4px 20px rgba(184, 67, 229, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
}

header .brand-name {
  display: flex;
  align-items: center;
  gap: 15px;
}

header h1 {
  font-size: 32px;
  font-weight: bold;
  background: linear-gradient(45deg, #2f00ff, #8b2fc9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

header p {
  color: #999;
  font-size: 14px;
  margin: 5px 0 0 0;
}

header select {
  background: rgba(184, 67, 229, 0.1);
  border: 1px solid rgba(184, 67, 229, 0.3);
  color: #2f00ff;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

header select:hover {
  border-color: #2f00ff;
  background: rgba(184, 67, 229, 0.15);
}

header button {
  background: linear-gradient(45deg, #2f00ff, #8b2fc9);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(184, 67, 229, 0.3);
}

header button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 67, 229, 0.4);
}

/* How To Section */
#howto {
  background: rgba(184, 67, 229, 0.05);
  border-bottom: 1px solid rgba(184, 67, 229, 0.2);
}

.howto-toggle {
  width: 100%;
  background: transparent;
  border: none;
  color: #2f00ff;
  padding: 15px 40px;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.howto-toggle:hover {
  background: rgba(184, 67, 229, 0.1);
}

.howto-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(0, 0, 0, 0.3);
}

.howto-content.active {
  max-height: 500px;
  border-top: 1px solid rgba(184, 67, 229, 0.2);
}

.howto-content ul {
  list-style: none;
  padding: 20px 40px;
  margin: 0;
}

.howto-content li {
  color: #ccc;
  padding: 10px 0;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.howto-content li:last-child {
  border-bottom: none;
}

.copyable {
  background: rgba(184, 67, 229, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  color: #2f00ff;
}

.copy-btn {
  background: rgba(184, 67, 229, 0.2);
  border: 1px solid rgba(184, 67, 229, 0.3);
  color: #2f00ff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(184, 67, 229, 0.3);
  transform: translateY(-1px);
}

/* Main Container */
.main-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Filters Section */
#filters {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(184, 67, 229, 0.2);
}

.filter-btn {
  background: rgba(184, 67, 229, 0.1);
  border: 1px solid rgba(184, 67, 229, 0.3);
  color: #2f00ff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(184, 67, 229, 0.2);
  border-color: #2f00ff;
  transform: translateY(-2px);
}

#nameFilter {
  flex: 1;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 67, 229, 0.3);
  color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
}

#nameFilter:focus {
  outline: none;
  border-color: #2f00ff;
  box-shadow: 0 0 10px rgba(184, 67, 229, 0.3);
}

#searchBtn {
  background: linear-gradient(45deg, #2f00ff, #8b2fc9);
  color: #000;
  border: none;
  padding: 10px 30px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

#searchBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 67, 229, 0.4);
}

/* Top Row Layout */
.top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

/* Campaigns Section */
#campaigns {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 67, 229, 0.2);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 40px;
}

#campaigns h2 {
  color: #2f00ff;
  font-size: 28px;
  margin-bottom: 25px;
  text-align: center;
}

#campaignList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.campaign-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(184, 67, 229, 0.3);
  border-radius: 15px;
  padding: 20px;
  transition: all 0.4s ease;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.campaign-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(184, 67, 229, 0) 0%, rgba(184, 67, 229, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.campaign-card:hover {
  transform: translateY(-8px);
  border-color: #2f00ff;
  box-shadow: 0 10px 30px rgba(184, 67, 229, 0.3);
}

.campaign-card:hover::before {
  opacity: 1;
}

.campaign-card h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.campaign-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.campaign-card p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

/* Leaderboard */
#leaderboard {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid #2f00ff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 0 30px rgba(184, 67, 229, 0.2);
}

#leaderboard h2 {
  color: #2f00ff;
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

#leaderboardList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leaderboard-entry {
  background: rgba(184, 67, 229, 0.05);
  border: 1px solid rgba(184, 67, 229, 0.2);
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.leaderboard-entry:hover {
  background: rgba(184, 67, 229, 0.1);
  border-color: #2f00ff;
  transform: translateX(5px);
}

.leaderboard-entry p {
  color: #fff;
  font-size: 14px;
  margin: 0;
}

/* Create Campaign Section */
#create {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid rgba(184, 67, 229, 0.5);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 0 30px rgba(184, 67, 229, 0.2);
}

#create h2 {
  color: #2f00ff;
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

#create input[type="text"],
#create input[type="file"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 67, 229, 0.3);
  color: #fff;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 15px;
}

#create input[type="text"]:focus {
  outline: none;
  border-color: #2f00ff;
  box-shadow: 0 0 10px rgba(184, 67, 229, 0.3);
}

.payment-method {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  padding: 15px;
  background: rgba(184, 67, 229, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(184, 67, 229, 0.2);
}

.payment-method label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.payment-method label:hover {
  color: #2f00ff;
}

.payment-method input[type="radio"] {
  accent-color: #2f00ff;
  cursor: pointer;
}

#feeDisplay {
  text-align: center;
  padding: 12px;
  background: rgba(184, 67, 229, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(184, 67, 229, 0.3);
  margin-bottom: 15px;
}

.ipfs-upload-container p {
  color: #999;
  font-size: 12px;
  margin-bottom: 8px;
}

#imagePreview {
  text-align: center;
}

#imagePreview img {
  border-radius: 10px;
  border: 2px solid rgba(184, 67, 229, 0.3);
}

#ipfsStatus {
  text-align: center;
  font-size: 12px;
}

/* Task List */
#taskList {
  margin: 20px 0;
}

#taskList h3 {
  color: #2f00ff;
  font-size: 16px;
  margin-bottom: 15px;
}

.task-entry {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(184, 67, 229, 0.2);
}

.task-entry select,
.task-entry input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 67, 229, 0.3);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
}

.task-entry .removeTask {
  background: rgba(255, 107, 107, 0.2);
  border: 1px solid rgba(255, 107, 107, 0.5);
  color: #ff6b6b;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.task-entry .removeTask:hover {
  background: rgba(255, 107, 107, 0.3);
  transform: scale(1.05);
}

.task-entry .taskCost {
  color: #2f00ff;
  font-size: 12px;
  font-weight: 600;
  min-width: 80px;
  text-align: right;
}

#addTask {
  width: 100%;
  background: rgba(184, 67, 229, 0.1);
  border: 1px dashed rgba(184, 67, 229, 0.3);
  color: #2f00ff;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

#addTask:hover {
  background: rgba(184, 67, 229, 0.2);
  border-color: #2f00ff;
}

#tokenApprovalSection {
  margin-bottom: 15px;
}

#approveToken {
  width: 100%;
  background: rgba(255, 167, 38, 0.2);
  border: 1px solid rgba(255, 167, 38, 0.5);
  color: #ffa726;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

#approveToken:hover {
  background: rgba(255, 167, 38, 0.3);
  transform: translateY(-2px);
}

#createCampaign {
  width: 100%;
  background: linear-gradient(45deg, #2f00ff, #8b2fc9);
  color: #000;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(184, 67, 229, 0.3);
}

#createCampaign:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 67, 229, 0.4);
}

#campaignIdDisplay {
  text-align: center;
  padding: 12px;
  background: rgba(184, 67, 229, 0.1);
  border-radius: 8px;
  font-weight: bold;
}

/* Dashboard Section */
#dashboard {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 67, 229, 0.2);
  border-radius: 20px;
  padding: 30px;
}

#dashboard h2 {
  color: #2f00ff;
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
}

#userCampaigns {
  background: rgba(184, 67, 229, 0.05);
  border: 1px solid rgba(184, 67, 229, 0.2);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}

#userCampaigns p {
  color: #ccc;
  font-size: 14px;
  margin: 5px 0;
}

#campaignId {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 67, 229, 0.3);
  color: #fff;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 15px;
}

#campaignId:focus {
  outline: none;
  border-color: #2f00ff;
  box-shadow: 0 0 10px rgba(184, 67, 229, 0.3);
}

#dashboard button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  font-size: 14px;
}

#loadDashboard {
  background: linear-gradient(45deg, #2f00ff, #8b2fc9);
  color: #000;
  border: none;
  box-shadow: 0 4px 12px rgba(184, 67, 229, 0.3);
}

#loadDashboard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 67, 229, 0.4);
}

#endCampaign {
  background: rgba(255, 107, 107, 0.2);
  border: 1px solid rgba(255, 107, 107, 0.5);
  color: #ff6b6b;
}

#endCampaign:hover {
  background: rgba(255, 107, 107, 0.3);
}

#batchApprove {
  background: rgba(184, 67, 229, 0.1);
  border: 1px solid rgba(184, 67, 229, 0.3);
  color: #2f00ff;
}

#batchApprove:hover {
  background: rgba(184, 67, 229, 0.2);
}

#updateCampaign {
  background: rgba(255, 167, 38, 0.2);
  border: 1px solid rgba(255, 167, 38, 0.5);
  color: #ffa726;
}

#updateCampaign:hover {
  background: rgba(255, 167, 38, 0.3);
}

#dashboardList {
  margin-top: 20px;
}

.proof-entry {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 67, 229, 0.2);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

.proof-entry p {
  color: #ccc;
  font-size: 14px;
  margin: 8px 0;
}

.proof-entry a {
  color: #2f00ff;
  text-decoration: underline;
}

.proof-entry input[type="checkbox"] {
  accent-color: #2f00ff;
  cursor: pointer;
  margin-right: 8px;
}

/* Pagination */
#pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

#pagination button {
  background: rgba(184, 67, 229, 0.1);
  border: 1px solid rgba(184, 67, 229, 0.3);
  color: #2f00ff;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#pagination button:hover {
  background: rgba(184, 67, 229, 0.2);
  border-color: #2f00ff;
}

#pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 20px;
  color: #666;
  font-size: 12px;
  border-top: 1px solid rgba(184, 67, 229, 0.1);
  margin-top: 60px;
}

/* Modal Styles - Fixed positioning */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: grid;
  place-content: center;
  z-index: 100;
}

.modal-content {
  background: black;
  border-radius: 16px;
  padding: 28px;
  max-width: 640px;
  width: 90%;
  color: #00FFFF;
  border: 1px solid rgba(255, 215, 0, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
  font-size: 2rem;
  margin: 0 0 16px;
  font-weight: 700;
  color: #00FFFF;
}

.modal-content h3 {
  font-size: 1.5rem;
  margin: 16px 0 8px;
  color: #00FFFF;
}

.modal-content p {
  font-size: 1.05rem;
  margin: 8px 0;
  line-height: 1.6;
}

.modal.error .modal-content {
  background: #ff4444;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(255, 68, 68, 0.3);
}

.modal.success .modal-content {
  background: rgba(106, 13, 173, 0.95);
  color: #ffffff;
}

.close-modal {
  background: #FF4500;
  color: #ffffff;
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 16px;
}

.close-modal:hover {
  background: linear-gradient(45deg, #FFD700, #FFEA00);
  color: #1A0033;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.task-list {
  margin: 16px 0;
}

.task-item {
  margin: 12px 0;
}

.task-link {
  display: inline-block;
  background: rgba(106, 13, 173, 0.95);
  color: #00FFFF;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.task-link:hover {
  background: linear-gradient(45deg, #FFD700, #FFEA00);
  color: #1A0033;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .top-row {
    grid-template-columns: 1fr;
  }
  
  #campaignList {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  header {
    padding: 10px 15px;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  header .brand-name {
    flex-direction: row;
    gap: 10px;
    width: 100%;
    justify-content: center;
  }
  
  header .brand-name a img {
    height: 30px !important;
  }
  
  header h1 {
    font-size: 20px;
  }
  
  header p {
    font-size: 11px;
    margin: 0;
  }
  
  header select {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  header button {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .main-container {
    padding: 20px 15px;
  }
  
  #filters {
    flex-direction: column;
  }
  
  .filter-btn {
    width: 100%;
  }
  
  #campaignList {
    grid-template-columns: 1fr;
  }
  
  .task-entry {
    flex-wrap: wrap;
  }
  
  .task-entry select,
  .task-entry input {
    width: 100%;
  }
}

/* ==========================================
   PRESALE PAGE STYLES
   ========================================== */

body.presale-page {
    display: block;
    position: relative;
    overflow-x: hidden;
}

.presale-container {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 30px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 67, 229, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin: 50px auto;
    max-width: 1000px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 67, 229, 0.2);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(184, 67, 229, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #2f00ff;
    box-shadow: 0 15px 40px rgba(184, 67, 229, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.feature-card h4 {
    color: #2f00ff;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-card p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

/* Boost Info Strip */
.boost-info-strip {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 167, 38, 0.15) 50%, rgba(255, 215, 0, 0.15) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    border-radius: 20px;
    padding: 35px 40px;
    margin: 40px auto;
    max-width: 1200px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.boost-info-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #ff6b6b, #ffa726, #ffd700);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.boost-info-strip::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.boost-info-left {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.boost-info-icon {
    font-size: 56px;
    animation: rocketFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 167, 38, 0.6));
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0px) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.boost-info-text {
    position: relative;
    z-index: 2;
}

.boost-info-text h4 {
    background: linear-gradient(90deg, #ff6b6b, #ffa726, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    margin: 0 0 8px 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 30px rgba(255, 167, 38, 0.5);
}

.boost-info-text p {
    color: #fff;
    font-size: 15px;
    margin: 0;
    font-weight: 500;
}

.boost-info-pricing {
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.boost-price {
    font-size: 16px;
    color: #ffd700;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.boost-price:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    border-color: #ffd700;
}

/* Create Presale Section */
.create-presale-section {
    text-align: center;
    margin-bottom: 50px;
}

.create-presale-section .btn-primary {
    padding: 18px 40px;
    font-size: 18px;
}

/* Filters */
.presale-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 67, 229, 0.2);
    border-radius: 20px;
    padding: 25px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
}

.filter-tab {
    background: rgba(184, 67, 229, 0.1);
    border: 1px solid rgba(184, 67, 229, 0.3);
    color: #2f00ff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-tab:hover,
.filter-tab.active {
    background: rgba(184, 67, 229, 0.2);
    border-color: #2f00ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 67, 229, 0.3);
}

.category-filter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(184, 67, 229, 0.3);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filter:focus {
    outline: none;
    border-color: #2f00ff;
    box-shadow: 0 0 10px rgba(184, 67, 229, 0.3);
}

/* Presale Grid */
.presale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Presale Card */
.presale-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 67, 229, 0.2);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.presale-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.presale-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.presale-card:hover .presale-image img {
    transform: scale(1.1);
}

.presale-card > div:not(.presale-image) {
    padding: 25px;
}

.presale-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(184, 67, 229, 0) 0%, rgba(184, 67, 229, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.presale-card:hover {
    transform: translateY(-10px);
    border-color: #2f00ff;
    box-shadow: 0 20px 60px rgba(184, 67, 229, 0.4);
}

.presale-card:hover::before {
    opacity: 1;
}

.presale-card > * {
    position: relative;
    z-index: 2;
}

/* Badge Launched */
.badge-launched {
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    color: #fff;
    border: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 107, 107, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.8); }
}

/* Pump Tires Link */
.pump-tires-link {
    text-align: center;
    margin: 15px 0;
}

.pump-tires-link a {
    display: inline-block;
    background: linear-gradient(45deg, #9b59b6, #e74c3c);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pump-tires-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

/* Presale Details */
.presale-details {
    max-width: 100%;
}

.detail-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(184, 67, 229, 0.2);
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h4 {
    color: #2f00ff;
    font-size: 18px;
    margin-bottom: 15px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    background: rgba(184, 67, 229, 0.05);
    border: 1px solid rgba(184, 67, 229, 0.2);
    border-radius: 10px;
    padding: 12px;
}

.detail-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.detail-value {
    display: block;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

.detail-section code {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    color: #2f00ff;
    word-break: break-all;
}

/* Boost Modal */
.boost-modal-content {
    max-width: 500px;
}

.boost-modal-body {
    padding: 30px;
}

.boost-modal-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
}

.boost-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 167, 38, 0.3);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.boost-option:hover {
    background: rgba(255, 167, 38, 0.1);
    border-color: #ffa726;
    transform: translateY(-2px);
}

.boost-option.selected {
    background: rgba(255, 167, 38, 0.2);
    border-color: #ffa726;
    box-shadow: 0 0 20px rgba(255, 167, 38, 0.4);
}

.boost-option-info h5 {
    color: #ffa726;
    font-size: 18px;
    margin: 0 0 5px 0;
}

.boost-option-info p {
    color: #ccc;
    font-size: 14px;
    margin: 0;
}

.boost-option-price {
    font-size: 24px;
    font-weight: 700;
    color: #ffa726;
}

/* Pump Tires Info Box */
.pump-tires-info {
    background: rgba(155, 89, 182, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.pump-tires-info p {
    color: #ccc;
    font-size: 13px;
    margin: 8px 0;
}

.pump-tires-info strong {
    color: #9b59b6;
}

/* Info Box */
.info-box {
    background: rgba(184, 67, 229, 0.05);
    border: 1px solid rgba(184, 67, 229, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.info-box p {
    color: #ccc;
    font-size: 13px;
    margin: 8px 0;
}

.info-box strong {
    color: #2f00ff;
}

/* Final Summary */
.final-summary {
    background: rgba(184, 67, 229, 0.05);
    border: 1px solid rgba(184, 67, 229, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.final-summary h5 {
    color: #2f00ff;
    font-size: 16px;
    margin-bottom: 15px;
}

.final-summary p {
    color: #ccc;
    font-size: 14px;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
}

.final-summary span {
    color: #fff;
    font-weight: 600;
}

/* Small Form Elements */
.form-group small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

/* Responsive Updates */
@media (max-width: 1200px) {
    .presale-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .presale-container {
        padding: 40px 20px;
    }

    .hero-glow {
        width: 400px;
        height: 400px;
    }
    
    .hero-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .boost-info-strip {
        flex-direction: column;
        text-align: center;
    }
    
    .boost-info-left {
        flex-direction: column;
    }
    
    .boost-info-pricing {
        flex-direction: column;
        gap: 10px;
    }

    .presale-filters {
        flex-direction: column;
    }

    .filter-tabs {
        width: 100%;
    }

    .presale-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-options {
        grid-template-columns: 1fr;
    }

    .create-modal {
        max-width: 95%;
        margin: 10px;
    }

    .presale-actions {
        flex-direction: column;
    }

    .presale-actions .btn-secondary {
        width: 100%;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .final-summary p {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .presale-card > div:not(.presale-image) {
        padding: 20px;
    }

    .presale-name {
        font-size: 20px;
    }

    .filter-tab {
        width: 100%;
        justify-content: center;
    }
});
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.payment-option input[type="radio"]:checked + .payment-card {
    background: rgba(184, 67, 229, 0.1);
    border-color: #2f00ff;
    box-shadow: 0 0 20px rgba(184, 67, 229, 0.3);
}

.payment-card h5 {
    color: #2f00ff;
    font-size: 16px;
    margin-bottom: 10px;
}

.payment-amount {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.step-indicator .step {
    width: 40px;
    height: 6px;
    background: rgba(184, 67, 229, 0.2);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.step-indicator .step.active {
    background: linear-gradient(90deg, #2f00ff, #8b2fc9);
    box-shadow: 0 0 10px rgba(184, 67, 229, 0.5);
}

/* Presale Details Modal */
.presale-details-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Responsive */
@media (max-width: 1200px) {
    .presale-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .presale-container {
        padding: 40px 20px;
    }

    .presale-filters {
        flex-direction: column;
    }

    .filter-tabs {
        width: 100%;
    }

    .presale-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-options {
        grid-template-columns: 1fr;
    }

    .create-modal {
        max-width: 95%;
        margin: 10px;
    }

    .presale-actions {
        flex-direction: column;
    }

    .presale-actions .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .presale-card {
        padding: 20px;
    }

    .presale-name {
        font-size: 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .filter-tab {
        width: 100%;
        justify-content: center;
    }
}

/* locker Container */
.utilities-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.utility-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(184, 67, 229, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.utility-card:hover {
    border-color: #2f00ff;
    box-shadow: 0 15px 50px rgba(184, 67, 229, 0.3);
}

.utility-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.utility-icon {
    font-size: 48px;
}

.utility-title h2 {
    font-size: 28px;
    margin-bottom: 0.5rem;
    color: #fff;
}

.utility-title p {
    opacity: 0.8;
    font-size: 14px;
    color: #ccc;
}

.info-box {
    background: rgba(184, 67, 229, 0.05);
    border: 1px solid rgba(184, 67, 229, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.info-box h3 {
    color: #2f00ff;
    margin-bottom: 15px;
    font-size: 18px;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ccc;
    font-size: 14px;
}

.info-box li:last-child {
    border-bottom: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2f00ff;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(184, 67, 229, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2f00ff;
    box-shadow: 0 0 10px rgba(184, 67, 229, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.payment-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.payment-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(184, 67, 229, 0.2);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.payment-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.payment-option.active {
    border-color: #2f00ff;
    background: rgba(184, 67, 229, 0.1);
    box-shadow: 0 0 20px rgba(184, 67, 229, 0.3);
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-label {
    display: block;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    color: #fff;
    font-size: 14px;
}

.payment-desc {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 8px;
    color: #ccc;
}

.recipients-container {
    margin-bottom: 15px;
}

.recipient-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 10px;
    margin-bottom: 10px;
}

.recipient-address, .recipient-amount {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(184, 67, 229, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
}

.recipient-address:focus, .recipient-amount:focus {
    outline: none;
    border-color: #2f00ff;
}

.remove-recipient-btn {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
    border-radius: 8px;
    cursor: pointer;
    padding: 12px 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.remove-recipient-btn:hover {
    background: rgba(255, 107, 107, 0.3);
}

.add-recipient-btn {
    background: rgba(184, 67, 229, 0.1);
    border: 1px dashed rgba(184, 67, 229, 0.3);
    color: #2f00ff;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.add-recipient-btn:hover {
    background: rgba(184, 67, 229, 0.2);
    border-color: #2f00ff;
}

.action-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #2f00ff, #8b2fc9);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(184, 67, 229, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 67, 229, 0.4);
}

.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.message.show {
    opacity: 1;
}

.message.success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.message.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.locks-section {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem 4rem;
}

.locks-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(184, 67, 229, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.locks-card h2 {
    color: #2f00ff;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 28px;
}

.refresh-btn {
    background: rgba(184, 67, 229, 0.1);
    border: 1px solid rgba(184, 67, 229, 0.3);
    color: #2f00ff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: rgba(184, 67, 229, 0.2);
    border-color: #2f00ff;
    transform: translateY(-2px);
}

.lock-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(184, 67, 229, 0.2);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.lock-item:hover {
    border-color: #2f00ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 67, 229, 0.2);
}

.lock-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.lock-item-header h3 {
    color: #fff;
    font-size: 20px;
    margin: 0;
}

.lock-status {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.lock-status.locked {
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 165, 0, 0.5);
    color: #ffa500;
}

.lock-status.unlocked {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.5);
    color: #00ff00;
}

.lock-status.claimed {
    background: rgba(128, 128, 128, 0.2);
    border: 1px solid rgba(128, 128, 128, 0.5);
    color: #888;
}

.lock-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.lock-detail {
    display: flex;
    flex-direction: column;
}

.lock-detail-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lock-detail-value {
    font-weight: 600;
    word-break: break-all;
    color: #fff;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .utilities-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .utilities-container {
        padding: 1rem;
    }
    
    .utility-card {
        padding: 20px;
    }
    
    .payment-selector {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .locks-section {
        padding: 0 1rem 2rem;
    }
    
    .locks-card {
        padding: 1.5rem;
    }
    
    .locks-card h2 {
        font-size: 20px;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .lock-details {
        grid-template-columns: 1fr;
    }
}/* Add these styles to your existing style.css */

.locks-section {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem 4rem;
}

.locks-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 67, 229, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.locks-card h2 {
    color: #2f00ff;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 28px;
}

.refresh-btn {
    background: rgba(184, 67, 229, 0.1);
    border: 1px solid rgba(184, 67, 229, 0.3);
    color: #2f00ff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: rgba(184, 67, 229, 0.2);
    border-color: #2f00ff;
    transform: translateY(-2px);
}

.lock-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(184, 67, 229, 0.2);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.lock-item:hover {
    border-color: #2f00ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 67, 229, 0.2);
}

.lock-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.lock-item-header h3 {
    color: #fff;
    font-size: 20px;
    margin: 0;
}

.lock-status {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.lock-status.locked {
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 165, 0, 0.5);
    color: #ffa500;
}

.lock-status.unlocked {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.5);
    color: #00ff00;
}

.lock-status.claimed {
    background: rgba(128, 128, 128, 0.2);
    border: 1px solid rgba(128, 128, 128, 0.5);
    color: #888;
}

.lock-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.lock-detail {
    display: flex;
    flex-direction: column;
}

.lock-detail-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lock-detail-value {
    font-weight: 600;
    word-break: break-all;
    color: #fff;
    font-size: 14px;
}

.claim-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #2f00ff, #8b2fc9);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(184, 67, 229, 0.3);
}

.claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 67, 229, 0.4);
}

.claim-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .locks-section {
        padding: 0 1rem 2rem;
    }
    
    .locks-card {
        padding: 1.5rem;
    }
    
    .locks-card h2 {
        font-size: 20px;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .lock-details {
        grid-template-columns: 1fr;
    }
}

/* Undo and Redo Buttons - positioned on each side of reset */
body.drawing-page #undoBtn,
body.drawing-page #redoBtn {
  position: fixed;
  bottom: 10px;
  background: transparent;
  border: 2px solid rgba(184, 67, 229, 0.8);
  color: rgba(184, 67, 229, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, border-color 0.2s ease;
}

body.drawing-page #undoBtn {
  right: calc(50% + 80px); /* Position to the left of reset */
}

body.drawing-page #redoBtn {
  left: calc(50% + 80px); /* Position to the right of reset */
}

body.drawing-page #undoBtn:hover,
body.drawing-page #redoBtn:hover {
  background: rgba(184, 67, 229, 0.1);
  border-color: #2f00ff;
}

body.drawing-page #undoBtn:disabled,
body.drawing-page #redoBtn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Adjust for mobile */
@media (max-width: 768px) {
  body.drawing-page #undoBtn {
    left: 20px;
    right: auto;
    padding: 6px 12px;
    font-size: 12px;
  }

  body.drawing-page #redoBtn {
    right: 20px;
    left: auto;
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Color Palette - Compact Design */
body.drawing-page #color-palette {
  position: fixed;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
  flex-wrap: wrap;
  max-width: 90vw;
  justify-content: center;
}

.color-btn {
  width: 8px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  position: relative;
}

.color-btn:hover {
  transform: scale(1.1);
  border-color: #2f00ff;
}

.color-btn.active {
  border-color: #2f00ff;
  border-width: 3px;
  box-shadow: 0 0 10px rgba(184, 67, 229, 0.6);
}

/* Active indicator dot */
.color-btn.active::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #2f00ff;
  border-radius: 50%;
  top: -2px;
  right: -2px;
  box-shadow: 0 0 4px rgba(184, 67, 229, 0.8);
}

/* Rainbow button */
.color-btn[data-color="rainbow"] {
  background: linear-gradient(135deg, 
    #ff0000 0%, 
    #ff7f00 16.66%, 
    #ffff00 33.33%, 
    #00ff00 50%, 
    #0000ff 66.66%, 
    #4b0082 83.33%, 
    #9400d3 100%);
  font-size: 0;
}

.color-btn[data-color="rainbow"]::before {
  content: '🌈';
  font-size: 14px;
}

@media (max-width: 768px) {
  body.drawing-page #color-palette {
    top: 85px; /* Move below the top controls on mobile */
    padding: 4px 6px;
    gap: 4px;
  }
  
  .color-btn {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }
  
  .color-btn[data-color="rainbow"]::before {
    font-size: 12px;
  }
  
  .color-btn.active::after {
    width: 5px;
    height: 5px;
  }
}

@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
  body.drawing-page #color-palette {
    top: 70px;
  }
}

/* Preview canvas for shape drawing */
#preview-canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 5;
}

/* Templates Menu */
#templates-menu {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(184, 67, 229, 0.3);
  border-radius: 16px;
  padding: 20px;
  z-index: 1001;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  min-width: 300px;
}

.templates-header {
  color: #2f00ff;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

.template-btn {
  all: unset;
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: rgba(184, 67, 229, 0.1);
  border: 1px solid rgba(184, 67, 229, 0.3);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  margin-bottom: 10px;
  text-align: left;
  font-size: 14px;
  transition: all 0.3s ease;
}

.template-btn:hover {
  background: rgba(184, 67, 229, 0.2);
  border-color: #2f00ff;
  transform: translateX(5px);
}

/* ==========================================
   DRAWING BOARD - TOOL BUBBLES STYLING
   ========================================== */

body.drawing-page #board-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

body.drawing-page #logo-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  border: 2px solid rgba(184, 67, 229, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

body.drawing-page #logo-img:hover {
  border-color: #2f00ff;
  box-shadow: 0 6px 30px rgba(184, 67, 229, 0.5);
  transform: translateY(-2px);
}

body.drawing-page #tool-bubbles {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid rgba(184, 67, 229, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

body.drawing-page .tool-bubble,
body.drawing-page .action-bubble,
body.drawing-page .size-btn,
body.drawing-page .color-bubble {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.drawing-page .tool-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(184, 67, 229, 0.2);
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #fff;
  flex-shrink: 0;
}

body.drawing-page .tool-bubble:hover {
  background: rgba(184, 67, 229, 0.15);
  border-color: #2f00ff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(184, 67, 229, 0.3);
}

body.drawing-page .tool-bubble.active {
  background: linear-gradient(135deg, #2f00ff, #8b2fc9);
  border-color: #2f00ff;
  box-shadow: 0 0 20px rgba(184, 67, 229, 0.6);
  transform: scale(1.1);
}

body.drawing-page .bubble-divider {
  width: 2px;
  height: 30px;
  background: rgba(184, 67, 229, 0.2);
  margin: 0 4px;
}

body.drawing-page .color-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(184, 67, 229, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

body.drawing-page .color-bubble:hover {
  border-color: #2f00ff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(184, 67, 229, 0.4);
}

body.drawing-page #color-preview {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

body.drawing-page .size-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 25px;
  border: 1px solid rgba(184, 67, 229, 0.2);
}

body.drawing-page .size-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(184, 67, 229, 0.1);
  border: 1px solid rgba(184, 67, 229, 0.3);
  color: #2f00ff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.drawing-page .size-btn:hover {
  background: rgba(184, 67, 229, 0.2);
  border-color: #2f00ff;
  transform: scale(1.1);
}

body.drawing-page #size-display {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  min-width: 30px;
  text-align: center;
}

body.drawing-page #action-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

body.drawing-page .action-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(184, 67, 229, 0.2);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.drawing-page .action-bubble:hover {
  background: rgba(184, 67, 229, 0.15);
  border-color: #2f00ff;
  transform: translateX(-8px) scale(1.1);
  box-shadow: 0 8px 24px rgba(184, 67, 229, 0.4);
}

body.drawing-page #drawing-canvas {
  display: block;
  cursor: crosshair;
  background: #ffffff;
  width: 100vw;
  height: 100vh;
}

body.drawing-page #text-input {
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid #2f00ff;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 8px;
  color: #000;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(184, 67, 229, 0.3);
  min-width: 200px;
}
