html,
body {
    height: 100%;
    margin: 0;
}

/* Loading pulse used while async data is being fetched */
@keyframes loading-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.loading-inline {
    animation: loading-pulse 1.2s ease-in-out infinite;
    color: #888;
    font-style: italic;
}

body {
    font-family: Inter, system-ui, sans-serif;
    background: #0e0f13;
    color: #e6e6eb;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
}

header .center-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

header .right-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.cta {
    padding: 10px 16px;
    background: #1e7f43;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    display: inline-block;
}

.hero {
    max-width: 720px;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero p {
    font-size: 18px;
    color: #b0b3c2;
    margin-bottom: 32px;
}

.hero .cta {
    font-size: 16px;
}

.hero .cta+.cta {
    margin-left: 16px;
    opacity: 0.8;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 96px;
}

.feature {
    background: #151824;
    padding: 24px;
    border-radius: 10px;
}

.feature h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
}

.feature p {
    margin: 0;
    font-size: 14px;
    color: #b0b3c2;
    line-height: 1.5;
}

footer {
    margin-top: auto;
    padding-top: 48px;
    padding-bottom: 24px;
    border-top: 1px solid #222533;
    font-size: 13px;
    color: #8f93a6;
}

.tokens {
    margin-top: 96px;
}

.tokens h2 {
    font-size: 24px;
    margin-bottom: 32px;
    color: #fff;
}

.token-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.token-card {
    background: #151824;
    padding: 10px 24px;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
}

.token-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.token-info h3 {
    margin: 0;
    font-size: 18px;
}

.token-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.token-info h3 a:hover {
    color: #4caf50;
}

.token-info .token-card-subtitle {
    display: block;
    font-size: 13px;
    color: #8f93a6;
    margin-top: 4px;
}

.token-icon {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.token-info p {
    color: #b0b3c2;
    font-size: 14px;
    margin-bottom: 24px;
}

.token-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.token-actions .cta {
    text-align: center;
    font-size: 13px;
    padding: 6px 12px;
}

.secondary-cta {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Exchange Interface Styles */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.pair {
    font-size: 18px;
    font-weight: 600;
}

.balances {
    font-size: 14px;
    color: #b0b3c2;
}

.exchange-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 16px;
}

.exchange-grid .panel:last-child {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .exchange-grid {
        grid-template-columns: 1fr;
    }

    .exchange-grid .panel:last-child {
        grid-column: auto;
    }
}

.panel {
    background: #151824;
    border-radius: 8px;
    padding: 16px;
}

.panel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.panel-table th,
.panel-table td {
    padding: 6px 4px;
    text-align: right;
}

.panel-table th {
    color: #8f93a6;
    font-weight: 500;
}

.panel-table td {
    color: #e6e6eb;
}

.buy {
    color: #4caf50;
}

.sell {
    color: #f44336;
}

.form-group input,
.form-group select,
.form-group button {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px;
    background: #0e0f13;
    color: #e6e6eb;
    border: 1px solid #2a2d3a;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group button {
    cursor: pointer;
    font-weight: 600;
    border: none;
}

.buy-btn {
    background: #1e7f43 !important;
}

.sell-btn {
    background: #8c2c2c !important;
}

/* Place-order panel spans middle column in 3-col grid */
.place-order-panel {
    overflow: visible;
}

.section-title {
    margin-bottom: 12px;
    font-size: 14px;
    color: #b0b3c2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

    .token-card {
        min-width: 0;
    }
}

/* Token Detail Page Styles */
.token-detail {
    animation: fadeIn 0.5s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Account Page Styles */
.account-container {
    animation: fadeIn 0.5s ease-out;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1a1d2e 0%, #0e0f13 100%);
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 24px;
}

.user-avatar {
    width: 64px;
    height: 64px;
    background: #1e7f43;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.user-meta h1 {
    margin: 0;
    font-size: 24px;
    font-family: 'Outfit', sans-serif;
}

.user-meta .email {
    margin: 4px 0 8px;
    color: #8f93a6;
    font-size: 14px;
}

.badge {
    background: rgba(30, 127, 67, 0.1);
    color: #4caf50;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
}

.account-actions {
    display: flex;
    gap: 12px;
}

.account-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

@media (max-width: 850px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
}

.token-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.token-icon-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.placeholder-icon {
    width: 24px;
    height: 24px;
    background: #2a2d3a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.value-cell {
    font-weight: 600;
    color: #4caf50;
}

.settings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.settings-list li {
    padding: 12px 0;
    border-bottom: 1px solid #222533;
    font-size: 13px;
    color: #b0b3c2;
    display: flex;
    justify-content: space-between;
}

.status-off {
    color: #f44336;
}

.status-done {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.progress-bar {
    height: 8px;
    background: #0e0f13;
    border-radius: 4px;
    margin-top: 12px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #1e7f43;
    border-radius: 4px;
}

.token-header {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 48px;
    background: linear-gradient(135deg, #1a1d2e 0%, #0e0f13 100%);
    padding: 22px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.token-logo-large {
    width: 600px;
    /* actually let's keep it reasonable */
    max-width: 128px;
    height: 128px;
    border-radius: 20px;
  /*  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);*/
}

.token-title h1 {
    font-size: 36px;
    margin: 0 0 8px 0;
}

.token-title .subtitle {
    font-size: 18px;
    color: #b0b3c2;
    margin: 0;
}

.token-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

@media (max-width: 850px) {
    .token-content-grid {
        grid-template-columns: 1fr;
    }
}

.token-info-main section {
    background: #151824;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 32px;
}

.token-info-main h2 {
    font-size: 22px;
    margin: 0 0 20px 0;
    color: #fff;
}

.token-info-main p {
    line-height: 1.7;
    color: #b0b3c2;
    margin-bottom: 20px;
}

.external-links ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.external-links li a {
    color: #4caf50;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.external-links li a:hover {
    color: #81c784;
}

.message-form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 120px;
    background: #0e0f13;
    border: 1px solid #2a2d3a;
    border-radius: 8px;
    padding: 16px;
    color: #fff;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 16px;
    transition: border-color 0.2s, background 0.2s;
}

.message-form textarea:focus {
    outline: none;
    border-color: #4caf50;
    background: #090a0d;
}

.token-sidebar section {
    background: #151824;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.token-sidebar h2 {
    font-size: 18px;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8f93a6;
}

.holders-table-container {
    margin-bottom: 0;
}

.holders-list .panel-table td:last-child {
    font-weight: 600;
    color: #4caf50;
}

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

.sidebar-actions .cta {
    box-sizing: border-box;
}

/* FAQ Page Styles */
.faq-content {
    animation: fadeIn 0.5s ease-out;
   /* max-width: 800px; */
}

.faq-content h1 {
    font-size: 36px;
    margin-bottom: 40px;
}

.faq-item {
    background: #151824;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    color: #fff;
}

.faq-item p,
.faq-item ul {
    margin: 0;
    color: #b0b3c2;
    line-height: 1.6;
}

.faq-item ul {
    padding-left: 20px;
}

.faq-item li {
    margin-bottom: 12px;
}

.faq-item li:last-child {
    margin-bottom: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-text {
    flex: 1;
    min-width: 300px;
}

.footer-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

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

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

/* Login Page Styles */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    min-height: 50vh;
}

.login-container {
    background: #151824;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.login-container p {
    color: #8f93a6;
    margin-bottom: 32px;
    font-size: 14px;
}

.login-message {
    background: rgba(30, 127, 67, 0.1);
    color: #4caf50;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.form-group-login {
    text-align: left;
    margin-bottom: 20px;
}

.form-group-login label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #b0b3c2;
    font-weight: 600;
}

.form-group-login input {
    width: 100%;
    padding: 12px;
    background: #0e0f13;
    border: 1px solid #2a2d3a;
    border-radius: 8px;
    color: #fff;
    box-sizing: border-box;
}

#loginSubmitButton {
    width: 100%;
    padding: 12px;
    background: #1e7f43;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
}

#loginSubmitButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #2a2d3a;
}

#loginSubmitButton:not(:disabled):hover {
    background: #25a054;
}

