/* ============================================
   PRICING PAGE — Scandinavian Minimalist
   Relies on universal-scandi.css :root tokens.
   No glass, no gradients, no glow, no 3D.
   ============================================ */

/* ============================================
   BODY / CONTAINER
   ============================================ */

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 64px;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    position: relative;
}

/* Color clouds — ambient gradient wash */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle 380px at 8% 12%, rgba(209, 77, 106, 0.42), transparent 65%),
    radial-gradient(ellipse 420px 280px at 88% 6%, rgba(115, 83, 186, 0.36), transparent 60%),
    radial-gradient(ellipse 300px 380px at 42% 88%, rgba(45, 159, 214, 0.33), transparent 60%);
  filter: blur(80px);
  animation: cloudPulse1 8s ease-in-out infinite;
}

body::after {
  background:
    radial-gradient(ellipse 340px 260px at 72% 48%, rgba(209, 77, 106, 0.26), transparent 55%),
    radial-gradient(circle 300px at 18% 58%, rgba(115, 83, 186, 0.22), transparent 55%);
  filter: blur(80px);
  animation: cloudPulse2 11s ease-in-out infinite;
}

@keyframes cloudPulse1 {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.08); }
}

@keyframes cloudPulse2 {
  0%, 100% { opacity: 1; transform: scale(1.05); }
  50%      { opacity: 0.55; transform: scale(0.95); }
}

body > *:not(header) {
  position: relative;
  z-index: 1;
}

.pricing-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 30px;
    background: transparent;
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-text);
    letter-spacing: -0.02em;
}

.pricing-header p {
    font-size: 1.2rem;
    color: var(--secondary-text);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   BILLING TOGGLE (Monthly / Annual)
   Clean white pill, solid accent slider
   ============================================ */

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.billing-toggle-inner {
    display: inline-flex;
    align-items: center;
    background: var(--secondary-bg);
    border: 1px solid var(--page-border);
    border-radius: 40px;
    padding: 3px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.toggle-label {
    position: relative;
    z-index: 2;
    padding: 8px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted-text);
    cursor: pointer;
    transition: color 0.25s ease;
    user-select: none;
    white-space: nowrap;
}

.toggle-label.active {
    color: #fff;
    font-weight: 600;
}

/* Hidden checkbox */
.billing-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Sliding pill — rose→charcoal gradient (matches CTA buttons) */
.toggle-pill {
    position: absolute;
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    width: var(--pill-width, 50%);
    background: linear-gradient(135deg, #D14D6A 0%, #1F2937 100%);
    border-radius: 37px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.save-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--highlight-color);
    margin-left: 6px;
    vertical-align: middle;
    transition: color 0.25s ease;
}

.toggle-label.active .save-badge {
    color: rgba(255, 255, 255, 0.85);
}

.tier-annual-note {
    font-size: 0.8rem;
    color: var(--secondary-text);
    margin-top: -4px;
    margin-bottom: 4px;
}

/* ============================================
   PRICING GRID
   ============================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 80px;
    align-items: start;
}

.paid-plans-group {
    grid-column: 2 / 6;
    position: relative;
}

.paid-includes-bar {
    position: absolute;
    top: 55%;
    left: 24px;
    right: 24px;
    transform: translateY(-50%);
    z-index: 10;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--secondary-text);
    background: var(--card-bg);
    border: 1.5px solid #E8A8B8;
    border-radius: 14px;
    padding: 28px 32px;
    letter-spacing: 0.02em;
    box-shadow:
        0 0 0 4px rgba(209, 77, 106, 0.06),
        0 8px 32px rgba(209, 77, 106, 0.18),
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08);
}

.paid-plans-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Push CTA button to bottom of paid cards */
.paid-plans-cards .tier-button {
    margin-top: auto;
}

/* ============================================
   PRICING CARDS — White, subtle border & shadow
   ============================================ */

.pricing-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 36px 30px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--page-border);
    min-height: 600px;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: #D1D5DB;
}

/* ============================================
   FEATURED CARD — Solid rose border, no pulse
   ============================================ */

