:root {
  --rwc5-bg: #0b0c10;
  --rwc5-bg-alt: #13151c;
  --rwc5-surface: rgba(25, 27, 38, 0.6);
  --rwc5-primary: #602142;
  --rwc5-primary-hover: #7d2a55;
  --rwc5-accent: #2561ae;
  --rwc5-accent-hover: #317be0;
  --rwc5-text: #e2e8f0;
  --rwc5-text-dim: #94a3b8;
  --rwc5-border: rgba(255, 255, 255, 0.1);
  --rwc5-radius: 8px;
  --rwc5-font-head: 'Kanit', sans-serif;
  --rwc5-font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body.rwc5-body {
  font-family: var(--rwc5-font-body);
  background-color: var(--rwc5-bg);
  color: var(--rwc5-text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  font-size: 15px;
}

@media (min-width: 768px) {
  body.rwc5-body { font-size: 16px; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--rwc5-font-head);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

a { color: var(--rwc5-accent); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--rwc5-accent-hover); }
ul { list-style: none; }

.rwc5-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.rwc5-glass {
  background: var(--rwc5-surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--rwc5-border);
  border-radius: var(--rwc5-radius);
}

.rwc5-text-accent { color: var(--rwc5-accent-hover); }
.rwc5-text-center { text-align: center; }
.rwc5-text-dim { color: var(--rwc5-text-dim); }
.rwc5-bg-alt { background-color: var(--rwc5-bg-alt); }

/* Header & Nav */
.rwc5-header {
  background: rgba(11, 12, 16, 0.95);
  border-bottom: 1px solid var(--rwc5-border);
  padding: 1rem 0;
  position: relative;
  z-index: 50;
}
.rwc5-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.rwc5-logo, .rwc5-logo-small {
  font-family: var(--rwc5-font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.rwc5-logo-small { font-size: 1.25rem; }
.rwc5-nav-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.rwc5-nav-link {
  color: var(--rwc5-text-dim);
  font-weight: 500;
  font-size: 14px;
}
.rwc5-nav-link:hover { color: #fff; }

/* Ticker */
.rwc5-ticker {
  background: var(--rwc5-primary);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.rwc5-ticker-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  max-width: 100vw;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.rwc5-ticker-wrapper::-webkit-scrollbar { display: none; }
.rwc5-ticker-track {
  display: inline-flex;
  gap: 2rem;
  padding: 0 1rem;
}
.rwc5-ticker-item { display: inline-block; }
.rwc5-ticker-link {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

/* Buttons */
.rwc5-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--rwc5-radius);
  font-family: var(--rwc5-font-head);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 15px;
}
.rwc5-btn-primary {
  background: var(--rwc5-primary);
  color: #fff;
  border: 1px solid var(--rwc5-primary-hover);
  box-shadow: 0 4px 15px rgba(96, 33, 66, 0.4);
}
.rwc5-btn-primary:hover {
  background: var(--rwc5-primary-hover);
  color: #fff;
  box-shadow: 0 6px 20px rgba(96, 33, 66, 0.6);
}
.rwc5-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--rwc5-text-dim);
}
.rwc5-btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.05);
}

/* Hero */
.rwc5-hero-section {
  padding: 4rem 0;
  background: radial-gradient(circle at 80% 50%, rgba(37, 97, 174, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 20% 50%, rgba(96, 33, 66, 0.15) 0%, transparent 50%);
}
.rwc5-hero-split {
  display: flex;
  flex-direction: column-reverse;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .rwc5-hero-split { flex-direction: row; }
  .rwc5-hero-content { flex: 1; padding-right: 2rem; }
  .rwc5-hero-visual { flex: 1; }
}
.rwc5-hero-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(37, 97, 174, 0.2);
  color: var(--rwc5-accent-hover);
  border: 1px solid var(--rwc5-accent);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.rwc5-hero-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .rwc5-hero-title { font-size: 3rem; } }
.rwc5-hero-slogan {
  font-size: 1rem;
  color: var(--rwc5-text-dim);
  margin-bottom: 2rem;
}
.rwc5-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.rwc5-hero-img-wrap {
  border-radius: var(--rwc5-radius);
  overflow: hidden;
  border: 1px solid var(--rwc5-border);
}
.rwc5-img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}
.rwc5-pulse {
  animation: rwc5-glow-anim 3s infinite alternate;
}
@keyframes rwc5-glow-anim {
  0% { box-shadow: 0 0 15px rgba(37, 97, 174, 0.2); }
  100% { box-shadow: 0 0 30px rgba(96, 33, 66, 0.4); }
}

