/* My Subscriptions and Subscription History Styles - Modern Firetalk Theme */

.subscriptions-body {
  margin: 0;
  padding: 0;
  font-family: inherit;
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sub-page-nav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

/* Hero */
.sub-history-hero {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(249, 115, 22, 0.08) 50%, rgba(14, 165, 233, 0.08) 100%), var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 48px 20px;
  text-align: center;
  position: relative;
}

.sub-history-hero-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.5px;
}

/* Main Container */
.subscriptions-main-wrap {
  flex: 1;
  max-width: 1040px;
  width: 100%;
  margin: -24px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

/* Top 2 Action Cards */
.sub-upgrade-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.sub-action-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sub-action-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-xl);
}

.card-plan-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 14px 0;
}

.card-plan-pitch {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 26px 0;
}

.btn-sub-upgrade-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 32px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--primary-color);
  background-image: var(--flame-gradient);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-sub-upgrade-now:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
  color: #ffffff;
}

/* Bottom Subscription History Card */
.sub-history-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 28px 32px 36px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.history-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.history-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.history-search-wrap input {
  padding: 7px 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-size: 13px;
  outline: none;
  width: 180px;
  transition: all 0.2s ease;
}

.history-search-wrap input:focus {
  border-color: var(--primary-color);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

/* History Table */
.history-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

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

.history-table th {
  padding: 12px 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.history-table tr:hover td {
  background: var(--bg-surface-hover);
}

@media (max-width: 768px) {
  .sub-upgrade-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .subscriptions-main-wrap {
    padding: 0 12px;
    margin: -16px auto 40px;
  }

  .sub-history-card {
    padding: 20px 16px;
  }

  .history-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .history-search-wrap input {
    width: 100%;
  }
}