.pricing-card.featured {
    border: 2px solid #D14D6A;
    background: var(--card-bg);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured .tier-badge {
    background: linear-gradient(135deg, #D14D6A 0%, #1F2937 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

/* Featured tier CTA: rose→charcoal gradient */
.pricing-card.featured .tier-button {
    background: linear-gradient(135deg, #D14D6A 0%, #1F2937 100%);
    border: none;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.pricing-card.featured .tier-button:hover,
.pricing-card.featured:hover .tier-button {
    background: linear-gradient(135deg, #B8455E 0%, #111827 100%);
    box-shadow: var(--shadow-lg);
    animation: ctaBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ============================================
   TIER BADGE
   ============================================ */

.tier-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--tertiary-bg);
    color: var(--secondary-text);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.25s ease;
    cursor: default;
    border: 1px solid var(--page-border);
}

.pricing-card:hover .tier-badge {
    background: linear-gradient(135deg, #D14D6A 0%, #1F2937 100%);
    color: #fff;
    border-color: transparent;
}

/* ============================================
   TIER NAME & PRICING
   ============================================ */

.tier-name {
    font-size: 1.8rem;
    margin: 20px 0 10px;
    color: var(--primary-text);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.tier-price {
    text-align: center;
    margin-bottom: 10px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-text);
    letter-spacing: -0.02em;
}

.price-period {
    font-size: 1.1rem;
    color: var(--muted-text);
    font-weight: 400;
}

.tier-subtitle {
    text-align: center;
    color: var(--secondary-text);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.tier-token-price {
    text-align: center;
    color: var(--highlight-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--page-border);
}

/* ============================================
   PRICING DETAILS PANEL
   ============================================ */

.pricing-details {
    background: var(--tertiary-bg);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    margin-bottom: 15px;
    border: 1px solid var(--page-border);
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    gap: 12px;
}

.pricing-row.highlight {
    color: var(--highlight-color);
    font-weight: 600;
    font-size: 1rem;
}

.pricing-row.downgrade-threshold {
    color: #D97706;
    font-size: 0.85rem;
    font-style: italic;
}

.pricing-label {
    color: var(--secondary-text);
}

.pricing-value {
    font-weight: 600;
    color: var(--primary-text);
    white-space: nowrap;
    text-align: right;
}

.pricing-row.highlight .pricing-value {
    color: var(--highlight-color);
}

/* ============================================
   FEATURES LIST
   ============================================ */

.tier-features {
    flex-grow: 1;
    margin-bottom: 0;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.4;
}

.check-icon {
    width: 20px;
    height: 20px;
    fill: var(--highlight-color);
    flex-shrink: 0;
}


/* ============================================
   BATCH INFO SECTION
   ============================================ */

.batch-info-section {
    border-top: 1px solid var(--page-border);
    margin-top: 12px;
    padding-top: 12px;
}

.batch-info-header {
    color: var(--muted-text);
    font-size: 0.85rem;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.batch-scenario {
    color: var(--secondary-text);
    font-size: 0.9rem;
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.batch-scenario strong {
    color: var(--highlight-color);
    font-weight: 600;
}

/* ============================================
   TIER BUTTON — Ghost outlined style
   ============================================ */

.tier-button {
    display: block;
    width: calc(100% - 40px);
    max-width: 240px;
    margin: 0 auto 30px;
    padding: 14px 20px;
    background: transparent;
    color: var(--primary-text);
    text-align: center;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid var(--page-border);
    cursor: pointer;
}

.tier-button:hover {
    background: var(--tertiary-bg);
    border-color: #D1D5DB;
    color: var(--primary-text);
}

.pricing-card:hover .tier-button {
    background: var(--tertiary-bg);
    border-color: #D1D5DB;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   FEATURE COMPARISON TABLE
   ============================================ */

.feature-comparison {
    margin: 60px 0;
    text-align: center;
}

.feature-comparison h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-text);
}

.comparison-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid var(--page-border);
}

.comparison-table th {
    font-weight: 600;
    color: var(--highlight-color);
    font-size: 1rem;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    color: var(--primary-text);
    font-weight: 500;
}

.comparison-table td {
    color: var(--secondary-text);
}

/* Alternating row shading */
.comparison-table tbody tr:nth-child(even) {
    background: var(--tertiary-bg);
}

.comparison-table tbody tr:hover {
    background: #EEF0F3;
}

/* ============================================
   TOKEN COST VISUALIZATION — Clean cards
   No 3D, no rotateY, no float animations, no glow
   ============================================ */

.token-cost-visualization {
    margin-bottom: 60px;
    padding: 50px 30px;
    background: transparent;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.token-cost-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-text);
    position: relative;
    z-index: 2;
}

.token-cost-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-text);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.token-cards-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* Individual Token Card — flat, white, floating */
.token-card {
    position: relative;
    width: 280px;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 30px;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid var(--page-border);
    box-shadow: var(--shadow-sm);
}

/* Remove metallic edge highlight */
.token-card::before {
    display: none;
}

/* Gentle floating animations — staggered per card */
@keyframes tokenFloat {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

.token-card-search {
    animation: tokenFloat 5s ease-in-out infinite;
}

.token-card-ai {
    animation: tokenFloat 5s 1.2s ease-in-out infinite;
}

.token-card-enrich {
    animation: tokenFloat 5s 2.4s ease-in-out infinite;
}

/* Hover — lift + glow, pauses float */
.token-card:hover {
    box-shadow: var(--shadow-xl);
    animation-play-state: paused;
    border-color: #D1D5DB;
}

.token-card-search:hover {
    box-shadow: 0 8px 30px rgba(45, 159, 214, 0.15), var(--shadow-xl);
    border-color: rgba(45, 159, 214, 0.3);
}

.token-card-ai:hover {
    box-shadow: 0 8px 30px rgba(230, 57, 98, 0.15), var(--shadow-xl);
    border-color: rgba(230, 57, 98, 0.3);
}

.token-card-enrich:hover {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15), var(--shadow-xl);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Card glow — hidden entirely */
.token-card-glow {
    display: none;
}

.token-card-search .token-card-glow,
.token-card-ai .token-card-glow,
.token-card-enrich .token-card-glow {
    display: none;
}

.token-card:hover .token-card-glow {
    display: none;
}

/* Card content */
.token-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

/* Token icon — simple colored circle, no glow */
.token-icon {
    width: 80px;
    height: 80px;
    background: var(--tertiary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background 0.25s ease;
    border: 1px solid var(--page-border);
}

.token-card-search .token-icon {
    color: var(--cyan-accent);
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.2);
}

.token-card-enrich .token-icon {
    color: var(--green-accent);
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.token-card-ai .token-icon {
    color: var(--highlight-color);
    background: rgba(230, 57, 98, 0.08);
    border-color: rgba(230, 57, 98, 0.2);
}

.token-card:hover .token-icon {
    transform: scale(1.05);
}

.token-card-ai:hover .token-icon {
    background: rgba(230, 57, 98, 0.12);
}

.token-card-enrich:hover .token-icon {
    background: rgba(16, 185, 129, 0.12);
}

.token-card-content h3 {
    font-size: 1.4rem;
    color: var(--primary-text);
    margin-bottom: 10px;
    font-weight: 600;
}

.token-description {
    font-size: 0.95rem;
    color: var(--secondary-text);
    margin-bottom: 25px;
    line-height: 1.5;
}

.token-cost-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--tertiary-bg);
    padding: 15px 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--page-border);
    margin-top: auto;
}

.token-card-ai .token-cost-badge {
    background: rgba(230, 57, 98, 0.04);
    border-color: rgba(230, 57, 98, 0.15);
}

.token-card-enrich .token-cost-badge {
    background: rgba(16, 185, 129, 0.04);
    border-color: rgba(16, 185, 129, 0.15);
}

.token-amount {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.token-card-search .token-amount {
    color: var(--cyan-accent);
}

.token-card-ai .token-amount {
    color: var(--highlight-color);
}

.token-card-enrich .token-amount {
    color: var(--green-accent);
}

.token-enrich-note {
    font-size: 0.8rem;
    color: var(--secondary-text);
    margin-top: 10px;
    opacity: 0.7;
    text-align: center;
}

.token-label {
    font-size: 0.9rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Connector between cards */
.token-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.connector-equals {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--muted-text);
    opacity: 0.5;
}

/* ============================================
   PRICING DESCRIPTION — White card, clean shadow
   ============================================ */

.pricing-description {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--page-border);
}

.pricing-description h2 {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-text);
    text-align: center;
}

.pricing-subtitle {
    color: var(--secondary-text);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
}

/* ============================================
   BILLING STEPS — Solid accent circle
   ============================================ */

.billing-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.billing-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--highlight-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.step-content h4 {
    margin: 0 0 10px;
    color: var(--primary-text);
    font-size: 1.1rem;
}

.step-content p {
    margin: 0;
    color: var(--secondary-text);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================================
   BILLING EXAMPLE
   ============================================ */

.billing-example {
    background: var(--tertiary-bg);
    border-radius: var(--radius-md);
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--page-border);
}

.billing-example h4 {
    margin: 0 0 20px;
    color: var(--primary-text);
    font-size: 1.3rem;
    text-align: center;
}

.example-calculation {
    background: var(--secondary-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--page-border);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--secondary-text);
    font-size: 1rem;
}

.calc-row.total {
    border-top: 2px solid var(--highlight-color);
    margin-top: 10px;
    padding-top: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-text);
}

.calc-row.total span:last-child {
    color: var(--highlight-color);
}

.example-note {
    color: #D97706;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-text);
}

.cta-section p {
    color: var(--secondary-text);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #D14D6A 0%, #1F2937 100%);
    color: #fff;
    padding: 16px 40px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background: linear-gradient(135deg, #B8455E 0%, #111827 100%);
    box-shadow: var(--shadow-lg);
    animation: ctaBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ============================================
   FAQ SECTION — White cards, subtle border
   ============================================ */

.faq-section {
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-text);
    text-align: center;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--page-border);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s ease;
}

.faq-item:hover {
    border-color: #D1D5DB;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-text);
    transition: background 0.2s ease;
    user-select: none;
}

.faq-question:hover {
    background-color: var(--tertiary-bg);
}

.faq-question::after {
    content: "+";
    font-size: 1.8rem;
    color: var(--highlight-color);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: "\2212";
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    color: var(--secondary-text);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-question.active + .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px;
}

/* ============================================
   CURRENT PLAN BUTTON STYLES
   ============================================ */

.tier-button.current-plan-button {
    background: var(--green-accent) !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer !important;
    opacity: 0.9;
}

.pricing-card:hover .tier-button.current-plan-button {
    transform: none;
    box-shadow: none;
}

.tier-badge.current-plan-badge {
    background: var(--green-accent) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.pricing-card:hover .tier-badge.current-plan-badge {
    background: var(--green-accent) !important;
    box-shadow: none;
}

/* ============================================
   UPGRADE / DOWNGRADE BUTTON STYLES
   ============================================ */

.tier-button.upgrade-button {
    background: var(--green-accent) !important;
    border: none !important;
    color: #fff !important;
}

.tier-button.downgrade-button {
    background: var(--tertiary-bg) !important;
    border: 1px solid var(--page-border) !important;
    color: var(--secondary-text) !important;
}

.pricing-card:hover .tier-button.upgrade-button {
    background: #268B68 !important;
    box-shadow: var(--shadow-md);
}

.pricing-card:hover .tier-button.downgrade-button {
    background: #EEF0F3 !important;
    box-shadow: var(--shadow-sm);
}

/* ============================================
   MODAL STYLES — White bg, clean shadow
   ============================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--page-border);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary-text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--muted-text);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary-text);
}

.modal-body {
    padding: 25px;
}

.loading-spinner {
    text-align: center;
    color: var(--secondary-text);
    padding: 20px;
}

.plan-change-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--tertiary-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--page-border);
}

.plan-from, .plan-to {
    text-align: center;
}

.plan-from .label, .plan-to .label {
    display: block;
    font-size: 0.85rem;
    color: var(--secondary-text);
    margin-bottom: 5px;
}

.plan-from .value, .plan-to .value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-text);
}

.plan-arrow {
    font-size: 1.5rem;
    color: var(--highlight-color);
}

.proration-breakdown {
    border: 1px solid var(--page-border);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    margin-bottom: 15px;
}

.proration-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--page-border);
}

.proration-row:last-child {
    border-bottom: none;
}

.proration-row span:first-child {
    color: var(--secondary-text);
}

.proration-row span:last-child {
    font-weight: 600;
    color: var(--primary-text);
}

.proration-note {
    font-size: 0.9rem;
    color: var(--secondary-text);
    background: var(--tertiary-bg);
    padding: 15px;
    border-radius: var(--radius-md);
    line-height: 1.5;
    border: 1px solid var(--page-border);
}

.modal-body .error-message {
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.15);
    color: #DC2626;
    padding: 12px 15px;
    border-radius: var(--radius-md);
    margin-top: 15px;
}

.modal-body .warning-text {
    color: #D97706;
    font-style: italic;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid var(--page-border);
}

.modal-footer button {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--page-border) !important;
    color: var(--secondary-text);
}

.btn-cancel:hover {
    background: var(--tertiary-bg);
    color: var(--primary-text);
    border-color: #D1D5DB !important;
}

.btn-confirm {
    background: var(--highlight-color);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-confirm:hover:not(:disabled) {
    background: var(--highlight-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-confirm.btn-danger {
    background: #DC2626;
}

.btn-confirm.btn-danger:hover:not(:disabled) {
    background: #B91C1C;
    box-shadow: var(--shadow-md);
}

/* ============================================
   SUCCESS TOAST — Keep green, remove glow
   ============================================ */

.success-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--green-accent);
    color: #fff;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s ease;
}

