/* Preserve newline characters in hero subtitles as line breaks */
.hero-subtitle { white-space: pre-line; }
/* Guides Page Styles */
.guides-page .header.guides-header,
.guides-header {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border-bottom: 2px solid #ff4500;
  padding: 30px;
  text-align: center;
  border-radius: 15px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.guides-header .header-content h1 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ff4500;
}
.guides-header .header-content p { color: #ccc; }

.guides-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 968px) {
  .guides-container { grid-template-columns: 1fr; gap: 30px; }
}

.guide {
  background: linear-gradient(135deg, #333, #444);
  border-radius: 15px;
  padding: 30px;
  border: 2px solid #555;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.guide:hover { transform: translateY(-5px); border-color: #ff4500; box-shadow: 0 10px 25px rgba(255,69,0,0.2); }
.guide-header { text-align: center; margin-bottom: 30px; position: relative; z-index: 2; }
.guide-icon { font-size: 3rem; margin-bottom: 10px; display: block; }
.guide h2 { font-size: 1.6rem; color: #ff4500; margin-bottom: 8px; font-weight: 600; }
.guide-subtitle { color: #ccc; font-size: 1rem; }

.step {
  margin-bottom: 25px;
  padding: 20px;
  background-color: #444;
  border-radius: 15px;
  border: 1px solid #555;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}
.step:hover { background-color: #4a4a4a; border-color: #ff4500; }
.step-number {
  position: absolute; top: -12px; left: -12px; width: 36px; height: 36px;
  background: linear-gradient(45deg, #ff4500, #ff6347);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: bold; font-size: 1rem; box-shadow: 0 4px 12px rgba(255,69,0,0.4);
}
.step h3 { font-size: 1.2rem; color: #fff; margin-bottom: 12px; font-weight: 600; }
.step p { color: #ccc; line-height: 1.6; margin-bottom: 8px; }
.step ul { margin: 12px 0; padding-left: 0; list-style: none; }
.step li { color: #fff; margin-bottom: 8px; position: relative; padding-left: 20px; }
.step li:before { content: '•'; color: #ff4500; font-weight: bold; position: absolute; left: 0; font-size: 1.2rem; }
.step strong { color: #ff4500; }

.important-notes { background: linear-gradient(135deg, #2d2d2d, #3a3a3a); border-radius: 15px; padding: 30px; border: 2px solid #ffd700; margin-top: 40px; position: relative; }
.important-notes h3 { color: #ffd700; margin-bottom: 20px; font-size: 1.4rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.important-notes ul { margin: 0; padding-left: 0; list-style: none; }
.important-notes li { color: #fff; margin-bottom: 12px; position: relative; padding-left: 30px; line-height: 1.5; }
.important-notes li:before { content: '→'; color: #ffd700; font-weight: bold; position: absolute; left: 0; font-size: 1.2rem; }

.guides-footer { background-color: #222; padding: 25px; text-align: center; color: #888; border-radius: 10px; border: 1px solid #444; margin-top: 40px; }

@keyframes shine { 0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); } 50% { transform: translateX(100%) translateY(100%) rotate(45deg); } 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); } }
/* Disable header-wide shine to avoid effect bleeding over the page */
.guides-header::before { content: none; }

@media (max-width: 768px) {
  .guides-header { padding: 25px 20px; }
  .guide { padding: 25px 20px; }
  .step { padding: 18px; }
  .step-number { width: 32px; height: 32px; font-size: 0.875rem; }
  .important-notes { padding: 25px 20px; }
}
/* Platform Styles - Token Launch Platform */
/* Complete standalone stylesheet - no external dependencies */

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #ff4500;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6347;
}

/* =====================================================
   LAYOUT COMPONENTS
   ===================================================== */

/* Footer Styling */
.footer {
    margin-top: 60px;
    background: linear-gradient(135deg, #121212, #1b1b1b);
    border-top: 1px solid #2b2b2b;
    color: #d8d8d8;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}

@media (max-width: 992px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-content { grid-template-columns: 1fr; }
}

.footer-section h4 {
    margin: 0 0 12px 0;
    color: #ff6a00;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.footer-section p { margin: 0; color: #b6b6b6; line-height: 1.6; }
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section li + li { margin-top: 8px; }
.footer-section a { color: #cfcfcf; text-decoration: none; transition: color 0.2s ease; }
.footer-section a:hover { color: #ff6a00; }

.footer-bottom {
    border-top: 1px solid #2b2b2b;
    padding: 16px 24px;
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #9a9a9a;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content { padding: 24px 16px; gap: 16px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
}

/* Header Styling */
.header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-bottom: 2px solid #ff4500;
    padding: 10px 16px; /* more compact */
    backdrop-filter: blur(10px);
    min-height: 72px; /* compact header */
    max-height: 100px; /* allow wallet details */
    display: flex;
    align-items: center;
    overflow: visible; /* allow wallet panel to expand downward */
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center; /* header content stays centered vertically */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.platform-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #ff4500;
    object-fit: cover;
}

.logo-section h1 {
    color: #ff4500;
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Wallet Section */
.wallet-section { display: flex; align-items: flex-start; margin-left: auto; }

.wallet-box {
    background-color: #333;
    border-radius: 10px;
    padding: 8px 12px; /* compact */
    border: 2px solid #ff4500;
    min-width: 200px;
    text-align: center;
    max-width: 250px; /* Prevent excessive width */
    position: relative;
    z-index: 2100; /* ensure wallet panel sits above nav */
}

.connect-btn {
    background: linear-gradient(45deg, #ff4500, #ff6347);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
    width: 100%;
}

.connect-btn:hover {
    background: linear-gradient(45deg, #ff6347, #ff4500);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 69, 0, 0.4);
}

.connect-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(45deg, #666, #777);
}

.wallet-status { margin-top: 6px; }

.wallet-status p { margin: 3px 0; font-size: 12px; color: #ff4500; }

.wallet-details { margin-top: 6px; padding-top: 4px; border-top: 1px solid #444; overflow: hidden; }

.wallet-details p { margin: 2px 0; font-size: 11px; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#shortAddress {
    color: #00ff00 !important;
}

.user-username {
    color: #ff4500 !important;
    font-weight: 600;
    font-size: 13px !important;
    font-family: 'Courier New', monospace;
}

#availableXRP {
    color: #4ecdc4 !important;
    font-weight: bold;
}

/* Main Navigation */
.main-nav {
    position: relative; /* scrolls with page */
    top: auto;
    left: auto;
    right: auto;
    z-index: 900;
    background-color: #222;
    border-bottom: 1px solid #444;
    padding: 15px 20px;
    min-height: 56px; /* flexible nav height */
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.nav-tab {
    background: none;
    border: 2px solid #555;
    color: #ccc;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.nav-tab:hover {
    border-color: #ff4500;
    color: #ff4500;
    transform: translateY(-2px);
}

.nav-tab.active {
    background: linear-gradient(45deg, #ff4500, #ff6347);
    border-color: #ff4500;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
}

/* Main Content */
.main-content {
    margin-top: 0; /* header not fixed */
    padding: 30px 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    min-height: 100vh;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* =====================================================
   STATUS & MESSAGING
   ===================================================== */
/* =====================================================
   API STATUS PAGE
   ===================================================== */
.api-status-page { margin-top: 10px; }
.api-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.api-card { background: linear-gradient(135deg, #1a1a1a, #2a2a2a); border: 1px solid #333; border-radius: 12px; padding: 20px; }
.api-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.api-card-header h3 { margin: 0; color: #ff6a00; font-size: 1.05rem; }
.api-indicator { font-size: 18px; line-height: 1; }
.api-kv div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #333; }
.api-kv div:last-child { border-bottom: 0; }
.api-kv span { color: #bcbcbc; }
.api-kv strong { color: #fff; }
.api-endpoints { margin: 0; padding-left: 16px; color: #cfcfcf; }
.api-endpoints li { margin: 6px 0; }
.api-endpoints code { background: rgba(255,255,255,0.06); border: 1px solid #333; padding: 2px 6px; border-radius: 6px; }
.api-status-raw { margin-top: 20px; }
.api-status-raw pre { background: #0f0f0f; border: 1px solid #2b2b2b; border-radius: 8px; padding: 12px; color: #cfcfcf; max-height: 320px; overflow: auto; }

/* Health page */
.health-page .status-pill { color: #000; font-weight: 700; padding: 6px 10px; border-radius: 14px; display: inline-block; min-width: 90px; text-align: center; }
.health-summary .summary-row { display:flex; align-items:center; gap:16px; justify-content: space-between; }
.health-summary .summary-items { display:flex; gap:20px; color:#cfcfcf; }
.health-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap:20px; margin-top: 16px; }
.health-card { background: linear-gradient(135deg,#1a1a1a,#2a2a2a); border:1px solid #333; border-radius:12px; padding:16px; }
.health-card h3 { margin:0 0 10px 0; color:#ff6a00; font-size:1.05rem; }
.health-card .kv div { display:flex; justify-content:space-between; padding:6px 0; border-bottom:1px dashed #333; }
.health-card .kv div:last-child { border-bottom:0; }

.status {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #444;
    transition: all 0.3s ease;
    text-align: center;
}

.status.loading {
    background-color: #333;
    border-color: #ff4500;
    color: white;
}

.status.connected {
    background-color: #2d4a2d;
    border-color: #00ff00;
    color: #00ff00;
}

.status.error {
    background-color: #4a2d2d;
    border-color: #ff4500;
    color: #ff6347;
}

/* =====================================================
   LAUNCH OVERVIEW COMPONENTS
   ===================================================== */

/* Launches Header */
.launches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.launches-header h2 {
    color: #ff4500;
    margin: 0;
    font-size: 1.75rem;
}

.launches-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #333;
    border-radius: 25px;
    padding: 5px;
    border: 2px solid #555;
    transition: border-color 0.3s ease;
}

.search-box:focus-within {
    border-color: #ff4500;
}

.search-input {
    background: none;
    border: none;
    color: #fff;
    padding: 10px 15px;
    width: 200px;
    outline: none;
    font-size: 14px;
}

.search-input::placeholder {
    color: #888;
}

.search-btn {
    background: linear-gradient(45deg, #ff4500, #ff6347);
    border: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
}

.filter-select {
    background-color: #333;
    border: 2px solid #555;
    color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    border-color: #ff4500;
}

.refresh-btn {
    background-color: #4ecdc4;
    border: none;
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background-color: #00ff00;
    transform: translateY(-2px);
}

/* Create Token CTA */
.create-token-cta {
    background: linear-gradient(135deg, #ff4500, #ff6347);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.create-token-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #fff;
}

.cta-content p {
    margin: 0 0 20px 0;
    color: #fff;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(45deg, #fff, #f0f0f0);
    color: #ff4500;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.125rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Launch Grid */
.launch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.launch-card {
    background: linear-gradient(135deg, #333, #444);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #555;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.launch-card:hover {
    transform: translateY(-5px);
    border-color: #ff4500;
    box-shadow: 0 10px 25px rgba(255, 69, 0, 0.2);
}

/* Disable legacy hover sweep so theme top accent is always visible */
.launch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 1), transparent);
    transition: none;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.card-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ff4500;
    object-fit: cover;
}

.card-title h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

.card-symbol { background: rgba(255,69,0,0.14); color: #ff9966; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; margin-top: 5px; display: inline-block; border: 1px solid rgba(255,69,0,0.28); }

.card-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    z-index: 3;
}

.status-active {
    background: linear-gradient(45deg, #00ff00, #32cd32);
    color: #000;
}

.status-prepare {
    background: linear-gradient(45deg, #ffd54f, #ffb300);
    color: #000;
}

.status-completed {
    background: linear-gradient(45deg, #4ecdc4, #00ff00);
    color: #000;
}

.status-failed {
    background: linear-gradient(45deg, #ff6b6b, #ff4444);
    color: #fff;
}

.card-progress {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #555;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6a00, #ff3b1f);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #ccc;
    position: relative;
    z-index: 2;
}

.card-time {
    color: #ffd700;
    font-weight: bold;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #ff4500;
    margin-bottom: 10px;
    font-size: 24px;
}

.empty-state p {
    color: #ccc;
    margin-bottom: 30px;
}

.empty-create-btn {
    background: linear-gradient(45deg, #ff4500, #ff6347);
    border: none;
    color: #fff;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empty-create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.3);
}

/* Loading Placeholder */
.loading-placeholder {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #ff4500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Not Connected Message */
.not-connected-message {
    text-align: center;
    padding: 60px 20px;
    background-color: #333;
    border-radius: 15px;
    border: 2px dashed #ff4500;
}

.message-content h3 {
    color: #ff4500;
    margin-bottom: 10px;
}

.message-content p {
    color: #ccc;
}

/* =====================================================
   MODAL COMPONENTS
   ===================================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #222, #333);
    border-radius: 20px;
    border: 2px solid #ff4500;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-content.large {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #444;
    background: linear-gradient(135deg, #ff4500, #ff6347);
}

.modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
}

.launch-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.detail-title h3 {
    margin: 0;
    color: #fff;
}

.token-symbol {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-top: 5px;
    display: inline-block;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

/* =====================================================
   FORM COMPONENTS
   ===================================================== */

.token-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background-color: #444;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #555;
}

.form-section h4 {
    margin: 0 0 20px 0;
    color: #ff4500;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: #333;
    border: 2px solid #555;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff4500;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.field-help {
    margin-top: 5px;
    font-size: 12px;
    color: #ccc;
}

/* Logo Upload Styles */
.logo-upload-area {
    border: 2px dashed #555;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.logo-upload-area:hover {
    border-color: #ff4500;
    background-color: rgba(255, 69, 0, 0.05);
}

.upload-placeholder {
    pointer-events: none;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-help {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.logo-preview {
    text-align: center;
    padding: 20px;
    background-color: #333;
    border-radius: 10px;
    border: 2px solid #ff4500;
}

.logo-preview img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.remove-logo-btn {
    background-color: #ff6b6b;
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.remove-logo-btn:hover {
    background-color: #ff4444;
}

/* Slider Styles */
.slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dev-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(90deg, #555, #ff4500);
    border-radius: 4px;
    outline: none;
}

.dev-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ff4500, #ff6347);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.3);
}

.dev-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ff4500, #ff6347);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.3);
}

.slider-display {
    background-color: #333;
    padding: 10px 15px;
    border-radius: 20px;
    border: 2px solid #ff4500;
    color: #ff4500;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

/* Cost Summary */
.cost-summary {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #ffd700;
    margin-top: 20px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #ccc;
}

.cost-row.total-cost {
    border-top: 1px solid #555;
    padding-top: 10px;
    margin-top: 10px;
    color: #ffd700;
    font-weight: bold;
    font-size: 16px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.cancel-btn {
    background-color: #666;
    border: none;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background-color: #777;
}

.submit-btn {
    background: linear-gradient(45deg, #00ff00, #32cd32);
    border: none;
    color: #000;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.4);
}

.submit-btn:disabled {
    background: linear-gradient(45deg, #666, #777);
    color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Validation Styles */
.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

.form-group input.valid,
.form-group textarea.valid,
.form-group select.valid {
    border-color: #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
}

.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
}

.success-message {
    color: #00ff00;
    font-size: 12px;
    margin-top: 5px;
}

/* =====================================================
   LAUNCH DETAIL COMPONENTS
   ===================================================== */

.launch-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.detail-section {
    background-color: #444;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #555;
}

.detail-section h4 {
    margin: 0 0 20px 0;
    color: #ff4500;
    font-size: 1.125rem;
}

.detail-progress {
    margin-bottom: 20px;
}

.detail-progress-bar {
    width: 100%;
    height: 12px;
    background-color: #333;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.detail-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4500, #ff6347, #ffd700);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #ccc;
}

.progress-percentage { color: #ffd700; font-weight: bold; font-size: 1.125rem; }
.card-progress .progress-info .progress-percentage { color: inherit; }

/* Buy Interface */
.buy-interface {
    background: linear-gradient(135deg, #333, #444);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #00ff00;
    margin-top: 20px;
}

.buy-interface h5 {
    margin: 0 0 20px 0;
    color: #00ff00;
    font-size: 16px;
}

.buy-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.buy-input {
    flex: 1;
    padding: 12px 15px;
    background-color: #222;
    border: 2px solid #555;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-family: monospace;
}

.buy-input:focus {
    outline: none;
    border-color: #00ff00;
}

.max-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border: none;
    color: #000;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.max-btn:hover {
    transform: scale(1.05);
}

.buy-btn {
    width: 100%;
    background: linear-gradient(45deg, #00ff00, #32cd32);
    border: none;
    color: #000;
    padding: 15px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.4);
}

.buy-btn:disabled {
    background: linear-gradient(45deg, #666, #777);
    color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: #ff4500;
    color: #ff4500;
    transform: translateY(-2px);
}

/* =====================================================
   XAMAN INTEGRATION COMPONENTS
   ===================================================== */

.xaman-display {
    margin-top: 20px;
    padding: 20px;
    background-color: #444;
    border-radius: 10px;
    border: 2px solid #00ff00;
    text-align: center;
}

.xaman-content h4 {
    color: #00ff00;
    margin-bottom: 15px;
    font-size: 1rem;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.qr-code {
    display: block;
    border-radius: 4px;
    max-width: 100%;
    height: auto;
    width: auto;
}

.deep-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #00ff00, #32cd32, #228b22);
    color: #000;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
    margin: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.deep-link-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 ease;
}

.deep-link-btn:hover::before {
    left: 100%;
}

.deep-link-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.4);
    background: linear-gradient(135deg, #32cd32, #00ff00, #90ee90);
    color: #000;
    text-decoration: none;
}

.deep-link-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.deep-link-btn .btn-icon {
    font-size: 1.25rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.deep-link-btn .btn-text {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.instruction-text {
    color: #ccc;
    font-size: 0.75rem;
    margin-top: 10px;
    line-height: 1.4;
    font-style: italic;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.hidden {
    display: none !important;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

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

.text-right {
    text-align: right;
}

.text-success {
    color: #00ff00;
}

.text-error {
    color: #ff6b6b;
}

.text-warning {
    color: #ffd700;
}

.text-primary {
    color: #ff4500;
}

.text-secondary {
    color: #4ecdc4;
}

.font-mono {
    font-family: 'Courier New', Monaco, monospace;
}

.font-bold {
    font-weight: bold;
}

.font-normal {
    font-weight: normal;
}

.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

.capitalize {
    text-transform: capitalize;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.slide-in {
    animation: slideIn 0.3s ease;
}

.pulse {
    animation: pulse 2s infinite;
}

.bounce {
    animation: bounce 1s ease-in-out infinite;
}

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

/* Tablet Styles */
@media (max-width: 1024px) {
    .header-content {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .main-content {
        max-width: 100%;
        padding: 30px 20px;
    }
    
    .launch-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .modal-content {
        max-width: 90%;
        margin: 20px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
        height: auto; /* Allow flexible height on mobile */
        min-height: 70px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo-section h1 {
        font-size: 1.25rem;
    }
    
    .platform-logo {
        width: 40px;
        height: 40px;
    }
    
    .wallet-box {
        min-width: 180px;
        padding: 12px;
    }
    
    .main-nav {
        top: 110px; /* Adjusted for mobile header height */
        padding: 10px 15px;
        height: auto;
        min-height: 60px;
    }
    
    .main-content {
        margin-top: 170px; /* Adjusted for mobile header + nav height */
        padding: 20px 15px;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-tab {
        width: 100%;
        text-align: center;
        padding: 10px 20px;
    }
    
    .launches-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .launches-header h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .launches-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .launch-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .launch-card {
        padding: 20px;
    }
    
    .card-header {
        gap: 12px;
    }
    
    .card-logo {
        width: 50px;
        height: 50px;
    }
    
    .card-title h3 {
        font-size: 1rem;
    }
    
    .create-token-cta {
        padding: 25px 20px;
    }
    
    .cta-content h3 {
        font-size: 1.25rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .launch-detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .slider-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .buy-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .qr-container {
        margin: 10px auto;
        padding: 8px;
        max-width: calc(100% - 20px);
    }
    
    .qr-code {
        max-width: 180px;
        max-height: 180px;
    }
    
    .xaman-display {
        margin-top: 15px;
        padding: 15px;
    }
    
    .xaman-content h4 {
        font-size: 0.875rem;
    }
    
    .deep-link-btn {
        font-size: 0.875rem;
        padding: 12px 20px;
        gap: 6px;
    }
    
    .instruction-text {
        font-size: 0.6875rem;
        padding: 0 5px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .header {
        min-height: 65px;
    }
    
    .header-content {
        padding: 0 10px;
    }
    
    .main-nav {
        top: 105px;
    }
    
    .main-content {
        margin-top: 165px;
        padding: 15px 10px;
    }
    
    .launch-card {
        padding: 15px;
    }
    
    .modal-content {
        width: 98%;
        margin: 5px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .logo-upload-area {
        padding: 20px;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .cta-content h3 {
        font-size: 1.125rem;
    }
    
    .launches-header h2 {
        font-size: 1.25rem;
    }
}

/* =====================================================
   DARK MODE ENHANCEMENTS
   ===================================================== */

/* Scrollbar Styling for Webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #222;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Selection styling */
::selection {
    background-color: rgba(255, 69, 0, 0.3);
    color: #fff;
}

::-moz-selection {
    background-color: rgba(255, 69, 0, 0.3);
    color: #fff;
}

/* Focus outline for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #ff4500;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .launch-card {
        border-width: 3px;
    }
    
    .nav-tab {
        border-width: 3px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        border-width: 3px;
    }
}

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

/* Print styles */
@media print {
    .header,
    .main-nav,
    .modal,
    .xaman-display {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* =====================================================
   COMPONENT-SPECIFIC STATES
   ===================================================== */

/* Loading states */
.card-loading {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Success states */
.form-success {
    border-color: #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
}

/* Error states */
.form-error {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

/* Disabled states */
.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Active states */
.active {
    transform: scale(0.95);
}

/* Hover states for touch devices */
@media (hover: none) {
    .launch-card:hover {
        transform: none;
        border-color: #555;
        box-shadow: none;
    }
    
    .nav-tab:hover {
        transform: none;
    }
    
    .cta-button:hover {
        transform: none;
    }
}

/* Platform Styles - Token Launch Platform */

/* Import existing base styles */
/* Moved to the very top of the CSS via build or link. Fallback here only applies if loader preserves order. */
/* @import url('launchpadstyles.css'); */

/* Global Overrides and Extensions */
body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section h1 {
    color: #ff4500;
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.wallet-section {
    position: absolute;
    top: 8px;
    right: 16px;
    z-index: 2000;
}

.wallet-box {
    background-color: #333;
    border-radius: 10px;
    padding: 8px 12px;
    border: 2px solid #ff4500;
    min-width: 200px;
}

.nav-content {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-tab {
    background: none;
    border: 2px solid #555;
    color: #ccc;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-tab:hover {
    border-color: #ff4500;
    color: #ff4500;
    transform: translateY(-2px);
}

.nav-tab.active {
    background: linear-gradient(45deg, #ff4500, #ff6347);
    border-color: #ff4500;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
}

/* Main Content */
.main-content {
    margin-top: 140px;
    padding: 0px 20px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    min-height: calc(100vh - 160px);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Launches Header */
.launches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.launches-header h2 {
    color: #ff4500;
    margin: 0;
    font-size: 28px;
}

.launches-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #333;
    border-radius: 25px;
    padding: 5px;
    border: 2px solid #555;
}

.search-input {
    background: none;
    border: none;
    color: #fff;
    padding: 10px 15px;
    width: 200px;
    outline: none;
}

.search-input::placeholder {
    color: #888;
}

.search-btn {
    background: linear-gradient(45deg, #ff4500, #ff6347);
    border: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
}

.filter-select {
    background-color: #333;
    border: 2px solid #555;
    color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.refresh-btn {
    background-color: #4ecdc4;
    border: none;
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background-color: #00ff00;
    transform: translateY(-2px);
}

/* Create Token CTA */
.create-token-cta {
    background: linear-gradient(135deg, #ff4500, #ff6347);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.3);
}

.cta-content h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #fff;
}

.cta-content p {
    margin: 0 0 20px 0;
    color: #fff;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(45deg, #fff, #f0f0f0);
    color: #ff4500;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Launch Grid */
.launch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.launch-card {
    background: linear-gradient(135deg, #333, #444);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #555;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.launch-card:hover {
    transform: translateY(-5px);
    border-color: #ff4500;
    box-shadow: 0 10px 25px rgba(255, 69, 0, 0.2);
}

.launch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 69, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.launch-card:hover::before {
    left: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.card-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ff4500;
    object-fit: cover;
}

.card-title h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

.card-symbol { background: rgba(255,69,0,0.14); color: #ff9966; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; margin-top: 5px; display: inline-block; border: 1px solid rgba(255,69,0,0.28); }

.card-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    z-index: 3;
}

.status-active {
    background: linear-gradient(45deg, #00ff00, #32cd32);
    color: #000;
}

.status-completed {
    background: linear-gradient(45deg, #4ecdc4, #00ff00);
    color: #000;
}

.status-failed {
    background: linear-gradient(45deg, #ff6b6b, #ff4444);
    color: #fff;
}

.card-progress {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #555;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6a00, #ff3b1f);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #ccc;
    position: relative;
    z-index: 2;
}

.card-time {
    color: #ffd700;
    font-weight: bold;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #ff4500;
    margin-bottom: 10px;
    font-size: 24px;
}

.empty-state p {
    color: #ccc;
    margin-bottom: 30px;
}

.empty-create-btn {
    background: linear-gradient(45deg, #ff4500, #ff6347);
    border: none;
    color: #fff;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empty-create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.3);
}

/* Loading Placeholder */
.loading-placeholder {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #ff4500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Not Connected Message */
.not-connected-message {
    text-align: center;
    padding: 60px 20px;
    background-color: #333;
    border-radius: 15px;
    border: 2px dashed #ff4500;
}

.message-content h3 {
    color: #ff4500;
    margin-bottom: 10px;
}

.message-content p {
    color: #ccc;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #222, #333);
    border-radius: 20px;
    border: 2px solid #ff4500;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-content.large {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #444;
    background: linear-gradient(135deg, #ff4500, #ff6347);
}

.modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
}

.launch-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.detail-title h3 {
    margin: 0;
    color: #fff;
}

.token-symbol {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-top: 5px;
    display: inline-block;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

/* Token Form Styles */
.token-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background-color: #444;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #555;
}

.form-section h4 {
    margin: 0 0 20px 0;
    color: #ff4500;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: #333;
    border: 2px solid #555;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff4500;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.field-help {
    margin-top: 5px;
    font-size: 12px;
    color: #ccc;
}

/* Logo Upload Styles */
.logo-upload-area {
    border: 2px dashed #555;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.logo-upload-area:hover {
    border-color: #ff4500;
    background-color: rgba(255, 69, 0, 0.05);
}

.upload-placeholder {
    pointer-events: none;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-help {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.logo-preview {
    text-align: center;
    padding: 20px;
    background-color: #333;
    border-radius: 10px;
    border: 2px solid #ff4500;
}

.logo-preview img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.remove-logo-btn {
    background-color: #ff6b6b;
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.remove-logo-btn:hover {
    background-color: #ff4444;
}

/* Slider Styles */
.slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dev-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(90deg, #555, #ff4500);
    border-radius: 4px;
    outline: none;
}

.dev-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ff4500, #ff6347);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.3);
}

.dev-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ff4500, #ff6347);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.3);
}

.slider-display {
    background-color: #333;
    padding: 10px 15px;
    border-radius: 20px;
    border: 2px solid #ff4500;
    color: #ff4500;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

/* Cost Summary */
.cost-summary {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #ffd700;
    margin-top: 20px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #ccc;
}

.cost-row.total-cost {
    border-top: 1px solid #555;
    padding-top: 10px;
    margin-top: 10px;
    color: #ffd700;
    font-weight: bold;
    font-size: 16px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.cancel-btn {
    background-color: #666;
    border: none;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background-color: #777;
}

.submit-btn {
    background: linear-gradient(45deg, #00ff00, #32cd32);
    border: none;
    color: #000;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.4);
}

.submit-btn:disabled {
    background: linear-gradient(45deg, #666, #777);
    color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Validation Styles */
.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

.form-group input.valid,
.form-group textarea.valid,
.form-group select.valid {
    border-color: #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
}

.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
}

.success-message {
    color: #00ff00;
    font-size: 12px;
    margin-top: 5px;
}

/* =====================================================
   LAUNCH DETAIL COMPONENTS
   ===================================================== */

.launch-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.detail-section {
    background-color: #444;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #555;
}

.detail-section h4 {
    margin: 0 0 20px 0;
    color: #ff4500;
    font-size: 1.125rem;
}

.detail-progress {
    margin-bottom: 20px;
}

.detail-progress-bar {
    width: 100%;
    height: 12px;
    background-color: #333;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.detail-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4500, #ff6347, #ffd700);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #ccc;
}

.progress-percentage { color: #ffd700; font-weight: bold; font-size: 1.125rem; }
.card-progress .progress-info .progress-percentage { color: inherit; }

/* Buy Interface */
.buy-interface {
    background: linear-gradient(135deg, #333, #444);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #00ff00;
    margin-top: 20px;
}

.buy-interface h5 {
    margin: 0 0 20px 0;
    color: #00ff00;
    font-size: 16px;
}

.buy-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.buy-input {
    flex: 1;
    padding: 12px 15px;
    background-color: #222;
    border: 2px solid #555;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-family: monospace;
}

.buy-input:focus {
    outline: none;
    border-color: #00ff00;
}

.max-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border: none;
    color: #000;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.max-btn:hover {
    transform: scale(1.05);
}

.buy-btn {
    width: 100%;
    background: linear-gradient(45deg, #00ff00, #32cd32);
    border: none;
    color: #000;
    padding: 15px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.4);
}

.buy-btn:disabled {
    background: linear-gradient(45deg, #666, #777);
    color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: #ff4500;
    color: #ff4500;
    transform: translateY(-2px);
}

/* =====================================================
   XAMAN INTEGRATION COMPONENTS
   ===================================================== */

.xaman-display {
    margin-top: 20px;
    padding: 20px;
    background-color: #444;
    border-radius: 10px;
    border: 2px solid #00ff00;
    text-align: center;
}

.xaman-content h4 {
    color: #00ff00;
    margin-bottom: 15px;
    font-size: 1rem;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.qr-code {
    display: block;
    border-radius: 4px;
    max-width: 100%;
    height: auto;
    width: auto;
}

.deep-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #00ff00, #32cd32, #228b22);
    color: #000;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
    margin: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.deep-link-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 ease;
}

.deep-link-btn:hover::before {
    left: 100%;
}

.deep-link-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.4);
    background: linear-gradient(135deg, #32cd32, #00ff00, #90ee90);
    color: #000;
    text-decoration: none;
}

.deep-link-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.deep-link-btn .btn-icon {
    font-size: 1.25rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.deep-link-btn .btn-text {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.instruction-text {
    color: #ccc;
    font-size: 0.75rem;
    margin-top: 10px;
    line-height: 1.4;
    font-style: italic;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.hidden {
    display: none !important;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

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

.text-right {
    text-align: right;
}

.text-success {
    color: #00ff00;
}

.text-error {
    color: #ff6b6b;
}

.text-warning {
    color: #ffd700;
}

.text-primary {
    color: #ff4500;
}

.text-secondary {
    color: #4ecdc4;
}

.font-mono {
    font-family: 'Courier New', Monaco, monospace;
}

.font-bold {
    font-weight: bold;
}

.font-normal {
    font-weight: normal;
}

.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

.capitalize {
    text-transform: capitalize;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.slide-in {
    animation: slideIn 0.3s ease;
}

.pulse {
    animation: pulse 2s infinite;
}

.bounce {
    animation: bounce 1s ease-in-out infinite;
}

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

/* Tablet Styles */
@media (max-width: 1024px) {
    .header-content {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .main-content {
        max-width: 100%;
        padding: 30px 20px;
    }
    
    .launch-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .modal-content {
        max-width: 90%;
        margin: 20px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
        height: auto; /* Allow flexible height on mobile */
        min-height: 70px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo-section h1 {
        font-size: 1.25rem;
    }
    
    .platform-logo {
        width: 40px;
        height: 40px;
    }
    
    .wallet-box {
        min-width: 180px;
        padding: 12px;
    }
    
    .main-nav {
        top: 110px; /* Adjusted for mobile header height */
        padding: 10px 15px;
        height: auto;
        min-height: 60px;
    }
    
    .main-content {
        margin-top: 170px; /* Adjusted for mobile header + nav height */
        padding: 20px 15px;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-tab {
        width: 100%;
        text-align: center;
        padding: 10px 20px;
    }
    
    .launches-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .launches-header h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .launches-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .launch-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .launch-card {
        padding: 20px;
    }
    
    .card-header {
        gap: 12px;
    }
    
    .card-logo {
        width: 50px;
        height: 50px;
    }
    
    .card-title h3 {
        font-size: 1rem;
    }
    
    .create-token-cta {
        padding: 25px 20px;
    }
    
    .cta-content h3 {
        font-size: 1.25rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .launch-detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .slider-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .buy-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .qr-container {
        margin: 10px auto;
        padding: 8px;
        max-width: calc(100% - 20px);
    }
    
    .qr-code {
        max-width: 180px;
        max-height: 180px;
    }
    
    .xaman-display {
        margin-top: 15px;
        padding: 15px;
    }
    
    .xaman-content h4 {
        font-size: 0.875rem;
    }
    
    .deep-link-btn {
        font-size: 0.875rem;
        padding: 12px 20px;
        gap: 6px;
    }
    
    .instruction-text {
        font-size: 0.6875rem;
        padding: 0 5px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .header {
        min-height: 65px;
    }
    
    .header-content {
        padding: 0 10px;
    }
    
    .main-nav {
        top: 105px;
    }
    
    .main-content {
        margin-top: 165px;
        padding: 15px 10px;
    }
    
    .launch-card {
        padding: 15px;
    }
    
    .modal-content {
        width: 98%;
        margin: 5px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .logo-upload-area {
        padding: 20px;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .cta-content h3 {
        font-size: 1.125rem;
    }
    
    .launches-header h2 {
        font-size: 1.25rem;
    }
}

/* =====================================================
   DARK MODE ENHANCEMENTS
   ===================================================== */

/* Scrollbar Styling for Webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #222;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Selection styling */
::selection {
    background-color: rgba(255, 69, 0, 0.3);
    color: #fff;
}

::-moz-selection {
    background-color: rgba(255, 69, 0, 0.3);
    color: #fff;
}

/* Focus outline for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #ff4500;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .launch-card {
        border-width: 3px;
    }
    
    .nav-tab {
        border-width: 3px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        border-width: 3px;
    }
}

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

/* Print styles */
@media print {
    .header,
    .main-nav,
    .modal,
    .xaman-display {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
        padding: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* =====================================================
   COMPONENT-SPECIFIC STATES
   ===================================================== */

/* Loading states */
.card-loading {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Success states */
.form-success {
    border-color: #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
}

/* Error states */
.form-error {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

/* Disabled states */
.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Active states */
.active {
    transform: scale(0.95);
}

/* Hover states for touch devices */
@media (hover: none) {
    .launch-card:hover {
        transform: none;
        border-color: #555;
        box-shadow: none;
    }
    
    .nav-tab:hover {
        transform: none;
    }
    
    .cta-button:hover {
        transform: none;
    }
}

/* Platform Styles - Token Launch Platform */

/* Import existing base styles */
/* Moved to the very top of the CSS via build or link. Fallback here only applies if loader preserves order. */
/* @import url('launchpadstyles.css'); */

/* Global Overrides and Extensions */
body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section h1 {
    color: #ff4500;
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.wallet-section {
    position: absolute;
    top: 8px;
    right: 16px;
    z-index: 2000;
}

.wallet-box {
    background-color: #333;
    border-radius: 10px;
    padding: 8px 12px;
    border: 2px solid #ff4500;
    min-width: 200px;
}

.nav-content {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-tab {
    background: none;
    border: 2px solid #555;
    color: #ccc;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-tab:hover {
    border-color: #ff4500;
    color: #ff4500;
    transform: translateY(-2px);
}

.nav-tab.active {
    background: linear-gradient(45deg, #ff4500, #ff6347);
    border-color: #ff4500;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
}

/* Main Content */
.main-content {
    margin-top: 140px;
    padding: 0px 20px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    min-height: calc(100vh - 160px);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Launches Header */
.launches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.launches-header h2 {
    color: #ff4500;
    margin: 0;
    font-size: 28px;
}

.launches-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #333;
    border-radius: 25px;
    padding: 5px;
    border: 2px solid #555;
}

.search-input {
    background: none;
    border: none;
    color: #fff;
    padding: 10px 15px;
    width: 200px;
    outline: none;
}

.search-input::placeholder {
    color: #888;
}

.search-btn {
    background: linear-gradient(45deg, #ff4500, #ff6347);
    border: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
}

.filter-select {
    background-color: #333;
    border: 2px solid #555;
    color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.refresh-btn {
    background-color: #4ecdc4;
    border: none;
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background-color: #00ff00;
    transform: translateY(-2px);
}

/* Create Token CTA */
.create-token-cta {
    background: linear-gradient(135deg, #ff4500, #ff6347);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.3);
}

.cta-content h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #fff;
}

.cta-content p {
    margin: 0 0 20px 0;
    color: #fff;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(45deg, #fff, #f0f0f0);
    color: #ff4500;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Launch Grid */
.launch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.launch-card {
    background: linear-gradient(135deg, #333, #444);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #555;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.launch-card:hover {
    transform: translateY(-5px);
    border-color: #ff4500;
    box-shadow: 0 10px 25px rgba(255, 69, 0, 0.2);
}

.launch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 69, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.launch-card:hover::before {
    left: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.card-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ff4500;
    object-fit: cover;
}

.card-title h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

.card-symbol { background: rgba(255,69,0,0.14); color: #ff9966; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; margin-top: 5px; display: inline-block; border: 1px solid rgba(255,69,0,0.28); }

.card-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    z-index: 3;
}

.status-active {
    background: linear-gradient(45deg, #00ff00, #32cd32);
    color: #000;
}

.status-completed {
    background: linear-gradient(45deg, #4ecdc4, #00ff00);
    color: #000;
}

.status-failed {
    background: linear-gradient(45deg, #ff6b6b, #ff4444);
    color: #fff;
}

.card-progress {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #555;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6a00, #ff3b1f);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #ccc;
    position: relative;
    z-index: 2;
}

.card-time {
    color: #ffd700;
    font-weight: bold;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #ff4500;
    margin-bottom: 10px;
    font-size: 24px;
}

.empty-state p {
    color: #ccc;
    margin-bottom: 30px;
}

.empty-create-btn {
    background: linear-gradient(45deg, #ff4500, #ff6347);
    border: none;
    color: #fff;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empty-create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.3);
}

/* Loading Placeholder */
.loading-placeholder {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #ff4500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Not Connected Message */
.not-connected-message {
    text-align: center;
    padding: 60px 20px;
    background-color: #333;
    border-radius: 15px;
    border: 2px dashed #ff4500;
}

.message-content h3 {
    color: #ff4500;
    margin-bottom: 10px;
}

.message-content p {
    color: #ccc;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #222, #333);
    border-radius: 20px;
    border: 2px solid #ff4500;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-content.large {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #444;
    background: linear-gradient(135deg, #ff4500, #ff6347);
}

.modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
}

.launch-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.detail-title h3 {
    margin: 0;
    color: #fff;
}

.token-symbol {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-top: 5px;
    display: inline-block;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

/* Token Form Styles */
.token-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background-color: #444;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #555;
}

.form-section h4 {
    margin: 0 0 20px 0;
    color: #ff4500;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: #333;
    border: 2px solid #555;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff4500;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.field-help {
    margin-top: 5px;
    font-size: 12px;
    color: #ccc;
}

/* Logo Upload Styles */
.logo-upload-area {
    border: 2px dashed #555;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.logo-upload-area:hover {
    border-color: #ff4500;
    background-color: rgba(255, 69, 0, 0.05);
}

.upload-placeholder {
    pointer-events: none;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-help {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.logo-preview {
    text-align: center;
    padding: 20px;
    background-color: #333;
    border-radius: 10px;
    border: 2px solid #ff4500;
}

.logo-preview img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.remove-logo-btn {
    background-color: #ff6b6b;
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.remove-logo-btn:hover {
    background-color: #ff4444;
}

/* Slider Styles */
.slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dev-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(90deg, #555, #ff4500);
    border-radius: 4px;
    outline: none;
}

.dev-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ff4500, #ff6347);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.3);
}

.dev-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ff4500, #ff6347);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.3);
}

.slider-display {
    background-color: #333;
    padding: 10px 15px;
    border-radius: 20px;
    border: 2px solid #ff4500;
    color: #ff4500;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
}

/* Cost Summary */
.cost-summary {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #ffd700;
    margin-top: 20px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #ccc;
}

.cost-row.total-cost {
    border-top: 1px solid #555;
    padding-top: 10px;
    margin-top: 10px;
    color: #ffd700;
    font-weight: bold;
    font-size: 16px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.cancel-btn {
    background-color: #666;
    border: none;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background-color: #777;
}

.submit-btn {
    background: linear-gradient(45deg, #00ff00, #32cd32);
    border: none;
    color: #000;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.4);
}

.submit-btn:disabled {
    background: linear-gradient(45deg, #666, #777);
    color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Validation Styles */
.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

.form-group input.valid,
.form-group textarea.valid,
.form-group select.valid {
    border-color: #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
}

.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
}

.success-message {
    color: #00ff00;
    font-size: 12px;
    margin-top: 5px;
}

/* =====================================================
   LAUNCH DETAIL COMPONENTS
   ===================================================== */

.launch-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.detail-section {
    background-color: #444;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #555;
}

.detail-section h4 {
    margin: 0 0 20px 0;
    color: #ff4500;
    font-size: 1.125rem;
}

.detail-progress {
    margin-bottom: 20px;
}

.detail-progress-bar {
    width: 100%;
    height: 12px;
    background-color: #333;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.detail-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4500, #ff6347, #ffd700);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #ccc;
}

.progress-percentage { color: #ffd700; font-weight: bold; font-size: 1.125rem; }
.card-progress .progress-info .progress-percentage { color: inherit; }

/* Buy Interface */
.buy-interface {
    background: linear-gradient(135deg, #333, #444);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #00ff00;
    margin-top: 20px;
}

.buy-interface h5 {
    margin: 0 0 20px 0;
    color: #00ff00;
    font-size: 16px;
}

.buy-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.buy-input {
    flex: 1;
    padding: 12px 15px;
    background-color: #222;
    border: 2px solid #555;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-family: monospace;
}

.buy-input:focus {
    outline: none;
    border-color: #00ff00;
}

.max-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border: none;
    color: #000;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.max-btn:hover {
    transform: scale(1.05);
}

.buy-btn {
    width: 100%;
    background: linear-gradient(45deg, #00ff00, #32cd32);
    border: none;
    color: #000;
    padding: 15px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.4);
}

.buy-btn:disabled {
    background: linear-gradient(45deg, #666, #777);
    color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: #ff4500;
    color: #ff4500;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .main-nav {
        top: 140px;
    }
    
    .main-content {
        margin-top: 45px;
        padding: 20px 15px;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-tab {
        width: 100%;
        text-align: center;
    }
    
    .launches-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .launches-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .launch-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .launch-detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .slider-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .buy-input-group {
        flex-direction: column;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

.text-success {
    color: #00ff00;
}

.text-error {
    color: #ff6b6b;
}

.text-warning {
    color: #ffd700;
}

.text-primary {
    color: #ff4500;
}

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.slide-in {
    animation: slideIn 0.3s ease;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Additional CSS styles for Launch Details and Token Creation modules */

/* =====================================================
   LAUNCH DETAILS MODAL STYLES
   ===================================================== */

.launch-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.detail-section {
    background-color: #2d2d2d;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #555;
}

.detail-section-xrpl {
    margin: 160px 0 5px 0;
    background-color: #2d2d2d;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #555;
}

.detail-section h4 {
    margin: 0 0 20px 0;
    color: #ff4500;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section h5 {
    margin: 15px 0 10px 0;
    color: #ff4500;
    font-size: 1rem;
}

/* Progress Section */
.detail-progress {
    margin-bottom: 20px;
}

.detail-progress-bar {
    width: 100%;
    height: 12px;
    background-color: #333;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.detail-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4500, #ff6347, #ffd700);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #ccc;
    margin-bottom: 8px;
}

.progress-percentage { color: #ffd700; font-weight: bold; font-size: 1.125rem; }
.card-progress .progress-info .progress-percentage { color: inherit; }

/* Launch Stats */
.launch-stats {
    margin-top: 20px;
}

.stat-row,
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #555;
}

.stat-row:last-child,
.info-row:last-child {
    border-bottom: none;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
}

.status-badge.status-active {
    background: linear-gradient(45deg, #00ff00, #32cd32);
    color: #000;
}

.status-badge.status-prepare {
    background: linear-gradient(45deg, #ffd54f, #ffb300);
    color: #000;
}

.status-badge.status-completed {
    background: linear-gradient(45deg, #4ecdc4, #00ff00);
    color: #000;
}

.status-badge.status-failed {
    background: linear-gradient(45deg, #ff6b6b, #ff4444);
    color: #fff;
}

/* Token Information */
.token-info {
    margin-bottom: 20px;
}

.token-description {
    margin: 20px 0;
    padding: 15px;
    background-color: #333;
    border-radius: 8px;
    border: 1px solid #555;
}

.token-description p {
    margin: 0;
    line-height: 1.5;
    color: #ccc;
}

/* Social Section */
.social-section {
    margin: 20px 0;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buy Interface */
.buy-interface {
    background: linear-gradient(135deg, #333, #444);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #00ff00;
    margin-top: 20px;
}

.buy-interface h5 {
    margin: 0 0 20px 0;
    color: #00ff00;
    font-size: 1rem;
}

.buy-calculator {
    margin-bottom: 20px;
}

.buy-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.buy-input {
    flex: 1;
    padding: 12px 15px;
    background-color: #222;
    border: 2px solid #555;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    transition: border-color 0.3s ease;
}

.buy-input:focus {
    outline: none;
    border-color: #00ff00;
}

.max-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border: none;
    color: #000;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.max-btn:hover:not(:disabled) {
    transform: scale(1.05);
}

.max-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.buy-preview {
    background-color: #222;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #555;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.preview-row:last-child {
    margin-bottom: 0;
}

.buy-btn {
    width: 100%;
    background: linear-gradient(45deg, #00ff00, #32cd32);
    border: none;
    color: #000;
    padding: 15px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.buy-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.4);
}

.buy-btn:disabled {
    background: linear-gradient(45deg, #666, #777);
    color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.buy-warning {
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    border-radius: 8px;
    color: #ff6b6b;
    font-size: 0.875rem;
    text-align: center;
}

/* Inactive Interface */
.inactive-interface {
    background-color: #333;
    padding: 25px;
    border-radius: 15px;
    border: 2px dashed #666;
    margin-top: 20px;
    text-align: center;
}

.inactive-message {
    margin-bottom: 20px;
}

.inactive-message p {
    margin: 0;
    color: #ccc;
}

.inactive-btn {
    background-color: #666;
    border: none;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: not-allowed;
    font-weight: 500;
}

.inactive-btn:not(:disabled) {
    background: linear-gradient(45deg, #ff4500, #ff6347);
    cursor: pointer;
    transition: all 0.3s ease;
}

.inactive-btn:not(:disabled):hover {
    transform: translateY(-2px);
}

/* Purchase History */
.purchase-history {
    background-color: #444;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #555;
    margin-top: 30px;
}

.purchase-history h4 {
    margin: 0 0 20px 0;
    color: #ff4500;
    font-size: 1.125rem;
}

.no-purchases {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.purchase-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #555;
    border-radius: 8px;
}

.purchase-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #555;
    transition: background-color 0.3s ease;
}

.purchase-row:last-child {
    border-bottom: none;
}

.purchase-row:hover {
    background-color: rgba(255, 69, 0, 0.1);
}

.purchase-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.purchase-address {
    font-family: 'Courier New', monospace;
    color: #00ff00;
    font-size: 0.875rem;
}

.purchase-time {
    color: #888;
    font-size: 0.75rem;
}

.purchase-amounts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.xrp-amount {
    color: #4ecdc4;
    font-weight: bold;
}

.token-amount {
    color: #ffd700;
    font-size: 0.875rem;
}

.purchase-summary {
    margin-top: 15px;
    text-align: center;
    color: #888;
    font-size: 0.875rem;
    padding: 10px;
    background-color: #333;
    border-radius: 8px;
}

/* =====================================================
   TOKEN CREATION FORM STYLES
   ===================================================== */
/* =====================================================
   LEGAL PAGES
   ===================================================== */
.legal-page .detail-section { margin-top: 16px; }
.legal-page h3 { color: #ff6a00; margin-top: 0; }
.legal-page ul { margin: 0; padding-left: 18px; color: #fff; }
.legal-page li { margin: 6px 0; }

/* Form Validation States */
.availability-check {
    margin-top: 5px;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.availability-check.checking {
    background-color: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

.availability-check.available {
    background-color: rgba(0, 255, 0, 0.1);
    color: #00ff00;
}

.availability-check.unavailable {
    background-color: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.availability-check.error {
    background-color: rgba(255, 165, 0, 0.1);
    color: #ffa500;
}

/* Character Counter */
#descCharCount {
    font-weight: bold;
}

/* Logo Upload Enhancements */
.logo-upload-area.drag-over {
    border-color: #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
}

.logo-upload-area.drag-over .upload-placeholder {
    transform: scale(1.05);
}

/* Insufficient Balance State */
.submit-btn.insufficient-balance {
    background: linear-gradient(45deg, #ff6b6b, #ff4444) !important;
    color: #fff !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* =====================================================
   RESPONSIVE STYLES FOR NEW COMPONENTS
   ===================================================== */

@media (max-width: 768px) {
    .launch-detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .detail-section {
        padding: 20px;
    }

    .buy-input-group {
        flex-direction: column;
        gap: 10px;
    }

    .purchase-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .purchase-amounts {
        align-items: flex-start;
    }

    .social-links {
        justify-content: center;
    }

    .slider-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

/* =====================================================
   TOOLTIP STYLES
   ===================================================== */

.tooltip {
    position: absolute;
    background-color: #222;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border: 1px solid #555;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip.visible {
    opacity: 1;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #222;
}

/* =====================================================
   LOADING AND ERROR STATES
   ===================================================== */

.modal-loading {
    text-align: center;
    padding: 60px 20px;
}

.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #ff6b6b;
}

.error-state .error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.error-state h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
}

.error-state p {
    color: #ccc;
    margin-bottom: 20px;
}

.retry-btn {
    background: linear-gradient(45deg, #ff4500, #ff6347);
    border: none;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.3);
}

/* =====================================================
   ANIMATION ENHANCEMENTS
   ===================================================== */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

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

.slide-in-up {
    animation: slideInUp 0.4s ease;
}


/* =====================================================
   ACCESSIBILITY ENHANCEMENTS
   ===================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus management */
.modal:not(.hidden) .modal-content {
    outline: 2px solid #ff4500;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .buy-interface,
    .detail-section,
    .form-section {
        border-width: 3px;
    }
    
    .launch-card,
    .social-link {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .detail-progress-fill,
    .buy-btn,
    .social-link,
    .purchase-row {
        transition: none;
    }
    
    .slide-in-up,
    .pulse-animation,
    .loading-shimmer {
        animation: none;
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {
    .buy-interface,
    .inactive-interface,
    .form-actions,
    .modal-header .close-btn {
        display: none;
    }
    
    .detail-section,
    .purchase-history {
        border: 1px solid #000;
        background: transparent;
        color: #000;
    }
    
    .launch-detail-content {
        grid-template-columns: 1fr;
    }
}
/*
 =====================================================
   FLASH MESSAGES
   ===================================================== */

.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid;
    position: relative;
    animation: slideInDown 0.3s ease;
}

.flash-error {
    background-color: rgba(255, 107, 107, 0.1);
    border-left-color: #ff6b6b;
    color: #ff6b6b;
}

.flash-success {
    background-color: rgba(0, 255, 0, 0.1);
    border-left-color: #00ff00;
    color: #00ff00;
}

.flash-info {
    background-color: rgba(255, 212, 0, 0.1);
    border-left-color: #ffd400;
    color: #ffd400;
}

.flash-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.flash-text {
    flex: 1;
    font-weight: 500;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.flash-close:hover {
    opacity: 1;
}

/* Inline-script removals: buttons will be wired via JS */
[data-action="history-back"], [data-action="reload"] { cursor: pointer; }

/* Wallet Status component basic styles (component variant) */
.wallet-status-component { background: linear-gradient(135deg, #1a1a1a, #2d2d2d); border: 1px solid #333; border-radius: 8px; padding: 15px; margin: 10px 0; }
.wallet-info { margin-bottom: 15px; }
.connection-status { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.status-indicator { width: 12px; height: 12px; border-radius: 50%; background: #666; transition: background-color 0.3s ease; }
.status-indicator.connected { background: #4CAF50; box-shadow: 0 0 8px rgba(76,175,80,0.5); }
.status-indicator.disconnected { background: #f44336; }
.status-text { font-weight: 500; color: #fff; }
.wallet-details { background: rgba(255,255,255,0.05); border-radius: 6px; padding: 10px; margin-top: 10px; }
.wallet-address, .wallet-balance { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.address-text, .balance-text { font-family: 'Courier New', monospace; font-size: 0.9rem; color: #fff; }
.copy-btn { background: none; border: none; color: #ff4500; cursor: pointer; padding: 2px 5px; border-radius: 3px; }
.copy-btn:hover { background: rgba(255,69,0,0.1); }
.wallet-actions { display: flex; gap: 10px; }
.wallet-btn { flex: 1; padding: 10px 15px; border: none; border-radius: 6px; font-weight: 500; cursor: pointer; }
.wallet-btn.connect-btn { background: linear-gradient(135deg, #ff4500, #ff6347); color: #fff; }
.wallet-btn.disconnect-btn { background: linear-gradient(135deg, #666, #888); color: #fff; }
@media (max-width: 768px){ .wallet-actions { flex-direction: column; } .wallet-address, .wallet-balance { flex-direction: column; align-items: flex-start; gap: 5px; } }

/* Error/404 pages */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; text-align: center; }
.error-content { max-width: 600px; padding: 2rem; margin: 0 auto; }
.error-icon { font-size: 4rem; margin-bottom: 1rem; }
.error-message { font-size: 1.1rem; color: #ccc; margin-bottom: 2rem; }
.error-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.helpful-links { margin-top: 2rem; text-align: left; background-color: #333; padding: 1.5rem; border-radius: 0.5rem; border: 1px solid #444; }
.helpful-links h3 { color: #ff4500; margin-bottom: 1rem; text-align: center; }
.helpful-links ul { list-style: none; padding: 0; }
.helpful-links li { margin-bottom: 0.5rem; }
.helpful-links a { color: #ccc; text-decoration: none; }
.helpful-links a:hover { color: #ff4500; }

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

/* Auto-hide flash messages after 5 seconds */
.flash-message {
    animation: slideInDown 0.3s ease, fadeOut 0.5s ease 4.5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}
/* 
=====================================================
   TEMPLATE SYSTEM ENHANCEMENTS
   ===================================================== */

/* Page Headers */
.page-header {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #333;
}

.page-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.page-header .header-text h2 {
    color: #ff4500;
    margin-bottom: 8px;
    font-size: 2rem;
}

.page-header .header-description {
    color: #ccc;
    font-size: 1.1rem;
    margin: 0;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    min-width: 300px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.1), rgba(255, 99, 71, 0.1));
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.2);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff4500;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Controls */
.launches-controls, .history-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 12px;
    border: 1px solid #333;
    flex-wrap: wrap;
    gap: 15px;
}

.search-section, .filter-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.results-info {
    color: #ccc;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Enhanced Search Box */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 10px 45px 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #ff4500;
    box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.2);
    width: 300px;
}

.search-btn {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    color: #ff4500;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: rgba(255, 69, 0, 0.1);
}

/* Enhanced Filter Select */
.filter-select {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #ff4500;
    box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.2);
}

.filter-select option {
    background: #2d2d2d;
    color: #fff;
}

/* Enhanced Buttons */
.refresh-btn, .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn {
    background: linear-gradient(135deg, #666, #888);
    color: white;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #888, #aaa);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #ff4500, #ff6347);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff6347, #ff7f50);
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, #666, #888);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #888, #aaa);
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Enhanced Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 12px;
    border: 2px dashed #444;
    margin: 20px 0;
}

.empty-content {
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.empty-state p {
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.6;
}

.empty-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Enhanced Pagination */
.pagination-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.pagination-btn, .pagination-number {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination-btn:hover:not(.disabled), .pagination-number:hover {
    background: rgba(255, 69, 0, 0.2);
    border-color: #ff4500;
    color: #ff4500;
}

.pagination-number.active {
    background: #ff4500;
    border-color: #ff4500;
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-ellipsis {
    color: #666;
    padding: 0 5px;
}

.pagination-info {
    text-align: center;
    color: #ccc;
    font-size: 0.9rem;
}

/* Enhanced Launch Grid */
.launch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.history-grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
}

/* Enhanced Launch Cards */
.launch-card {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.launch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff4500, #ff6347);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.launch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #ff4500;
}

.launch-card:hover::before {
    opacity: 1;
}

.card-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.status-prepare {
    background: rgba(255, 200, 0, 0.2);
    color: #ffb300;
    border: 1px solid #ffb300;
}

.status-completed {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid #2196F3;
}

.status-failed {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    margin-top: 10px;
}

.card-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #333;
}

.card-title h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
}

.card-symbol {
    color: #ff4500;
    font-weight: bold;
    font-size: 0.9rem;
}

.card-progress {
    margin-bottom: 15px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.progress-info span:first-child {
    color: #fff;
    font-weight: 500;
}

.progress-info span:last-child { color: #ff4500; font-weight: bold; }
.card-progress .progress-info span:last-child { color: inherit; }

/* Launch card percentage styling */
.launch-card .card-progress .progress-info .progress-percentage {
    color: #ff4500; /* default orange on cards */
}

/* Over-cap gradient + pulse on cards (ensure high specificity and late source order) */
.launch-card .card-progress.over-cap .progress-info .progress-percentage,
.launch-card .card-progress.moonshot .progress-info .progress-percentage,
.launch-card .card-progress.supernova .progress-info .progress-percentage {
    background: linear-gradient(90deg, #32f9ff, #ff4df0, #32f9ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    animation: hypeHueShift 6s linear infinite, hypeNumberPulse 1.8s ease-in-out infinite;
    font-weight: 800;
    font-size: 1.15em;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6a00, #ff3b1f);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill.pulse {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #ccc;
}

.card-time {
    color: #ff4500;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.social-link {
    padding: 4px 8px;
    background: rgba(255, 69, 0, 0.1);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 4px;
    color: #ff4500;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 69, 0, 0.2);
    border-color: #ff4500;
}

/* Not Connected Message */
.not-connected-message {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 2px dashed #444;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
}

.message-content {
    max-width: 500px;
    margin: 0 auto;
}

.message-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.not-connected-message h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.not-connected-message p {
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.6;
}

.connection-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-size: 0.9rem;
}

.benefit-icon {
    font-size: 1.2rem;
}

/* Create Form Container */
.create-form-container {
    display: block;
}

/* XRP Balance Loading States */
.xrp-loading {
    color: #ffc107;
    opacity: 0.8;
}

.xrp-loaded {
    color: #4CAF50;
    font-weight: 500;
}

.xrp-error {
    color: #f44336;
    opacity: 0.7;
}

.wallet-status-section {
    margin-bottom: 30px;
}

/* Mobile Payment Status Overlay */
.mobile-payment-status { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10000; width: calc(100% - 40px); max-width: 400px; animation: slideUp 0.3s ease-out; }
.payment-status-card { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); border: 2px solid #4CAF50; }
.payment-status-card h3 { margin: 0 0 12px 0; color: #333; }
.payment-status-card .amount { font-size: 20px; font-weight: bold; color: #4CAF50; margin: 8px 0; }
.payment-status-card .status-message { display: flex; align-items: center; gap: 12px; padding: 12px; background: #f0f8ff; border-radius: 8px; margin: 16px 0; }
.payment-status-card .spinner { width: 20px; height: 20px; border: 3px solid #f0f0f0; border-top-color: #4CAF50; border-radius: 50%; animation: spin 1s linear infinite; }
.check-status-btn { width: 100%; padding: 12px; background: #4CAF50; color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background 0.3s; }
.check-status-btn:hover { background: #45a049; }
@keyframes slideUp { from { opacity: 0; transform: translateX(-50%) translateY(100%);} to { opacity: 1; transform: translateX(-50%) translateY(0);} }

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .launch-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .launches-controls, .history-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-section, .filter-section {
        justify-content: center;
    }
    
    .control-actions {
        justify-content: center;
    }
    
    .search-input {
        width: 100%;
        max-width: 300px;
    }
    
    .search-input:focus {
        width: 100%;
    }
    
    .launch-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination-btn, .pagination-number {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .empty-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .card-logo {
        width: 40px;
        height: 40px;
    }
    
    .card-stats {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Loading States */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #ccc;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #ff4500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Purchase Notifications */
.purchase-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 1px solid #ff4500;
    border-radius: 8px;
    padding: 15px;
    max-width: 300px;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.purchase-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 1.5rem;
}

.notification-text {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-text strong {
    color: #ff4500;
}

/* Flash Messages Enhancement */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1002;
    max-width: 400px;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.9), rgba(211, 47, 47, 0.9));
    border: 1px solid #f44336;
}

.flash-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(56, 142, 60, 0.9));
    border: 1px solid #4CAF50;
}

.flash-info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.9), rgba(25, 118, 210, 0.9));
    border: 1px solid #2196F3;
}

.flash-icon {
    font-size: 1.2rem;
}

.flash-text {
    flex: 1;
    color: white;
    font-weight: 500;
}

.flash-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.flash-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* =====================================================
   ALIASES FOR TOKEN CREATE FORM (match current markup)
   ===================================================== */

/* Section titles used in forms */
.section-title {
  margin: 0 0 20px 0;
  color: #ff4500;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Row layout for paired inputs */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Generic form field classes used by create form */
.form-label { display: block; margin-bottom: 8px; color: #fff; font-weight: 500; }
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 15px;
  background-color: #333;
  border: 2px solid #555;
  border-radius: 8px;
  color: #fff;
  font-size: 0.875rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus { outline: none; border-color: #ff4500; }
.form-input::placeholder,
.form-textarea::placeholder { color: #888; }
.form-help { margin-top: 5px; font-size: 0.75rem; color: #ccc; }

/* File upload area aliases (map to logo upload styles) */
.file-upload-area { border: 2px dashed #555; border-radius: 10px; padding: 30px; text-align: center; cursor: pointer; transition: all 0.3s ease; position: relative; }
.file-upload-area:hover { border-color: #ff4500; background-color: rgba(255, 69, 0, 0.05); }
.upload-preview { text-align: center; padding: 20px; background-color: #333; border-radius: 10px; border: 2px solid #ff4500; }
.upload-preview img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; }
.remove-image { background-color: #ff6b6b; border: none; color: #fff; padding: 8px 16px; border-radius: 20px; cursor: pointer; font-size: 0.75rem; transition: all 0.3s ease; }
.remove-image:hover { background-color: #ff4444; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: none; border-radius: 25px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; }
.btn-primary { background: linear-gradient(45deg, #ff4500, #ff6347); color: #fff; }
.btn-primary:hover { background: linear-gradient(45deg, #ff6347, #ff7f50); transform: translateY(-2px); }
.btn-secondary { background: linear-gradient(135deg, #666, #888); color: #fff; }
.btn-secondary:hover { background: linear-gradient(135deg, #888, #aaa); transform: translateY(-2px); }
.btn-warning { background: linear-gradient(135deg, #ffd700, #ffed4e); color: #000; }
.btn-warning:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* === Profile page enhancements === */
.profile-page {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 16px;
}
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.profile-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f2a44, #0b1020);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cde;
  font-weight: 700;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.profile-card-box {
  background: #0b1020;
  border: 1px solid #1b243a;
  border-radius: 10px;
  padding: 16px;
}
.profile-stats {
  display: flex;
  gap: 16px;
}
.stat-pill {
  background: #10162a;
  border: 1px solid #1a2540;
  border-radius: 999px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-pill .value { font-weight: 700; }

/* === Hover profile card (overlay) === */
.profile-card {
  position: fixed;
  z-index: 10000;
  min-width: 260px;
  max-width: 320px;
  background: #0b1020;
  border: 1px solid #1b243a;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.5);
  padding: 12px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 16px));
  transition: opacity .12s ease, transform .12s ease;
}
.profile-card.visible { opacity: 1; pointer-events: auto; }
.profile-card .pc-header { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.profile-card .pc-avatar { width: 36px; height: 36px; border-radius: 50%; background:#10162a; display:flex;align-items:center;justify-content:center; font-weight:700; color:#cde; }
.profile-card .pc-title .pc-name { font-weight: 700; }
.profile-card .pc-title .pc-wallet { font-size: .85rem; color:#8aa1b1; }
.profile-card .pc-stats { display: flex; gap: 12px; margin: 8px 0; }
.profile-card .pc-stat { text-align: center; }
.profile-card .pc-stat .pc-value { font-weight: 700; display:block; }
.profile-card .pc-stat .pc-label { font-size: .8rem; color:#8aa1b1; }
.profile-card .pc-actions { text-align: right; }

/* === Profile card tweaks for dynamic anchoring === */
.profile-card { pointer-events: auto; }
.profile-card[data-anchor="right"] { transform: translate(16px, -50%); }
.profile-card[data-anchor="left"] { transform: translate(-100%, -50%); }
.profile-card[data-anchor="below-right"] { transform: translate(16px, 16px); }
.profile-card[data-anchor="below-left"] { transform: translate(-100%, 16px); }

/* Force profile-card to use absolute positioning without transform offsets */
.profile-card { transform: none !important; }
.profile-card[data-anchor] { transform: none !important; }

/* === Profile layout responsiveness === */
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
}

/* Stack overview stat pills vertically on small screens */
@media (max-width: 640px) {
  .profile-stats { flex-direction: column; }
  .stat-pill { width: 100%; justify-content: space-between; }
}

/* Improve Edit Display Name styling */
.edit-name-box .form-inline { display: flex; gap: 8px; align-items: center; }
.edit-name-box input[type="text"] {
  background: #0f162b;
  border: 1px solid #1b243a;
  color: #cde;
  padding: 8px 10px;
  border-radius: 8px;
}
.edit-name-box .btn { padding: 8px 14px; border-radius: 16px; background:#2a375a; color:#cde; border:1px solid #314066; cursor:pointer; }
.edit-name-box .btn:hover { background:#314066; }

/* Profile card stats stacked on small screens */
@media (max-width: 640px) {
  .profile-card .pc-stats { flex-direction: column; }
  .profile-card .pc-stat { text-align: left; }
}

/* Stronger responsive stacking for profile stat pills */
@media (max-width: 900px) {
  .profile-stats { flex-direction: column !important; }
  .profile-stats .stat-pill { width: 100%; justify-content: space-between; }
}

.dev-badge { display:inline-block; margin-left:6px; font-size:12px; vertical-align:middle; background:#243251; color:#cde; border:1px solid #304064; border-radius:4px; padding:1px 4px; cursor:default; }

/* Force vertical stacking for profile stats */
.profile-stats { display: flex; flex-direction: column !important; gap: 12px; }
.profile-stats .stat-pill { width: 100%; justify-content: space-between; }
/* Ensure hover card stats also stack vertically */
.profile-card .pc-stats { display: flex; flex-direction: column !important; gap: 8px; }
.profile-card .pc-stat { text-align: left; }

.recent-activity { margin-top: 16px; }
.activity-list { display: flex; flex-direction: column; gap: 8px; }
.activity-item.compact { display:flex; align-items:center; justify-content: space-between; padding: 8px 10px; border:1px solid #1b243a; background:#0b1020; border-radius:8px; }
.activity-item.compact .a-left { display:flex; align-items:center; gap:8px; min-width:0; }
.activity-item.compact .a-right { display:flex; align-items:center; gap:12px; }
.activity-item .a-icon { width:18px; text-align:center; opacity:.85; }
.activity-item .a-amount { color:#ff7b39; font-weight:700; }
.activity-item .a-time { color:#8aa1b1; font-size:.85rem; }
.status-tag { font-size:.75rem; color:#cde; background:#1a2540; border:1px solid #27335a; padding:2px 6px; border-radius:6px; text-transform:capitalize; }
@media (max-width: 700px) {
  .activity-item.compact { flex-direction: column; align-items: flex-start; gap:6px; }
  .activity-item.compact .a-right { width:100%; justify-content: space-between; }
}

.activity-purchases-grid { display:grid; grid-template-columns: 1fr; gap: 16px; align-items:start; }
@media (min-width: 1024px) {
  .activity-purchases-grid { grid-template-columns: 1fr 1fr; }
}

.pledge-list { display:flex; flex-direction: column; gap: 8px; }
.pledge-item .a-amount { color:#66e0a3; font-weight:700; }
.pledge-item .pledge-type { color:#cde; }
.pledge-item .a-time { color:#8aa1b1; font-size:.85rem; }