/* Token Detail Layout Styles */
.meta.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 24px 0 32px 0;
}

.meta.grid .item {
    background: #0e0f13;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #2a2d3a;
}

.meta.grid .label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8f93a6;
    margin-bottom: 8px;
}

.meta.grid .value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    word-break: break-word;
}

/* Warning / Risks Style */
.warning {
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #f44336;
    padding: 24px;
    border-radius: 0 8px 8px 0;
    margin-top: 16px;
}

.warning p {
    color: #ffcdd2;
    /* Lighter red text */
    margin-bottom: 12px;
    font-size: 14px;
}

.warning p:last-child {
    margin: 0;
}

/* Message Manager / Box Styles */
.message-manager {
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1a1d2e 0%, #151824 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.message-manager::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    /* background: linear-gradient(90deg, #1e7f43, #4caf50); */
}

.message-manager h2 {
    color: #fff !important;
    font-size: 16px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px !important;
}

/* Description Section Improvements */
.description h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #e6e6eb;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
}

.description h2:first-of-type {
    margin-top: 0;
}

.description ul {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.description ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #b0b3c2;
    line-height: 1.6;
}

.description ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

.token-summary {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    margin-bottom: 18px;
}

.token-summary .summary-grid {
    display: flex;
    gap: 12px;
    align-items: center;
}

.token-summary .summary-item {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    /* background: linear-gradient(180deg, #fafbff, #ffffff); */
    border: 1px solid #2a2d3a;
}

.token-summary .label {
    font-size: 12px;
    color: #6b7280;
}

.token-summary .value {
    font-size: 18px;
    font-weight: 700;
    color: #8f93a6;
    margin-top: 6px;
}

@media (max-width: 560px) {
    .token-summary .summary-grid {
        flex-direction: column;
    }
}

/* Pricing Page Styles */
.pricing-header {
    text-align: center;
    margin-bottom: 64px;
    animation: fadeIn 0.6s ease-out;
}

.pricing-header h1 {
    font-size: 48px;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, #8f93a6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-header p {
    font-size: 20px;
    color: #8f93a6;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 64px;
    animation: fadeIn 0.8s ease-out;
}

.pricing-card {
    background: #151824;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(30, 127, 67, 0.4);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #1e7f43, #4caf50);
}

.pricing-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(30, 127, 67, 0.1);
    color: #4caf50;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-tier {
    font-size: 14px;
    color: #8f93a6;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.pricing-price {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 32px;
    font-family: 'Outfit', sans-serif;
}

.pricing-price span {
    font-size: 18px;
    color: #8f93a6;
    font-weight: 400;
}

.pricing-description {
    color: #b0b3c2;
    margin-bottom: 32px;
    line-height: 1.6;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #e6e6eb;
}

.pricing-features li svg {
    color: #4caf50;
    flex-shrink: 0;
}

.pricing-cta {
    width: 100%;
    padding: 18px;
    text-align: center;
    font-size: 18px;
}

.fee-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 64px;
}

.fee-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.fee-card h3 {
    font-size: 14px;
    color: #8f93a6;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.fee-card .value {
    font-size: 32px;
    font-weight: 700;
    color: #4caf50;
}

@media (max-width: 768px) {
    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }

    .fee-highlight {
        grid-template-columns: 1fr;
    }
}