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

body {
    font-family: "Kode Mono", monospace !important;
    background: #000000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

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

/* Container */
.themesflat-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-12, .col-xl-3, .col-lg-4, .col-md-6, .col-sm-6 {
    padding: 0 15px;
    width: 100%;
}

/* Desktop */
@media (min-width: 1200px) {
    .col-xl-3 { width: 33.333%; }
}

@media (min-width: 992px) {
    .col-lg-4 { width: 33.333%; }
    .col-md-6 { width: 50%; }
}

@media (min-width: 768px) {
    .col-sm-6 { width: 50%; }
}

@media (min-width: 576px) {
    .col-md-12 { width: 100%; }
}

/* Tablet */
@media (max-width: 991px) and (min-width: 769px) {
    .col-lg-4 { width: 33.333%; }
    .col-xl-3 { width: 33.333%; }
}

/* Mobile */
@media (max-width: 768px) {
    .row {
        margin: 0 -10px;
    }
    
    .col-md-12, .col-xl-3, .col-lg-4, .col-md-6, .col-sm-6 {
        padding: 0 10px;
        width: 100%;
    }
}

/* Header */
#header_main {
    background: #000000;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wrap-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#site-logo h4 {
    color: #fff !important;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.flat-search-btn {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-search {
    position: relative;
}

.flat-show-search {
    position: relative;
}

