
.dg_body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  /* background: linear-gradient(to right, #fefcea, #fee6b6); //gold-inspired bg */
  /* background-color:  #f1e5dc; */
  padding: 10px 2px;
  color: #333;
}

.main-heading, .sub-heading {
  text-align: center;
}

.main-heading {
  /* font-size: 29px; */
  font-weight: 550;
  color: #b90606; /* gold tone */
  margin-bottom: 8px;
  text-shadow: 1px 1px 0px #fff;
}

.sub-heading {
  font-size: 17px;
  font-weight: 550;
  color: #707070;
  margin-bottom: 30px;
}

.dg_card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  max-width: 1140px;
  margin: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  overflow: hidden;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.digi_tab{
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 2px 2px;
  /* border-bottom: 3px solid transparent; */
  cursor: pointer;
  transition: all 0.3s ease;
  display:flex;
  color: #b90606;
}
.digi_tab a{
  font-weight: bold;
  font-size: 20px;
  /* padding:1% 21%; */
  padding: 0.9% 0;
  width:50%;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.port_but{
  margin-top:40px;
}
.port_but span{
  margin-right:75px;
}
.port_cont{
  margin-top:1%; 
  margin-bottom:1%;
  background-color: #eaf3f7;
  border:1px solid #ccdae0;
  border-radius: 10px;
}
.sell_s_port{
  background-color: #eaf3f7;
  border:1px solid #ccdae0;
  border-radius: 10px;
  padding: 20px 22px 20px 22px;
  font-size:18px;
}
.row-view{
  display: flex;
  flex-direction: row;
}
.dg_port{
  background-color: #fff;
  border:1px solid #ccdae0;
  border-radius: 8px;
  padding:15px 0px 15px 10px;
  margin: 0px 8px;
  width:30%;
}
.dg_port.active{
  background-color: #fee6b6;
  color:#b90606;
}
.digi_tab a:hover{
  color:#b90606;
  border: 1px solid #fff;
  border-radius:20px;
  /* background-color: #fff; */
}
.digi_tab a.active{
  color: #b90606;
  border: 1px solid #ffcc66;
  border-radius:20px;
  background-color: #ffcc66;
}
.digi_tab a.active:hover{
  color: #b90606; 
  border: 1px solid #ffcc66;
  border-radius:20px;
  background-color: #ffcc66;

}
.dg-tran .card {
  border: 1px solid #ccc;
  margin-top: 0.7%;
  padding: 20px 10px;
  margin-bottom:0%;
  border-radius: 15px;
  box-shadow: none;
}
.prof_det{
  overflow-y: auto;
  overflow-y: auto;
}
.tran_div{
  display: flex;
  text-align: center;
  flex-direction: row;
}
.tran_div .tran_d{
  padding-top:1%;
  display: flex;
  flex-direction: column;
  width:50%;
  font-size:16px;
  text-align: center;
}
.tran_d.down div div{
  margin-top:3px;
  cursor:pointer;
  font-size:19px;
}
.border_tran{
  position:relative;
}
.border_tran::after{
  content:"";
  position:absolute;
  right:0;
  top:32px;
  height:18px;
  border-right :2px solid #ccc;
}

.tab {
  padding: 10px 30px;
  margin-left:100px;
  margin-right:100px;
  font-weight: bold;
  font-size: 23px;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab.active {
  border-color: #b90606;
  color: #b90606;
}

.content-slider {
  display: flex;
  transition: transform 0.3s ease-in-out;
  width: 200%;
}
.content-panel {
  width: 50%;
  flex-shrink: 0;
}
.metal-select {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 20px;
  gap: 15px;
  font-size: 20px;
  /* font-weight: bold; */
  font-weight: 700;
  position: relative;
}

.metal-select div {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  background: #f9f9f9;
  margin: 0 10px;
  cursor: pointer;
  transition: 0.3s;
  transition: all 0.3s ease;
  z-index: 1;
  position: relative;

}
.content-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.metal-select .active {
  background: #ffcc66;
  color: #b90606;
}

.inputs {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.inputs input {
  flex: 1;
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 18px;
}

.quick-btns {
  display: flex;
  gap: 6%;
  margin-bottom: 20px;
  justify-content: center;
}

.quick-btns button {
  /* background: #f0f0f0; */
  /* border: none; */
  padding: 10px 68px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

/* .quick-btns button:hover {
  background: #999;
  color: #fff;
}
.quick-btns button.active {
  background: #666;
  color: #fff;
} */

.buy-button {
  background: #ffcc66;
  border: none;
  padding: 12px 40px;
  color: #b90606;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.buy-button:hover {
  background: #ffb114;
}

.met-rate{
    display:flex;
    /* color:#b90606; */
    font-size:25px;
    margin-bottom:2%;
    margin-left:17%;
    font-weight:bold;
}
.met-rate div{
    margin-left:8%;
}
.met-rate div p{
  font-size:20px;
  margin-bottom:0px;
}
.hor-arrow{
  display:inline;
}
.ver-arrow{
  display:none;
}
.met-rate div .p_gst{
  font-size:13px;
  font-weight:normal;
  color: #444;
}
.sum-b{
  padding-top:10px;
  padding-bottom:10px;
  /* height:48px; */
  font-size:16px;
  border:1px solid #d3d2d2;
  /* background-color: #fff; */
  border-radius: 8px;
  display: flex;
  flex-direction:row;
  width:100%;
}
.sum-b .text-left{
  width:65%;
}
.sum-b .text-right{
  width:35%;
}
.sum-buy{
  margin-top:5px;
  padding-top:10px;
  /* height:48px; */
  color: #666;
  font-size:17px;
  border:1px solid #d3d2d2;
  /* background-color: #fff; */
  border-radius: 8px;
}
.sum-buy .sum-buy-div{
  display: flex;
  flex-direction:row;
}
.sum-buy .sum-buy-div:hover{
  background-color: #f1f1f1;
}
.sum-buy .sum-buy-div div{
  width:50%;
}
.tran-port{
  font-weight: bold;
  padding:10px;
  font-size:18px;
}
.sell_sum{
  display:flex;
  padding-left:50px;
  padding-right:50px;
}
.sell_sum .sell_s{
  width:50%;
 
}
.sell_sum .acc{
  margin-left:15px;
}
.sell_sum .acc .head_acc{
  font-size:22px;
}

.sell_s .sum-sell-div{
  display: flex;
  flex-direction:row;
}
.sum-sell{
  margin-top:5px;
  padding:22px;
  color: #666;
  font-size:17px;
  border:1px solid #d3d2d2;
  border-radius: 8px;
}
.sell_s .sum-sell-div div{
  width:50%;
}

.sel_fixed_div{
  position:fixed; 
  z-index:1; 
  bottom:0; 
  left:0; 
  width:100%; 
  height:100px; 
  box-shadow:0 0 10px rgba(0,0,0,0.2);
}
.sell_proceed{
  display:flex;
  padding-left:25px;
  padding-right:25px;
  padding-top:24px;
} 

.sell_proceed div .sel{
  font-size: 17px;
}
.sell_proceed div .sel_amt{
  margin-top:2px;
  font-size: 30px;
}

@media (max-width: 768px) {
  .inputs {
    flex-direction: column;
  }

  .quick-btns {
    flex-direction: column;
  }

  .quick-btns button {
    width: 100%;
  }
  .met-rate{
    flex-direction: column;
    margin-left:0%;
  }
  .met-rate div{
    margin-bottom:8%;
    margin-left:0%;
  }
  .metal-select {
    gap: 4px;
    font-size: 20px;
  }
  
  .metal-select div {
    padding: 10px;
    margin: 0 1px;  
  }
  .tab{
    margin-left:5px;
    margin-right:5px;
  }
  .quick-btns button {
    margin: 5px 0px;
  }
  .hor-arrow{
    display:none;
  }
  .ver-arrow{
    display:inline;
  }
  .digi_table{
    display:flex;
    flex-direction:column;
  }
  .dg_tr{
    width:700px
  }
  .tran_div{
    display: flex;
    flex-direction: column;
  }
  .tran_div .tran_d{
    display:flex;
    text-align: left;
    flex-direction: row;
    width:100%;
    padding-top:10px;
  }
  .tran_div .tran_d div{
    width:50%;
  }
  .border_tran::after{
    border-right :none;
  }
  .port_but span{
    margin-right:35px;
  }
  .port_cont{
    width: 98%;
  }
  .tran_d.down div{
    text-align:center;
  }
  .tran_d.down div{
    width:100%;
  }
 
  .sum-buy{
    width:90%;
    font-size:15px;
  }
  .sum-b{
    width:97.5%;
    /* height:auto; */
  }
  .row-view{
    flex-direction: column;
  }
  .dg_port{
    /* padding:15px 0px 15px 15px; */
    margin-top:10px;
    width:100%;
  }
  .sell_sum{
    display:flex;
    flex-direction:column;
    padding-left:0px;
    padding-right:0px;
  }
  .sell_sum .sell_s{
    width:100%;
   
  }
  .sell_sum .sell_s.acc{
    margin-left:0px;
    margin-top:15px;
    margin-bottom:15px;
  }
  .sell_proceed{
    padding-left:6px;
    padding-right:6px;
    padding-top:20px;
  } 

  .sell_proceed div .sel{
    font-size: 14px;
  }
  .sell_proceed div .sel_amt{
    margin-top:2px;
    font-size: 20px;
  }
  .sel_fixed_div{
    height:152px; 
  }
  .sell_sum .acc .head_acc{
    font-size:18px;
  }
}
