/* ============================
   DOVATRADE - Main Stylesheet
   Dark trading platform theme
   ============================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0b0e11;
    --bg-secondary: #131722;
    --bg-card: #1a1e26;
    --bg-input: #2b3139;
    --text-primary: #ffffff;
    --text-secondary: #848e9c;
    --text-muted: #5e6673;
    --accent-orange: #019573;
    --accent-orange-hover: #017a5d;
    --accent-green: #00c853;
    --accent-red: #ef5350;
    --accent-gold: #f3ba2f;
    --border-color: #2b3139;
    --font-family: 'Sarabun', sans-serif;
    --header-height: 64px;
    --sidebar-width: 80px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-orange-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================
   Buttons
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
}
.btn-primary:hover {
    background: var(--accent-orange-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(232, 84, 12, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
}
.btn-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.btn-cta {
    background: var(--accent-orange);
    color: white;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 1px;
}
.btn-cta:hover {
    background: var(--accent-orange-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(232, 84, 12, 0.5);
}

.btn-auth-submit {
    width: 100%;
    padding: 14px;
    background: var(--accent-orange);
    color: white;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}
.btn-auth-submit:hover {
    background: var(--accent-orange-hover);
    box-shadow: 0 4px 20px rgba(232, 84, 12, 0.5);
}

/* ============================
   Header
   ============================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(11, 14, 17, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(43, 49, 57, 0.5);
    transition: background 0.3s;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-orange);
    letter-spacing: 2px;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* ============================
   Pocimex Landing Page Styles
   ============================ */
.pocimex-landing {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.text-green { color: var(--accent-green) !important; }
.font-bold { font-weight: 700; }
.text-left { text-align: left !important; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 32px; }

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

.p-section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.p-section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.p-btn {
    background-color: #32373c;
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
    display: inline-block;
    border: none;
}

.p-btn:hover {
    background-color: #23282d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Hero Section */
.p-hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
}
.p-subtitle {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}
.p-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
}
.p-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}
.p-hero-img {
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.p-hero-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Stats Section */
.p-stats {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}
.p-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.p-stat-item {
    padding: 20px;
}
.p-stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 600;
}
.p-stat-val {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 10px;
}

/* Indicators Section */
.p-indicators {
    padding: 80px 0;
}
.p-indic-img {
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Sustainable Section */
.p-sustainable {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}
.p-flex-row {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}
.p-sus-text {
    flex: 1;
}
.p-sm-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}
.p-sus-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.p-feat-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.p-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.p-icon-wrap.green {
    color: var(--accent-green);
    background: rgba(0,200,83,0.1);
}
.p-feat-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}
.p-feat-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Coins Banner */
.p-coins {
    padding: 40px 0;
    background: #0b0e11;
}
.p-coins-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.p-coins-flex img {
    height: 40px;
    opacity: 0.8;
}

/* Fast Start */
.p-faststart {
    padding: 80px 0;
}
.p-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}
.p-step-box {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.p-step-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}
.p-step-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}
.p-step-box p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mobile Section */
.p-mobile {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}
.p-mobile-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}
.p-mobile-img {
    flex: 1;
    text-align: center;
}
.p-mobile-img img {
    max-width: 400px;
    width: 100%;
}
.p-mobile-text {
    flex: 1.2;
}

/* What is Pocimex */
.p-whatis {
    padding: 80px 0;
}

/* Why Choose Pocimex */
.p-whychoose {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}
.p-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

/* FAQ Section */
.p-faq {
    padding: 80px 0;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-family);
    transition: color 0.3s;
}
.faq-question:hover {
    color: var(--accent-green);
}
.faq-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 20px 20px;
}
.faq-answer p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .p-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .p-flex-row {
        flex-direction: column;
    }
    .p-mobile-flex {
        flex-direction: column;
    }
    .p-why-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .p-title {
        font-size: 32px;
    }
    .p-section-title {
        font-size: 28px;
    }
    .p-steps-grid {
        grid-template-columns: 1fr;
    }
    .p-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================
   Footer
   ============================ */
.main-footer {
    background: var(--bg-secondary);
    padding: 60px 0 0;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-email {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-email a {
    color: var(--accent-orange);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent-orange);
}

.lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-input);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}

.lang-flag {
    font-size: 18px;
}

.footer-bottom {
    padding: 30px 0;
}

.risk-warning {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(43, 49, 57, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

/* ============================
   Auth Panel
   ============================ */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.auth-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-panel {
    position: absolute;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100%;
    background: #ffffff;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 30px 35px;
}

.auth-overlay.active .auth-panel {
    right: 0;
}

.auth-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.auth-panel-header .logo-text {
    color: var(--accent-orange);
}

.auth-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 4px;
    transition: transform 0.3s;
}

.auth-close-btn:hover {
    transform: rotate(90deg);
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 24px;
}

.auth-form-container .form-group {
    margin-bottom: 18px;
}

.auth-form-container label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.auth-form-container input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-family);
    background: #fff;
    color: #333;
    transition: border-color 0.3s;
}

.auth-form-container input:focus {
    outline: none;
    border-color: var(--accent-orange);
}

.auth-form-container input::placeholder {
    color: #aaa;
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 12px;
    color: var(--accent-orange);
    margin-top: 4px;
}

.forgot-password-link {
    display: block;
    text-align: right;
    font-size: 13px;
    color: var(--accent-orange);
    margin-top: 6px;
    font-weight: 600;
}

.auth-error {
    color: var(--accent-red);
    font-size: 13px;
    margin-bottom: 8px;
    min-height: 20px;
}

.auth-switch {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 16px;
}

.auth-switch a {
    color: var(--accent-orange);
    font-weight: 600;
}

.resend-link {
    color: var(--accent-orange) !important;
}

/* ============================
   ETH Coin SVG
   ============================ */
/* Placeholder for crypto icons */


/* ============================
   Responsive Design
   ============================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual {
        min-height: 400px;
    }
    
    .trading-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .features-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    
    .step-connector {
        transform: rotate(90deg);
        padding-top: 0;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }
    
    .header-nav {
        display: none;
    }
    
    .header-nav.active {
        display: flex;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-container {
        padding: 40px 20px;
    }
    
    .phone-frame {
        width: 240px;
    }
    
    .auth-panel {
        width: 100%;
        right: -100%;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    .faq-section h2 {
        font-size: 24px;
    }
    
    .partners-container {
        gap: 30px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .btn-cta {
        padding: 12px 24px;
        font-size: 13px;
    }
}
