:root {
  --th-soft-green: #8aa082;
  --th-deep-teal: #09383b;
  --th-warm-orange: #df884a;
  --th-soft-tan: #E5DDC3;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: #000000;
    color: #E5DDC3;
    margin: 0;
    padding: 0;
}

.content {
  flex: 1; /* pushes footer to bottom */
  display: flex;
  justify-content: center;
  align-items: center;
}

h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 28px;
    color: #FFFFFF;
    margin-bottom: 16px;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}

label {
  display: block;
  font-weight: 600;
  color: var(--th-soft-tan);
  margin-bottom: 0.3rem;
}

.navbar {
    display: flex;
    align-items: center;
    background: #09383b;
    color: #fff;
    padding: 12px 16px;
}
.navbar a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.navbar svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.container,
.dashboard-container {
  max-width: 768px;
  margin: 00px auto;
  padding: clamp(16px, 4vw, 24px);
  box-sizing: border-box;
}

/* Dashboard-specific visuals */
.dashboard-container {
  margin: 20px auto;
  background: #1c2b2d;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card {
  background: #1c2b2d;
  border-radius: 12px;
  padding: 20px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 8px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.card h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  margin: 0px;
  color: #ffffff;
}

.card h3, h4 {
  color: #E5DDC3;
  margin: 0px;
}

.card p {
  font-size: 15px;
  color: #999;
}

.card-action {
  background-color: #df884a; /* warm orange accent */
  color: white;
}

.card-tan {
  background-color: #E5DDC3; /* soft tan background */
  border-left: 4px solid #8aa082;
  border-radius: 12px;
  padding: 20px 20px;
  margin-bottom: 8px;
  color: #09383b;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card-tan h3 {
  margin-top: 0;
  color: #09383b;
  font-size: 18px;
}

.inner-card {
  background: #09383b;
  border-radius: 12px;
  padding: 20px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 8px;
}

.inner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.subsection {
    margin-top: 24px;
}

.subsection h2{
  color:#FFFFFF;
}

.button {
  background-color: #E96D32;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.button:hover {
  background-color: #c85618;
}

.status-badge.status-active {
  background-color: #09383b; /* dark green */
  color: #E5DDC3;
}

.status-badge.status-inactive {
  background-color: #ccc;
  color: #333;
}

.button-unavailable {
  background-color: #E5DDC3; /* soft tan */
  color: #09383b; /* deep teal text */
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: not-allowed;
  opacity: 0.9;
}

.button-unavailable:hover {
  background-color: #c85618;
}

.button-secondary {
  background-color: #E5DDC3; /* soft tan */
  color: #09383b; /* deep teal text */
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  opacity: 0.9;
}

.button-cancel:hover {
  background-color: #c85618;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 1.5rem;
    background-color: #09383b;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Left section (title + subtitle) */
.dashboard-header > div:first-child {
    flex: 1 1 60%;
    min-width: 250px;
}

.header-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width:60%;
}

.header-text h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: #E96D32;
}

.header-text p {
    margin: 0.25rem 0 0;
    color: #E5DDC3;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.header-text-with-logo {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 100%;

    /* flex-direction: column; */
    /* align-items: stretch; */
}

.dashboard-logo {
    height: auto;
    width: 100%;
    flex-shrink: 0;
    background-color: #E5DDC3;
    align-items: center;
    border-radius: 8px;
}

/* Dashboard profile card */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    gap: 0.5rem;
    min-width: 150px;
    color:#E5DDC3;

    background-color: #000;
    
    border: 1px solid #E5DDC3;
    padding: 1rem;
    
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);

    vertical-align: middle;

    max-width:25%;
}

/* Dashboard profile buttons */
.profile-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    place-content: center;
}

.profile-actions button {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }

    /* .header-text-with-logo{
        flex-direction: column;
        align-items: stretch;
    } */

    .profile-card {
        align-items: flex-start;
        max-width:100%;
    }

    .profile-actions {
        flex-direction: column;
        width: 100%;
    }

    .profile-actions button {
        width: 100%;
    }

    .profile-actions a{
      width:100%;
    }
}

.btn-manage, .btn-logout {
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  color: white;
}

.btn-manage {
  background: #8aa082; /* soft green */
}

.btn-manage:hover {
  background: #6f8568;
}

.btn-logout {
  background: #df884a; /* orange */
}

.btn-logout:hover {
  background: #c56f38;
}

.renewal-info {
  margin-top: 8px;
  font-size: 14px;
  color: #09383b;
}

.page-title {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  color: #09383b;
  margin-bottom: 6px;
}

