
   body {
    background: #0b0f1a;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    /*font-size:12px;*/
}

.trading-wrapper {
    padding: 15px;
}


.chart-section {
    background: #0f1624;
    border-radius: 8px;
    padding: 10px;
    min-height: 520px;
}

#tradingview_btcusdt {
    height: 500px;
    width: 100%;
}


.trade-section {
    padding-left: 10px;
}

.trade-box {
    background: #111827;
    border-radius: 8px;
    padding: 15px;
}


.trade-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 8px;
}


.trade-buttons button {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.btn-success {
    background: #16a34a;
    border: none;
}

.btn-secondary {
    background: #374151;
    border: none;
}

/* Form */
.trade-group label {
    font-size: 13px;
    color: #9ca3af;
}

.form-control {
    background: #020617;
    border: 1px solid #1f2937;
    color: #fff;
}

.form-control:focus {
    background: #020617;
    color: #fff;
    border-color: #2563eb;
}

/* Quick Amount */
.quick-amount {
    display: flex;
    gap: 5px;
}

.quick-amount button {
    flex: 1;
    background: #1f2937;
    color: #fff;
    border: none;
    padding: 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Buy Button */
.btn-primary {
    background: #2563eb;
    border: none;
    font-weight: 600;
}

/* Loader */
.custom-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #1f2937;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

   @media (max-width: 768px) {

  
    .trading-wrapper {
        padding: 8px;
    }

   
    .chart-section {
        padding: 5px;
        min-height: auto;
        border-radius: 6px;
    }

    #tradingview_btcusdt {
        height: 260px;  
    }

    .trade-section {
        padding-left: 0;
        margin-top: 10px;
    }

    .trade-box {
        padding: 12px;
        border-radius: 6px;
    }

    .trade-header {
        font-size: 14px;
        padding-bottom: 6px;
    }

    .trade-buttons button {
        font-size: 14px;
        padding: 10px;
    }

    .trade-group label {
        font-size: 12px;
    }

    .form-control {
        height: 38px;
        font-size: 14px;
    }
    .quick-amount {
        gap: 4px;
    }

    .quick-amount button {
        padding: 8px 0;
        font-size: 11px;
    }

   
    .btn-primary {
        padding: 10px;
        font-size: 15px;
    }

    .custom-spinner {
        width: 30px;
        height: 30px;
        border-width: 3px;
    }
}

.time-period-desc {
    white-space: nowrap;      
    overflow: hidden;
    text-overflow: ellipsis;  
}


#date,
#reachcountdown,
.time-period-value {
    white-space: nowrap;     
    overflow: hidden;
    text-overflow: ellipsis;
}
 
   /*===================================================================================*/
   .time-period-container {
    background: linear-gradient(180deg, #0c1624, #0a1220);
    padding: 14px 18px;
    border-radius: 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

/* Dropdown */
.time-period-label select {
    background: #0f1b2d;
    border: 1px solid #1e2f4f;
    color: #fff;
    border-radius: 6px;
    padding: 6px 10px;
}

/* Info Row */
.time-period-display {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Each Box */
.time-period-item {
    flex: 1;
    min-width: 180px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px 14px;
    text-align: center;
}

/* Label */
.time-period-desc {
    font-size: 12px;
    color: #8fa3c8;
    margin-bottom: 4px;
}

/* Value */
.time-period-value {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

/* Price */
.time-period-item p {
    font-size: 14px;
    margin: 0;
    color: #dbe4ff;
}

/* Countdown Highlight */
.countdown-highlight {
    color: #ff4d4f;
    font-weight: 700;
}

/* Mobile */
@media (max-width: 768px) {
    .time-period-display {
        gap: 12px;
    }

    .time-period-item {
        min-width: 100%;
    }
}

   /*===================================================================================*/
   
        /* SECTION */
.dsj-trade-section{
  background:#0b0f17;
  color:#fff;
  /*padding:15px;*/
  font-family:Arial, sans-serif;
}

/* TOP BAR */
.dsj-top-bar{
  display:flex;
  /* justify-content:space-between; */
  align-items:center;
  border-bottom:1px solid #1c2333;
  padding-bottom:10px;
  gap: 30px;
}

.dsj-pair strong{
  color:#00ff9c;
  display:block;
  font-size:18px;
}

.dsj-info{
  display:flex;
  gap:80px;
}

.dsj-info small{
  color:#888;
  font-size:12px;
}

.dsj-info p{
  font-size:13px;
  margin-top:2px;
}

.dsj-info .highlight p{
  color:#ffc107;
}

/* MAIN */
.dsj-main{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap:0px;
  margin-top:15px;
}

/* CHART */
.dsj-chart{
  background:#0f1522;
  /*border-radius:8px;*/
  padding:10px;
  border: 1px solid #80808066;
}

.dsj-chart-header{
  display:flex;
  gap:15px;
  margin-bottom:10px;
}

.dsj-chart-header span{
  font-size:13px;
  color:#aaa;
  cursor:pointer;
}

.dsj-chart-header .active{
  color:#ffc107;
}

.dsj-chart-box{
  height:380px;
  background:#0b0f17;
  border-radius:6px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* TRADE PANEL */
.dsj-trade-panel{
  background:#0f1522;
  /*border-radius:8px;*/
  padding:15px;
  border: 1px solid #80808073;
}

.dsj-trade-panel h4{
  margin-bottom:12px;
}

.dsj-buttons{
  display:flex;
  gap:10px;
}

.dsj-buttons button{
  flex:1;
  padding:10px;
  border:none;
  border-radius:6px;
  color:#fff;
  cursor:pointer;
}

.call{background:#00b67a;}
.put{background:#3a3f4b;}

.dsj-field{
  margin-top:12px;
}

.dsj-field label{
  font-size:12px;
  color:#aaa;
}

.dsj-field input,
.dsj-field select{
  width:100%;
  padding:8px;
  background:#0b0f17;
  border:1px solid #1f2a44;
  color:#fff;
  border-radius:6px;
  margin-top:5px;
}

.dsj-percent{
  display:flex;
  gap:8px;
  margin-top:10px;
}

.dsj-percent button{
  flex:1;
  background:#1f2a44;
  border:none;
  color:#fff;
  padding:6px;
  border-radius:5px;
}

.dsj-buy{
  width:100%;
  margin-top:15px;
  padding:12px;
  background:#00b67a;
  border:none;
  border-radius:8px;
  font-size:16px;
  cursor:pointer;
}

/* RESPONSIVE */
@media(max-width:992px){
  .dsj-main{
    grid-template-columns:1fr;
  }
}

  /*=============================================second section start=========================================*/
  .dsj-same-width {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

.dsj-two-card {
  display: grid;
  grid-template-columns: 1fr 320px;
  /*gap: 16px;*/
}

.dsj-card-left,
.dsj-card-right {
  background: #111;
  /*border-radius: 12px;*/
  padding: 16px;
  box-shadow: 0 0 0 1px #1f1f1f;
  border: 1px solid #80808073;
}

@media (max-width: 900px) {
  .dsj-two-card {
    grid-template-columns: 1fr;
  }
}

  /*=============================================second section end=========================================*/
  /* ===============================
   COMMON WIDTH (SAME AS TOP)
================================ */
.dsj-bottom-section {
  max-width: 1400px;
  /*margin: 24px auto;*/
  /*padding: 0 16px;*/
  padding: 0 0px;
  box-sizing: border-box;
}

/* ===============================
   TWO CARD LAYOUT
================================ */
.dsj-bottom-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  /*gap: 2px;*/
  align-items: flex-start;
}

/* ===============================
   LEFT CARD (TABS + TABLE)
================================ */
.dsj-bottom-left {
  background:#0b0f1a;
  /*border-radius: 12px;*/
  padding: 16px;
  box-shadow: 0 0 0 1px #1f1f1f;
border: 1px solid #80808073;
}

/* ===============================
   TAB HEADER
================================ */
.dsj-tab-header {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #222;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.dsj-tab {
  background: transparent;
  border: 0;
  color: #aaa;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.dsj-tab:hover {
  background: #1b1b1b;
  color: #fff;
}

.dsj-tab.active {
  background: #1f1f1f;
  color: #00e1a0;
}

/* ===============================
   TAB CONTENT
================================ */
.dsj-tab-content {
  width: 100%;
}

.dsj-tab-pane {
  display: none;
}

.dsj-tab-pane.active {
  display: block;
}

/* ===============================
   TABLE
================================ */
.dsj-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.dsj-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.dsj-table th,
.dsj-table td {
  padding: 10px 12px;
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid #222;
  color: #ddd;
  white-space: nowrap;
}

.dsj-table th {
  color: #888;
  font-weight: 500;
  background: #0b0f1a;
}

.dsj-table tr:hover td {
  background: #181818;
}

/* ===============================
   STATUS COLORS
================================ */
.green {
  color: #00e1a0;
}

.red {
  color: #ff4d4f;
}

/* ===============================
   EMPTY STATE
================================ */
.dsj-empty {
  text-align: center;
  color: #666;
  padding: 40px 0;
  font-size: 14px;
}

/* ===============================
   RIGHT CARD (ASSETS)
================================ */
.dsj-assets-card {
  background: #0b0f1a;
  /*border-radius: 12px;*/
  padding: 16px;
  box-shadow: 0 0 0 1px #1f1f1f;
  border: 1px solid #80808073;
}

.dsj-assets-title {
  margin-bottom: 16px;
  font-size: 16px;
  color: #fff;
}

/* ===============================
   ASSETS BUTTONS
================================ */
.dsj-assets-btn {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  background: #0b0f1a;
  border: 1px solid #2a2a2a;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.dsj-assets-btn:hover {
  background: #00e1a0;
  color: #000;
  border-color: #00e1a0;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
  .dsj-bottom-layout {
    grid-template-columns: 1fr;
  }

  .dsj-table {
    min-width: 100%;
  }
}


/*-------------------------------------------------------------------*/


/* ===============================
   EXTRA SMALL DEVICES (320px)
================================ */
@media (max-width: 480px) {

  body {
    font-size: 13px;
  }
  .dsj-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dsj-info {
    width: 84%;
    flex-direction: column;
    gap: 0px;
    margin: 17px;
  }

  .dsj-info > div {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  /* ===== MAIN GRID ===== */
  .dsj-main {
    grid-template-columns: 1fr;
  }

  /* ===== CHART ===== */
  .dsj-chart {
    padding: 8px;
  }

  .dsj-chart-box {
    height: 220px;
  }

  .dsj-chart-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* ===== TRADE PANEL ===== */
  .dsj-trade-panel {
    padding: 12px;
  }

  .dsj-buttons {
    flex-direction: column;
  }

  .dsj-buttons button {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }

  .dsj-field input,
  .dsj-field select {
    font-size: 14px;
    padding: 10px;
  }

  .dsj-percent {
    flex-wrap: wrap;
  }

  .dsj-percent button {
    flex: 1 1 48%;
  }

  /* ===== TIME PERIOD BAR ===== */
  .time-period-display {
    flex-direction: column;
    gap: 10px;
  }

  .time-period-item {
    min-width: 100%;
    padding: 10px;
  }

  /* ===== SECOND SECTION GRID ===== */
  .dsj-bottom-layout,
  .dsj-two-card {
    grid-template-columns: 1fr;
  }

  .dsj-bottom-left,
  .dsj-assets-card {
    padding: 12px;
  }

  /* ===== TABS ===== */
  .dsj-tab-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .dsj-tab {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* ===== TABLE FIX ===== */
  .dsj-table-wrap {
    overflow-x: auto;
  }

  .dsj-table {
    min-width: 700px;
  }

  .dsj-table th,
  .dsj-table td {
    font-size: 12px;
    padding: 8px;
  }

  /* ===== ASSETS BUTTONS ===== */
  .dsj-assets-btn {
    padding: 12px;
    font-size: 14px;
  }
}

/* ===============================
   ULTRA SMALL (<=360px SAFETY)
================================ */
@media (max-width: 360px) {

  .dsj-chart-box {
    height: 200px;
  }

  .dsj-buy {
    font-size: 14px;
    padding: 10px;
  }

  .time-period-value {
    font-size: 14px;
  }
}

/* ===============================
   MOBILE TABLE SCROLL
================================ */
@media (max-width: 768px) {

  /* Wrapper scrollable */
  .dsj-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Table width fix */
  .dsj-table {
    min-width: 900px;
    border-collapse: collapse;
  }

  /* Scrollbar styling (optional) */
  .dsj-table-wrap::-webkit-scrollbar {
    height: 6px;
  }

  .dsj-table-wrap::-webkit-scrollbar-track {
    background: #0b0f1a;
  }

  .dsj-table-wrap::-webkit-scrollbar-thumb {
    background: #1f2a44;
    border-radius: 10px;
  }
}
/*==============================================================================*/
/* ===============================
   INVITED ME – CENTER FORM
=================================*/

#betForm{
  display:flex;
  /*flex-direction:column;*/
 /* align-items:center;*/
 /*justify-content: space-around;*/
 /* padding:60px 0 40px;*/
}

/* INPUT BOX */
#betForm #code{
  max-width:200px;
  height:44px;
  background:#1b2332;
  border:1px solid #2a3346;
  border-radius:none !important;
  color:#cfd6e4;
  font-size:14px;
  padding:10px 14px;
  margin-bottom:18px;
}

/* PLACEHOLDER */
#betForm #code::placeholder{
  color:#7f8aa3;
  font-size:13px;
}

/* FOCUS */
#betForm #code:focus{
  outline:none;
  border-color:#3b82f6;
  background:#1b2332;
  box-shadow:none;
}

/* CONFIRM BUTTON */
#betForm .btn-primary{
  width:140px;
  height:44px;
  background:#f5b24a;
  border:none;
  /*border-radius:4px;*/
  color:#000;
  font-size:14px;
  font-weight:600;
  transition:0.25s;
}

#betForm .btn-primary:hover{
  background:#e6a23c;
}

/* ===============================
   MOBILE RESPONSIVE
=================================*/

@media(max-width:576px){

  #betForm{
    padding:40px 15px;
  }

  #betForm #code{
    width:100%;
  }

  #betForm .btn-primary{
    width:100%;
  }
}
.theadclass{
    font-size: 12px;
  color: #f5b24a;
}
/*==============================================================================*/


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

.trade-section {
  width: 100%;
  background: #0e1621;
  padding: 20px;
  color: #fff;
  font-family: Arial, sans-serif;
}

.trade-wrapper {
  display: flex;
  gap: 0px;
  
}

/* LEFT CARD */
.trade-card {
  flex: 2;
  background: #131c2b;
  /*border-radius: 10px;*/
 border: 1px solid #80808073;
  padding: 15px;
}

/* TIMEFRAME */
.trade-timeframe {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.trade-timeframe span {
  padding: 6px 12px;
  background: #1f2a3d;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.trade-timeframe .active {
  background: #2f80ed;
}

/* CHART */
.trade-chart-box {
  position: relative;
  height: 400px;
  background: #0b1320;
  border-radius: 10px;
  overflow: hidden;
}

#tradingview_chart {
  width: 100%;
  height: 100%;
}

/* LOADING */
#chart-loading {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  z-index: 10;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top: 4px solid #2f80ed;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* RIGHT CARD */
.order-card {
  flex: 1;
  background: #131c2b;
  /*border-radius: 10px;*/
  padding: 20px;
  border: 1px solid #80808073;
}

.order-title {
  margin-bottom: 15px;
}

/* CALL PUT */
.order-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.btn-call {
  flex: 1;
  background: #27ae60;
  border: none;
  padding: 10px;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
}

.btn-put {
  flex: 1;
  background: #eb5757;
  border: none;
  padding: 10px;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
}

/* FORM */
.order-field {
  margin-bottom: 15px;
}

.order-field label {
  font-size: 13px;
  display: block;
  margin-bottom: 5px;
}

.order-field select,
.order-field input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  background: #1f2a3d;
  color: #fff;
}

