:root {
    --bg-color: #181A20;
    --header-bg: #181A20;
    --text-primary: #EAECEF; /* Headers, Primary Text */
    --text-secondary: #707A8A; /* Links - Darker to match official */
    --text-tertiary: #474D57; /* Footer bottom text - even darker */
    --text-hover: #FCD535;
    --primary-yellow: #FCD535;
    --primary-yellow-hover: #F0B90B;
    --input-bg: #1E2329;
    --border-color: #2B3139;
    --card-bg: #1E2329;
    --footer-bg: #181A20;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "BinancePlex", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background-color: var(--header-bg);
    height: 64px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.header-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.binance-logo-svg {
    width: 24px;
    height: 24px;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Hide mobile elements on desktop */
.mobile-header-right,
.mobile-menu-overlay {
    display: none;
}

.nav-links {
    display: flex;
    gap: 24px;
    margin-left: 32px;
    flex: 1;
    align-items: center;
}

.nav-item {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.nav-item:hover {
    color: var(--primary-yellow);
}

.nav-item-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    position: relative;
    height: 64px; /* Match header height for hover area */
}

.nav-item-dropdown:hover {
    color: var(--primary-yellow);
}

.nav-item-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

.nav-arrow {
    width: 12px;
    height: 12px;
    margin-top: 2px;
    transition: transform 0.2s;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1E2329;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    padding: 24px;
    z-index: 1000;
    min-width: 360px;
    border-top: 1px solid #2B3139;
}

.more-menu {
    width: 700px;
    display: none; /* Hidden by default */
    flex-direction: row;
    gap: 32px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.trade-menu {
    width: 700px;
    display: none;
    flex-direction: row;
    gap: 32px;
    left: -100px;
    transform: none;
}

.futures-menu, .earn-menu, .square-menu {
    width: 360px;
    display: none;
    flex-direction: column;
    left: 50%;
    transform: translateX(-50%);
}

.nav-item-dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-column-header {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 12px;
}

.dropdown-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
    line-height: 1;
}

.tag-yellow {
    background-color: #FCD535;
    color: #181A20;
}

.tag-gray {
    background-color: #2B3139;
    color: #EAECEF;
}

.dropdown-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #2B3139;
}

.dropdown-icon {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.dropdown-item:hover .dropdown-icon {
    color: var(--primary-yellow);
}

.dropdown-content {
    flex: 1;
}

.dropdown-title {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.dropdown-item:hover .dropdown-title {
    color: var(--primary-yellow);
}

.dropdown-desc {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions a {
    text-decoration: none;
    font-size: 14px;
}

.action-icon {
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.action-icon:hover {
    color: var(--primary-yellow);
}

.search-icon-header {
    width: 20px;
    height: 20px;
}

.download-icon, .lang-icon, .theme-icon {
    width: 20px;
    height: 20px;
}

.login-btn {
    color: var(--text-primary);
    background-color: #2B3139;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.login-btn:hover {
    color: var(--text-primary);
    background-color: #3A4049;
}

.register-btn {
    background-color: var(--primary-yellow);
    color: #181A20;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
}

.register-btn:hover {
    background-color: var(--primary-yellow-hover);
}

.download-btn, .lang-btn {
    color: var(--text-primary);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 40px;
}

.verification-container {
    width: 100%;
    max-width: 768px;
    text-align: center;
    padding: 0 24px;
}

.page-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.verify-header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.verify-logo {
    width: 32px;
    height: 32px;
}

.highlight-yellow {
    color: var(--primary-yellow);
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.search-section {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for disclaimer */
    gap: 12px;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 160px;
    height: 48px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0 16px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
}

.search-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #2B3139;
    border-radius: 8px;
    margin-top: 4px;
    padding: 8px 0;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    max-height: 300px;
    overflow-y: auto;
}

.search-dropdown-menu.show {
    display: block;
}

.search-dropdown-overlay {
    display: none;
}

.search-dropdown-item {
    padding: 10px 16px;
    color: #EAECEF;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.search-dropdown-item:hover {
    background-color: #353A40;
}

.search-dropdown-item .check-icon {
    display: none;
}

.search-dropdown-item.selected .check-icon {
    display: block;
}

@media (hover: hover) {
    .search-dropdown:hover {
        border-color: var(--primary-yellow);
    }
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    height: 48px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0 16px;
    transition: border-color 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--primary-yellow);
}

.search-icon-left {
    color: #5E6673;
    margin-right: 12px;
}

#searchInput {
    flex: 1;
    height: 100%;
    background-color: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    padding: 0;
}

#searchInput:focus {
    outline: none;
}

.search-btn {
    height: 48px;
    padding: 0 32px;
    background-color: var(--primary-yellow);
    border: none;
    border-radius: 12px;
    color: #181A20;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.search-btn:hover {
    background-color: var(--primary-yellow-hover);
}

/* Results */
.result-container {
    margin-top: 24px;
    padding: 24px;
    background-color: var(--card-bg);
    border-radius: 8px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.result-success {
    color: #0ECB81;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-fail {
    color: #F6465D;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Disclaimer Box */
.disclaimer-box {
    width: 100%; /* Force new line in flex wrap container */
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #1E2329;
    padding: 16px;
    border-radius: 4px;
    text-align: left;
    margin-bottom: 0;
    font-size: 12px;
    color: #EAECEF;
    line-height: 1.5;
}

.info-icon {
    flex-shrink: 0;
    color: #EAECEF;
    margin-top: 2px;
}

/* Safety Section Telegram */
.safety-section-telegram {
    display: none;
    align-items: center;
    gap: 48px;
    margin-top: 40px;
    margin-bottom: 80px;
    text-align: left;
}

.safety-image {
    flex: 0 0 240px;
}

.safety-image img {
    width: 100%;
    height: auto;
    display: block;
}

.safety-content {
    flex: 1;
}

.safety-section-bottom {
    text-align: center;
    margin-top: 80px;
}

.safety-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.safety-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    padding: 24px 16px;
    border-radius: 16px;
    transition: background-color 0.2s ease;
}

.safety-item:hover {
    background-color: #1E2329;
}

.safety-icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.safety-icon-wrapper svg {
    width: 40px;
    height: 40px;
}

.safety-item h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.arrow-icon {
    color: var(--text-secondary);
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.2s;
}

.safety-item:hover .arrow-icon {
    opacity: 1;
}

.safety-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.highlight-green {
    color: #0ECB81;
    font-weight: 500;
}

.highlight-red {
    color: #F6465D;
    font-weight: 500;
}

.safety-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.safety-icon-wrapper {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.safety-icon-wrapper svg {
    width: 100%;
    height: 100%;
}

.safety-item h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.arrow-icon {
    font-size: 20px;
    color: var(--text-secondary);
    transition: transform 0.2s, color 0.2s;
}

.safety-item:hover .arrow-icon {
    color: var(--primary-yellow);
    transform: translateY(4px);
}

/* Results */
.result-container {
    margin-top: 24px;
    padding: 24px;
    background-color: var(--card-bg);
    border-radius: 8px;
    text-align: left;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    padding: 40px 24px 48px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 64px; /* Increased gap to separate left and right sections more */
}

/* Footer Left (Community) */
.footer-left {
    width: 160px; /* Slightly narrower */
    flex-shrink: 0;
}

.footer-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 12px;
    margin-bottom: 48px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #eaecef; /* Updated to match request */
    opacity: 1;
    transition: opacity 0.2s, color 0.2s;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-icon:hover {
    color: var(--text-primary); /* White on hover */
}

.footer-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #eaecef; /* Updated to match request */
    font-size: 14px;
    cursor: pointer;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

.setting-item:hover {
    color: var(--text-primary);
}

.setting-item svg {
    fill: currentColor;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.toggle-switch {
    width: 40px;
    height: 22px;
    background-color: #474D57;
    border-radius: 11px;
    position: relative;
    cursor: pointer;
}

.toggle-knob {
    width: 18px;
    height: 18px;
    background-color: #1E2329;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer Right (Links) */
.footer-right {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-group {
    margin-bottom: 32px;
}

.footer-col h4, .footer-group h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px; /* Increased to match official */
    color: var(--text-primary);
}

.footer-col a, .footer-group a {
    display: block;
    color: #eaecef;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px; /* Reduced spacing */
    line-height: 1.5;
    transition: color 0.2s;
}

.footer-col a:hover, .footer-group a:hover {
    color: var(--text-primary);
}

/* Footer Bottom */
.footer-bottom-bar {
    max-width: 1200px;
    margin: 24px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: #848b96;
    font-size: 14px;
}

.footer-bottom-container a {
    color: #848b96;
    text-decoration: none;
}

.footer-bottom-container a:hover {
    color: var(--text-primary);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
    z-index: 1000;
}

.chat-widget:hover {
    transform: scale(1.05);
}

.chat-widget svg {
    width: 28px;
    height: 28px;
    fill: #181A20;
}

@media (max-width: 1024px) {
    .footer-container {
        flex-direction: column !important;
        gap: 0; /* Removed gap completely */
    }

    .footer-right {
        order: 1 !important;
        margin-bottom: 12px; /* Reduced margin */
    }
    
    .footer-left {
        order: 2 !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .social-icons {
        display: flex !important;
        flex-wrap: wrap;
        gap: 24px;
        margin-bottom: 24px;
    }

    .footer-settings {
        flex-direction: row !important;
        flex-wrap: wrap;
        align-items: center;
        gap: 24px;
    }

    .theme-toggle {
        width: auto !important;
        justify-content: flex-start;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .info-section {
        grid-template-columns: 1fr;
    }
    
    .footer-right {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-left {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-settings {
        align-items: flex-start;
    }
}

/* Verification Result Styles */
.result-container {
    margin-top: 24px;
    padding: 24px;
    border-radius: 8px;
    background-color: #1E2329;
    border: 1px solid transparent;
    text-align: left;
}

.verification-result {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.verification-result.success .result-icon {
    color: #0ECB81;
}

.verification-result.fail .result-icon {
    color: #F6465D;
}

.result-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #EAECEF;
}

.result-query {
    font-size: 16px;
    color: #EAECEF;
    margin: 0 0 8px 0;
    font-weight: 500;
    word-break: break-all; /* Force break specifically for long strings like crypto addresses */
    overflow-wrap: break-word; /* Standard property for wrapping */
}

.result-desc {
    font-size: 14px;
    color: #848E9C;
    margin: 0;
    line-height: 1.5;
}

.official-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 8px;
    background-color: rgba(14, 203, 129, 0.1);
    color: #0ECB81;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: #1E2329;
    border-radius: 12px;
    padding: 32px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.modal-icon-wrapper {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.modal-icon {
    width: 64px;
    height: 64px;
}

.modal-query {
    color: #FCD535;
    font-size: 14px;
    margin-bottom: 16px;
    word-break: break-all;
    overflow-wrap: break-word;
}

.modal-message {
    color: #EAECEF;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.modal-btn {
    background-color: #FCD535;
    color: #181A20;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.modal-btn:hover {
    background-color: #F0B90B;
}
/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #181A20;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

.loading-icon {
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}

.enter-text {
    color: #EAECEF;
    font-size: 16px;
    margin-top: 16px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