.success-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.success-toast svg {
    flex-shrink: 0;
}

.current-plan-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--green-accent);
    color: #fff;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.current-plan-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ============================================
   VAT NOTE & ENTERPRISE CARD
   ============================================ */

.pricing-vat-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted-text);
    margin: -8px 0 40px;
    letter-spacing: 0.01em;
}

.enterprise-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin: 0 0 60px;
    padding: 36px 44px;
    border: 2px solid var(--highlight-color);
    border-radius: 20px;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.enterprise-badge {
    display: inline-block;
    background: var(--purple-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.enterprise-heading {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--primary-text);
}

.enterprise-desc {
    color: var(--secondary-text);
    margin: 0 0 18px;
    font-size: 0.95rem;
    max-width: 500px;
}

.enterprise-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.enterprise-features li {
    color: var(--secondary-text);
    font-size: 0.88rem;
    padding-left: 20px;
    position: relative;
}

.enterprise-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--purple-accent);
    font-weight: 700;
}

.enterprise-card-right {
    flex-shrink: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.enterprise-cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--purple-accent);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.enterprise-cta-btn:hover {
    background: #5F3DA5;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.enterprise-note {
    font-size: 0.78rem;
    color: var(--muted-text);
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Token cards — mobile */
@media (max-width: 768px) {
    .token-cards-container {
        flex-direction: column;
        gap: 20px;
    }

    .token-card {
        width: 100%;
        max-width: 300px;
        transform: none !important;
    }

    .token-card:hover {
        transform: translateY(-4px) !important;
    }

    .token-connector {
        transform: rotate(90deg);
    }

    .token-cost-title {
        font-size: 1.6rem;
    }
}

/* Pricing grid breakpoints */
@media (max-width: 1300px) {
    .paid-plans-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1000px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .paid-plans-group {
        grid-column: auto;
    }

    .paid-plans-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-2px);
    }
}

