* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: #0d1021;
    color: #e8e8e8;
}

/* HEADER */
.header {
    text-align: center;
    padding: 20px 20px;
}

.header h1 {
    font-size: 2.6rem;
    color: #46b6ff;
    text-shadow: 0 0 15px #008cff;
}

.subtitle {
    margin-top: 8px;
    font-size: 1.1rem;
    opacity: 0.7;
}

.disclaimer-link {
    margin-top: 22px;
}

.disclaimer-link a {
    color: #6ec6ff;
}

/* CONTAINER */
.container {
    padding: 20px;
}

/* RESPONSIVE GRID */
.token-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* TOKEN CARD BASE */
.token-card {
    background: rgba(29, 34, 66, 0.45);
    border: 1px solid rgba(0,140,255,0.3);
    border-radius: 18px;
    padding: 20px;
    backdrop-filter: blur(12px);
    transition: transform 0.25s, box-shadow 0.25s;
    
}

.token-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 15px #008cff75;
}

.token-card-main {
    background: rgba(29, 34, 66, 0.45);
    border: 1px solid rgba(0,140,255,0.3);
    border-radius: 18px;
    padding: 20px;
    backdrop-filter: blur(12px);
    transition: transform 0.25s, box-shadow 0.25s;
}

/* MAIN TOKEN CARD - FULL WIDTH */
/* CENTER CONTENT FOR MAIN TOKEN CARD ONLY */
.token-card-main {
    display: flex;
    flex-direction: column;
    align-items: center;      /* center horizontally */
    text-align: center;       /* center text */
    justify-content: center;  /* center vertically */
    grid-column: 1 / -1;      /* full width */
    padding: 10px;
    box-sizing: border-box;
}

.token-name-main {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2px;
}


/* COPY ALERT */
.copy-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #008cff;
    padding: 10px 18px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: 0.4s ease;
}

/* MAIN CARD BUTTONS */
.token-card-main .main-buttons {
    display: flex;
    flex-wrap: nowrap;        /* default: no wrap on large screens */
    justify-content: center;
    gap: 12px;
    overflow-x: auto;         /* allow horizontal scroll if needed */
    padding-bottom: 5px;
}

/* RESPONSIVE FOR MOBILE */
@media (max-width: 600px) {
    .token-card-main .main-buttons {
        flex-wrap: wrap;       /* allow buttons to wrap */
        gap: 8px;              /* smaller gap for mobile */
        justify-content: center;
    }
    
    .token-card-main .main-buttons button {
        flex: 1 1 45%;         /* buttons take ~half width */
        min-width: 120px;      /* prevent too small buttons */
    }
}


/* MAIN TOKEN BUTTONS */
.main-buttons {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

/* LOGO */
.token-logo {
    
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 12px;
}

/* NAME & ADDRESS */
.token-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-align: center;
}

.contract-main {
    font-size: 0.9rem;
    opacity: 0.85;
    word-wrap: break-word;
    margin-bottom: 8px;
    min-height: 1.2rem;
    overflow: hidden;
}

.contract {
    font-size: 0.9rem;
    opacity: 0.8;
    word-wrap: break-word;
    margin-bottom: 10px;
    min-height: 1rem;
    overflow: hidden;
}

.token-card {
    
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    min-height: 250px;

}


.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;      
    justify-content: center;
}


.btn {
    flex: 1; 
    padding: 10px 12px;
    
}




/* BUTTONS */
.btn {
    flex: 1;
    padding: 10px 12px;
    background: #008cff;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
}

.btn:hover {
    background: #34b9ff;
}

/* COPY ALERT */
.copy-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #008cff;
    padding: 10px 18px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: 0.4s ease;
}

.copy-alert.show {
    opacity: 1;
    transform: translateY(0);
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 30px 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

.token-card-main {
    background: #0b1220;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.token-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
}

.token-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
}

.contract {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.main-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.btn {
    background: #008cff;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.btn:hover {
    background: #26345a;
}

.btn-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}


/* SEARCH BAR */
.search-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 25px auto;
    display: flex;
    justify-content: center;
}

.search-input {
    width: 100%;
    padding: 12px 14px;
    background: #12172c;
    border: 2px solid #008cff70;
    border-radius: 12px;
    color: #e8e8e8;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}

.search-input:focus {
    border-color: #46b6ff;
}

