/*
Theme Name: onetrxgood Landing
Theme URI: https://example.com/onetrxgood-landing
Author: your-name
Author URI: https://example.com
Description: Single-page landing theme for TRON energy rental and USDT->TRX exchange (reference landing layout). English default, with zh/ru language switcher. Brand onetrxgood.online; set CONFIG.MONITOR_ADDRESS / USE_DEMO_DATA in assets/site.js before going live.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: onetrxgood-landing
Tags: landing-page, one-page, dark, crypto
*/


    :root {
        --primary: #00D2FF;
        --primary-dark: #009ACB;
        --secondary: #7B2CBF;
        --accent: #F72585;
        --dark-bg: #0f172a;
        --card-bg: #1e293b;
        --text-main: #f8fafc;
        --text-muted: #94a3b8;
        --success: #10b981;
        --warning: #f59e0b;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

    html { scroll-behavior: smooth; }

    body {
        min-width: 320px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        background-color: var(--dark-bg);
        color: var(--text-main);
        line-height: 1.6;
        overflow-x: hidden;
    }

    a { text-decoration: none; color: inherit; transition: 0.3s; }
    ul { list-style: none; }
    button { cursor: pointer; border: none; background: none; font-family: inherit; }
    input { font-family: inherit; }

    :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

    /* Toast Notification */
    #toast {
        visibility: hidden;
        min-width: 250px;
        background-color: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(5px);
        color: #fff;
        text-align: center;
        border-radius: 50px;
        padding: 16px 24px;
        position: fixed;
        z-index: 9999;
        left: 50%;
        bottom: 30px;
        transform: translateX(-50%) translateY(20px);
        font-size: 1rem;
        opacity: 0;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        border: 1px solid rgba(255,255,255,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    #toast.show {
        visibility: visible;
        opacity: 1;
        bottom: 50px;
        transform: translateX(-50%) translateY(0);
    }

    /* Header */
    header {
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .container {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .nav-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 70px;
        position: relative;
    }

    .logo {
        font-size: 1.5rem;
        font-weight: 900;
        letter-spacing: -0.5px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
        overflow: hidden;
    }

    .logo-icon svg { display: block; width: 100%; height: 100%; }

    .logo-text {
        background: linear-gradient(to right, #fff, var(--primary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .nav-links {
        display: flex;
        gap: 25px;
    }

    .nav-links a {
        font-weight: 500;
        color: var(--text-muted);
        font-size: 0.95rem;
    }

    .nav-links a:hover, .nav-links a.active {
        color: var(--primary);
    }

    .lang-btn {
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 20px;
        padding: 8px 14px;
        font-size: 0.85rem;
        color: var(--text-main);
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.3s;
        position: relative;
        z-index: 1002;
        min-height: 38px;
    }

    .lang-btn:hover {
        background: rgba(255,255,255,0.1);
        border-color: var(--primary);
    }

    .lang-list {
        position: absolute;
        top: 100%;
        right: 20px;
        background: var(--card-bg);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 12px;
        width: 200px;
        display: none;
        flex-direction: column;
        overflow: hidden;
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
        margin-top: 10px;
        z-index: 1001;
    }

    .lang-list.show { display: flex; }

    .lang-list button {
        padding: 12px 20px;
        color: var(--text-main);
        display: flex;
        align-items: center;
        gap: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 0.9rem;
        width: 100%;
        text-align: left;
        transition: background 0.2s, color 0.2s;
    }

    .lang-list button:last-child { border-bottom: none; }
    .lang-list button:hover { background: rgba(0, 210, 255, 0.1); color: var(--primary); }

    /* Hero Section */
    .hero {
        padding: 120px 0 50px;
        text-align: center;
        background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)),
                    radial-gradient(circle at center, rgba(123, 44, 191, 0.2) 0%, rgba(15, 23, 42, 0) 70%);
    }

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 20px;
        line-height: 1.2;
        background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--secondary) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .hero p {
        font-size: 1.1rem;
        color: var(--text-muted);
        max-width: 700px;
        margin: 0 auto 40px;
        line-height: 1.7;
    }

    .hero-buttons {
        display: flex;
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-hero {
        padding: 14px 30px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 1rem;
        transition: all 0.3s;
    }

    .btn-primary {
        background: linear-gradient(45deg, var(--primary), var(--secondary));
        color: white;
        box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
    }

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(0, 210, 255, 0.4);
    }

    .btn-outline {
        background: transparent;
        border: 2px solid var(--primary);
        color: var(--primary);
    }

    .btn-outline:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-3px);
    }

    /* Main Layout */
    .main-layout {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 30px;
        padding-bottom: 30px;
    }

    .content-area {
        display: flex;
        flex-direction: column;
        gap: 30px;
        min-width: 0;
    }

    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 25px;
        min-width: 0;
    }

    .service-card {
        background: var(--card-bg);
        border-radius: 20px;
        padding: 30px;
        border: 1px solid rgba(255,255,255,0.05);
        transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
        position: relative;
        overflow: hidden;
    }

    .service-card::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        opacity: 0;
        transition: opacity 0.3s;
    }

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        border-color: rgba(0, 210, 255, 0.3);
    }

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

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

    .card-icon {
        width: 45px;
        height: 45px;
        background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(123, 44, 191, 0.1));
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        flex-shrink: 0;
    }

    .card-title { font-size: 1.4rem; font-weight: 700; }

    /* Price Cards */
    .price-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 30px;
        width: 100%;
    }

    .price-card {
        background: linear-gradient(135deg, rgba(0, 210, 255, 0.08), rgba(123, 44, 191, 0.08));
        border: 2px solid rgba(0, 210, 255, 0.3);
        border-radius: 16px;
        padding: 20px 15px;
        text-align: center;
        transition: 0.3s;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .price-card:hover {
        transform: scale(1.03);
        border-color: var(--primary);
        box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
    }

    .price-amount { font-size: 1.6rem; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
    .price-energy { font-size: 0.95rem; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
    .price-validity { font-size: 0.75rem; color: var(--text-muted); background: rgba(0,0,0,0.2); padding: 3px 8px; border-radius: 20px; }

    .info-highlight {
        background: rgba(0, 210, 255, 0.05);
        border: 1px solid rgba(0, 210, 255, 0.2);
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 25px;
        color: var(--success);
        line-height: 1.7;
        font-weight: 500;
        text-align: center;
    }

    .info-highlight.usdt {
        background: rgba(38, 161, 123, 0.05);
        border-color: rgba(38, 161, 123, 0.2);
    }

    .address-box {
        background: rgba(0,0,0,0.3);
        border: 2px dashed rgba(255,255,255,0.2);
        border-radius: 12px;
        padding: 20px;
        text-align: center;
        margin: 20px 0;
        transition: 0.3s;
        cursor: pointer;
    }

    .address-box:hover {
        border-color: var(--primary);
        background: rgba(0, 210, 255, 0.05);
    }

    .address-label { display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 10px; }

    .address-text {
        font-family: monospace;
        font-size: 1.2rem;
        color: var(--primary);
        word-break: break-all;
        padding: 10px;
        background: rgba(0,0,0,0.2);
        border-radius: 8px;
        display: block;
        margin-bottom: 10px;
        font-weight: 700;
        user-select: all;
    }

    .copy-hint {
        font-size: 0.8rem;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .info-box {
        background: rgba(255,255,255,0.03);
        padding: 18px;
        border-radius: 12px;
        margin-top: 25px;
        font-size: 0.9rem;
        color: var(--text-muted);
        border-left: 2px solid var(--warning);
        line-height: 1.7;
    }

    .address-validity { margin: -8px 0 22px; color: var(--text-muted); text-align: center; font-size: 0.9rem; }
    .important-note { color: var(--text-main); border-left-color: var(--warning); }
    .important-note strong { color: var(--warning); }
    .energy-explanation { margin-top: 25px; padding: 22px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; }
    .energy-explanation h3 { color: var(--text-main); font-size: 1rem; margin: 18px 0 6px; }
    .energy-explanation h3:first-child { margin-top: 0; }
    .energy-explanation p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }
    .exchange-details { margin-bottom: 25px; overflow: hidden; border: 1px solid rgba(38,161,123,0.22); border-radius: 12px; background: rgba(38,161,123,0.04); }
    .exchange-detail { display: flex; justify-content: space-between; gap: 18px; padding: 12px 16px; color: var(--text-muted); font-size: 0.92rem; }
    .exchange-detail + .exchange-detail { border-top: 1px solid rgba(38,161,123,0.14); }
    .exchange-detail strong { color: var(--success); text-align: right; }
    .sidebar-title { margin-bottom: 15px; font-size: 1.15rem; }
    .sidebar-description { margin: -5px 0 15px; color: var(--text-muted); font-size: 0.82rem; line-height: 1.6; }
    .page-qr { display: flex; width: min(190px, 100%); aspect-ratio: 1; margin: 0 auto 14px; padding: 8px; background: #fff; border-radius: 10px; align-items: center; justify-content: center; }
    .page-qr svg, .page-qr img { display: block; width: 100%; height: 100%; }
    .page-qr .qr-fallback { color: #333; font-size: 0.8rem; text-align: center; line-height: 1.5; word-break: break-all; padding: 4px; }
    .page-url { display: block; color: var(--primary); text-align: center; font-size: 0.82rem; line-height: 1.5; word-break: break-all; }
    .qr-reminder { margin-top: 10px; color: var(--text-muted); text-align: center; font-size: 0.82rem; line-height: 1.6; }
    .support-email { color: var(--primary); font-weight: 600; word-break: break-all; }
    .transaction-list { display: grid; gap: 8px; }
    .transaction-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px; background: rgba(255,255,255,0.03); border-radius: 8px; font-size: 0.8rem; }
    .transaction-address { color: var(--text-muted); font-family: monospace; }
    .transaction-amount { color: var(--success); font-weight: 700; white-space: nowrap; }
    .transaction-time { display: block; color: var(--text-muted); font-size: 0.72rem; text-align: right; }
    .transaction-state { padding: 15px 0; color: var(--text-muted); text-align: center; font-size: 0.85rem; }
    .transaction-meta { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; color: var(--text-muted); font-size: 0.72rem; }

    /* Features Section */
    .features { padding: 80px 0; background: rgba(0,0,0,0.2); }

    .section-title {
        text-align: center;
        font-size: 2.2rem;
        margin-bottom: 15px;
        background: linear-gradient(to right, var(--text-main), var(--primary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .section-subtitle {
        text-align: center;
        color: var(--text-muted);
        font-size: 1.1rem;
        margin-bottom: 50px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .feature-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .feature-item {
        background: var(--card-bg);
        padding: 30px 25px;
        border-radius: 20px;
        text-align: center;
        border: 1px solid rgba(255,255,255,0.05);
        transition: 0.3s;
    }

    .feature-item:hover {
        transform: translateY(-8px);
        border-color: rgba(0, 210, 255, 0.3);
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    }

    .feature-icon-lg { font-size: 3rem; margin-bottom: 20px; display: block; }
    .feature-item h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--text-main); }
    .feature-item p { color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; }

    /* FAQ Section */
    .faq { padding: 80px 0; background: rgba(0,0,0,0.2); }

    .faq-item {
        background: var(--card-bg);
        margin-bottom: 15px;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.05);
        transition: 0.3s;
    }

    .faq-item:hover { border-color: rgba(0, 210, 255, 0.2); }

    .faq-question {
        padding: 20px 30px;
        cursor: pointer;
        font-weight: 600;
        font-size: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        color: var(--text-main);
        transition: 0.3s;
        min-height: 44px;
    }

    .faq-question:hover { background: rgba(255,255,255,0.02); }

    .faq-question::after {
        content: '+';
        font-size: 1.4rem;
        color: var(--primary);
        transition: 0.3s;
        flex-shrink: 0;
    }

    .faq-item.active .faq-question::after { content: '−'; }
    .faq-item.active .faq-question { color: var(--primary); }

    .faq-answer {
        padding: 0 20px 20px;
        color: var(--text-muted);
        display: none;
        border-top: 1px solid rgba(255,255,255,0.05);
        padding-top: 15px;
        line-height: 1.7;
        font-size: 0.95rem;
    }

    .faq-item.active .faq-answer { display: block; }

    /* Footer */
    footer {
        background: #0b1120;
        padding: 60px 0 25px;
        border-top: 1px solid rgba(255,255,255,0.05);
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 40px;
        margin-bottom: 50px;
    }

    .footer-col h4 {
        color: var(--text-main);
        margin-bottom: 20px;
        font-size: 1.1rem;
        position: relative;
        padding-bottom: 8px;
        display: inline-block;
    }

    .footer-col h4::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0;
        width: 30px; height: 2px;
        background: var(--primary);
    }

    .footer-col ul li { margin-bottom: 10px; }
    .footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; }
    .footer-col ul li a:hover { color: var(--primary); }

    .footer-about p { color: var(--text-muted); line-height: 1.7; margin-bottom: 15px; font-size: 0.9rem; }

    .contact-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 5px; }
    .contact-value { font-size: 1rem; color: var(--primary); font-weight: 600; }
    .contact-value:hover { color: var(--text-main); text-decoration: underline; }

    .copyright {
        text-align: center;
        color: var(--text-muted);
        padding-top: 25px;
        border-top: 1px solid rgba(255,255,255,0.05);
        font-size: 0.85rem;
    }

    /* Responsive */
    @media (max-width: 1024px) {
        .feature-grid { grid-template-columns: repeat(2, 1fr); }
        .main-layout { grid-template-columns: 1fr; }
        .sidebar { order: 2; }
    }

    @media (max-width: 768px) {
        .hero h1 { font-size: 2rem; }
        .nav-links { display: none; }
        .section-title { font-size: 1.8rem; }
        .hero-buttons { flex-direction: column; width: 100%; padding: 0 3rem; }
        .btn-hero { width: 100%; }
        .price-grid { grid-template-columns: 1fr; }
        .container { padding: 0 15px; }
        .service-card { padding: 1rem; }
        .feature-grid, .footer-grid { grid-template-columns: 1fr; }
        .hero p { font-size: 0.92rem; }
        .footer-col h4::after { left: 50%; transform: translateX(-50%); }
        .footer-about p { max-width: 100%; margin-left: auto; margin-right: auto; }
        .address-text { font-size: 1.1rem; }
        .feature-item, .faq-question { padding: 1rem; }
        .lang-list { right: 1rem; }
    }

    @media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
        * { transition: none !important; animation: none !important; }
    }
    