.page-subtitle {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.plan-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.plan-title {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-family: "Montserrat", sans-serif;
  color: #09383b;
  margin-bottom: 12px;
}

.plan-description {
  font-size: 15px;
  color: #333;
  margin-bottom: 16px;
}

.plan-card .button,
.plan-card .button-green {
  width: 100%;
  text-align: center;
}

.footer {
  background: #1c2b2d;
  color: #E5DDC3;
  padding: 20px;
  font-family: "Poppins", "Roboto", sans-serif;
  text-align: center;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-wrap: wrap;
  min-height:40px;
}

.footer-left {
  position: absolute;
  left: 20px;
  text-align: left;
}

.footer-right {
  position: absolute;
  right: 20px;
  text-align: right;
}

/* Stack title + tagline */
.footer-left strong,
.footer-left small {
  display: block;
  line-height: 1.4;
}

.footer-left strong {
  margin-bottom: 4px;
}

/* Center links */
.footer-links a {
  margin: 0 10px;
  color: #E5DDC3;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #E96D32;
}

/* Mobile stack layout */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    position: static;
  }
  .footer-left,
  .footer-right {
    position: static;
    text-align: center;
    margin: 6px 0;
  }

  .dashboard-container {
    margin: 40px 16px;
    padding: 20px;
  }

  .split-landing {
    flex-direction: column;
  }
  .split-section {
    flex: 1 1 100%;
  }
  .split-section.login {
    order: -1; /* Login appears first on mobile */
  }
}

/* List style */
.privacy-list {
  list-style-type: none;
  padding-left: 0;
}

.privacy-list li {
  position: relative;
  margin-bottom: 20px;
  padding-right: 30px;
}

/* Help icon */
.help-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #2f4c4e;      /* muted teal */
  color: #E5DDC3;           /* soft tan */
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.2s ease;
}

.help-icon:hover {
  background: #8aa082;      /* green highlight on hover */
  color: #fff;
}

/* Help text panel */
.help-text {
  display: none;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #1c2b2d;      /* dark card background */
  color: #E5DDC3;
  font-size: 14px;
  line-height: 1.4;
  border-left: 4px solid #E96D32; /* orange accent */
  animation: fadeIn 0.2s ease;
}

/* Smooth reveal */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Landing Pages */
.split-landing {
  display: flex;
  flex-wrap: wrap;
  min-height: 80vh;
}

/* Split sections */
.split-section {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-items: center;
  padding: 60px 30px;
  color: white;
  box-sizing: border-box;
}

/* Register side (teal background) */
.split-section.register {
  background-color: #09383b; /* deep teal */
}

/* Login side (tan background) */
.split-section.login {
  background-color: #E5DDC3; /* soft tan */
  color: #09383b; /* contrast */
}

/* Text/content container */
.split-section .content {
  max-width: 400px;
  text-align: center;
  display:block;
}

.split-section h1 {
  margin-bottom: 12px;
  display: block;
}

.split-section p {
  margin-bottom: 20px;
  line-height: 1.5;
  display: block;
}

.button-inverse {
  background-color: #09383b;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.button-inverse:hover {
  background-color: #06282a;
}

.login h1 {
  color: #09383b; /* deep teal */
}

.landing-header {
  background: #09383b; /* deep teal */
  color: white;
  text-align: center;
  padding: 40px 20px;
  border-bottom: 4px solid #E96D32; /* subtle orange accent */
}

.landing-header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: bold;
}

.landing-header p {
  margin-top: 10px;
  font-size: 16px;
  color: #e5ddc3; /* soft tan accent */
}

.danger-zone {
  border: 2px solid #e96d32;
  border-radius: 10px;
}

.danger-zone:hover {
  border: 2px solid #ff0000;
}

.button-red {
  background-color: #e96d32;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
.button-red:hover {
  background-color: #c45a26;
}

.message-container {
  margin-bottom: 20px;
}

.alert {
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 500;
  margin-bottom: 10px;
}
.alert-success {
  background-color: #8aa082;
  color: white;
}
.alert-warning {
  background-color: #df884a;
  color: white;
}
.alert-error {
  background-color: #e96d32;
  color: white;
}

.subscription-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}
.subscription-list li {
  padding: 8px 0;
  border-bottom: 1px solid #E5DDC3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-canceled {
  background-color: #e96d32;
  color: #fff;
}

.ending-soon .sub-date {
  font-style: italic;
  color: #555;
}

.allocation-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.allocation-item {
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 12px;
  background-color: #fff;
  transition: all 0.2s ease;
}

.allocation-item label {
  display: flex;
  align-items: flex-start;
  padding: 14px 18px;
  cursor: pointer;
  gap: 10px;
}

.allocation-inner input[type="checkbox"] {
  transform: scale(1.3);
  cursor: pointer;
  accent-color: #E96D32;
}

.app-content {
  flex: 1;
}

.allocation-item.unlocked {
  background-color: #e6f2ea;
  border-color: #8aa082;
}

.allocation-item.purchased {
  background-color: #e6f2ea;
  border-color: #0a4b50;
  cursor: not-allowed;
}

.allocation-item:not(.purchased):hover {
  box-shadow: 0 0 0 3px rgba(9, 56, 59, 0.15);
  border-color: #09383b;
}

.app-name {
  font-weight: 600;
  color: #09383b;
}

.app-cost {
  color: #666;
  font-size: 0.9em;
}

