/**
 * Custom Dashboard Styles
 * Modern design with gradient header and card layout
 */

/* Load Google Web Font: Outfit */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap");

:root {
  /* Fallback content width if PHP injection is missing */
  --theme-content-width: 1038px;
}

/* Reset and base styles */
.qoene-custom-dashboard,
.qoene-custom-dashboard *,
.qoene-container,
.qoene-container *,
.qoene-dashboard,
.qoene-dashboard *,
.qoene-card,
.qoene-card *,
.qoene-form,
.qoene-form *,
.qoene-table,
.qoene-table *,
.qoene-nav-link,
.qoene-btn,
.qoene-alert,
.qoene-alert *,
.qoene-input,
.qoene-input * {
  box-sizing: border-box;
    font-family:
      "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "Noto Sans SC", "Noto Sans CJK SC", SimSun, "Apple Color Emoji", "Segoe UI Emoji" !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.qoene-custom-dashboard a {
  text-decoration: none !important;
}

.qoene-dashboard {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
  line-height: 1.6;
  margin: 24px 0;
  width: 100%;
  max-width: none;
  padding: 0 24px;
}

.qoene-dashboard-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
}

/* Top header with greeting */
.qoene-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #ffffff;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.qoene-dashboard-title {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  color: #1e293b;
}

.qoene-dashboard-user {
  text-align: right;
  font-size: 1rem;
  color: #1e293b;
}

.qoene-dashboard-user .qoene-shipping-mark {
  display: block;
  font-weight: 700;
}

/* Left Navigation Styles */
.qoene-dashboard-nav {
  width: 260px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  min-height: 100%;
  position: relative; /* Changed from sticky to relative */
}

.qoene-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Align navigation lists with surrounding content wrappers */
.entry-content .qoene-dashboard-nav ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.entry-content ul,
.entry-content ol {
  margin: revert;
  padding: revert;
  padding-left: 0;
}

.entry-content :where(h1, h2, h3, h4, h5, h6) {
  color: #ff4000;
}

.qoene-nav-item + .qoene-nav-item {
  margin-top: 6px;
}

.qoene-nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a;
  border: 1px solid transparent;
  background: transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qoene-nav-item.is-active .qoene-nav-link,
