/* =====================================================
   DEALS TABS + TABLE – FRONTEND (TYPOGRAPHY TOKENS)
   ===================================================== */

/* 1) Typography + spacing tokens (EDIT THESE to match Figma) */
:root{
  --dt-card-radius: 12px;
  --dt-card-padding: 28px;

  /* Tabs */
  --dt-tab-size: 13px;          /* <-- match Figma */
  --dt-tab-weight: 600;
  --dt-tab-color: #0F172A;
  --dt-tab-muted: #475569;

  /* Table head */
  --dt-head-size: 13px;         /* <-- match Figma */
  --dt-head-weight: 600;
  --dt-head-color: #0F172A;

  /* Table body */
  --dt-body-size: 14px;         /* <-- match Figma */
  --dt-body-weight: 400;
  --dt-body-color: #64748B;

  /* CPU emphasis */
  --dt-cpu-weight: 600;
  --dt-cpu-color: #0F172A;

  /* Price */
  --dt-price-size: 28px;        /* <-- match Figma */
  --dt-price-weight: 700;
  --dt-price-color: #0F172A;
  --dt-price-suffix-size: 13px; /* <-- match Figma */
  --dt-price-suffix-weight: 600;
  --dt-price-suffix-color: #0F172A;

  /* Button */
  --dt-btn-size: 16px;          /* <-- match Figma */
  --dt-btn-weight: 600;
  --dt-btn-bg: #46B97C;
  --dt-btn-bg-hover: #3AA86C;
  --dt-btn-radius: 6px;
  --dt-btn-py: 9px;
  --dt-btn-px: 16px;

  /* Lines */
  --dt-line: #E6EEF5;
  --dt-line-soft: #EEF3F7;
}

/* ---------- Wrapper ---------- */
.deals-tabs-wrapper {
  background: #ffffff;
  border-radius: var(--dt-card-radius);
  
	font-family: "Inter", sans-serif;
 
}

/* ---------- Tabs ---------- */
.deals-tabs-nav {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--dt-line);
  margin-bottom: 28px;.
	  font-family: "Inter", sans-serif;
}

.deals-tabs-nav button {
  background: none;
  border: none;
  font-weight: var(--dt-tab-weight);
  font-size: var(--dt-tab-size);
  color: var(--dt-tab-muted);
  padding-bottom: 12px;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.deals-tabs-nav button.active {
  color: #22C55E;
  border-bottom: 2px solid #22C55E;
}

/* =====================================================
   DESKTOP TABLE LAYOUT
   ===================================================== */

.deals-table-head,
.deals-table-row {
  display: grid;
    grid-template-columns: 15% 15% 16% 14% 15% 10% 15%;
   align-items: center;
}
.gpu_dedicated_server  .deals-table-head,
.gpu_dedicated_server  .deals-table-row {
    grid-template-columns: 17% 20% 10% 14% 13% 11% 15%;
}

/* Header */
.deals-table-head {
      padding: 38px 0;
  font-size: var(--dt-head-size);
  font-weight: var(--dt-head-weight);
  color: var(--dt-head-color);
  border-bottom: 1px solid var(--dt-line);
}

/* Body rows */
.deals-table-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--dt-line-soft);
  font-size: var(--dt-body-size);
  font-weight: var(--dt-body-weight);
  color: var(--dt-body-color);
}
span.tenure {
    font-size: 21px;
    line-height: 21px;
    font-weight: 500;
}
/* CPU (first column) */
.deals-table-row > div{

     font-size: 21px;
    color: #697480;
      line-height: 28px;

}

.deals-table-row > div:last-child {
  text-align: center
}

