/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #1a5632;
  --color-primary-light: #2a7a4a;
  --color-secondary: #f0a500;
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #2c2c2c;
  --color-text-light: #5a5a5a;
  --color-border: #e0e0e0;
  --color-error: #d32f2f;
  --color-success: #2e7d32;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --max-width: 1140px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-secondary);
  color: #1a1a1a;
}

.btn-primary:hover {
  background: #d99200;
  color: #1a1a1a;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-surface);
}

.btn-submit {
  background: var(--color-primary);
  color: var(--color-surface);
}

.btn-submit:hover {
  background: var(--color-primary-light);
  color: var(--color-surface);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* === Header === */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
}

.logo:hover {
  color: var(--color-primary-light);
}

.logo-eu {
  color: var(--color-secondary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher select {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface);
  font-size: 0.85rem;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-list a {
  color: var(--color-text-light);
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  font-size: 0.95rem;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d3820 100%);
  color: #fff;
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Section Titles === */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: var(--color-text);
}

/* === Features === */
.features {
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* === Regulations === */
.regulations {
  padding: 4rem 0;
  background: var(--color-surface);
}

.regs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.reg-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.reg-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* === Countries === */
.countries {
  padding: 5rem 0;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.country-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s;
}

.country-card:hover {
  transform: translateY(-4px);
}

.country-flag {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.country-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.country-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  text-align: left;
}

/* === Stats === */
.stats {
  padding: 5rem 0;
  background: var(--color-surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-card {
  padding: 2rem 1rem;
}

.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* === CTA === */
.cta {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(135deg, #0d3820 0%, var(--color-primary) 100%);
  color: #fff;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  max-width: 500px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

/* === Page Header === */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d3820 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === Content Section === */
.content-section {
  padding: 4rem 0;
}

.content-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.content-section p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  max-width: 760px;
}

.content-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-section ul li {
  color: var(--color-text-light);
  margin-bottom: 0.4rem;
}

/* === Team Grid === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.team-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  color: var(--color-primary);
}

.team-card .role {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.team-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* === Chat / Consultant === */
.chat-section {
  padding: 2rem 0 4rem;
}

.chat-container {
  max-width: 800px;
  margin: 0 auto;
}

.chat-messages {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 400px;
  max-height: 600px;
  overflow-y: auto;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.chat-welcome {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-light);
}

.chat-welcome-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.chat-welcome h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.suggestion-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-bg);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-text);
  transition: all 0.2s;
}

.suggestion-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #f0f8f0;
}

.chat-message {
  margin-bottom: 1rem;
  display: flex;
}

.user-message {
  justify-content: flex-end;
}

.user-message .message-content {
  background: var(--color-primary);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  padding: 0.75rem 1rem;
  max-width: 80%;
}

.ai-message .message-content {
  background: var(--color-bg);
  border-radius: 16px 16px 16px 4px;
  padding: 0.75rem 1rem;
  max-width: 85%;
  line-height: 1.7;
}

.ai-message .message-content h2,
.ai-message .message-content h3,
.ai-message .message-content h4 {
  color: var(--color-primary);
  margin: 0.75rem 0 0.5rem;
}

.ai-message .message-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.ai-message .message-content li {
  margin-bottom: 0.25rem;
}

.ai-message.error .message-content {
  color: var(--color-error);
}

.typing-indicator {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: var(--color-text-light);
  border-radius: 50%;
  animation: typing 1.2s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

.chat-input-area {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.chat-input-area textarea {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-size: 0.95rem;
  resize: none;
  max-height: 120px;
}

.chat-input-area textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.chat-input-area .btn {
  padding: 0.75rem 1.5rem;
}

.chat-disclaimer {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-align: center;
}

.chat-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding: 0 0.25rem;
}

.profile-indicator {
  font-size: 0.8rem;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.profile-indicator::before {
  content: "\2713";
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  background: var(--color-success);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
}

/* === Simulator === */
.simulator-layout {
  max-width: 900px;
  margin: 0 auto;
}

.simulator-form {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.simulator-results {
  margin-top: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-primary);
}

.report-header h2 {
  color: var(--color-primary);
  font-size: 1.5rem;
}

.report-content {
  line-height: 1.8;
}

.report-content h2,
.report-content h3,
.report-content h4 {
  color: var(--color-primary);
  margin: 1.5rem 0 0.75rem;
}

.report-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.report-content li {
  margin-bottom: 0.3rem;
}

.report-content .error {
  color: var(--color-error);
}

/* === Pricing === */
.pricing-section {
  padding: 4rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.pricing-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.pricing-featured {
  border-color: var(--color-secondary);
  transform: scale(1.02);
}

.pricing-featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-secondary);
  color: #1a1a1a;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-header h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-light);
  padding-left: 1.5rem;
  position: relative;
}

.pricing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* === Auth Pages === */
.auth-section {
  padding: 4rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.auth-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
}

.auth-card h1 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.auth-error {
  background: #fde8e8;
  color: var(--color-error);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.auth-success {
  background: #e8f5e9;
  color: var(--color-success);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.auth-links a {
  color: var(--color-primary);
  font-weight: 600;
}

/* === Dashboard === */
.dashboard-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d3820 100%);
  color: #fff;
  padding: 3rem 0;
}

.dashboard-header h1 {
  font-size: 2rem;
}

.dashboard-content {
  padding: 2rem 0 4rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dash-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.dash-card h3 {
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.dash-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
}

.dash-section {
  margin-top: 2rem;
}

.dash-section h2 {
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.dash-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.dash-activity {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.no-activity {
  color: var(--color-text-light);
  text-align: center;
}

/* === Contact Form === */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.contact-info ul {
  list-style: none;
}

.contact-info ul li {
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.contact-info ul li strong {
  color: var(--color-text);
}

.contact-form {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* === Footer === */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-section ul li {
  margin-bottom: 0.4rem;
}

.footer-section ul li a {
  color: #ccc;
  font-size: 0.9rem;
}

.footer-section ul li a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* === Access Gate === */
.access-gate-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 2.5rem;
  text-align: center;
}

.access-gate-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.access-gate-card h2 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.access-gate-card p {
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 100%;
  line-height: 1.7;
}

.access-gate-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Subsidy Form Sections === */
.simulator-form h2 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.simulator-form h2:first-of-type {
  margin-top: 0;
}

.report-actions {
  display: flex;
  gap: 0.5rem;
}

/* === Print === */
@media print {
  .site-header, .site-footer, .simulator-form, .chat-input-area, .btn { display: none !important; }
  .simulator-results, .report-content { box-shadow: none; border: 1px solid #ccc; }
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    gap: 0;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list li {
    padding: 0.5rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-featured {
    transform: none;
  }

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

  .auth-card {
    padding: 1.5rem;
  }

  .chat-input-area {
    flex-direction: column;
  }

  .chat-input-area .btn {
    width: 100%;
  }
}

/* ==================== Checkout Page ==================== */
.checkout-section {
  padding: 3rem 0;
}

.checkout-gate-card {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 2rem;
}

.checkout-gate-card h2 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.checkout-gate-card p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.checkout-gate-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

.checkout-summary, .checkout-methods {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.checkout-summary h2, .checkout-methods h2 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--secondary);
}

.checkout-plan-card {
  margin-bottom: 1.5rem;
}

.checkout-plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.checkout-plan-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.checkout-plan-features {
  list-style: none;
  padding: 0;
}

.checkout-plan-features li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
}

.checkout-plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.checkout-secure {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--success);
  font-size: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.payment-option {
  margin-bottom: 1.5rem;
}

.payment-mode-option label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.payment-mode-option select {
  width: 100%;
  border: 1px solid #d8dbe2;
  border-radius: var(--radius);
  padding: 0.7rem 0.75rem;
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--text);
}

.payment-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-btn:hover {
  border-color: var(--primary);
  background: #f5f5f5;
}

.payment-btn-stripe {
  color: #635bff;
  border-color: #635bff30;
}

.payment-btn-stripe:hover {
  background: #635bff08;
  border-color: #635bff;
}

.payment-btn-paypal {
  color: #003087;
  border-color: #003087aa;
}

.payment-btn-paypal:hover {
  background: #003087 08;
  border-color: #003087;
}

.payment-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.4rem;
  padding-left: 0.25rem;
}

.checkout-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  color: var(--primary);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e0e0e0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.checkout-error {
  background: #fff5f5;
  border: 1px solid var(--error);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--error);
  font-size: 0.9rem;
}

/* ==================== Payment Result Page ==================== */
.payment-result-section {
  padding: 4rem 0;
}

.payment-result-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 2rem;
}

.payment-result-icon {
  margin-bottom: 1.5rem;
}

.payment-success h1 {
  color: var(--success);
  margin-bottom: 1rem;
}

.payment-result-desc {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.payment-result-details {
  background: #f8f9fa;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.payment-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.payment-detail-row span {
  color: var(--text-light);
}

.payment-detail-row strong {
  color: var(--primary);
}

.payment-result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.payment-result-note {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ==================== Pricing Payment Methods ==================== */
.pricing-payment-methods {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.pricing-payment-methods > p:first-child {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.pricing-payment-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.payment-icon-label {
  display: inline-block;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.pricing-payment-note {
  font-size: 0.8rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Dashboard subscription card */
.dash-active-sub {
  color: var(--success) !important;
}

.dash-upgrade-btn {
  margin-top: 0.75rem;
  display: inline-block;
}
