/* --- Basic Reset & Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Arial', sans-serif; /* Modern font stack */
    background-color: #1a1a2e; /* Dark background */
    color: #e0e0e0; /* Light gray text */
    line-height: 1.6;
    font-size: 16px;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

a {
    color: #f0b90b; /* Gold/Yellow accent */
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffd700; /* Lighter gold on hover */
    text-decoration: none;
}

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

ul {
    list-style: none;
}

/* --- Typography Improvements --- */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* --- Form Elements --- */
.input, select, textarea {
    padding: 12px 15px;
    border: 1px solid #444;
    background-color: #2a2a3e;
    color: #e0e0e0;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #f0b90b;
    box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.25);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #f0b90b;
    color: #1a1a2e; /* Dark text on button */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: #ffd700;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-2 {
    background-color: #4a90e2; /* Example secondary color */
    color: #fff;
    background-image: linear-gradient(to right, #4a90e2, #5a9ff2);
}
.btn-2:hover {
    background-image: linear-gradient(to right, #5a9ff2, #6aaaff);
    color: #fff;
}

.btn-bordered {
    background-color: transparent;
    border: 2px solid #f0b90b;
    color: #f0b90b;
    box-shadow: none;
}

.btn-bordered:hover {
    background-color: rgba(240, 185, 11, 0.1);
    color: #ffd700;
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-cancel {
    background-color: #6c757d; /* Gray cancel button */
    color: #fff;
    background-image: linear-gradient(to right, #6c757d, #7d8790);
}
.btn-cancel:hover {
    background-image: linear-gradient(to right, #7d8790, #8d949a);
}

/* --- Improved Block Design --- */
.block {
    background-color: #232342;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.block:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.block-title {
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(240, 185, 11, 0.3);
    position: relative;
}

.block-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background-color: #f0b90b;
}

/* --- Improved Table Styling --- */
.table {
    width: 100%;
}

.table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-row:last-child {
    border-bottom: none;
}

.table-row .label {
    color: #aaa;
    font-weight: 500;
}

.table-row .val {
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(240, 185, 11, 0.15);
    color: #f0b90b;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* --- About Section Improvements --- */
.about-list .about-item {
    padding: 15px 0 15px 28px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.about-list .about-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    background-color: #f0b90b;
    border-radius: 50%;
}

.about-list .about-item:hover {
    background-color: rgba(240, 185, 11, 0.05);
    transform: translateX(5px);
}

.about-list .about-item:last-child {
    border-bottom: none;
}

.about-item a {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(240, 185, 11, 0.3);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}

.about-item a:hover {
    text-decoration-color: #f0b90b;
}

/* --- Modal Improvements --- */
.modal-body {
    background-color: #1f1f33;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #232342;
}

.modal-content {
    padding: 25px;
}

.important {
    background-color: rgba(240, 185, 11, 0.1);
    border-left: 4px solid #f0b90b;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.important p:last-child {
    margin-bottom: 0;
}

.important strong {
    color: #f0b90b;
}

/* --- Social Links --- */
.social-links {
    background-color: #16162c;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links .wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #232342;
    color: #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
    transform: translateY(-5px);
    background-color: #f0b90b;
    color: #16162c;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.social-links svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

/* --- Header --- */
.header {
    padding: 15px 0;
    background-color: rgba(26, 26, 46, 0.8); /* Slightly transparent header */
    position: relative;
    z-index: 100;
}

.header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
   height: 40px; /* Adjust as needed */
}


.t-panel {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9em;
    color: #bbb;
}

.hstats {
    display: flex;
    gap: 15px;
}

.balance-val {
    color: #f0b90b;
    font-weight: bold;
}
.profit span {
     color: #50fa7b; /* Green for profit rate */
     font-weight: bold;
}
.profit .next {
    font-size: 0.8em;
    color: #aaa;
}

.main-nav {
    display: flex;
    align-items: center;
}

.menu-wrap {
    margin-right: 20px;
}

.menu {
    display: flex;
    gap: 20px;
}

.menu li a {
    color: #e0e0e0;
    padding: 5px 0;
}

.menu li a:hover, .menu li a.active {
    color: #f0b90b;
    border-bottom: 2px solid #f0b90b;
}

.menu-toggle, .menu-close {
    display: none; /* Hide on desktop, implement logic for mobile */
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
}

/* --- Main Promo Section --- */
.main-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    background: url('[BACKGROUND_IMAGE_PATH]') no-repeat center center/cover; /* Placeholder */
    min-height: 50vh;
    display: flex;
    flex-direction: column; /* Stack header and content */
    justify-content: center; /* Vertically center content */
    align-items: center;
}
.main-section::before { /* Dark overlay */
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(26, 26, 46, 0.7); /* Adjust opacity */
    z-index: 1;
}

.main-section .header { /* Make header stick or position correctly */
     width: 100%;
     position: absolute;
     top: 0; left: 0;
     background: transparent; /* Transparent header on hero */
     padding-top: 20px;
     padding-bottom: 20px;
}

.main-section .wrapper {
    position: relative; /* Ensure content is above overlay */
    z-index: 2;
}

.main-content {
    margin-top: 100px; /* Adjust based on header height */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.main-content .logo img {
    max-height: 80px; /* Adjust logo size */
    margin-bottom: 20px;
}

.main-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #fff;
    font-weight: bold;
}

.main-content p {
    font-size: 1.1em;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* --- General Section Styling --- */
.about, .why, .code-block, .conditions, .how {
    padding: 60px 0;
    border-bottom: 1px solid #333; /* Separator */
}

.about { background-color: #1f1f33; } /* Slightly different bg */
.why { background-color: #1a1a2e; }
.code-block { background-color: #1f1f33; }
.conditions { background-color: #1a1a2e; }
.how { background-color: #1f1f33; }


h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    color: #fff;
}
h2 strong {
    color: #f0b90b;
}

.table {
    margin-top: 15px;
}

.table-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #444;
    font-size: 0.95em;
}
.table-row:last-child {
    border-bottom: none;
}

.table-row .label {
    color: #bbb;
}

.table-row .val {
    color: #fff;
    font-weight: 500;
}
.badge {
    background-color: #444;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}


/* --- About Section --- */
.about-info, .about-content {
    width: 48%;
    float: left;
}
.about-info { margin-right: 4%; }

.daily {
    display: flex;
    align-items: center;
    background-color: #2a2a3e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}
.daily-num {
    font-size: 3em;
    font-weight: bold;
    color: #50fa7b; /* Green profit */
    margin-right: 20px;
}
.daily-content .daily-capt {
    font-size: 0.85em;
    color: #aaa;
    margin-top: 5px;
}

.calc-input {
    position: relative;
    margin-bottom: 15px;
}
.calc-input .label {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #f0b90b;
    font-weight: bold;
}
.calc-time {
    text-align: center;
    color: #aaa;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.stats .stats-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}
.stats .stats-item {
    width: 48%;
    text-align: center;
    font-size: 0.9em;
    color: #bbb;
}
.stats .stats-label {
    display: block;
    font-size: 1.4em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}
.stats .stats-label .cur {
    font-size: 0.7em;
    color: #f0b90b;
}
.stats .btn-item {
    display: flex;
    align-items: center; /* Center button vertically if needed */
}

.company {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #2a2a3e;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.company-logo img { height: 40px; } /* Placeholder */
.company-text { flex-grow: 1; }
.company-title { font-weight: bold; color: #fff; margin-bottom: 3px; }
.company-opt { flex-shrink: 0; }

.about-list .about-item {
    padding: 10px 0 10px 25px;
    position: relative;
    border-bottom: 1px dashed #444;
}
.about-list .about-item::before {
    content: '✓'; /* Example checkmark */
    position: absolute;
    left: 0;
    top: 10px;
    color: #f0b90b;
    font-weight: bold;
}
.about-list .about-item:last-child { border-bottom: none; }


/* --- Why Section --- */
.why-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}
.why-columns .column {
    flex: 1;
    min-width: 250px;
}

.why-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(240, 185, 11, 0.1);
    border-radius: 50%;
    color: #f0b90b;
    transition: all 0.3s ease;
}

.feature-card:hover .why-icon {
    background-color: #f0b90b;
    color: #1a1a2e;
    transform: scale(1.1);
}

.why-title {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.why-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #f0b90b;
}

.why-content {
    color: #bbb;
    text-align: center;
}

/* Improved Diagram */
.diagram {
    margin: 25px auto;
    max-width: 250px;
    position: relative;
}

.diagram-main {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

.diagram-capt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 0.9rem;
    color: #bbb;
}

.diagram-capt span {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #f0b90b;
    margin-bottom: 5px;
}

.legend {
    width: 100%;
    margin: 20px auto 0;
    font-size: 0.9rem;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.legend td {
    padding: 8px 12px;
}

.legend td:first-child {
    color: #bbb;
}

.legend td:last-child {
    text-align: right;
    font-weight: 700;
}

/* Chart shadow */
canvas#chart {
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.15));
}


/* --- Code Block Section --- */
.code-block-left, .code-block-right {
    width: 48%;
    float: left;
}
.code-block-left { margin-right: 4%; }

.code-block-title { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; font-size: 1.2em; font-weight: bold; }
.code-block-title img { height: 25px; }

.code-panel { background-color: #1e1e1e; border-radius: 5px; overflow: hidden; }
.code-wrap { max-height: 400px; overflow: auto; } /* Limit height and add scroll */

/* Prism.js Okaidia theme adjustments if needed */
pre[class*="language-"].line-numbers {
    padding-left: 3.8em; /* Adjust based on Prism theme */
    counter-reset: linenumber;
    position: relative;
}
pre[class*="language-"].line-numbers > code {
	position: relative;
	white-space: pre; /* Ensure preformatted whitespace */
}
.line-numbers .line-numbers-rows {
    position: absolute;
    pointer-events: none;
    top: 0;
    font-size: 100%;
    left: -3.8em; /* Must match padding */
    width: 3em; /* Adjust as needed */
    letter-spacing: -1px;
    border-right: 1px solid #999; /* Line number separator */
    user-select: none;
}
.line-numbers-rows > span {
	display: block;
	counter-increment: linenumber;
}
.line-numbers-rows > span:before {
	content: counter(linenumber);
	color: #999; /* Line number color */
	display: block;
	padding-right: 0.8em;
	text-align: right;
}

.code-block-right .video {
    display: block;
    background-color: #2a2a3e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}
.code-block-right .video-text strong { display: block; font-size: 1.2em; margin: 10px 0;}
.code-block-right .play-btn { display: inline-block; margin-top: 15px; color: #f0b90b; }
.video-text-description p { font-size: 0.95em; color: #ccc; }


/* --- Conditions Section --- */
.conditions .text { text-align: center; max-width: 800px; margin: 0 auto 30px auto; color: #ccc; }
.cond {
    display: flex;
    gap: 30px;
    background-color: #2a2a3e;
    padding: 30px;
    border-radius: 8px;
}
.cond-main { width: 35%; text-align: center; }
.cond-stat { font-size: 1.5em; margin-bottom: 15px; }
.cond-stat strong { font-size: 2em; color: #50fa7b; display: block; margin-bottom: 5px;}
.cond-main p { font-size: 0.95em; color: #ccc; }
.cond-main p span { color: #aaa; font-size: 0.9em;}

.cond-content { width: 65%; }
.pref-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 25px; }
.pref-item { display: flex; align-items: center; gap: 10px; font-size: 0.9em; }
.pref-icon { width: 30px; text-align: center; } /* Placeholder */
.pref-title { font-weight: bold; color: #fff; }
.pref-val { color: #f0b90b; }
.pref-val span { color: #aaa; font-size: 0.9em; }
.pref-capt { color: #aaa; font-size: 0.8em; }
.pref-capt span { display: block; }

.advantages { display: flex; gap: 20px; justify-content: center; margin-top: 20px; }
.advantages .item { display: flex; align-items: center; gap: 8px; color: #ccc; }
.advantages .item-icon { /* Placeholder */ }


/* --- How Section --- */
.how-content { display: flex; gap: 30px; }
.how-block { flex: 1; }
.how-title { font-size: 1.3em; font-weight: bold; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.how-title .num {
    display: inline-block;
    width: 30px; height: 30px;
    line-height: 30px; text-align: center;
    background-color: #f0b90b; color: #1a1a2e;
    border-radius: 50%; font-size: 0.9em;
}
.how-form-display { text-align: center; margin-top: 20px;}
.how-form-display h4 { margin-bottom: 10px; }
.how-form-display .deposit-info { margin-bottom: 15px; color: #aaa; }

.arr-list li { padding: 5px 0 5px 20px; position: relative; }
.arr-list li::before { content: '→'; position: absolute; left: 0; color: #f0b90b; }


.how-buttons { display: flex; gap: 10px; justify-content: center; }
.how-buttons > div { flex: 1; }

.invite { text-align: center; padding: 20px; background-color: #2a2a3e; border-radius: 5px; }
.invite-title { margin-bottom: 15px; font-weight: bold; color: #fff;}


/* --- Modals --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent body scroll when modal is open */
}

.modal-backdrop {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark backdrop */
}

.modal-body-wrap {
    height: 100%;
    display: flex;
    align-items: center; /* Vertically center */
    justify-content: center; /* Horizontally center */
    padding: 20px; /* Padding around the modal */
}

.modal-body-scroll {
    max-height: 90vh; /* Limit modal height */
    overflow-y: auto; /* Enable scroll if content overflows */
    background-color: #1f1f33; /* Modal background */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1001;
    max-width: 600px; /* Default max width */
    width: 100%;
}

.modal-lg { max-width: 800px; }
.modal-sm { max-width: 450px; }
.modal-double { max-width: 1000px; } /* For side-by-side modals */


.modal-body {
    padding: 30px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8em;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover { color: #fff; }

.modal-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
    color: #f0b90b;
}
.modal-title.with-icon { display: flex; align-items: center; gap: 10px; }
.modal-title .question { /* Style for question mark */ }


.modal-double-content {
    display: flex;
    gap: 30px;
}
.modal-double-content .modal-part {
    flex: 1;
}

/* Modal Specific Styles */
.witem { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; padding: 10px; background-color: #2a2a3e; border-radius: 5px; }
.witem-icon { /* Placeholder */ }
.witem-content { flex-grow: 1; }
.witem-title { font-weight: bold; color: #fff; font-size: 0.9em; word-break: break-all; }
.witem-opts { flex-shrink: 0; }
.witem-copy { background: none; border: none; color: #aaa; cursor: pointer; font-size: 1.2em; }
.witem-copy:hover { color: #fff; }

.wd-item { display: flex; justify-content: space-between; align-items: center; background-color: #2a2a3e; padding: 15px; border-radius: 5px; margin: 20px 0; }
.wd-item .sum { font-size: 1.3em; font-weight: bold; color: #50fa7b; }
.wd-item .eq { color: #aaa; font-size: 0.9em; }

#make-deposit .modal-columns { display: flex; gap: 20px; }
#make-deposit .column { flex: 1; }
#make-deposit .important { margin-top: 20px; background-color: rgba(240, 185, 11, 0.1); padding: 10px; border-radius: 4px; font-size: 0.9em; }
#make-deposit .important strong { color: #f0b90b; }

#thx .thx-text { text-align: center; }
#thx .thx-icon { font-size: 3em; color: #50fa7b; margin-bottom: 15px; } /* Placeholder */
#thx .thx-title { font-size: 1.3em; font-weight: bold; margin-bottom: 10px; }
#thx p { color: #ccc; margin-bottom: 20px; }
#thx .stats { margin-top: 20px; margin-bottom: 20px; }

#promo .banners-select { margin: 20px 0; }
#promo .banners-cont { margin-top: 10px; }
#promo .banners-code { font-family: monospace; background-color: #1a1a2e; border: 1px solid #444; color: #ccc;}
#promo .banners-btns { display: flex; gap: 10px; margin-top: 10px; }

#ref .ref-item { background-color: #2a2a3e; padding: 10px 15px; border-radius: 5px; margin-bottom: 10px; font-size: 0.9em;}
#ref .ref-item-top { display: flex; justify-content: space-between; margin-bottom: 5px; color: #aaa; }
#ref .ref-item-top .js-r-address { color: #f0b90b; font-weight: 500; }
#ref .ref-item-bottom { display: flex; justify-content: space-between; }
#ref .pager { text-align: center; margin-top: 20px; }
#ref .pager button, #ref .pager span { margin: 0 5px; }

#confirmDividends .modal-title, #confirmCommissions .modal-title { text-align: center; border-bottom: none; }


/* --- Responsive (Basic Placeholder) --- */
@media (max-width: 768px) {
    .wrapper { padding: 0 15px; }
    h2 { font-size: 1.8em; }
    .header .wrapper { flex-wrap: wrap; }
    
    /* Keep top panel visible but adjust layout */
    .t-panel { 
        width: 100%; 
        order: -1; /* Move to top */
        margin-bottom: 15px;
        padding: 10px 0;
    }

    /* Mobile Menu Styles (Example) */
    .menu-toggle { display: block; order: 3; }
    .menu-wrap {
        display: none; /* Hide menu by default */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: #1f1f33;
        padding: 15px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        order: 4; /* Ensure it appears last in flex order */
    }
     .main-nav .menu-wrap.active { /* Class added by JS to show menu */
        display: block;
    }
    .menu { flex-direction: column; gap: 10px; }
    .menu li a { display: block; padding: 8px 0; border-bottom: 1px solid #333; }
    .menu li a:hover, .menu li a.active { border-bottom: 1px solid #f0b90b; }
    .menu-close { display: block; position: absolute; top: 10px; right: 15px; }


    .about-info, .about-content { width: 100%; float: none; margin-right: 0; margin-bottom: 30px; }
    .why-columns { flex-direction: column; }
    .code-block-left, .code-block-right { width: 100%; float: none; margin-right: 0; margin-bottom: 30px; }
    .cond { flex-direction: column; }
    .cond-main, .cond-content { width: 100%; }
    .pref-list { grid-template-columns: 1fr; } /* Stack pref items */
    .how-content { flex-direction: column; }

    .modal-double-content { flex-direction: column; }
    .modal-lg, .modal-double { max-width: 90vw; } /* Adjust modal width */
    
    /* Improve mobile calculator */
    .calc-input {
        margin-bottom: 15px;
    }
    
    .calc-input .input {
        font-size: 1.1rem;
        padding: 12px 16px;
        text-align: center;
    }
    
    .calc-results .table {
        font-size: 0.9rem;
    }
    
    .calc-results .table-row {
        padding: 12px 0;
    }
    
    /* Better mobile daily stats */
    .daily {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .daily-num {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    /* Improve mobile button layout */
    .stake-action .btn {
        padding: 12px 20px;
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Better mobile announcement banner */
    .announcement-banner {
        margin: 15px -15px;
        padding: 15px;
    }
    
    /* Improve admin panel for mobile */
    #admin-panel {
        margin: 10px -15px !important;
        border-radius: 0 !important;
    }
    
    #admin-panel > div:first-of-type {
        flex-direction: column;
        gap: 10px;
    }
    
    #admin-panel input {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    #admin-panel > div:first-of-type > div:last-child {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    #admin-panel button {
        flex: 1;
        min-width: 100px;
    }
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 360px) {
    .wrapper { padding: 0 10px; }
    
    .main-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .exchange-btn {
        padding: 6px 8px;
        font-size: 0.7rem;
    }
    
    .live-price {
        padding: 8px 10px;
    }
    
    .price-value {
        font-size: 1rem;
    }
    
    .new-listings {
        padding: 6px;
        margin: 0 -6px;
    }
}

/* --- Social Links Footer --- */
.social-links {
    background-color: #111123; /* Slightly darker than main dark bg */
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #333; /* Subtle separator line */
}

.social-links .wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px; /* Spacing between icons */
}

.social-links a {
    color: #aaa; /* Default icon color */
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #f0b90b; /* Gold/Yellow accent on hover */
    transform: scale(1.1); /* Slight zoom effect on hover */
}

.social-links svg {
    width: 28px; /* Adjust size as needed */
    height: 28px; /* Adjust size as needed */
    vertical-align: middle;
}

/* Specific hover colors if desired - optional */
.social-links a[aria-label="X Profile"]:hover svg {
    color: #fff; /* X's official color is white/black */
}
.social-links a[aria-label="Discord Server"]:hover svg {
    color: #5865F2; /* Discord's Blurple */
}
.social-links a[aria-label="Telegram Profile"]:hover svg {
    color: #2AABEE; /* Telegram's Blue */
}

/* --- Feature Cards --- */
.feature-card {
    background-color: #232342;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(240, 185, 11, 0.3);
}

/* --- Calculator Improvements --- */
.calc-slider {
    margin: 15px 0;
    position: relative;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;  
    background: #2a2a3e;
    outline: none;
    padding: 0;
    margin: 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f0b90b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    background: #ffd700;
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: #f0b90b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    background: #ffd700;
    transform: scale(1.1);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 0;
    color: #aaa;
    font-size: 0.8rem;
}

.calc-time {
    text-align: center;
    margin: 10px 0;
}

.min-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #f0b90b;
    font-size: 0.9rem;
}

.min-note svg {
    color: #f0b90b;
}

.calc-results {
    background-color: rgba(240, 185, 11, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.stake-action {
    margin-top: 15px;
}

/* --- Step Navigation --- */
.detailed-steps {
    counter-reset: step-counter;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.step-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.step-item:not(:last-child):after {
    content: '';
    position: absolute;
    left: 20px;
    top: 45px;
    bottom: -15px;
    width: 2px;
    background-color: rgba(240, 185, 11, 0.3);
    z-index: 1;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f0b90b;
    color: #1a1a2e;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.step-content {
    flex-grow: 1;
}

.step-content strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #fff;
}

.step-content ul {
    margin: 0;
    padding-left: 20px;
}

.step-content ul li {
    margin-bottom: 8px;
    position: relative;
    list-style-type: disc;
    color: #bbb;
}

.step-content ul li:last-child {
    margin-bottom: 0;
}

.address {
    display: block;
    margin: 10px 0;
    padding: 10px;
    background-color: rgba(240, 185, 11, 0.1);
    border-radius: 5px;
    font-family: monospace;
    color: #f0b90b;
    word-break: break-all;
}

.warning {
    color: #ff5555;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

/* --- New Exchange Listing Styles --- */

/* New listing badge and exchange links */
.new-listings {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.new-badge {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.listings-text {
    color: #e0e0e0;
    font-weight: 500;
}

.exchange-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.bitmart-btn {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: white;
}

.bitmart-btn:hover {
    background: linear-gradient(45deg, #6fbdff, #22f4ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
    color: white;
}

.weex-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.weex-btn:hover {
    background: linear-gradient(45deg, #7b8eeb, #8a5eb8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.weex-futures-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    position: relative;
    overflow: hidden;
}

.weex-futures-btn:hover {
    background: linear-gradient(45deg, #ff7f7f, #ffa06b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    color: white;
}

.weex-futures-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

/* Live price display */
.live-price {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(35, 35, 66, 0.8);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(240, 185, 11, 0.3);
    margin-left: auto;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.live-price:hover {
    background: rgba(240, 185, 11, 0.1);
    border-color: rgba(240, 185, 11, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}

.price-label {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.85rem;
}

.price-value {
    color: #f0b90b;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

.price-change {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.price-change.positive {
    color: #50fa7b;
    background: rgba(80, 250, 123, 0.1);
}

.price-change.negative {
    color: #ff5555;
    background: rgba(255, 85, 85, 0.1);
}

.price-change.neutral {
    color: #8be9fd;
    background: rgba(139, 233, 253, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .new-listings {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 10px;
        background: rgba(31, 31, 51, 0.8);
        border-radius: 8px;
        margin: 0 -10px;
    }
    
    /* Exchange buttons in a grid layout */
    .new-listings .exchange-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
    }
    
    /* Group exchange buttons */
    .new-listings .bitmart-btn,
    .new-listings .weex-btn,
    .new-listings .weex-futures-btn {
        margin: 2px;
    }
    
    .live-price {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
        padding: 12px 16px;
        background: rgba(240, 185, 11, 0.1);
        border: 2px solid rgba(240, 185, 11, 0.3);
        font-size: 1rem;
    }
    
    .price-value {
        font-size: 1.1rem;
        font-weight: 800;
    }
    
    .price-label {
        font-size: 0.9rem;
    }
    
    .price-change {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .new-listings {
        font-size: 0.8rem;
        gap: 8px;
        padding: 8px;
        margin: 0 -8px;
    }
    
    .listings-text {
        font-size: 0.85rem;
        text-align: center;
        margin-bottom: 5px;
    }
    
    .new-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
        align-self: center;
    }
    
    .exchange-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
        min-height: 36px;
    }
    
    .live-price {
        padding: 10px 12px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .price-value {
        font-size: 1.2rem;
        display: block;
    }
    
    .price-label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .price-change {
        font-size: 0.8rem;
        align-self: center;
    }
}

/* Announcement banner styles */
.announcement-banner {
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.1), rgba(255, 107, 107, 0.1));
    border: 2px solid rgba(240, 185, 11, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.8s ease-out;
}

.announcement-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: sweep 3s infinite;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.banner-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.banner-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #ffffff;
}

.banner-text strong {
    color: #f0b90b;
    font-size: 1.15rem;
}

.banner-text a {
    color: #4facfe;
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.banner-text a:hover {
    color: #6fbdff;
    text-shadow: 0 0 8px rgba(79, 172, 254, 0.5);
}

.futures-highlight {
    display: block;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 107, 107, 0.15);
    border-radius: 8px;
    border-left: 3px solid #ff6b6b;
    font-weight: 600;
}

.futures-highlight a {
    color: #ff8e53 !important;
}

.futures-highlight a:hover {
    color: #ffa06b !important;
    text-shadow: 0 0 8px rgba(255, 142, 83, 0.5);
}

/* Responsive announcement banner */
@media (max-width: 768px) {
    .announcement-banner {
        padding: 15px;
        margin: 20px 0;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .banner-text {
        font-size: 1rem;
    }
    
    .futures-highlight {
        margin-top: 5px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .banner-icon {
        font-size: 1.5rem;
    }
    
    .banner-text {
        font-size: 0.9rem;
    }
    
    .banner-text strong {
        font-size: 1rem;
    }
}