/* ============================================
   MOBILE — Clean, conversion-focused layout
   ============================================ */
@media (max-width: 768px) {
    .pricing-container {
        padding: 32px 16px;
    }

    .pricing-header {
        margin-bottom: 28px;
    }

    .pricing-header h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .pricing-header p {
        font-size: 0.95rem;
    }

    /* Hide token visualization on mobile — too complex, not needed for conversion */
    .token-cost-visualization {
        display: none;
    }

    /* Billing toggle — full width, centered */
    .billing-toggle {
        margin-bottom: 24px;
    }

    .billing-toggle-inner {
        width: 100%;
        max-width: 320px;
    }

    .toggle-label {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    /* Pricing grid — single column, tight spacing */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .paid-plans-group {
        grid-column: auto;
    }

    .paid-plans-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .paid-includes-bar {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        margin-bottom: 14px;
        font-size: 0.85rem;
        padding: 14px 16px;
        box-shadow: none;
    }

    /* Cards — compact, no hover effects */
    .pricing-card {
        min-height: auto;
        padding: 24px 20px;
        border-radius: 12px;
    }

    .pricing-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: none;
    }

    /* Stop float animations on mobile — reduces jank */
    .token-card-search,
    .token-card-ai,
    .token-card-enrich {
        animation: none;
    }

    .tier-badge {
        font-size: 0.72rem;
        padding: 4px 12px;
        top: -12px;
    }

    .tier-name {
        font-size: 1.3rem;
        margin-top: 12px;
        margin-bottom: 6px;
    }

    .price-amount {
        font-size: 2rem;
    }

    .tier-subtitle {
        font-size: 0.88rem;
    }

    .tier-token-price {
        font-size: 0.82rem;
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    /* Hide detailed feature lists on mobile — keep it simple */
    .tier-features {
        display: none;
    }

    /* Full-width button */
    .tier-button {
        width: 100%;
        max-width: none;
        margin: 0 0 20px;
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .pricing-details {
        padding: 14px 12px;
        margin-bottom: 12px;
    }

    .pricing-row {
        font-size: 0.82rem;
        padding: 6px 0;
    }

    .batch-info-section {
        display: none;
    }

    /* VAT note */
    .pricing-vat-note {
        margin-bottom: 24px;
    }

    /* Enterprise — compact vertical card */
    .enterprise-card {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 24px 20px;
        border-radius: 12px;
        margin-bottom: 36px;
    }

    .enterprise-heading {
        font-size: 1.2rem;
    }

    .enterprise-desc {
        font-size: 0.88rem;
    }

    .enterprise-features {
        display: none;
    }

    .enterprise-card-right {
        width: 100%;
    }

    .enterprise-cta-btn {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }

    /* Hide comparison table on mobile — too wide, not scannable */
    .feature-comparison {
        display: none;
    }

    /* Billing description — simplified */
    .pricing-description {
        padding: 24px 20px;
        margin-bottom: 36px;
    }

    .pricing-description h2 {
        font-size: 1.4rem;
    }

    .pricing-subtitle {
        font-size: 0.92rem;
    }

    .billing-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .billing-step {
        gap: 14px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .step-content h4 {
        font-size: 1rem;
    }

    .step-content p {
        font-size: 0.88rem;
    }

    .billing-example {
        padding: 18px;
    }

    .billing-example h4 {
        font-size: 1.1rem;
    }

    .calc-row {
        font-size: 0.88rem;
    }

    /* FAQ — clean accordion */
    .faq-section {
        margin-bottom: 36px;
    }

    .faq-section h2 {
        font-size: 1.4rem;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 0.9rem;
    }

    .faq-answer {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .faq-question::after {
        font-size: 1.4rem;
    }

    /* CTA — full width, punchy */
    .cta-section {
        padding: 32px 16px;
        margin-bottom: 36px;
    }

    .cta-section h2 {
        font-size: 1.4rem;
    }

    .cta-section p {
        font-size: 0.92rem;
        margin-bottom: 20px;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        padding: 16px 24px;
    }

    /* Modal — nearly full screen */
    .modal-overlay {
        padding: 12px;
    }

    .modal-content {
        max-width: 100%;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-header h2 {
        font-size: 1.15rem;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pricing-container {
        padding: 24px 14px;
    }

    .pricing-header h1 {
        font-size: 1.5rem;
    }

    .pricing-header p {
        font-size: 0.88rem;
    }

    .pricing-card {
        padding: 20px 16px;
    }

    .tier-name {
        font-size: 1.2rem;
    }

    .price-amount {
        font-size: 1.75rem;
    }

    .toggle-label {
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    .enterprise-card {
        padding: 20px 16px;
    }

    .enterprise-heading {
        font-size: 1.1rem;
    }

    .pricing-description {
        padding: 20px 16px;
    }

    .pricing-description h2 {
        font-size: 1.25rem;
    }

    .cta-section h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 360px) {
    .pricing-header h1 {
        font-size: 1.35rem;
    }

    .pricing-card {
        padding: 18px 14px;
    }

    .tier-name {
        font-size: 1.1rem;
    }

    .price-amount {
        font-size: 1.6rem;
    }

    .save-badge {
        display: none;
    }
}
