/* 
  FlexedataHub - Customer Dashboard CSS Stylesheet
  Theme: Dark mode aesthetic (#0d0f1a) with vibrant yellow (#0088ff / #0066cc) cards and green accents.
*/

:root {
  --bg-dark: #f7f9fc;          /* Light background */
  --bg-nav: #ffffff;          /* White navbar */
  --card-bg: #ffffff;         /* White cards */
  --card-border: #e2e8f0;     /* Light border */
  
  --primary-blue: #0056d2;    /* Vibrant blue */
  --primary-blue-hover: #004090;
  --accent-green: #28a745;
  --accent-green-hover: #218838;
  --danger-red: #dc3545;
  --text-white: #0d1b2a;      /* Dark text */
  --text-muted: #555555;      /* Muted grey */

  --font-family: 'Open Sans', sans-serif;
  --header-font: 'Montserrat', sans-serif;
  --nav-drawer-width: 280px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 60px; /* Space for fixed header */
}

/* TOP NAVIGATION BAR */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--bg-nav);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.drawer-toggle-btn {
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
}

.logo h2 {
  font-family: var(--header-font);
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.notification-container {
  position: relative;
}

.notif-bell-btn {
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 20px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
}

.notif-bell-btn:hover {
  transform: scale(1.1);
}

.notif-bell-btn .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--danger-red);
  color: var(--text-white);
  font-size: 10px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 10px;
  border: 1px solid var(--bg-dark);
}

/* NOTIFICATION DROPDOWN */
.notif-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  width: 320px;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
  z-index: 1100;
  overflow: hidden;
}

.notif-dropdown.active {
  display: flex;
}