/* Stats */
.rwc5-stats-section { padding: 2rem 0; margin-top: -2rem; position: relative; z-index: 10; }
.rwc5-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .rwc5-stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.rwc5-stat-card {
  padding: 1.5rem 1rem;
  text-align: center;
}
.rwc5-stat-num {
  font-family: var(--rwc5-font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--rwc5-accent-hover);
  margin-bottom: 0.25rem;
}
.rwc5-stat-label {
  font-size: 13px;
  color: var(--rwc5-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sections */
.rwc5-section { padding: 4rem 0; }
.rwc5-section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.rwc5-section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.rwc5-section-desc {
  color: var(--rwc5-text-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* Tabs */
.rwc5-tab-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.rwc5-tab-btn {
  background: transparent;
  border: 1px solid var(--rwc5-border);
  color: var(--rwc5-text);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--rwc5-font-body);
  font-size: 14px;
  transition: all 0.3s;
}
.rwc5-tab-btn:hover, .rwc5-tab-btn.rwc5-active {
  background: var(--rwc5-accent);
  border-color: var(--rwc5-accent);
  color: #fff;
}
.rwc5-tab-pane {
  display: none;
  animation: rwc5-fade-in 0.4s ease;
}
.rwc5-tab-pane.rwc5-active { display: block; }
@keyframes rwc5-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Masonry & Cards */
.rwc5-masonry {
  column-count: 1;
  column-gap: 1.5rem;
}
@media (min-width: 600px) { .rwc5-masonry { column-count: 2; } }
@media (min-width: 900px) { .rwc5-masonry { column-count: 3; } }

.rwc5-card-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: var(--rwc5-radius);
  overflow: hidden;
  transition: transform 0.3s;
  display: block;
}
.rwc5-card-item:hover { transform: translateY(-5px); border-color: var(--rwc5-accent); }
.rwc5-card-link { display: block; }
.rwc5-card-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.rwc5-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.rwc5-card-item:hover .rwc5-card-img-wrap img { transform: scale(1.05); }
.rwc5-card-body {
  padding: 1.25rem;
}
.rwc5-card-title {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: #fff;
}
.rwc5-card-sub {
  font-size: 13px;
  color: var(--rwc5-text-dim);
  margin-bottom: 1rem;
}
.rwc5-card-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(96, 33, 66, 0.3);
  color: #ff85c0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

/* Features Grid */
.rwc5-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .rwc5-features-grid { grid-template-columns: repeat(3, 1fr); } }
.rwc5-feature-card {
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.3s;
}
.rwc5-feature-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.rwc5-feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.rwc5-feature-title { font-size: 1.25rem; margin-bottom: 0.75rem; }
.rwc5-feature-desc { font-size: 14px; color: var(--rwc5-text-dim); }

/* Split Layout (Steps/Comparison) */
.rwc5-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .rwc5-split-layout { grid-template-columns: 1fr 1fr; align-items: center; }
}
.rwc5-steps-list { margin-top: 2rem; }
.rwc5-step-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.rwc5-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--rwc5-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--rwc5-font-head);
  font-weight: 700;
  font-size: 18px;
}
.rwc5-step-text h4 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.rwc5-step-text p { font-size: 14px; color: var(--rwc5-text-dim); }

.rwc5-comparison-box {
  padding: 2rem;
}
.rwc5-box-title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--rwc5-border);
  padding-bottom: 1rem;
}
.rwc5-comp-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
}
.rwc5-comp-row:last-child { border-bottom: none; }
.rwc5-comp-label { color: var(--rwc5-text-dim); font-size: 14px; }
.rwc5-comp-val { font-weight: 500; font-size: 14px; }

/* Payment Chips */
.rwc5-payment-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.rwc5-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  transition: all 0.2s;
}
.rwc5-chip:hover {
  background: var(--rwc5-accent);
  border-color: var(--rwc5-accent);
}

/* Page Header */
.rwc5-page-header {
  background: linear-gradient(180deg, var(--rwc5-bg-alt) 0%, var(--rwc5-bg) 100%);
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--rwc5-border);
}
.rwc5-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 13px;
}
.rwc5-crumb-item { display: flex; align-items: center; }
.rwc5-crumb-item a { color: var(--rwc5-text-dim); }
.rwc5-crumb-item a:hover { color: #fff; }
.rwc5-crumb-item:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--rwc5-text-dim);
}
.rwc5-page-title { font-size: 2.5rem; margin-bottom: 0.5rem; }
.rwc5-page-meta { color: var(--rwc5-text-dim); font-size: 15px; }