.app-message {
  font-size: 13px;
  color: #0a4b50;
  margin-top: 6px;
  font-weight: 500;
}

#remainingPoints {
  font-weight: 600;
  margin-top: 10px;
}

.active-selection {
  box-shadow: 0 0 0 3px rgba(9, 56, 59, 0.15);
  border-color: #09383b;
  background-color: #e6f2ea;
}

.purchased {
  background-color: #e3f1f3;
  border-color: #0a4b50;
  position: relative;
  cursor: default;
}

.premium-icon {
  font-size: 20px;
  color: #E96D32;
  text-shadow: 0 0 4px rgba(9, 56, 59, 0.3);
  line-height: 1;
}

.allocation-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
}

.purchased-inner {
  cursor: default;
}

.icon-wrap {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.premium-icon {
  font-size: 20px;
  color: #E96D32;
  text-shadow: 0 0 4px rgba(9, 56, 59, 0.3);
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

.bonus-points-info {
  margin: 12px;
  padding: 12px 16px;
  background-color: #E5DDC3;
  border-left: 4px solid #8aa082; /* soft green accent */
  border-radius: 12px;
  color: #09383b;
  font-size: 15px;
  line-height: 1.6;
}

.bonus-points-info h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #09383b;
  font-size: 17px;
  font-weight: 600;
}

.bonus-points-info em {
  font-style: normal;
  color: #E96D32; /* soft orange accent */
  font-weight: 600;
}

.bonus-points-info .example {
  margin-top: 8px;
  color: #09383b;
  font-size: 14px;
}

.allocation-item.unaffordable {
  opacity: 0.5;
  pointer-events: none;
  background-color: #eee;
}

.cooldown-banner {
  background-color: #E5DDC3; /* soft tan */
  border-left: 4px solid #df884a; /* warm orange accent */
  padding: 12px 16px;
  border-radius: 6px;
  margin: 12px;
  color: #09383b;
}

#pointsValue {
  transition: color 0.2s ease;
}

#pointsValue.updated {
  color: #df884a;
}

.button-small {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.sub-actions {
  margin-top: 4px;
}

.subscription-actions {
  margin-top: 15px;
}

.subscription-detail-card {
  margin-bottom: 18px;
  padding: 18px 22px;
  border: 1px solid #8aa08240;
  background-color: #fafafa;
  border-radius: 10px;
}

.subscription-detail-card h3, h4 {
  margin-top: 0;
  color: #09383b;
}

.subscription-detail-card p.warning {
  color: #df884a;
  font-weight: 500;
  margin-top: 6px;
}

.subtle {
  font-size: 0.9rem;
  color: #555;
}

em {
  color: #555;
  font-style: normal;
  opacity: 0.85;
}

.allocation-status-card {
  background-color: #E5DDC3; /* soft tan background */
  border-left: 4px solid #8aa082;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 8px;
  color: #09383b;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.status-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.status-row h3 {
  margin: 0;
  font-size: 1.1rem;
}

.status-row p {
  margin: 0;
  flex: 1;
}

.status-row label {
  font-weight: 600;
  color: var(--th-deep-teal);
  font-family: "Poppins", "Roboto", sans-serif;
  margin: 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 8px;
  line-height: 1; /* prevents vertical offset */
}

.status-active {
  background-color: var(--th-soft-green);
  color: #fff;
}

.status-pending {
  background-color: var(--th-warm-orange);
  color: #fff;
}

.status-expired {
  background-color: #b84b3c; /* subtle red tone */
  color: #fff;
}

.status-inactive {
  background-color: #ccc;
  color: #333;
}

.tier-row p {
  font-style: italic;
  color: #333;
}

.button-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: 600;
  color: var(--th-soft-tan);
  margin-bottom: 0.4rem;
  font-family: "Poppins", "Roboto", sans-serif;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"] {
  background-color: var(--th-soft-tan);
  border: 2px solid var(--th-soft-green);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  color: var(--th-deep-teal);
  font-family: "Roboto", "Open Sans", sans-serif;
  transition: all 0.25s ease;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: var(--th-warm-orange);
  outline: none;
  box-shadow: 0 0 4px var(--th-warm-orange);
  background-color: #fffaf3;
}

.form-group input::placeholder {
  color: rgba(9, 56, 59, 0.6);
}

.test-banner {
  background: #df884a;
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 6px 0;
  border-radius: 6px;
  margin-bottom: 10px;
  font-family: "Poppins", "Roboto", sans-serif;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  background: #09383b;
  color: #E5DDC3;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px 4px 8px;
  border-radius: 20px;
  margin: 2px 4px;
  white-space: nowrap;
}

.platform-icon {
  width: 16px;
  height: 16px;
  fill: #09383b; /* deep teal */
  margin-right: 6px;
  vertical-align: middle;
}

.badge-status-available { opacity: 1; }
.badge-status-pending_review { opacity: 0.8; }
.badge-status-coming_soon { opacity: 0.6; }
.badge-status-not_planned { opacity: 0.4; }