/* --- Mobile Package Selection Modal --- */
@media (max-width: 640px) {
  /* Base package card styling */
  .package-card {
    outline: none !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    padding: var(--space-lg) var(--space-md) var(--space-md) !important;
    background: var(--color-surface) !important;
    text-align: left !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
    display: grid !important;
    gap: var(--space-sm) !important;
    position: relative !important;
    width: 100% !important;
    margin: 0 0 8px 0 !important;
  }
  
  /* Active state - thicker border */
  .package-card.active,
  .package-card[aria-checked="true"] {
    border: 4px solid #220554 !important;
    box-shadow: var(--shadow-md) !important;
    background: #eef2ff !important;
  }
  
  /* Focus state */
  .package-card:focus {
    border-color: #1f8ceb !important;
    box-shadow: 0 0 0 2px #1f8ceb66 !important;
  }
  
  /* Package card content styling */
  .package-title {
    font-weight: 800 !important;
    font-size: 18px !important;
  }
  
  .package-price {
    font-weight: 700 !important;
    font-size: 18px !important;
  }
  
  .package-meta {
    display: grid !important;
    gap: 8px !important;
    color: var(--color-text-secondary) !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
}
@media (max-width: 640px) {
  .order-card-mobile-statusbar {
    position: relative;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 15px;
    font-weight: 600;
  }
  .order-card-mobile-paid-label {
    display: inline-block;
    background: #198754;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    padding: 2px 10px;
    margin-left: 10px;
    letter-spacing: 1px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  }
}
@media (min-width: 485px) and (max-width: 640px) {
  .order-list {
    padding: 0 24px;
    gap: 16px;
  }
  .order-card {
    padding: 20px;
    margin-bottom: 16px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 640px) {
  #orderEditorSection.section {
    background: #fff;
    border-radius: 12px;
    margin: 12px 0;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: auto;
  }
  #orderEditorSection .order-card-header,
  #orderEditorSection .order-card-header > div,
  #orderEditorSection .order-card-header .flex {
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }
  #orderEditorSection button,
  #orderEditorSection .primary,
  #orderEditorSection .success,
  #orderEditorSection .danger {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 8px 0 0 0;
  }
}
@media (max-width: 640px) {
  .tab-bar {
    display: flex !important;
    width: 100%;
    margin-bottom: 32px;
    justify-content: center;
    gap: var(--space-md);
  }
}
/* mobile.css - Mobile-first styles for OTT Portal */

@media (max-width: 640px) {
  body {
    font-size: 17px;
    background: #f8f9fb;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', Arial, sans-serif;
  }

  .app-header, .mobile-nav {
    position: fixed;
    width: 100vw;
    left: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .app-header {
    top: 0;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid #ececec;
  }
  .app-header .back-btn {
    background: none;
    border: none;
    font-size: 22px;
    margin-right: 12px;
    color: #333;
    cursor: pointer;
  }
  .app-header .header-title {
    font-weight: 700;
    font-size: 18px;
    flex: 1;
  }

  .mobile-nav {
    bottom: 0;
    height: 56px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #ececec;
  }
  .mobile-nav button {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    flex: 1;
    padding: 8px 0;
    cursor: pointer;
  }
  .mobile-nav button.active {
    color: #1f8ceb;
    font-weight: 700;
  }

  .main-content {
    padding: 72px 0 72px 0;
    min-height: calc(100vh - 112px);
    background: #f8f9fb;
  }

  .order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 12px;
  }
  .order-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 16px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 1px solid #ececec;
    transition: box-shadow 0.2s;
  }
  .order-card:active {
    box-shadow: 0 4px 16px rgba(31,140,235,0.08);
  }
  .order-card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
  }
  .order-card-status {
    font-size: 13px;
    color: #1f8ceb;
    font-weight: 600;
    margin-bottom: 8px;
  }

  @media (max-width: 640px) {
    .order-card {
      max-width: 95vw;
      margin-left: auto;
      margin-right: auto;
      padding: 12px;
    }
  }

  .section {
    background: #fff;
    border-radius: 12px;
    margin: 12px 0;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .section-title {
    font-size: 16px;
    font-weight: 700;
    margin-top: 3px;
    margin-bottom: 8px;
  }
  .section-content {
    font-size: 15px;
  }

  .primary-btn, .secondary-btn {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    margin: 12px 0 0 0;
    font-weight: 700;
    cursor: pointer;
  }
  .primary-btn {
    background: #1f8ceb;
    color: #fff;
  }
  .secondary-btn {
    background: #f3f4f6;
    color: #1f8ceb;
  }

  /* Hide desktop-only elements */
  .desktop-only { display: none !important; }
}
