:root {
  --primary: #7357ff;
  --primary-dark: #5833da;
  --background: #f5f4fb;
  --card-bg: #fff;
  --card-border: #ebe8f7;
  --feature-color: #7357ff;
  --success: #22be7a;
  --danger: #ed4c5c;
  --text-dark: #181a27;
  --text-light: #7a7b8c;
  --btn-bg: #7357ff;
  --btn-hover: #5833da;
  --badge: #efeafd;
  --shadow: 0 2px 16px rgba(115,87,255,0.09);
}

body {
  background: var(--background);
  color: var(--text-dark);
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
  margin: 0;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

body.dark-mode {
  --background: #161422;
  --card-bg: #231e33;
  --card-border: #2a2146;
  --feature-color: #bba7ff;
  --success: #33e996;
  --text-dark: #f9f9fb;
  --text-light: #bdbad7;
  --btn-bg: #7357ff;
  --btn-hover: #5637c8;
  --badge: #322458;
  --shadow: 0 5px 20px rgba(85,60,255,0.15);
}

header {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 1.15rem 0 0.7rem 0;
  box-shadow: 0 2px 12px rgba(115,87,255,0.07);
}

.pricing-section {
  padding: 32px 0 28px 0;
  background: var(--background);
}

.pricing-section h2 {
  font-size: 2.0rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -1px;
  text-align: center;
}
.pricing-section .subtitle {
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 1.04rem;
  text-align: center;
}

.billing-toggle {
  display: flex;
  position: relative;
  background: #f3f1fb;
  border-radius: 34px;
  padding: 1px;
  box-shadow: 0 2px 8px 1px #e4dfff, 0 1px 6px 1px #edeaff;
  width: 320px;
  margin: 22px auto 22px auto;
  min-width: 0;
  font-size: 0.99rem;
}
.billing-toggle .pill {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  background: var(--primary);
  border-radius: 34px;
  transition: left 0.22s cubic-bezier(.67,.17,.24,.98), width 0.2s, background .18s;
  z-index: 1;
  box-shadow: 0 2px 8px #e4dfff;
}
.billing-toggle label {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.03rem;
  color: #23223b;
  border-radius: 34px;
  margin: 0;
  padding: 8px 0;
  background: transparent;
  z-index: 2;
  position: relative;
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  text-align: center;
}
.billing-toggle input[type="radio"] {display: none;}
.billing-toggle label span {
  font-weight: 600;
  z-index: 2;
  position: relative;
  color: #23223b;
  transition: color .22s;
  display: block;
  font-size: 1.03rem;
  line-height: 1.1;
}
.billing-toggle input[type="radio"]:checked + span {color: #fff;}
@media (max-width: 600px) {
  .billing-toggle {width: 97vw;}
}

.pricing-table {
  max-width: 1200px;
  margin: 0 auto 20px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px,1fr));
  gap: 22px;
  align-items: stretch;
}
.pricing-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 13px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 370px;
  position: relative;
  transition: border 0.15s, box-shadow 0.15s;
  text-align: left;
  padding: 20px 15px 15px 15px;
  font-size: 0.96rem;
}
.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 7px 26px rgba(116,94,255,0.09);
}
.plan-badge-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 2.1em;
  margin-bottom: 2px;
}
.plan-badge {
  display: inline-block;
  background: var(--badge);
  color: var(--feature-color);
  font-size: .90rem;
  padding: 2px 9px;
  border-radius: 9px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-right: 3px;
  box-shadow: none;
  position: static;
}
.pricing-card h3 {
  display: inline-block;
  font-size: 1.04rem;
  margin: 0 0 0 0;
  font-weight: 700;
  color: var(--primary-dark);
  vertical-align: middle;
  max-width: 90%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pricing-card .plan-price-row {
  display: flex;
  align-items: end;
  gap: 4px;
  margin: 8px 0 2px 0;
  justify-content: left;
}
.pricing-card .plan-price {
  font-size: 1.44rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
  margin-right: 3px;
}
.pricing-card .plan-price-term {
  color: var(--text-light);
  font-size: 0.97rem;
  font-weight: 500;
}
.pricing-card .plan-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 9px;
  font-weight: 400;
}
.pricing-card .plan-articles {
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--primary-dark);
  font-size: 0.98rem;
  text-align: left;
}
.features-list {
  text-align: left;
  margin: 14px 0 11px 0;
  width: 100%;
  padding: 0 0 0 1px;
}
.features-list li {
  color: var(--text-dark);
  margin-bottom: 4px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.52;
  font-weight: 500;
  display: flex;
  align-items: center;
  background: none;
  padding-left: 0;
}
.features-list li svg {
  width: 16px; height: 16px; fill: var(--success); margin-right: 7px;
}
.badge-new {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.01em;
}
.badge-soon {
  display: inline-block;
  background: #ffa600;
  color: #fff;
  border-radius: 7px;
  font-size: 0.49rem;
  font-weight: 600;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.01em;
}
.pricing-card .btn, .pricing-card form button {
  width: 100%;
  margin-top: auto;
  background: var(--btn-bg);
  color: #fff;
  font-weight: 800;
  border: none;
  border-radius: 7px;
  padding: 11px 0;
  font-size: 1.02rem;
  cursor: pointer;
  margin-bottom: 0;
  margin-top: 10px;
  transition: background 0.13s, box-shadow 0.12s;
  box-shadow: 0 2px 8px rgba(116,94,255,0.08);
}
.pricing-card .btn:hover, .pricing-card form button:hover {
  background: var(--btn-hover);
}
.pricing-card select {
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  border: 1.2px solid var(--card-border);
  font-size: 0.98rem;
  margin-bottom: 10px;
  margin-top: 2px;
}
.pricing-card-bottom {margin-top: auto; width: 100%;}
.plan-yearly-row {margin-top: 5px; text-align: left; min-height: 21px; font-size: 0.99rem; font-weight: 700; color: #22be7a;}
.plan-yearly-info {display: none; font-size: 0.99rem;}
@media (max-width: 1000px) {
  .pricing-table { grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 600px) {
  .pricing-table { grid-template-columns: 1fr;}
  .pricing-card { min-height: 0;}
}
.main-content {
  margin-left: 220px;
  min-width: 0;
  width: auto;
  box-sizing: border-box;
  background: var(--background);
}
@media (max-width: 1000px) {
  .main-content {margin-left: 0; width: 100%;}
}
footer {
  background: var(--primary);
  color: #fff;
  padding: 22px 0 13px 0;
  text-align: center;
  font-size: 1rem;
}



:root {
  --primary: #7357ff;
  --primary-dark: #5833da;
  --background: #f5f4fb;
  --card-bg: #fff;
  --card-border: #ebe8f7;
  --feature-color: #7357ff;
  --success: #22be7a;
  --danger: #ed4c5c;
  --text-dark: #181a27;
  --text-light: #7a7b8c;
  --btn-bg: #7357ff;
  --btn-hover: #5833da;
  --badge: #efeafd;
  --shadow: 0 2px 16px rgba(115,87,255,0.09);
}
body {
  background: var(--background);
  color: var(--text-dark);
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
  margin: 0;
  overflow-x: hidden;
}
body.dark-mode {
  --background: #161422;
  --card-bg: #231e33;
  --card-border: #2a2146;
  --feature-color: #bba7ff;
  --success: #33e996;
  --text-dark: #f9f9fb;
  --text-light: #bdbad7;
  --btn-bg: #7357ff;
  --btn-hover: #5637c8;
  --badge: #322458;
  --shadow: 0 5px 20px rgba(85,60,255,0.15);
}
header {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 1.15rem 0 0.7rem 0;
  box-shadow: 0 2px 12px rgba(115,87,255,0.07);
}
.pricing-section {
  padding: 32px 0 28px 0;
  background: var(--background);
}
.pricing-section h2 {
  font-size: 2.0rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -1px;
  text-align: center;
}
.pricing-section .subtitle {
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 1.04rem;
  text-align: center;
}
.billing-toggle {
  display: flex;
  position: relative;
  background: #f3f1fb;
  border-radius: 34px;
  padding: 1px;
  box-shadow: 0 2px 8px 1px #e4dfff, 0 1px 6px 1px #edeaff;
  width: 320px;
  margin: 22px auto 22px auto;
  min-width: 0;
  font-size: 0.99rem;
}
.billing-toggle .pill {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  background: var(--primary);
  border-radius: 34px;
  transition: left 0.22s cubic-bezier(.67,.17,.24,.98), width 0.2s, background .18s;
  z-index: 1;
  box-shadow: 0 2px 8px #e4dfff;
}
.billing-toggle label {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.03rem;
  color: #23223b;
  border-radius: 34px;
  margin: 0;
  padding: 8px 0;
  background: transparent;
  z-index: 2;
  position: relative;
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  text-align: center;
}
.billing-toggle input[type="radio"] {display: none;}
.billing-toggle label span {
  font-weight: 600;
  z-index: 2;
  position: relative;
  color: #23223b;
  display: block;
  font-size: 1.03rem;
  line-height: 1.1;
}
.billing-toggle input[type="radio"]:checked + span {color: #fff;}
@media (max-width: 600px) {
  .billing-toggle {width: 97vw;}
}
.pricing-table {
  max-width: 1200px;
  margin: 0 auto 20px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px,1fr));
  gap: 22px;
  align-items: stretch;
}
.pricing-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 13px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 370px;
  position: relative;
  transition: border 0.15s, box-shadow 0.15s;
  text-align: left;
  padding: 20px 15px 15px 15px;
  font-size: 0.96rem;
}
.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 7px 26px rgba(116,94,255,0.09);
}
.plan-badge-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 2.1em;
  margin-bottom: 2px;
}
.plan-badge {
  display: inline-block;
  background: var(--badge);
  color: var(--feature-color);
  font-size: .90rem;
  padding: 2px 9px;
  border-radius: 9px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-right: 3px;
  box-shadow: none;
  position: static;
}
.pricing-card h3 {
  display: inline-block;
  font-size: 1.04rem;
  margin: 0 0 0 0;
  font-weight: 700;
  color: var(--primary-dark);
  vertical-align: middle;
  max-width: 90%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pricing-card .plan-price-row {
  display: flex;
  align-items: end;
  gap: 4px;
  margin: 8px 0 2px 0;
  justify-content: left;
}
.pricing-card .plan-price {
  font-size: 1.44rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
  margin-right: 3px;
}
.pricing-card .plan-price-term {
  color: var(--text-light);
  font-size: 0.97rem;
  font-weight: 500;
}
.pricing-card .plan-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 9px;
  font-weight: 400;
}
.pricing-card .plan-articles {
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--primary-dark);
  font-size: 0.98rem;
  text-align: left;
}
.features-list {
  text-align: left;
  margin: 14px 0 11px 0;
  width: 100%;
  padding: 0 0 0 1px;
}
.features-list li {
  color: var(--text-dark);
  margin-bottom: 4px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.52;
  font-weight: 500;
  display: flex;
  align-items: center;
  background: none;
  padding-left: 0;
}
.features-list li svg {
  width: 16px; height: 16px; fill: var(--success); margin-right: 7px;
}
.badge-new {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.01em;
}
.badge-soon {
  display: inline-block;
  background: #ffa600;
  color: #fff;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.01em;
}
.pricing-card .btn, .pricing-card form button {
  width: 100%;
  margin-top: auto;
  background: var(--btn-bg);
  color: #fff;
  font-weight: 800;
  border: none;
  border-radius: 7px;
  padding: 11px 0;
  font-size: 1.02rem;
  cursor: pointer;
  margin-bottom: 0;
  margin-top: 10px;
  transition: background 0.13s, box-shadow 0.12s;
  box-shadow: 0 2px 8px rgba(116,94,255,0.08);
}
.pricing-card .btn:hover, .pricing-card form button:hover {
  background: var(--btn-hover);
}
.pricing-card select {
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  border: 1.2px solid var(--card-border);
  font-size: 0.98rem;
  margin-bottom: 10px;
  margin-top: 2px;
}
.pricing-card-bottom {margin-top: auto; width: 100%;}
.plan-yearly-row {margin-top: 5px; text-align: left; min-height: 21px; font-size: 0.99rem; font-weight: 700; color: #22be7a;}
.plan-yearly-info {display: none; font-size: 0.99rem;}
@media (max-width: 1000px) {
  .pricing-table { grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 600px) {
  .pricing-table { grid-template-columns: 1fr;}
  .pricing-card { min-height: 0;}
}
.main-content {
  margin-left: 220px;
  min-width: 0;
  width: auto;
  box-sizing: border-box;
  background: var(--background);
}
@media (max-width: 1000px) {
  .main-content {margin-left: 0; width: 100%;}
}
footer {
  background: var(--primary);
  color: #fff;
  padding: 22px 0 13px 0;
  text-align: center;
  font-size: 1rem;
}