/* DASHBOARD LAYOUT */
.dashboard-page {
  background: #f6f7fb;
  padding: 40px 20px;
}

.dashboard-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 25px;
}

/* SIDEBAR */
.dashboard-sidebar {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.dash-title {
  font-size: 20px;
  margin-bottom: 20px;
}

.dash-nav a {
  display: block;
  padding: 12px 15px;
  margin-bottom: 6px;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.dash-nav a.active,
.dash-nav a:hover {
  background: linear-gradient(135deg,#7b2ff7,#f107a3);
  color: #fff;
}

.dash-nav .logout {
  margin-top: 15px;
  color: #d80000;
}

/* MAIN CONTENT */
.dashboard-content {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.dashboard-header h1 {
  font-size: 26px;
  margin-bottom: 5px;
}

.dashboard-header p {
  color: #777;
  margin-bottom: 30px;
}

/* STATS */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

.stat-card {
  background: linear-gradient(135deg,#7b2ff7,#f107a3);
  color: #fff;
  padding: 22px;
  border-radius: 16px;
  text-align: center;
}

.stat-card h4 {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.stat-card span {
  display: block;
  font-size: 30px;
  font-weight: 700;
  margin-top: 8px;
}

/* QUICK ACTIONS */
.dashboard-section h3 {
  margin-bottom: 15px;
}

.quick-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.quick-links a {
  padding: 12px 20px;
  border-radius: 25px;
  background: #f1f2f9;
  text-decoration: none;
  font-weight: 600;
  color: #333;
}

.quick-links a:hover {
  background: linear-gradient(135deg,#7b2ff7,#f107a3);
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .dashboard-container {
    grid-template-columns: 1fr;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}








/* TABLE STYLES */
.table-wrap {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  /*margin-top: 20px;*/
}

.orders-table th {
  text-align: left;
  padding: 14px;
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #eee;
}

.orders-table td {
  padding: 14px;
  font-size: 15px;
  border-bottom: 1px solid #f1f1f1;
}

.orders-table tr:hover {
  background: #fafafa;
}

/* STATUS BADGES */
.status {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
}

.status.paid {
  background: #e6fff1;
  color: #00a65a;
}

.status.pending {
  background: #fff5e6;
  color: #f39c12;
}

.status.failed {
  background: #ffeaea;
  color: #d80000;
}

/* EMPTY STATE */
.empty-box {
  text-align: center;
  padding: 60px 20px;
  background: #f9fafc;
  border-radius: 16px;
}



.btn-primary.small {
  padding: 10px 22px;
  font-size: 14px;
}






/* LICENSE TABLE */
.licenses-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.licenses-table th {
  text-align: left;
  padding: 14px;
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #eee;
}

.licenses-table td {
  padding: 14px;
  font-size: 15px;
  border-bottom: 1px solid #f1f1f1;
  vertical-align: middle;
}

.licenses-table tr:hover {
  background: #fafafa;
}

/* MONOSPACE LICENSE KEYS */
.mono {
  font-family: "Courier New", monospace;
  font-size: 14px;
  background: #f6f7fb;
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-block;
}

/* EMPTY STATE */
.empty-box {
  text-align: center;
  padding: 60px 20px;
  background: #f9fafc;
  border-radius: 16px;
}


.empty-box p {
  font-size: 16px;
  margin-bottom: 25px;
}

/* STATUS COLORS */
.status.active {
  background: #e6fff1;
  color: #00a65a;
}

.status.blocked {
  background: #ffeaea;
  color: #d80000;
}







/* DOWNLOADS */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.download-card {
  background: #fff;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 8px 30px rgba(0,0,0,.05);
  transition: transform .2s ease;
}

.download-card:hover {
  transform: translateY(-4px);
}

.download-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.license-small {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
}

.license-small span {
  font-family: monospace;
}

.btn-primary.full {
  width: 100%;
  display: block;
  text-align: center;
}




/*Invoice CSS*/

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
}
.table th, .table td {
  border-bottom: 1px solid #eee;
  padding: 14px;
}





.inline-form {
  display: flex;
  gap: 8px;
}
.inline-form input {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
}
.badge.ok {
  background: #e7f8ef;
  color: #1a7f37;
  padding: 6px 10px;
  border-radius: 6px;
}
.badge.bad {
  background: #fdecec;
  color: #b00020;
}
.mono {
  font-family: monospace;
}








.form-box {
  /*max-width: 620px;*/
  background: #fff;
  /*padding: 30px;*/
  padding: 0 20px;
  border-radius: 12px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.form-box input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.form-box.grid {
  display: grid;
  gap: 14px;
}

.btn-primary.full {
  width: 100%;
}

.alert.success {
  background: #e7f8ed;
  padding: 12px;
  border-radius: 8px;
  color: #146c43;
  margin-bottom: 10px;
}

.alert.error {
  background: #fde2e2;
  padding: 12px;
  border-radius: 8px;
  color: #842029;
}






/* ========================================
   MOBILE IMPROVEMENTS (ORDERS PAGE)
======================================== */

/* 1️⃣ Better spacing on small devices */
@media (max-width: 768px) {

  .dashboard-page {
    padding: 20px 15px;
  }

  .dashboard-content {
    padding: 20px;
  }

  .dashboard-header h1 {
    font-size: 22px;
  }

  .dashboard-header p {
    font-size: 14px;
  }

}


/* 2️⃣ Sidebar improvements */
@media (max-width: 900px) {

  .dashboard-sidebar {
    padding: 18px;
  }

  .dash-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .dash-nav a {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
    padding: 10px;
    font-size: 14px;
  }

  .dash-nav .logout {
    flex: 1 1 100%;
  }
}


/* 3️⃣ Orders table mobile card style */
@media (max-width: 768px) {

  .orders-table thead {
    display: none;
  }

  .orders-table,
  .orders-table tbody,
  .orders-table tr,
  .orders-table td {
    display: block;
    width: 100%;
  }

  .orders-table tr {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,.05);
    padding: 15px;
    margin-bottom: 15px;
  }

  .orders-table td {
    border: none;
    padding: 8px 0;
    font-size: 14px;
  }

  .orders-table td:before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 3px;
  }

}



/* ========================================
   ORDER ACTION IMPROVEMENT
======================================== */

/* Desktop improvement */
.orders-table td[data-label="Action"] {
  vertical-align: middle;
}

/* Make action buttons cleaner */
.orders-table td[data-label="Action"] .btn-primary {
  border-radius: 30px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
}

/* Paid badge style */
.paid-label {
  display: inline-block;
  background: #e6fff1;
  color: #00a65a;
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
}

/* Mobile full width button */
@media (max-width: 768px) {

  .orders-table td[data-label="Action"] {
    margin-top: 10px;
  }

  .orders-table td[data-label="Action"] .btn-primary {
    width: 100%;
    text-align: center;
    padding: 14px;
    
  }

  .paid-label {
    width: 100%;
    text-align: center;
  }

}



/* ========================================
   LICENSE PAGE DESIGN
======================================== */

/* License card */
.license-card {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  transition: transform .2s ease;
}

.license-card:hover {
  transform: translateY(-3px);
}

.license-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.license-card p {
  margin-bottom: 10px;
  font-size: 14px;
  color: #555;
}

.license-card hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #eee;
}

.license-card h4 {
  font-size: 16px;
  margin-bottom: 10px;
}




/* Domain list */
.domain-list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.domain-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f6f7fb;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}



/* Activate form */
.activate-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.activate-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.activate-form input:focus {
  border-color: #7b2ff7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(123,47,247,0.1);
}



.limit-reached {
  background: #fff5e6;
  color: #f39c12;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
}



@media (max-width: 768px) {

  .license-card {
    padding: 20px;
  }

  .domain-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .activate-form {
    flex-direction: column;
  }

  .activate-form button {
    width: 100%;
  }

}



.inline-domain-form {
  display: inline;
}




/* ========================================
   INVOICES PAGE DESIGN
======================================== */

/* Header spacing */
.dashboard-content h1 {
  font-size: 26px;
  margin-bottom: 25px;
}

/* Invoice table enhancement */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,.05);
}

.table thead {
  background: #f6f7fb;
}

.table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 14px;
  color: #666;
  border-bottom: 1px solid #eee;
}

.table td {
  padding: 16px 18px;
  font-size: 14px;
  border-bottom: 1px solid #f1f1f1;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover {
  background: #fafafa;
}

/* Download Button improvement */
.table .btn-outline {
  padding: 8px 16px;
  border-radius: 25px;
  border: 1px solid #7b2ff7;
  color: #7b2ff7;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s ease;
}

.table .btn-outline:hover {
  background: linear-gradient(135deg,#7b2ff7,#f107a3);
  color: #fff;
  border-color: transparent;
}



/* ========================================
   INVOICES MOBILE VIEW
======================================== */

@media (max-width: 768px) {

  .table thead {
    display: none;
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table tr {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,.05);
    padding: 15px;
    margin-bottom: 15px;
  }

  .table td {
    border: none;
    padding: 6px 0;
    font-size: 14px;
  }

  .table td:before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
  }

  .table .btn-outline {
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }
}



/* ========================================
   FIX INVOICE DOWNLOAD MOBILE STYLE
======================================== */

@media (max-width: 768px) {

  /* Add spacing between label and button */
  .table td[data-label="Download"] {
    margin-top: 12px;
  }

  /* Make button full width and cleaner */
  .table td[data-label="Download"] .btn-outline {
    width: 100%;
    display: block;
    text-align: center;
    padding: 14px;
    font-size: 14px;
    border-radius: 30px;
  }

  /* Add slight top spacing from label */
  .table td[data-label="Download"]:before {
    margin-bottom: 8px;
  }

}



.table td[data-label="Download"] .btn-outline {
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  background: linear-gradient(135deg,#7b2ff7,#f107a3);
  color: #fff;
  border: none;
  transition: all .25s ease;
}

.table td[data-label="Download"] .btn-outline:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(123,47,247,.35);
}




/* ===============================
   TOTAL SPENT BOX
================================ */
.spent-box {
  background: linear-gradient(135deg,#00c6ff,#0072ff);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  padding: 25px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  margin-bottom: 20px;
}

/* Improve section spacing */
.dashboard-section {
  margin-top: 30px;
}

/* Enhance recent orders table */
.orders-table {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,.05);
}



/* Upgrade badge */
.upgrade-badge {
  background: #fff5e6;
  color: #f39c12;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 20px;
  margin-left: 8px;
  font-weight: 600;
}

/* Coupon used */
.coupon-used {
  color: #7b2ff7;
  font-size: 12px;
}

/* Refunded status */
.status.refunded {
  background: #e8f0ff;
  color: #0056d2;
}

/* Refunded label */
.refunded-label {
  background: #e8f0ff;
  color: #0056d2;
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;

}

/* Improve mono small text */
.mono.small {
  font-size: 12px;
  background: #f6f7fb;
  padding: 5px 8px;
  border-radius: 6px;
  display: inline-block;
}




/* Plan badge */
.plan-badge {
  background: linear-gradient(135deg,#7b2ff7,#f107a3);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 8px;
  font-weight: 600;
}

/* Improve mono display */
.mono {
  word-break: break-all;
}

/* License card spacing fix */
.license-card {
  margin-bottom: 25px;
}




/* ===============================
   FIX PLAN BADGE MOBILE BREAK
================================= */

/* Keep title + badge aligned properly */
.license-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Fix badge text breaking */
.plan-badge {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 25px;
}

/* Mobile improvement */
@media (max-width: 480px) {

  .license-card h3 {
    font-size: 20px;
    gap: 8px;
  }

  .plan-badge {
    font-size: 11px;
    padding: 5px 12px;
  }

}




@media (max-width: 480px) {

  .license-card h3 {
    flex-direction: column;
    align-items: flex-start;
  }

  .plan-badge {
    margin-top: 5px;
  }

}


/* ===============================
   DOWNLOAD ICON STYLE
================================= */

.download-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* Improve small details */
.download-card .license-small {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.download-card .mono {
  font-family: monospace;
  background: #f6f7fb;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  display: inline-block;
  word-break: break-all;
}

/* Mobile improvements */
@media (max-width: 768px) {
  .download-card {
    padding: 20px;
  }

  .download-icon {
    width: 50px;
    height: 50px;
  }

  .download-card h3 {
    font-size: 16px;
  }
}




/* ===============================
   DOWNLOAD THUMB AREA
================================= */

.download-thumb {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-icon,
.download-image {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 12px;
}

/* Product image slightly bigger */
.download-image {
  object-fit: cover;
}

/* Letter fallback */
.download-letter {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: linear-gradient(135deg,#7b2ff7,#f107a3);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile */
@media (max-width: 768px) {
  .download-icon,
  .download-image,
  .download-letter {
    width: 55px;
    height: 55px;
  }
}




/* Improve invoice mono number */
.mono.small {
  font-size: 12px;
  background: #f6f7fb;
  padding: 5px 8px;
  border-radius: 6px;
  display: inline-block;
}

/* Slight spacing fix on mobile */
@media (max-width: 768px) {
  .table td[data-label="Download"] {
    margin-top: 10px;
  }
}




/* Address Select Styling */
.form-box select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  background: #fff;
}

.form-box select:focus {
  border-color: #7b2ff7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(123,47,247,0.1);
}





/* Profile page enhancement */
.profile-form hr {
  margin: 25px 0;
  border: none;
  border-top: 1px solid #eee;
}

.password-title {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 600;
}

.badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.badge.verified {
  background: #e6fff1;
  color: #00a65a;
}

.badge.not-verified {
  background: #fff5e6;
  color: #f39c12;
}

/* Profile static section layout */
.profile-static-info {
  display: grid;
  gap: 15px;
}

/* Mobile Improvements */
@media (max-width: 768px) {

  .profile-form {
    padding: 5px;
  }

  .password-title {
    font-size: 15px;
  }
}




select {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  width: 100%;
}

select:focus {
  border-color: #7b2ff7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(123,47,247,0.1);
}






/* Upgrade History CSS */
.upgrade-history-box {
  background: #f6f7fb;
  padding: 14px;
  border-radius: 12px;
  margin-top: 12px;
  font-size: 13px;
}

.upgrade-history-list {
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
}

.upgrade-history-list li {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.history-label {
  font-weight: 600;
  color: #7b2ff7;
}




/* Pagination CSS */
.pagination {
  margin-top: 30px;
  text-align: center;
}

.pagination a {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  background: #f1f2f9;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: #333;
}

.pagination a.active-page,
.pagination a:hover {
  background: linear-gradient(135deg,#7b2ff7,#f107a3);
  color: #fff;
}



/* ===============================
   ENHANCED PAGINATION DESIGN
   (Does NOT change your colors)
================================= */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 35px;
  flex-wrap: wrap;
}

/* Page buttons */
.pagination a {
  min-width: 42px;
  text-align: center;
  padding: 10px 16px;
  border-radius: 12px;
  transition: all .2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,.04);
}

/* Slight lift effect */
.pagination a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* Active page more premium */
.pagination a.active-page {
  box-shadow: 0 6px 20px rgba(123,47,247,.3);
}

/* Prev / Next buttons slightly wider */
.pagination .page-nav {
  padding: 10px 18px;
  font-weight: 600;
}

/* Dots styling */
.pagination .dots {
  padding: 10px 8px;
  color: #aaa;
  font-weight: 600;
}

/* Improve spacing on mobile */
@media (max-width: 768px) {

  .pagination {
    gap: 8px;
  }

  .pagination a {
    padding: 8px 12px;
    font-size: 14px;
  }

  .pagination .page-nav {
    padding: 8px 14px;
  }
}













/* ===============================
   ORDER DETAILS PAGE
================================= */

.order-box {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.order-box h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.order-product {
  background: #f6f7fb;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 10px;
}




/* ========================================
   SIMPLE DOWNLOAD TABLE (VIEW ORDER)
======================================== */

.download-table {
  margin-top: 15px;
}

.download-table .btn-download {
  padding: 8px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg,#7b2ff7,#f107a3);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all .2s ease;
}

.download-table .btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(123,47,247,.3);
}





/* =========================================
   VIEW ORDER PAGE PERFECT ALIGN FIX
========================================= */

/* Improve section spacing */
.order-box h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Better HR spacing */
.order-box hr {
  margin: 25px 0;
  border: none;
  border-top: 1px solid #eee;
}

/* =========================================
   ORDER ACTION FIX
========================================= */

.order-box .paid-label,
.order-box .refunded-label,
.order-box .btn-primary.small {
  margin-top: 10px;
  display: inline-block;
}

/* Make action button premium */
.order-box .btn-primary.small {
  border-radius: 30px;
  font-weight: 600;
  padding: 10px 22px;
}

/* =========================================
   DOWNLOAD TABLE FIX
========================================= */

.download-table {
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
}

.download-table th {
  background: #f6f7fb;
  font-weight: 600;
}

.download-table td {
  vertical-align: middle;
}

/* Download button alignment */
.download-table td:last-child {
  text-align: left;
}

.download-table .btn-download {
  min-width: 120px;
  text-align: center;
}

/* =========================================
   PAYMENT INFO ALIGNMENT
========================================= */

.order-box p {
  font-size: 14px;
  margin-bottom: 8px;
}

.order-box p strong {
  display: inline-block;
  min-width: 120px;
}

/* Invoice button spacing */
.order-box .btn-outline.small {
  margin-top: 12px;
  border-radius: 25px;
  font-weight: 600;
  padding: 8px 18px;
}

/* =========================================
   BACK BUTTON FIX
========================================= */

.dashboard-content > .btn-primary.small {
  margin-top: 30px;
  border-radius: 30px;
  font-weight: 600;
  padding: 12px 28px;
  display: inline-block;
}

/* =========================================
   MOBILE PERFECT FIX
========================================= */

@media (max-width: 768px) {

  .order-box {
    padding: 20px;
  }

  .download-table td:last-child {
    text-align: left;
    margin-top: 8px;
  }

  .download-table .btn-download {
    width: 100%;
  }

  .order-box p strong {
    min-width: auto;
  }

  .dashboard-content > .btn-primary.small {
    width: 100%;
    text-align: center;
  }
}




/* ========================================
   PAYMENT INFO RESPONSIVE LINE STYLE
======================================== */

.payment-info-line {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.payment-info-line .pay-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.payment-info-line .pay-item strong {
  font-weight: 600;
  white-space: nowrap;
}

.payment-info-line .btn-outline.small {
  margin-top: 0;
  padding: 6px 16px;
  border-radius: 25px;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  .payment-info-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .payment-info-line .pay-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .payment-info-line .btn-outline.small {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
  }

}



.payment-info-line .btn-outline.small {
    padding: 8px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #7b2ff7, #f107a3);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all .2s ease;
    min-width: 120px;
    text-align: center;
}



/* License key table improvement */
.licenses-table {
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
}

.licenses-table th {
  background: #f6f7fb;
  font-weight: 600;
}

.licenses-table td {
  vertical-align: middle;
}






/* Download table extra columns fix */
.download-table th,
.download-table td {
  text-align: left;
  font-size: 14px;
}

.download-table td {
  vertical-align: middle;
}

@media (max-width: 768px) {
  .download-table td {
    padding: 10px 0;
  }
}




/* =====================================================
   VIEW ORDER PAGE PREMIUM UPGRADE (SAFE SCOPED)
   Only affects .order-box area
====================================================== */

/* Download product layout */
.order-box .download-product-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-box .download-title {
  font-size: 15px;
  font-weight: 600;
}

/* Meta info style */
.order-box .download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #666;
}

.order-box .download-meta span strong {
  color: #111;
}

/* Premium row hover */
.order-box .download-table tr:hover {
  background: #fafafa;
  transform: translateY(-1px);
  transition: all .2s ease;
}

/* Premium download button */
.order-box .btn-download {
  transition: all .25s ease;
}

.order-box .btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(123,47,247,.35);
}

/* Invoice button premium hover */
.order-box .btn-outline.small {
  transition: all .25s ease;
}

.order-box .btn-outline.small:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(123,47,247,.35);
}

/* License table enhancement */
.order-box .licenses-table {
  box-shadow: 0 8px 25px rgba(0,0,0,.04);
  border-radius: 16px;
  overflow: hidden;
}

/* License row hover */
.order-box .licenses-table tr:hover {
  background: #fafafa;
  transition: all .2s ease;
}

/* Upgrade history styling improvement */
.order-box .upgrade-history-box {
  background: #fff;
  border-left: 4px solid #7b2ff7;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
}

/* Section headings premium spacing */
.order-box h3 {
  position: relative;
  padding-left: 12px;
}

.order-box h3:before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 70%;
  background: linear-gradient(135deg,#7b2ff7,#f107a3);
  border-radius: 4px;
}

/* Responsive improvements */
@media (max-width: 768px) {

  .order-box .download-meta {
    flex-direction: column;
    gap: 6px;
  }

  .order-box .btn-download {
    width: 100%;
  }

}




/* =========================================
   DOWNLOAD SECTION – HEADER REMOVED STYLE
   Safe: Only affects .order-box download table
========================================= */

.order-box .download-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  box-shadow: none;
  margin-top: 15px;
}

.order-box .download-table tr {
  background: #f6f7fb;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
}

.order-box .download-table td {
  padding: 18px;
  border: none;
}

.order-box .download-table td:last-child {
  text-align: right;
  width: 160px;
}

@media (max-width: 768px) {
  .order-box .download-table td:last-child {
    text-align: left;
    width: 100%;
  }

  .order-box .download-table tr {
    display: block;
    padding: 15px;
  }

  .order-box .download-table td {
    display: block;
    padding: 5px 0;
  }
}


.dashboard-content {
  overflow-x: hidden;
}

.order-box {
  overflow-x: auto;
}



/* =========================================
   LICENSE HISTORY LINK IMPROVEMENT
   (Safe – Only inside Order Box)
========================================= */

.order-box .upgrade-history-list a {
  text-decoration: none; /* remove underline */
  font-weight: 600;
  background: linear-gradient(135deg,#7b2ff7,#f107a3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all .25s ease;
  position: relative;
}

/* Smooth hover glow */
.order-box .upgrade-history-list a:hover {
  transform: translateX(4px);
  text-shadow: 0 4px 12px rgba(123,47,247,.35);
}

/* Improve spacing */
.order-box .upgrade-history-list li {
  align-items: center;
}

/* Better label color */
.order-box .history-label {
  color: #555;
}



.order-box .upgrade-history-box {
  border-radius: 14px;
  background: linear-gradient(145deg,#ffffff,#f8f5ff);
}







