/* buyer.css - Global Styles for MarketDeals Buyer Portal */

@font-face {
    font-family: 'Candara';
    src: url('/fonts/Candara Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Candara';
    src: url('/fonts/Candara bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Candara';
    src: url('/fonts/Candara Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

:root {
    --bg-color: #03060c;
    --card-bg: rgba(14, 18, 30, 0.85);
    --border-color: rgba(59, 130, 246, 0.3);
    --primary-blue: #3b82f6;
    --primary-hover: #2563eb;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Candara', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #000000;
    background-image: 
        radial-gradient(circle at 0% 100%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow-x: hidden;
}

/* Bottom Left Logo */
body::before {
    content: '';
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 350px;
    height: 350px;
    background-image: url('/images/custom_logo.jpg');
    background-size: contain;
    background-position: bottom left;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
    mix-blend-mode: screen;
    pointer-events: none;
}

/* Top Right Logo */
body::after {
    content: '';
    position: fixed;
    top: 15%;
    right: 120px;
    width: 250px;
    height: 250px;
    background-image: url('/images/custom_logo.jpg');
    background-size: contain;
    background-position: top right;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
    mix-blend-mode: screen;
    pointer-events: none;
}

/* ── Top Bar ── */
.top-bar {
    width: 100%;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand img {
    height: 85px;
    object-fit: contain;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.lang-toggle a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 6px 16px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s;
}

.lang-toggle a.active {
    background: #0f172a;
    color: var(--primary-blue);
    box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.2);
}

/* ── Typography ── */
.page-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    color: #ffffff;
    z-index: 2;
    position: relative;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
    max-width: 400px;
    z-index: 2;
    position: relative;
}

/* ── Form & Box Styling ── */
.redeem-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 550px;
    z-index: 2;
    position: relative;
    padding: 10px 20px;
    margin: auto;
}
.action-box {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 -10px 30px rgba(59, 130, 246, 0.15), 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
}

.input-group {
    position: relative;
    margin-bottom: 10px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-size: 18px;
}

.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 15px 14px 45px;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 11px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #475569;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* ── Badges ── */
.badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 12px;
    color: #64748b;
    z-index: 2;
    position: relative;
}

.badges span i {
    margin-right: 5px;
}

/* ── Floating Instruction Button ── */
.btn-instruction {
    position: static;
    margin-top: 15px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: white;
    padding: 18px 55px;
    border-radius: 45px; /* Pill shape */
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.btn-instruction:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255,255,255,0.2);
}

/* ── Modal Accordion ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    /* backdrop-filter removed for better performance */
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 10;
}

.modal-header h2 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(239, 68, 68, 0.8);
}

.accordion-item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.accordion-header {
    padding: 18px 20px;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: rgba(30, 41, 59, 0.6);
}

.accordion-header i {
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    background: rgba(0,0,0,0.2);
}

.accordion-item.active .accordion-body {
    max-height: 5000px;
    padding: 20px;
}

.accordion-body p, .accordion-body ul {
    margin-bottom: 10px;
    line-height: 1.6;
}

.accordion-body ul {
    padding-left: 20px;
}

/* FAQ Image container inside accordion */
.faq-image-container {
    background: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}
.faq-image-container img {
    max-width: 100%;
    height: auto;
}






/* ── Mobile Responsiveness ── */
@media (max-width: 768px) {

    /* Hide background watermark logos on mobile */
    body::before, body::after {
        display: none !important;
    }

    /* Stack the top bar */
    .top-bar {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        flex-direction: column;
        justify-content: flex-start;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    /* Center the logo */
    .brand {
        align-items: center;
    }

    /* Move EN/RU toggle directly under the logo */
    .lang-toggle {
        position: static;
        transform: none;
        margin-top: 15px;
    }
}





/* ── Custom Scrollbars ── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.8);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.5) rgba(15, 23, 42, 0.5);
}










/* ── Order Confirmed Overrides (Small Layout) ── */
.order-container {
    margin: -30px auto 40px auto !important; /* Pull it up significantly closer to the RU/EN toggle */
}
.order-container .page-title {
    font-size: 26px;
}
.order-container .page-subtitle {
    font-size: 14px;
    margin-bottom: 10px;
}
.order-container .action-box {
    padding: 20px;
}
.order-container .btn-instruction {
    padding: 12px 30px;
    font-size: 16px;
    margin-top: 15px;
}







@media (max-width: 768px) {
    .order-container {
        margin-top: 10px !important;
    }
}






/* ── High-Resolution / 2K+ Monitor Scaling ── */
@media (min-width: 2000px) {
    body {
        font-size: 18px;
    }
    .page-title {
        font-size: 40px !important;
    }
    .page-subtitle {
        font-size: 20px !important;
    }
    .action-box {
        max-width: 650px !important;
        padding: 35px !important;
    }
    .input-group input {
        padding: 18px 15px 18px 50px !important;
        font-size: 18px !important;
    }
    .input-group i {
        font-size: 22px !important;
    }
    .btn-primary {
        padding: 16px !important;
        font-size: 20px !important;
    }
    .btn-instruction {
        padding: 16px 40px !important;
        font-size: 20px !important;
    }
    .brand img {
        height: 110px !important;
    }
    .lang-toggle a {
        padding: 10px 22px !important;
        font-size: 16px !important;
    }
    .top-bar {
        padding: 25px 40px !important;
    }
    .badge {
        font-size: 14px !important;
    }
    /* Order Confirmed page */
    .credentials-card h3 {
        font-size: 20px !important;
    }
    .cred-label {
        font-size: 13px !important;
    }
    .cred-input-group input {
        font-size: 17px !important;
        padding: 14px 18px !important;
    }
    .btn-copy {
        font-size: 14px !important;
        padding: 0 20px !important;
    }
    .auth-title {
        font-size: 18px !important;
    }
    .auth-desc {
        font-size: 14px !important;
    }
    .code-value {
        font-size: 34px !important;
    }
    .code-label {
        font-size: 13px !important;
    }
    .code-time {
        font-size: 13px !important;
    }
    /* Modal */
    .modal-header h2 {
        font-size: 24px !important;
    }
    .accordion-header {
        font-size: 17px !important;
    }
    .accordion-body p, .accordion-body ul {
        font-size: 16px !important;
    }
}