.deals-table-row > div strong { display: block;   color: #697480;  font-weight: 700}

/* Price column */
.deals-table-row > div:nth-last-child(2) {
  font-weight: var(--dt-price-weight);
  font-size: var(--dt-price-size);
  color: #0d2239;
  white-space: nowrap;
}



/* Button */
.btn-buy {
  background: var(--dt-btn-bg);
  color: #ffffff !important;
 
  border-radius: var(--dt-btn-radius);
 
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  white-space: nowrap;
  transition: background 0.2s ease;
	  font-family: "Inter", sans-serif;
	font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 16px;
    padding: 16px 27px;
}

.btn-buy:hover {
  background: var(--dt-btn-bg-hover);
}


/* ================= TAB PANELS VISIBILITY ================= */

/* Hide all panels by default */
.deals-tab-panel {
       display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #e4eaf0;
    padding: 0 50px;
}

/* Show only active panel */
.deals-tab-panel.active {
      display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #e4eaf0;
    padding: 0 50px;
}


/* ================= TABS NAV ================= */

.deals-tabs-nav {
  display: flex;
  justify-content: center; /* center tabs */
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid #e6eef5;
  margin-bottom: 72px;
	 font-family: "Inter", sans-serif;
}

/* All tabs */
.deals-tabs-nav button {
      background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 24px;
    font-weight: 500;
    color: #0f172a;
    cursor: pointer;
    position: relative;
    font-weight: 600;
	 font-family: "Inter", sans-serif;
}

/* Hover */
.deals-tabs-nav button:hover {
  color: #fff; /* green */
}

/* Active tab (Figma-like) */
.deals-tabs-nav button.active,
.deals-tabs-nav button:hover 
 {
  color: #22C55E; /* green text */
  font-weight: 600;
  background-color: transparent !important
}




.deals-table-head  > div {

    font-size: 24px;
    font-weight: 500;
	 font-family: "Inter", sans-serif;
        color: #0d2239

}


.deals-table-row { position: relative; }

.deal-badge{
  position:absolute;
  top:-12px;
  left:-12px;
  background:#22c55e;
  color:#fff;
  font-size:11px;
  font-weight:700;
  padding:4px 8px;
  border-radius:4px;
  text-transform:uppercase;
  line-height:1;
}

.deals-table-row.wow-deal{
  background:#f0fdf4;
  border:1px solid #b7f7d0;
}





.dedicated-server-deal-table .deals-table-row.wow ,
.dedicated-server-deal-table .deals-table-row.bang-on

{
      background: #f4fff9;
   
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #c9ead8;
    position: relative;
       margin: 0 -80px;
    padding: 15px 80px;

}



.dedicated-server-deal-table .deals-table-row.bang-on {
 background: #eff7ff;
	border: 1px solid #c4cfda;
}


.dedicated-server-deal-table .deals-table-row.bang-on  .deal-badge {
    background: #3d6086;
}


.dedicated-server-deal-table .deals-table-row > div:nth-last-child(2) {
    font-size: 18px;
}
/* =====================================================
   MOBILE STACKED VIEW
   ===================================================== */

@media screen and (max-width: 1600px) { 


 .dedicated-server-deal-table .deals-table-row.wow ,
	.dedicated-server-deal-table .deals-table-row.bang-on {
     margin: 0 -60px;
    padding: 15px 60px;

}


}
@media screen and (max-width: 1199px) {
.deals-tabs-nav button {
	    font-size: 18px;

}

.deals-table-head > div,
.deals-table-row > div:nth-last-child(2) 
 {
	font-size: 18px; 

}

	.deals-table-row > div { 
    font-size: 16px;
    line-height: 20px;
}

span.tenure {
    font-size: 13px;
	line-height: 18px;  

}

	.btn-buy { 
   font-size: 15px;
    line-height: 15px;
    padding: 12px 22px;
} 

.deals-table-head {
	padding: 20px 0; 
}
}

@media (max-width: 640px) {



  .deals-tabs-wrapper { padding: 16px; }
  .deals-table-head { display: none; }
	
	
	.deals-tabs-nav { 
    gap: 10px;
		width: 100%;
    overflow: auto;
		margin-bottom: 30px;
 }

  .deals-table-row {
    display: block;
    border: 1px solid var(--dt-line);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
  }

  .deals-table-row > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: var(--dt-body-size);
  }

  .deals-table-row > div::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--dt-head-color);
  }

  .btn-buy {
    width: 100%;
    margin-top: 10px;
  }

	.deals-tabs-nav button {
 
    padding: 7px 10px;
    font-size: 14px;
}

	.deals-tab-panel.active {
      padding: 25px;

}
	.deals-table-row > div:nth-last-child(2) {
    font-size: 15px !important;
    line-height: 15px  !important;

}
}

@media (max-width: 480px) { 

.deals-tabs-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid #e6eef5;
    margin-bottom: 30px;
    font-family: "Inter", sans-serif;
    width: 100%;
    overflow-x: scroll;
}

.deals-tabs-nav button {
        padding: 9px 6px;
        font-size: 12px;
    }
}