/* PERCENT */
.order-percent {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.order-percent button {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  background: #1f2a3d;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* BUY */
.order-buy {
  width: 100%;
  padding: 12px;
  background:#00a870!important;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .trade-wrapper {
    flex-direction: column;
  }

  .trade-chart-box {
    height: 300px;
  }
}


#mybetlist{
    color:white;
}


/*--------------------------------------*/
/* =========================
   MOBILE RESPONSIVE
   ========================= */
@media (max-width: 768px) {

  /* MAIN LAYOUT */
  .dsj-bottom-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  /* LEFT & RIGHT CARD FULL WIDTH */
  .dsj-card-left,
  .dsj-card-right {
    width: 100%;
  }

  /* TAB HEADER SCROLL */
  .dsj-tab-header {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    padding-bottom: 5px;
  }

  .dsj-tab-header::-webkit-scrollbar {
    display: none;
  }

  .dsj-tab {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 8px 12px;
  }

  /* TABLE RESPONSIVE */
  .dsj-table-wrap,
  .table_r {
    overflow-x: auto;
  }

  table {
    min-width: 900px;
    font-size: 12px;
  }

  th,
  td {
    padding: 6px 8px;
    white-space: nowrap;
  }

  /* INVITE FORM */
  #betForm input {
    width: 100%;
  }

  /* MODAL */
  .popup-modal {
    margin: 10px;
  }

  /* ASSETS CARD */
  .dsj-assets-card {
    text-align: center;
  }

  .dsj-assets-btn {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* EXTRA SMALL DEVICES */
@media (max-width: 480px) {

  .dsj-tab {
    font-size: 12px;
    padding: 6px 10px;
  }

  table {
    font-size: 11px;
  }

  .dsj-assets-title {
    font-size: 16px;
  }
}


