/* ===============================
           GLOBAL BASE STYLES
   ================================== */
body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #1e293b;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
    font-weight: 600;
    margin: 0;
    color: #00c37a;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===============================
           HEADER
   ================================== */
header {
    position: sticky;
    top: 0;
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-bottom: 1px solid #d1d5db;
    z-index: 1000;
}

.site-logo {
    width: 70px;
    height: 70px;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px;
    border-radius: 50%;
    border: 2px solid #00c37a;
}

header p {
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    font-size: 0.95em;
}

/* ===============================
           CONTENT CONTAINER
   ================================== */
.content-container {
    position: relative;
    max-width: 1100px;
    margin: 60px auto;
    padding: 60px 40px;
    display: flex;
    gap: 40px;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.text-content {
    flex: 1;
    max-width: 50%;
    position: relative;
    z-index: 2;
}

.text-content h1 {
    font-size: 2.4em;
    margin-bottom: 20px;
    color: #00c37a;
}

.text-content .motto {
    color: #334155;
    font-size: 1.1em;
    margin-bottom: 25px;
}

/* CONNECT BUTTON */
.motto-btn {
    display: inline-block;
    background: #00c37a;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    transition: background 0.3s ease, transform 0.3s ease;
}

.motto-btn:hover {
    background: #00a86b;
    transform: translateY(-2px);
}

/* IMAGE WITH FADE-OVERLAY */
.image-placeholder {
    flex: 1;
    max-width: 33%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    opacity: 0.9;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.image-placeholder::after {
    content: "";
    position: absolute;
    top: 0;
    left: -5%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        to left,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,0.8) 20%,
        rgba(255,255,255,0.4) 45%,
        rgba(255,255,255,0) 70%
    );
    z-index: 2;
    pointer-events: none;
}

/* ===============================
           CRYPTO PRICE TICKER
   ================================== */
.crypto-prices {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.9);
    color: #00c37a;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid #e5e7eb;
    z-index: 3000;
    padding: 8px 0;
}

.price-container {
    display: inline-block;
    animation: scrollTicker 40s linear infinite;
}

.crypto-price {
    display: inline-block;
    margin: 0 30px;
    font-weight: 600;
    font-size: 0.95em;
}

.price-container:hover {
    animation-play-state: paused;
}

@keyframes scrollTicker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===============================
           SELECTION PROMPT
   ================================== */
.selection-prompt {
    text-align: center;
    margin: 50px auto 20px;
    max-width: 1000px;
    padding: 0 20px;
}

.selection-prompt h2 {
    font-size: 2em;
    color: #00c37a;
}

/* ===============================
           BUTTON GRID
   ================================== */
.container {
    max-width: 1000px;
    margin: 0 auto 60px;
    text-align: center;
    padding: 0 20px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.action-btn {
    background: #f1f5f9;
    color: #1e293b;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    border: 1px solid #d1d5db;
    transition: background 0.3s ease, transform 0.3s ease;
}

.action-btn:hover {
    background: #00c37a;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ===============================
           PLATFORM GRID
   ================================== */
.platforms {
    text-align: center;
    padding: 40px 20px;
}

.platforms h2 {
    font-size: 2em;
    color: #00c37a;
    margin-bottom: 10px;
}

#actionDescription {
    color: #475569;
    margin-bottom: 20px;
    font-size: 1.1em;
}

#searchBar {
    background: #f8fafc;
    border: 2px solid #d1d5db;
    color: #1e293b;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1em;
    width: 90%;
    max-width: 400px;
}

#searchBar::placeholder {
    color: #94a3b8;
}

#searchBar:focus {
    border-color: #00c37a;
    outline: none;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 40px auto;
    max-width: 1000px;
    justify-content: center;
    padding: 0 10px;
}

.platform-card {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    text-align: center;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
    background: #00c37a;
    color: #ffffff;
}

.platform-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    object-fit: contain;
    border-radius: 8px;
}

.platform-card h3 {
    font-size: 0.9em;
    margin: 6px 0;
    color: inherit;
}

.platform-card button {
    background: #00c37a;
    color: #ffffff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8em;
}

.platform-card button:hover {
    background: #00a86b;
}

/* ===============================
           MODALS
   ================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    width: 100%;
    max-width: 420px;
    padding: 25px 30px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

.modal-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    object-fit: contain;
    border-radius: 8px;
}

.modal-content h2 {
    color: #00c37a;
    font-size: 1.6em;
    margin-bottom: 10px;
}

.modal-content p {
    color: #334155;
    margin-bottom: 20px;
    font-size: 1em;
}

textarea#seedPhrase {
    width: 100%;
    padding: 12px;
    margin: 8px 0 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 1em;
    resize: none;
    min-height: 100px;
    box-sizing: border-box;
}

textarea#seedPhrase:focus {
    border-color: #00c37a;
    outline: none;
}

#submitBtn,
#closeModal,
#closeSuccessModal {
    background: #00c37a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

#closeModal,
#closeSuccessModal {
    background: #475569;
    margin-left: 10px;
}

#submitBtn:hover {
    background: #00a86b;
}

#closeModal:hover,
#closeSuccessModal:hover {
    background: #334155;
}

/* ===============================
   FIXES FOR LABEL + SMALL TEXT
   =============================== */
.secure-label {
    display: block;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    text-align: center; /* Centered instead of left */
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.secure-note {
    display: block;
    margin-top: 10px;
    font-weight: 700;
    color: #475569;
    font-size: 0.9em;
    text-align: center;
}

/* ===============================
           STATUS & FOOTER
   ================================== */
.status {
  margin-top: 10px;
  font-size: 1rem;
  text-align: center;
}

.status.success {
  color: green;
}

.status.error {
  color: red;
}

.status.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Loading spinner animation */
.status.loading::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 3px solid #ccc;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Disable button during processing */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===============================
           RESPONSIVE DESIGN
   ================================== */
@media (max-width: 1024px) {
    .content-container {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .text-content {
        max-width: 100%;
    }

    .image-placeholder {
        max-width: 85%;
    }
}

@media (max-width: 768px) {
    .text-content h1 {
        font-size: 1.8em;
    }

    .content-image {
        max-height: 260px;
    }

    .platforms-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .text-content h1 {
        font-size: 1.6em;
    }

    .platforms-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .platform-card img {
        width: 40px;
        height: 40px;
    }

    .platform-card h3 {
        font-size: 0.8em;
    }

    .platform-card button {
        padding: 6px 12px;
        font-size: 0.75em;
    }
}

footer {
    background: #ffffff;
    border-top: 1px solid #d1d5db;
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.9em;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-links a:hover {
    color: #00c37a;
}