.qoene-nav-link:hover,
.qoene-nav-link:focus {
  background: #3b0061;
  color: #ffffff;
  border-color: rgba(59, 0, 97, 0.35);
  outline: none;
  box-shadow:
    0 10px 18px -12px rgba(59, 0, 97, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.qoene-nav-header {
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #ff4000 0%, #3b0061 100%);
  color: white;
}

.qoene-nav-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 17px;
  font-weight: 600;
}

.qoene-shipping-mark {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 500;
}

.qoene-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qoene-nav-item.active .qoene-nav-link {
  color: #ff4000;
  font-weight: 600;
}

.qoene-nav-logout .qoene-nav-link {
  color: #ef4444;
}

/* Main Content Area */
.qoene-dashboard-content {
  flex: 1;
  padding: 0;
  background-color: #f8fafc;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  width: 100%;
}

.qoene-dashboard-content > * {
  width: 100%;
}

/* Ensure tables span full width within dashboard content */
.qoene-dashboard-content .qoene-table {
  width: 100%;
}

/* Welcome Header with Gradient */
.qoene-welcome-header {
  background: linear-gradient(135deg, #ff4000 0%, #3b0061 100%);
  color: white;
  padding: 3rem 2rem;
  margin: 0;
  text-align: center;
}

.qoene-welcome-header h1 {
  margin: 0 0 1rem 0;
  font-size: 25px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.qoene-welcome-header p {
  margin: 0;
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Dashboard Cards Grid */
.qoene-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1380px;
  margin: 0 auto;
}

.qoene-dashboard-card {
  background: white;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

.qoene-dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

.qoene-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 32px;
  line-height: 1;
  color: var(--qoene-card-icon-color, var(--qoene-card-accent-color, #3b0061));
}

.qoene-card-icon .dashicons {
  color: inherit;
  font-size: 32px;
  width: 32px;
  height: 32px;
}

.qoene-card-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 30px;
  font-weight: 600;
  color: #1e293b;
}

.qoene-card-number {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0.5rem 0;
  line-height: 1;
}

.qoene-shipping-mark {
  font-size: 1.5rem !important;
  font-weight: 700;
  color: #667eea;
  letter-spacing: 1px;
}

.qoene-card-description {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.qoene-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.qoene-card-button:hover {
  transform: translateY(-1px);
  background: #000000;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
  text-decoration: none;
  color: white;
}

/* Section Headers */
.qoene-section-header {
  padding: 2rem 2rem 1rem;
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

.qoene-section-header h2 {
  margin: 0 0 0.5rem 0;
  font-size: 23px;
  font-weight: 600;
  color: #1e293b;
}

.qoene-section-header p {
  margin: 0;
  color: #64748b;
  font-size: 1rem;
}

/* Status Badges */
.qoene-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qoene-status-pending {
  background-color: #fef3c7;
  color: #d97706;
}

.qoene-status-processing {
  background-color: #dbeafe;
  color: #2563eb;
}

.qoene-status-completed {
  background-color: #d1fae5;
  color: #059669;
}

.qoene-status-cancelled {
  background-color: #fee2e2;
  color: #dc2626;
}

/* Enhanced shipping address section styles */
/* Shipping Address */
.qoene-shipping-mark-display {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.qoene-shipping-mark-display h3 {
  margin: 0 0 1rem 0;
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
}

.qoene-shipping-mark-code {
  font-size: 2.5rem;
  font-weight: 700;
  color: #667eea;
  letter-spacing: 2px;
  margin: 1rem 0;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 2px dashed #667eea;
}

.qoene-address-type-selector {
  padding: 0 2rem;
  margin-bottom: 1rem;
}

.qoene-tab-buttons {
  display: flex;
  background: white;
  border-radius: 8px;
  padding: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.qoene-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qoene-tab-btn:hover {
  background: #000000;
  color: #ffffff;
}

.qoene-tab-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.qoene-tab-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.qoene-addresses-container {
  padding: 0 2rem 2rem;
}

.qoene-address-content {
  display: none;
}

.qoene-address-content.active {
  display: block;
}

.qoene-addresses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.qoene-address-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.qoene-address-card h4 {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
}

.qoene-address-block {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.qoene-address-block:last-child {
  margin-bottom: 0;
}

.qoene-address-block .qoene-address-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.qoene-address-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qoene-address-item {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.qoene-address-item + .qoene-address-item {
  margin-top: 10px;
}

.qoene-mark-badge {
  display: inline-block;
  font-weight: 700;
  font-size: 20px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  margin-top: 6px;
}

.qoene-shipping-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 0 2rem 2rem;
}

.qoene-info-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.qoene-info-card h3 {
  margin: 0 0 1rem 0;
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
}

.qoene-instruction-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.qoene-instruction-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
  padding-left: 1.5rem;
}

.qoene-instruction-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: bold;
}

.qoene-instruction-list li:last-child {
  border-bottom: none;
}

.qoene-rates-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.qoene-rates-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.qoene-rate-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.qoene-rate-item:last-child {
  border-bottom: none;
}

.qoene-rate-label {
  color: #64748b;
  font-weight: 500;
}

.qoene-rate-value {
  font-weight: 600;
  color: #1e293b;
}

/* Enhanced account settings styles */
/* Account Settings */
.qoene-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.qoene-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.qoene-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.qoene-info-item label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.qoene-info-item span {
  color: #64748b;
  font-size: 0.875rem;
}

.qoene-account-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.qoene-shipping-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qoene-shipping-mark-display-small {
  text-align: center;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 2px dashed #667eea;
}

.qoene-mark-code {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

.qoene-billing-address {
  padding: 1rem;
  background: #f8fafc;
  border-radius: 6px;
}

.qoene-address-text {
  margin-top: 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
}

.qoene-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.qoene-stat-item {
  text-align: center;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
}

.qoene-stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.qoene-stat-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qoene-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.qoene-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #64748b;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.qoene-action-btn:hover {
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.qoene-action-btn .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

/* Enhanced shipping estimator styles */
/* Shipping Estimator */
.qoene-estimator-wrapper {
  padding: 2rem;
}

.qoene-estimator-form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.qoene-estimator-form { 
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.qoene-estimator-form .qoene-estimator-sections {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.5rem;
}

.qoene-estimator-form h3 {
  margin: 0 0 1.5rem 0;
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
}

.qoene-estimator-result {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  border-left: 4px solid #059669;
}

.qoene-estimator-result h3 {
  margin: 0 0 1.5rem 0;
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
}

.qoene-cost-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.qoene-cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.qoene-cost-item:last-child {
  border-bottom: none;
}

.qoene-cost-total {
  border-top: 2px solid #e2e8f0;
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
}

.qoene-cost-total .qoene-cost-value {
  color: #059669;
  font-size: 1.25rem;
}

.qoene-cost-label {
  color: #64748b;
  font-weight: 500;
}

.qoene-cost-value {
  font-weight: 600;
  color: #1e293b;
}

.qoene-estimate-note {
  margin-top: 1rem;
  padding: 1rem;
  background: #fef3c7;
  border-radius: 6px;
  border-left: 4px solid #f59e0b;
}

.qoene-estimate-note p {
  margin: 0;
  color: #92400e;
  font-size: 0.875rem;
}

.qoene-dimension-helper {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.qoene-dimension-helper h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.qoene-dimension-inputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  align-items: end;
}

.qoene-rate-info-container {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.qoene-rate-info h3 {
  margin: 0 0 1.5rem 0;
  font-size: 17px;
  font-weight: 600;
  color: #1e293b;
}

.qoene-rate-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.qoene-rate-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.qoene-rate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qoene-rate-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.qoene-rate-icon .dashicons {
  color: white;
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.qoene-rate-details h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
}

.qoene-rate-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #059669;
  margin-bottom: 1rem;
}

.qoene-rate-price span {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
}

.qoene-rate-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.qoene-rate-features li {
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: #64748b;
  position: relative;
  padding-left: 1rem;
}

.qoene-rate-features li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.qoene-exchange-rate {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.qoene-exchange-rate h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.qoene-exchange-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.qoene-currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

.qoene-equals {
  font-size: 1rem;
  color: #64748b;
}

.qoene-exchange-rate small {
  color: #64748b;
  font-size: 0.75rem;
}

/* Form Elements */
.qoene-form-group {
  margin-bottom: 1.5rem;
}

.qoene-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.qoene-form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.qoene-form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.qoene-form-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #64748b;
}

/* Buttons */
.qoene-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.qoene-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.qoene-btn-primary:hover {
  transform: translateY(-1px);
  background: #000000;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  text-decoration: none;
  color: white;
}

.qoene-btn-secondary {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.qoene-btn-secondary:hover {
  background: #000000;
  color: #ffffff;
  text-decoration: none;
}

.qoene-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* Empty States */
.qoene-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #64748b;
}

.qoene-empty-state .dashicons {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.qoene-empty-state h3 {
  margin: 0 0 0.5rem 0;
  font-size: 17px;
  font-weight: 600;
  color: #374151;
}

.qoene-empty-state p {
  margin: 0;
  font-size: 0.875rem;
}

/* Loading States */
.qoene-loading {
  text-align: center;
  padding: 2rem;
  color: #64748b;
}

.qoene-loading .dashicons {
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Messages */
.qoene-message {
  padding: 1rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.qoene-message-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.qoene-message-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Helper classes */
.qoene-muted {
  color: #475569;
}

.qoene-alert {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 10px;
  padding: 12px 14px;
}

/* Enhanced responsive design for mobile devices */
/* Responsive Design */
@media (max-width: 1200px) {
  .qoene-custom-dashboard {
    max-width: 100%;
    margin: 12px;
    padding: 0 8px;
  }

  .qoene-dashboard-inner {
    grid-template-columns: 240px 1fr;
    gap: 16px;
  }
}

@media (max-width: 1024px) {
  .qoene-dashboard-inner {
    grid-template-columns: 220px 1fr;
    gap: 12px;
  }

  .qoene-dashboard-nav {
    width: 220px;
  }

  .qoene-address-block .qoene-address-columns {
    grid-template-columns: 1fr;
    gap: clamp(0.75rem, 1.5vw, 1rem);
  }

  .qoene-estimator-form-container {
    grid-template-columns: 1fr;
  }

  .qoene-estimator-form .qoene-estimator-sections {
    grid-template-columns: 1fr;
  }

  .qoene-rate-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .qoene-service-info {
    grid-template-columns: 1fr;
  }

  .qoene-shipping-info {
    grid-template-columns: 1fr;
  }

  .qoene-dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .qoene-mobile-nav-toggle {
    display: block;
  }

  .qoene-custom-dashboard {
    margin: 0;
    padding: 0;
    min-height: 100vh;
  }

  .qoene-dashboard-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .qoene-dashboard-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    background: #f8f9fa;
  }

  .qoene-dashboard-nav.mobile-open {
    transform: translateX(0);
  }

  .qoene-dashboard-content {
    margin-left: 0;
    padding-top: 70px;
  }

  .qoene-welcome-header {
    padding: 1.5rem 1rem;
    margin-top: 0;
  }

  .qoene-welcome-header h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .qoene-welcome-header p {
    font-size: 0.95rem;
  }

  .qoene-dashboard-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }

  .qoene-dashboard-card {
    padding: 1.25rem;
  }

  .qoene-addresses-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .qoene-section-header {
    padding: 1.5rem 1rem 1rem;
  }

  .qoene-account-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .qoene-estimator-wrapper {
    padding: 1rem;
  }

  .qoene-estimator-form .qoene-estimator-sections {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }


  .qoene-info-grid {
    grid-template-columns: 1fr;
  }

  .qoene-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }

  .qoene-quick-actions {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .qoene-dimension-inputs {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
  }

  .qoene-tab-buttons {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .qoene-tab-button {
    flex: 1;
    min-width: 120px;
  }

  .qoene-account-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .qoene-rate-cards {
    grid-template-columns: 1fr;
  }

  .qoene-nav-item {
    padding: 12px 20px;
  }

  .qoene-nav-item i {
    margin-right: 12px;
  }
}

@media (max-width: 480px) {
  .qoene-dashboard-content {
    padding-top: 60px;
  }

  .qoene-welcome-header {
    padding: 1rem 0.75rem;
  }

  .qoene-welcome-header h1 {
    font-size: 1.5rem;
  }

  .qoene-welcome-header p {
    font-size: 0.9rem;
  }

  .qoene-dashboard-card {
    padding: 0.75rem;
  }

  .qoene-card-number {
    font-size: 1.25rem;
  }

  .qoene-shipping-mark-code {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
  }

  .qoene-nav-header {
    padding: 1.25rem 1rem;
  }

  .qoene-nav-header h2 {
    font-size: 23px;
  }

  .qoene-estimator-form,
  .qoene-estimator-result,
  .qoene-rate-info-container {
    padding: 0.75rem;
  }

  .qoene-exchange-display {
    flex-direction: column;
    gap: 0.5rem;
  }

  .qoene-dashboard-grid {
    padding: 0.75rem;
  }

  .qoene-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .qoene-dimension-inputs {
    grid-template-columns: 1fr;
  }

  .qoene-tab-button {
    min-width: 100px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .qoene-mobile-nav-toggle {
    top: 15px;
    left: 15px;
    padding: 10px;
  }
}

@media (max-width: 360px) {
  .qoene-welcome-header h1 {
    font-size: 1.25rem;
  }

  .qoene-dashboard-card {
    padding: 0.75rem;
  }

  .qoene-card-number {
    font-size: 1.25rem;
  }

  .qoene-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .qoene-quick-actions {
    grid-template-columns: 1fr;
  }
}

/* Mobile Navigation Toggle */
.qoene-mobile-nav-toggle {
  display: block;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  background: #3b0061;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.qoene-mobile-nav-toggle:hover {
  background: #000000;
}

@media (min-width: 769px) {
  .qoene-mobile-nav-toggle {
    display: none;
  }
}

/* Mobile Overlay */
.qoene-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.qoene-dashboard-engagement {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.qoene-dashboard-engagement--single {
  grid-template-columns: minmax(0, 1fr);
}

.qoene-dashboard-blog,
.qoene-dashboard-referral {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.qoene-dashboard-blog-header {
  margin: 0;
}

.qoene-dashboard-blog-title,
.qoene-dashboard-referral-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  text-align: left;
}

.qoene-dashboard-blog-list {
  --blog-item-height: 3.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  max-height: calc((var(--blog-item-height) * 5) + (12px * 4));
  overflow-y: auto;
  scrollbar-width: thin;
}

.qoene-dashboard-blog-list::-webkit-scrollbar {
  width: 6px;
}

.qoene-dashboard-blog-list::-webkit-scrollbar-thumb {
  background: #cbd5f5;
  border-radius: 999px;
}

.qoene-dashboard-blog-list::-webkit-scrollbar-track {
  background: transparent;
}

.qoene-dashboard-blog-item a {
  display: flex;
  align-items: center;
  min-height: var(--blog-item-height);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.qoene-dashboard-blog-item a:hover,
.qoene-dashboard-blog-item a:focus-visible {
  background: #e2e8f0;
  border-color: #cbd5f5;
  transform: translateY(-1px);
  outline: none;
}

.qoene-dashboard-blog-item-title {
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}

.qoene-dashboard-referral-message {
  margin: 0 0 16px;
  color: #475569;
}

.qoene-dashboard-referral-message p {
  margin: 0 0 10px;
}

.qoene-referral-form {
  margin-top: 8px;
}

.qoene-referral-input-group {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.qoene-referral-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.qoene-referral-label {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.qoene-referral-target {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  font-size: 15px;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
}

.qoene-referral-target:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  outline: none;
}

.qoene-referral-submit {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: #3b0061;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.qoene-referral-submit:hover,
.qoene-referral-submit:focus-visible {
  background: #500083;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(59, 0, 97, 0.25);
  outline: none;
}

.qoene-referral-helper {
  margin: 6px 0 0;
  font-size: 13px;
  color: #475569;
}

.qoene-referral-feedback {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #047857;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.qoene-referral-feedback.is-visible {
  opacity: 1;
}

.qoene-referral-feedback.is-error {
  color: #b91c1c;
}

.qoene-referral-feedback.is-success {
  color: #047857;
}

@media (min-width: 640px) {
  .qoene-referral-input-group {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .qoene-referral-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .qoene-referral-submit {
    width: 100%;
    text-align: center;
  }
}