.notif-dropdown .dropdown-header {
  padding: 12px 15px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-dropdown .dropdown-header h4 {
  font-family: var(--header-font);
  font-size: 14px;
}

.notif-dropdown .dropdown-header button {
  background: none;
  border: none;
  color: var(--primary-blue);
  font-size: 12px;
  cursor: pointer;
}

.notif-dropdown .dropdown-body {
  max-height: 250px;
  overflow-y: auto;
}

.notif-item {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.notif-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.notif-item .time {
  font-size: 10px;
  color: var(--text-muted);
  align-self: flex-end;
}

.notif-dropdown .empty-text {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* NAVIGATION DRAWER (LOGGED-IN SIDEBAR) */
.nav-drawer {
  position: fixed;
  top: 60px;
  left: calc(-1 * var(--nav-drawer-width));
  width: var(--nav-drawer-width);
  height: calc(100vh - 60px);
  background-color: var(--bg-nav);
  border-right: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  z-index: 900;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-drawer.active {
  left: 0;
}

/* Header profile info inside drawer */
.drawer-header-card {
  background-color: var(--primary-blue);
  color: #ffffff;
  margin: 15px;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.15);
}

.avatar-circle i {
  font-size: 32px;
}

.user-details h4 {
  font-family: var(--header-font);
  font-size: 14px;
  font-weight: 700;
}

.user-details p {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.8;
}

.drawer-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 15px;
  overflow-y: auto;
}

.menu-item {
  color: var(--text-white);
  text-decoration: none;
  font-family: var(--header-font);
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
  transition: all 0.2s ease;
}

.menu-item:hover, .menu-item.active {
  background-color: rgba(0, 86, 210, 0.08);
  color: var(--primary-blue);
}

.menu-item i {
  font-size: 16px;
}

.menu-info-box {
  background-color: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 12px;
  margin: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-info-box .info-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.menu-info-box .info-value {
  font-family: var(--header-font);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-blue);
}

.menu-section {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-section .section-title {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  padding-left: 12px;
  margin-bottom: 5px;
}

.submenu-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.submenu-item:hover {
  color: var(--text-white);
  background-color: rgba(0, 0, 0, 0.03);
}

.submenu-item i {
  font-size: 8px;
}

.text-mtn { color: #0088ff; }
.text-at { color: #0056D2; }
.text-telecel { color: var(--danger-red); }
.text-afa { color: #8A2BE2; }
.text-checker { color: #008080; }

.drawer-footer {
  margin-top: auto;
  padding-top: 15px;
}

.sign-out-btn {
  width: 100%;
  background-color: rgba(255, 59, 48, 0.1);
  color: var(--danger-red);
  border: 1px solid var(--danger-red);
  border-radius: 6px;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.sign-out-btn:hover {
  background-color: var(--danger-red);
  color: #000000;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  z-index: 850;
  display: none;
}

.drawer-overlay.active {
  display: block;
}

/* MAIN CONTENT WORKSPACE */
.main-content {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
}

.content-view {
  display: none;
  animation: fadeIn 0.4s ease;
}

.content-view.active {
  display: block;
}

.welcome-banner {
  margin-bottom: 25px;
}

.welcome-banner h2 {
  font-family: var(--header-font);
  font-size: 22px;
  color: var(--primary-blue);
}

.welcome-banner p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* METRICS CARDS (WALLET & POINTS) */
.wallet-metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .wallet-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-drawer {
    left: 0;
  }
  .main-content {
    margin-left: var(--nav-drawer-width);
    max-width: calc(1200px + var(--nav-drawer-width));
  }
  .drawer-toggle-btn {
    display: none;
  }
}

.metric-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-card.yellow-card {
  border-left: 5px solid var(--primary-blue);
}

.metric-card.green-card {
  border-left: 5px solid var(--accent-green);
}

.metric-card .card-icon {
  position: absolute;
  right: 25px;
  top: 25px;
  font-size: 32px;
  opacity: 0.15;
}

.metric-card h3 {
  font-family: var(--header-font);
  font-size: 15px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.metric-card .balance-value {
  font-family: var(--header-font);
  font-size: 30px;
  font-weight: 700;
}

.metric-card.yellow-card .balance-value {
  color: var(--primary-blue);
}

.metric-card.green-card .balance-value {
  color: var(--accent-green);
}

.points-worth {
  font-size: 12px;
  color: var(--text-muted);
}

.card-btn {
  align-self: flex-start;
  background-color: var(--primary-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: bold;
  cursor: pointer;
  font-size: 13px;
  margin-top: 8px;
  transition: all 0.3s;
}

.card-btn:hover {
  background-color: var(--primary-blue-hover);
}

.points-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.points-btn {
  background-color: rgba(0, 255, 102, 0.08);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.points-btn:hover {
  background-color: var(--accent-green);
  color: #000000;
}

/* NETWORK SELECTION CARDS GRID */
.section-header {
  margin-bottom: 20px;
}

.section-header h3 {
  font-family: var(--header-font);
  font-size: 18px;
}

.networks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 15px;
}

.network-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.network-card img {
  height: 60px;
  width: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.network-card h4 {
  font-family: var(--header-font);
  font-size: 14px;
  font-weight: 600;
}

.badge-status {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: bold;
}

.badge-status.online {
  background-color: rgba(0, 255, 102, 0.15);
  color: var(--accent-green);
}

.network-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-blue);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.1);
}

.network-card.mtn-yellow:hover h4 { color: #0088ff; }
.network-card.at-blue:hover h4 { color: #0056D2; }
.network-card.telecel-red:hover h4 { color: var(--danger-red); }
.network-card.afa-purple:hover h4 { color: #8A2BE2; }
.network-card.checker-teal:hover h4 { color: #008080; }

/* TABLES & HISTORY TRACKING */
.table-container {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.orders-table th {
  background-color: #222222;
  padding: 15px;
  font-family: var(--header-font);
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--card-border);
}

.orders-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.orders-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.loading-td {
  text-align: center;
  color: var(--text-muted);
  padding: 30px !important;
}

/* Badge status colors */
.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  text-transform: capitalize;
}

.status-badge.paid, .status-badge.completed, .status-badge.delivered {
  background-color: rgba(0, 255, 102, 0.15);
  color: var(--accent-green);
}

.status-badge.processing, .status-badge.pending {
  background-color: rgba(255, 215, 0, 0.15);
  color: var(--primary-blue);
}

.status-badge.being_processed {
  background-color: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
}

.status-badge.exported {
  background-color: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
}

.status-badge.failed, .status-badge.cancelled {
  background-color: rgba(255, 59, 48, 0.15);
  color: var(--danger-red);
}

.status-badge.manual_hold {
  background-color: rgba(255, 153, 0, 0.15);
  color: #FF9900;
}

/* FORMS (BULK & OTHER INPUTS) */
.bulk-form-container {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 25px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
}

@media (min-width: 768px) {
  .form-row {
    flex-direction: row;
  }
  .form-col {
    flex: 1;
  }
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

select, input, textarea {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 12px;
  color: var(--text-white);
  font-size: 14px;
  outline: none;
  font-family: var(--font-family);
  transition: all 0.3s;
}

select:focus, input:focus, textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.15);
}

textarea {
  resize: vertical;
}

.help-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* PAYMENT SEGMENT SELECTORS */
.payment-toggle-group {
  display: flex;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.02);
}

.toggle-segment {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 12px;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.toggle-segment.active {
  background-color: var(--primary-blue);
  color: #000000;
}

.cost-summary {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
}

.cost-summary .label {
  font-size: 11px;
  color: var(--text-muted);
}

.cost-summary .price-val {
  font-family: var(--header-font);
  font-size: 24px;
  color: var(--accent-green);
  font-weight: 700;
}

.cost-summary .points-val {
  font-size: 12px;
  color: var(--primary-blue);
}

/* BUTTONS */
.submit-btn {
  width: 100%;
  background-color: var(--primary-blue);
  color: #000000;
  border: none;
  border-radius: 6px;
  padding: 14px;
  font-family: var(--header-font);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover:not(:disabled) {
  background-color: var(--primary-blue-hover);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* MODAL CARDS */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  animation: slideIn 0.3s ease-out forwards;
  overflow: hidden;
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--header-font);
  font-size: 16px;
  color: var(--primary-blue);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 24px;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
}

.selected-package-block {
  background-color: rgba(0, 0, 0, 0.02);
  border: 1px dashed var(--primary-blue);
  border-radius: 6px;
  padding: 12px 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.selected-package-block .pkg-title {
  font-weight: 600;
  font-size: 13px;
}

.selected-package-block .pkg-price {
  font-family: var(--header-font);
  font-weight: bold;
  color: var(--accent-green);
  font-size: 15px;
}

.error-msg {
  font-size: 11px;
  color: var(--danger-red);
  margin-top: 4px;
}

/* TOAST notifications */
.toast-box {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 3000;
}

.toast-msg {
  background-color: #333333;
  color: #fff;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  animation: slideIn 0.3s ease forwards;
}

.toast-msg.success {
  border-left: 4px solid var(--accent-green);
}

.toast-msg.error {
  border-left: 4px solid var(--danger-red);
}

.toast-msg.info {
  border-left: 4px solid var(--primary-blue);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}



/* --- Animated PWA Install Prompt Banner (Dark Mode for Dashboard) --- */
.flexe-prompt-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: 90%;
  max-width: 600px;
  background: rgba(22, 25, 43, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(37, 41, 69, 0.8);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.flexe-prompt-container.flexe-prompt-show {
  display: flex !important;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.flexe-prompt-container.flexe-prompt-hide {
  transform: translateX(-50%) translateY(120px);
  opacity: 0;
}

.flexe-prompt-content {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 16px;
}

.flexe-prompt-icon-wrapper {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.flexe-prompt-app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flexe-prompt-info {
  flex-grow: 1;
}

.flexe-prompt-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.flexe-prompt-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  color: #8c94c0;
  line-height: 1.3;
}

.flexe-prompt-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.flexe-prompt-btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.flexe-prompt-btn-no {
  background: transparent;
  color: #8c94c0;
  border: 1px solid #252945;
}

.flexe-prompt-btn-no:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #ffffff;
}

.flexe-prompt-btn-yes {
  background: #0088ff;
  color: #000;
  font-weight: bold;
}

.flexe-prompt-btn-yes:hover {
  background: #0066cc;
  transform: translateY(-1px);
}

@media (max-width: 576px) {
  .flexe-prompt-container {
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 12px;
  }
  
  .flexe-prompt-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .flexe-prompt-icon-wrapper {
    display: none;
  }
  
  .flexe-prompt-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .flexe-prompt-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
  }
}

/* iOS Tutorial Tooltip */
.flexe-ios-tooltip {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  width: 90%;
  max-width: 360px;
  background: rgba(22, 25, 43, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 41, 69, 0.8);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.flexe-ios-tooltip.flexe-guide-show {
  display: block !important;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.flexe-ios-tooltip.flexe-guide-hide {
  transform: translateX(-50%) translateY(40px);
  opacity: 0;
}

.flexe-ios-content {
  position: relative;
}

.flexe-ios-close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #252945;
  color: #8c94c0;
  border: none;
  font-size: 1.2rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.flexe-ios-close-btn:hover {
  background: #334155;
  color: #fff;
}

.flexe-ios-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.flexe-ios-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.flexe-ios-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

.flexe-ios-intro {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  color: #8c94c0;
  margin-bottom: 14px;
  line-height: 1.4;
}

.flexe-ios-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flexe-ios-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  color: #8c94c0;
  line-height: 1.4;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #0088ff;
  color: #000;
  font-weight: bold;
  border-radius: 50%;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.flexe-ios-arrow {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(22, 25, 43, 0.98);
}

/* Mobile Responsive Tables for User Dashboard */
@media (max-width: 768px) {
  .table-container, .table-responsive {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  table {
    display: block !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
  }
  
  thead {
    display: none !important; /* Hide headers */
  }
  
  tbody {
    display: block !important;
    width: 100% !important;
  }
  
  tr {
    display: block !important;
    background: var(--card-bg, #ffffff) !important;
    border: 1px solid var(--card-border, #cbd5e1) !important;
    border-radius: 12px !important;
    margin-bottom: 1.5rem !important;
    padding: 1.25rem !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  td {
    display: block !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    font-size: 13px !important;
    text-align: left !important;
    width: 100% !important;
    white-space: normal !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  td:last-child {
    border-bottom: none !important;
  }
  
  td::before {
    content: attr(data-label) !important;
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: var(--text-muted, #8c94c0) !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.5px !important;
    text-align: left !important;
  }
  
  td:not([data-label])::before {
    display: none !important;
  }

  /* Alignment overrides for custom nested elements inside td */
  td * {
    text-align: left !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  td div {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }
}