.header-search-trigger {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Search Bar Styles */
.top-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    display: none;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.flat-show-search.active .top-search {
    display: block;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-field {
    flex: 1;
    padding: 12px 15px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: "Kode Mono", monospace;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-field:focus {
    outline: none;
    border-color: #5142FC;
    background: #0a0a0a;
}

.search-submit {
    padding: 12px 20px;
    background: #5142FC;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.search-submit:hover {
    background: #3d2fd4;
}

.sc-button {
    background: #5142FC;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.sc-button:hover {
    background: #3d2fd4;
    transform: translateY(-2px);
}

/* Wallet Section */
.tf-section {
    padding: 60px 0;
}

.tf-title.style2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

.heading-line.s2 {
    width: 100px;
    height: 4px;
    background: #5142FC;
    margin: 0 auto 40px;
    border-radius: 2px;
}

/* Wallet Cards */
.sc-author-box {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s;
    margin-bottom: 30px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sc-author-box:hover {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(81, 66, 252, 0.3);
}

.author-avatar {
    margin-bottom: 15px;
}

.author-avatar img.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.author-infor h5 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-infor h5 a {
    color: #fff;
    text-decoration: none;
}

.author-infor .price {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Modal Styles - Bootstrap 5 Compatible */
.modal {
    z-index: 1055;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-dialog {
    max-width: 500px;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #fff;
}

.modal-body {
    padding: 40px;
    text-align: center;
}

.modal-body h3 {
    color: #fff;
    margin: 20px 0;
}

.modal-body h3 img {
    border-radius: 50%;
    margin-bottom: 10px;
}

.modal-body p {
    color: rgba(255, 255, 255, 0.7);
    margin: 15px 0;
}

.btn-close {
    filter: invert(1);
    opacity: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
}

.btn-close:hover {
    opacity: 0.8;
    filter: invert(1) brightness(1.5);
}

/* Form Styles */
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: #0a0a0a;
    color: #fff;
    font-size: 16px;
    font-family: "Kode Mono", monospace;
    resize: vertical;
    margin: 15px 0;
}

textarea:focus {
    outline: none;
    border-color: #5142FC;
    background: #1a1a1a;
}

.btn-primary, .btn {
    background: #5142FC;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-primary:hover, .btn:hover {
    background: #3d2fd4;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid #5142FC;
    color: #5142FC;
}

.btn-outline-primary:hover {
    background: #5142FC;
    color: white;
}

/* Footer */
#footer {
    background: #000000;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-footer a {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.sub-widget-logo {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
    line-height: 1.8;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 20px;
}

.mb-3 {
    margin-bottom: 15px;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6);
}

/* Preload */
.preload {
    display: none;
}

/* CoinMarketCap Widget */
#coinmarketcap-widget-marquee {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

/* Loading Animation with Dots */
.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    padding: 20px 0;
}

.loading-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #5142FC;
    animation: loading-bounce 2.5s infinite ease-in-out both;
}

.loading-dot:nth-child(1) {
    animation-delay: -0.6s;
}

.loading-dot:nth-child(2) {
    animation-delay: -0.3s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Auto Connecting Section */
#auto_connecting {
    text-align: center;
    padding: 30px 0;
}

#auto_connecting h5 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

#auto_connecting i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-style: normal;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Header Mobile */
    #header_main {
        padding: 12px 0;
    }
    
    .wrap-box {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    #site-logo {
        flex: 1;
        min-width: 0;
    }
    
    #site-logo h4 {
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .flat-search-btn {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .sc-button {
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .header-search-trigger svg {
        width: 18px;
        height: 18px;
    }
    
    /* Container Mobile */
    .themesflat-container {
        padding: 0 15px;
    }
    
    /* Section Mobile */
    .tf-section {
        padding: 30px 0;
    }
    
    .tf-title.style2 {
        font-size: 24px;
        margin-bottom: 15px;
        padding: 0 10px;
    }
    
    .heading-line.s2 {
        width: 60px;
        height: 3px;
        margin-bottom: 25px;
    }
    
    /* Wallet Cards Mobile */
    .sc-author-box {
        padding: 15px 12px;
        margin-bottom: 15px;
    }
    
    .author-avatar {
        margin-bottom: 12px;
    }
    
    .author-avatar img.avatar {
        width: 60px;
        height: 60px;
    }
    
    .author-infor h5 {
        font-size: 15px;
        margin-bottom: 4px;
    }
    
    .author-infor .price {
        font-size: 11px;
    }
    
    /* Modal Mobile */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-content {
        border-radius: 15px;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
    
    .modal-body h3 {
        font-size: 18px;
        margin: 15px 0;
    }
    
    .modal-body h3 img {
        width: 40px;
        height: 40px;
    }
    
    .modal-body p {
        font-size: 14px;
    }
    
    textarea {
        font-size: 14px;
        padding: 12px;
        min-height: 100px;
    }
    
    .btn-primary, .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn-outline-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Footer Mobile */
    #footer {
        padding: 30px 0;
    }
    
    .logo-footer a {
        font-size: 18px;
    }
    
    .sub-widget-logo {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .form-subcribe {
        margin-top: 15px;
    }
    
    .form-subcribe input {
        font-size: 14px;
        padding: 10px;
    }
    
    /* Loading Dots Mobile */
    .loading-dots {
        margin: 20px 0 15px;
        padding: 15px 0;
    }
    
    .loading-dot {
        width: 10px;
        height: 10px;
    }
    
    #auto_connecting {
        padding: 20px 0;
    }
    
    #auto_connecting h5 {
        font-size: 15px;
        margin-bottom: 8px;
        padding: 0 10px;
    }
    
    #auto_connecting i {
        font-size: 12px;
    }
    
    /* Failed to connect mobile */
    #failed_to_connect {
        padding: 15px 0;
    }
    
    #failed_to_connect > div {
        font-size: 14px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    #site-logo h4 {
        font-size: 16px;
    }
    
    .sc-button {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .tf-title.style2 {
        font-size: 22px;
    }
    
    .sc-author-box {
        padding: 12px 10px;
        margin-bottom: 12px;
    }
    
    .author-avatar img.avatar {
        width: 50px;
        height: 50px;
    }
    
    .author-infor h5 {
        font-size: 14px;
    }
    
    .author-infor .price {
        font-size: 10px;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .modal-body h3 {
        font-size: 16px;
    }
    
    textarea {
        font-size: 13px;
        padding: 10px;
    }
    
    .btn-primary, .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    /* Touch-friendly improvements */
    .sc-author-box,
    .btn-primary,
    .btn,
    .btn-outline-primary,
    .header-search-trigger {
        -webkit-tap-highlight-color: rgba(81, 66, 252, 0.3);
        touch-action: manipulation;
    }
}