/* Inner Page Grid */
.rwc5-page-content { padding: 3rem 0; }
.rwc5-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 992px) {
  .rwc5-page-grid { grid-template-columns: 3fr 1fr; }
}

/* Article */
.rwc5-article-wrap {
  padding: 2rem;
}
.rwc5-article-wrap h2, .rwc5-article-wrap h3, .rwc5-article-wrap h4 {
  color: #fff;
  margin: 2rem 0 1rem;
}
.rwc5-article-wrap h2 { font-size: 1.75rem; border-bottom: 1px solid var(--rwc5-border); padding-bottom: 0.5rem; }
.rwc5-article-wrap h3 { font-size: 1.5rem; }
.rwc5-article-wrap p { margin-bottom: 1.25rem; line-height: 1.7; }
.rwc5-article-wrap ul, .rwc5-article-wrap ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.rwc5-article-wrap li { margin-bottom: 0.5rem; }
.rwc5-article-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}
.rwc5-article-wrap th, .rwc5-article-wrap td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--rwc5-border);
  text-align: left;
}
.rwc5-article-wrap th { background: rgba(255,255,255,0.05); font-weight: 600; }
.rwc5-article-wrap blockquote {
  border-left: 4px solid var(--rwc5-accent);
  padding: 1rem 1.5rem;
  background: rgba(37, 97, 174, 0.1);
  margin: 1.5rem 0;
  border-radius: 0 var(--rwc5-radius) var(--rwc5-radius) 0;
  font-style: italic;
}
.rwc5-article-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: var(--rwc5-radius);
  margin: 1.5rem 0;
}
.rwc5-article-wrap hr {
  border: 0;
  height: 1px;
  background: var(--rwc5-border);
  margin: 2rem 0;
}

/* FAQ Accordion */
.rwc5-faq-section { margin-top: 3rem; padding: 2rem; }
.rwc5-accordion { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.rwc5-faq-details {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--rwc5-border);
  border-radius: var(--rwc5-radius);
  overflow: hidden;
}
.rwc5-faq-summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-family: var(--rwc5-font-head);
  font-size: 15px;
}
.rwc5-faq-summary::-webkit-details-marker { display: none; }
.rwc5-faq-summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  transition: transform 0.3s;
}
.rwc5-faq-details[open] .rwc5-faq-summary::after { transform: translateY(-50%) rotate(45deg); }
.rwc5-faq-body {
  padding: 0 1.25rem 1rem;
  color: var(--rwc5-text-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* Pager */
.rwc5-pager-section { margin-top: 2rem; }
.rwc5-pager-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.rwc5-pager-btn {
  flex: 1;
  text-align: center;
  padding: 1rem;
  background: var(--rwc5-surface);
  border: 1px solid var(--rwc5-border);
  border-radius: var(--rwc5-radius);
  font-weight: 500;
  font-size: 14px;
}
.rwc5-pager-btn:hover { background: var(--rwc5-accent); border-color: var(--rwc5-accent); color: #fff; }

/* Sidebar Widgets */
.rwc5-widget {
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.rwc5-widget-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rwc5-border);
  padding-bottom: 0.5rem;
}
.rwc5-related-links { display: flex; flex-direction: column; gap: 0.75rem; }
.rwc5-related-links a {
  display: block;
  color: var(--rwc5-text-dim);
  font-size: 14px;
  padding-left: 1rem;
  position: relative;
}
.rwc5-related-links a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--rwc5-accent);
  font-weight: bold;
}
.rwc5-related-links a:hover { color: #fff; transform: translateX(3px); }
.rwc5-promo-widget { text-align: center; }
.rwc5-widget-desc { margin-top: 1rem; font-size: 13px; color: var(--rwc5-text-dim); line-height: 1.5; }

/* Footer */
.rwc5-footer {
  background: #06070a;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--rwc5-border);
  margin-top: 4rem;
}
.rwc5-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .rwc5-footer-grid { grid-template-columns: 2fr 1fr; }
}
.rwc5-footer-desc {
  color: var(--rwc5-text-dim);
  margin-top: 1rem;
  font-size: 14px;
  max-width: 500px;
}
.rwc5-footer-title { font-size: 1.125rem; margin-bottom: 1.25rem; }
.rwc5-footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.rwc5-footer-links a { color: var(--rwc5-text-dim); font-size: 14px; }
.rwc5-footer-links a:hover { color: #fff; }
.rwc5-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
  text-align: center;
}
.rwc5-legal {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.rwc5-copyright {
  font-size: 13px;
  color: var(--rwc5-text-dim);
}
