
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1A1A1A;
  --bg-input: #141414;
  
  --text-primary: #F5F5F5;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;
  
  --accent: #E07B10;
  --accent-hover: #F5A623;
  --accent-muted: rgba(224, 123, 16, 0.15);
  
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.12);
  
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', 'SF Mono', Consolas, monospace;
  
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
  
  --container-max: 1200px;
  --header-height: 150px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

img {
  max-width: 100%;
  height: auto;
}


.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}


.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: #111111;
  border-bottom: none;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 240px;
  height: auto;
  display: block;
}


.social-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.social-link:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}


.social-link .ic,
.nav-icon .ic {
  width: 22px;
  height: 22px;
}
.ic {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
}
.ic-instagram { -webkit-mask-image: url(../assets/icons/instagram.svg); mask-image: url(../assets/icons/instagram.svg); }
.ic-youtube   { -webkit-mask-image: url(../assets/icons/youtube.svg);   mask-image: url(../assets/icons/youtube.svg); }
.ic-facebook  { -webkit-mask-image: url(../assets/icons/facebook.svg);  mask-image: url(../assets/icons/facebook.svg); }
.ic-patreon   { -webkit-mask-image: url(../assets/icons/patreon.svg);   mask-image: url(../assets/icons/patreon.svg); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-icon {
  display: flex;
  align-items: center;
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  color: var(--text-primary);
}

.burger svg {
  display: block;
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.cart-btn svg {
  width: 22px;
  height: 22px;
}

.cart-btn:hover {
  color: var(--text-secondary);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.cart-count:empty,
.cart-count[data-count="0"] {
  display: none;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.btn-dark {
  background: #1d1d1d;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-dark:hover {
  background: #2e2e2e;
  border-color: var(--border-hover);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 8px 12px;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}


main {
  padding-top: var(--header-height);
}


.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-muted);
  border: 1px solid rgba(224, 123, 16, 0.3);
  border-radius: 120px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-hover);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 50%, #FFCD38 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}




.products-section {
  padding: 70px 0 60px;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 36px;
}


.products-grid.grid4-mode {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.products-grid.grid4-mode .product-info {
  padding: 16px;
}

.products-grid.grid4-mode .product-name {
  font-size: 15px;
}

.products-grid.grid4-mode .product-description {
  font-size: 13px;
  margin-bottom: 12px;
}

@media (max-width: 1024px) {
  .products-grid.grid4-mode {
    grid-template-columns: repeat(2, 1fr);
  }
}


.view-toggle {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 16px;
}

.view-toggle-btn {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color .15s;
}

.view-toggle-btn:hover {
  color: var(--text-secondary);
}

.view-toggle-btn.active {
  color: var(--accent);
}


.products-grid.list-mode {
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.products-grid.list-mode .product-card {
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
}

.products-grid.list-mode .product-card:last-child {
  border-bottom: none;
}

.products-grid.list-mode .product-card:hover {
  transform: none;
  background: var(--bg-card-hover);
  box-shadow: none;
}


.products-grid.list-mode .product-image {
  display: none !important;
}


.products-grid.list-mode .product-info {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name actions"
    "desc actions"
    "meta actions";
  align-items: center;
  column-gap: 20px;
  row-gap: 2px;
  min-width: 0;
}

.products-grid.list-mode .product-name {
  grid-area: name;
  margin: 0;
  min-width: 0;
  font-size: 15px;
}

.products-grid.list-mode .product-description {
  grid-area: desc;
  margin: 0;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.products-grid.list-mode .product-info > div:not(.product-footer) {
  grid-area: meta;
  margin: 0 !important;
  min-width: 0;
}

.products-grid.list-mode .product-footer {
  grid-area: actions;
  align-self: center;
  margin: 0;
  flex-shrink: 0;
  gap: 16px;
  
  justify-content: flex-end !important;
}

@media (max-width: 600px) {
  .products-grid.list-mode .product-info {
    padding: 12px 12px;
    column-gap: 12px;
  }
  .products-grid.list-mode .product-footer {
    gap: 10px;
  }
}


.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card.featured {
  border-color: rgba(224, 123, 16, 0.25);
}

.product-image {
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-image-placeholder {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.product-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.product-name a:hover {
  color: var(--accent);
}

.product-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--font-mono);
}

.product-price-original {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 8px;
}

.add-to-cart-btn {
  padding: 8px 14px;
  min-width: 110px;   
  text-align: center;
}

.add-to-cart-btn.added {
  background: var(--success);
}


.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  
  transition: opacity var(--transition-base);
  z-index: 2000;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  z-index: 2001;
  display: flex;
  flex-direction: column;
}

.cart-overlay.open .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.cart-title {
  font-size: 18px;
  font-weight: 600;
}

.cart-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.cart-close:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.cart-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 64px;
  height: 64px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-image span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 500;
  margin-bottom: 4px;
  font-size: 15px;
}

.cart-item-price {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 14px;
}

.cart-item-remove {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 8px;
  transition: color var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--error);
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.cart-totals {
  margin-bottom: 20px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.cart-total-row.total {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.cart-total-row .amount {
  font-family: var(--font-mono);
}


.checkout-email {
  margin-bottom: 16px;
}

.checkout-email input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  transition: all var(--transition-fast);
}

.checkout-email input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.checkout-email input::placeholder {
  color: var(--text-muted);
}


.features-section {
  padding: 20px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.feature {
  text-align: center;
  padding: 32px 24px;
}

.feature-icon {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}
.feature-icon img {
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.feature h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}


.about-section {
  padding: 0 0 60px 0;
  scroll-margin-top: calc(var(--header-height) - 35px);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.about-title {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.about-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.about-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.about-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.about-credits {
  margin-top: 28px;
}
.about-credits-heading {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 18px 0 8px;
}
.about-credits-heading:first-child {
  margin-top: 0;
}
.about-credits-list {
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: justify;
}
.about-credits-list b {
  font-weight: 400;
  color: var(--text-primary);
}


.blog-section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-placeholder {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.blog-card-body {
  padding: 20px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 10px;
}

.blog-card-tag {
  color: var(--accent);
}

.blog-card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.blog-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}


.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}


.portal-container {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.portal-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.portal-header {
  text-align: center;
  margin-bottom: 20px;
}

.portal-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.portal-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.portal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}




.portal-box {
  margin-top: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.portal-box--note {
  background: rgba(224, 123, 16, 0.06);
  border-color: var(--accent);
}


.portal-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.portal-box-main { flex: 1; min-width: 240px; max-width: 720px; }
.portal-box-title { margin: 0 0 4px; color: var(--text-primary); font-size: 17px; font-weight: 600; }
.portal-box-text  { margin: 0; max-width: 720px; color: var(--text-secondary); font-size: 14px; }
.portal-box-text--sm { font-size: 13px; }

.portal-box-divider { margin-top: 20px; max-width: 720px; border-top: 1px solid var(--border); }


.launcher-grid { display: flex; flex-wrap: wrap; gap: 24px 80px; align-items: flex-start; }
.launcher-info-col { flex: 1 1 380px; min-width: 0; }

.portal-btn-row.launcher-dl-buttons { flex-direction: row; flex-wrap: wrap; margin-top: 32px; }
.launcher-dl-col { flex: 0 1 400px; display: flex; flex-direction: column; align-items: flex-end; }
.launcher-dl-col img { width: 400px; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; }


.portal-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--accent-muted);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 13px;
}


.portal-row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 10px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.portal-row:last-child { border-bottom: none; }

#licenses-list .portal-row { grid-template-columns: auto 2.4fr 1fr auto; }

#licenses-list .portal-row > :first-child { margin-right: 24px; }
.portal-row-sub  { color: var(--text-secondary); }
.portal-row-mono { color: var(--text-secondary); font-family: var(--font-mono); font-size: 12px; }
.portal-row-date { color: var(--text-secondary); white-space: nowrap; }
.portal-row-action { text-align: right; min-width: 80px; }
.portal-row-action a { color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.portal-tag { color: var(--text-muted); font-size: 12px; }

.portal-list-row { padding: 10px 2px; border-bottom: 1px solid var(--border); font-size: 14px; }
.portal-list-row:last-child { border-bottom: none; }

.portal-list-msg { color: var(--text-muted); font-size: 14px; padding: 10px 2px; }

.portal-bullets { margin: 8px 0 0; padding-left: 18px; max-width: 720px; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

.portal-btn-row { display: flex; flex-direction: column; gap: 16px; flex-shrink: 0; }
.portal-btn-row .btn { width: 160px; }

.portal-box-head--actions { align-items: flex-start; flex-wrap: nowrap; }
.portal-box-head--actions .portal-box-main { min-width: 0; }


.btn-pill { padding: 8px 24px; font-size: 14px; white-space: nowrap; text-align: center; text-decoration: none; }
.btn-pill-wide { min-width: 120px; }
.btn-quiet { color: var(--text-muted); }
.btn-soon { background: transparent; color: var(--text-muted); border: 1px solid var(--border); cursor: not-allowed; }


.switch { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track { position: absolute; inset: 0; background: var(--border); border-radius: 12px; transition: background .2s; }
.switch-knob  { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s; }
.switch input:checked ~ .switch-track { background: var(--accent); }
.switch input:checked ~ .switch-knob  { transform: translateX(20px); }


@keyframes pc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.pc-pulse { animation: pc-pulse 1.2s ease-in-out infinite; }

@keyframes pc-pulse-strong {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50%      { opacity: .35; filter: brightness(1.35); }
}
.pc-pulse-slow { animation: pc-pulse-strong 1.4s ease-in-out infinite; }

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}


.licenses-section {
  padding: 20px 0;
}

.license-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px 18px 20px;
  margin-bottom: 12px;
}

.license-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.license-product {
  font-size: 18px;
  font-weight: 600;
}

.license-status {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}

.license-status.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.license-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.license-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.license-hwid {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.license-hwid-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.license-hwid-input {
  display: flex;
  gap: 12px;
}

.license-hwid-input input {
  flex: 1;
}

.license-actions {
  display: flex;
  gap: 12px;
}

.license-actions-row {
  display: flex;
  gap: 22px;
  width: 100%;
  align-items: stretch;
}

.license-actions-row > * {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: none !important;
  width: 0 !important;
  box-sizing: border-box !important;
  height: 44px !important;
  margin: 0 !important;
  font-size: 14px !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  padding: 0 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none;
  background: var(--bg-input);
  color: var(--text-primary);
  cursor: pointer;
}

.license-actions-row .btn-primary,
.license-actions-row a.btn-primary {
  background: var(--accent) !important;
  color: white !important;
  border-color: var(--accent) !important;
}

.license-actions-row .btn-dark,
.license-actions-row a.btn-dark {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
}

.license-actions-row input,
.license-actions-row select {
  justify-content: flex-start !important;
}

.license-actions-row > div:empty {
  border: none !important;
  background: none !important;
  cursor: default !important;
}


.success-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 40px;
}

.success-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
}

.success-message {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 400px;
}


.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--error);
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
}


.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.nav.open {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #111;
  padding: 14px 16px;
  gap: 16px;
  z-index: 999;
}

.nav.open .nav-link {
  padding: 6px 10px;
  width: auto;
  text-align: center;
}


@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  
  .portal-box-head--actions { flex-direction: column; align-items: stretch; }
  .portal-box-head--actions .portal-btn-row { flex-direction: row; gap: 8px; }
  .portal-box-head--actions .portal-btn-row .btn { width: auto; flex: 1; }

  
  .launcher-dl-buttons { gap: 12px; }
  .launcher-dl-buttons .btn { flex: 1; width: auto; }
  .launcher-dl-col { flex: 1 1 100%; align-items: stretch; }
  .launcher-dl-col img { width: 100%; }

  .nav {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

  .logo-img {
    width: 140px;
    height: auto;
    max-height: 36px;
  }

  .header-actions {
    margin-left: auto;
    gap: 6px;
  }

  .burger,
  .cart-btn {
    width: 36px;
    height: 36px;
  }

  .burger svg,
  .cart-btn svg {
    width: 20px;
    height: 20px;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .products-grid,
  .products-grid.grid4-mode {
    grid-template-columns: 1fr;
  }

  .cart-drawer {
    max-width: 100%;
  }

  .portal-card {
    padding: 28px;
  }

  .license-actions {
    flex-direction: column;
  }

  .license-actions-row {
    flex-direction: column;
    gap: 12px;
  }

  .license-actions-row > * {
    width: 100% !important;
    flex: none !important;
    text-align: center;
  }

  .license-actions-row > div:empty,
  .license-actions-row > button[style*="visibility:hidden"] {
    display: none !important;
  }

  .license-actions-row .btn,
  .license-actions-row .form-input,
  .license-actions-row input,
  .license-actions-row select {
    height: 48px !important;
    width: 100% !important;
    padding: 12px 14px !important;
  }



  .about-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-stats {
    gap: 24px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}


.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 120px;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 48px;
}

.legal-page h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.legal-section p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(224, 123, 16, 0.4);
}

.legal-section a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

.legal-highlight {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
}

.legal-highlight p {
  margin-bottom: 0;
  color: var(--text-primary) !important;
  font-size: 13px !important;
}

.legal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}


.tas-showcase {
  background: var(--bg);
  color: var(--text-secondary);
}
.tas-showcase__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 20px 20px;
}


.tas-gallery-section {
  background: #000;
  padding: 60px 0 60px;
}
.tas-gallery-section .tas-showcase__inner {
  padding-top: 0;
  padding-bottom: 0;
}
.tas-section {
  margin-bottom: 60px;
}
@media (max-width: 800px) {
  .tas-section { margin-bottom: 40px; }
}


.tas-video-embed {
  padding: 41.88% 0 0 0;
  position: relative;
}
.tas-video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: var(--radius-lg);
  border: none;
}
@media (max-width: 1120px) {
  .tas-video-embed iframe { border-radius: var(--radius-md); }
}



.tas-patreon {
  padding: 0 24px 60px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.tas-patreon-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.tas-patreon-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  line-height: 0;
}
.tas-patreon-icon img {
  display: block;
  width: 120px !important;
  height: 120px !important;
  max-width: 120px !important;
  transition: opacity var(--transition-fast);
}
.tas-patreon-icon:hover img { opacity: 0.75; }
.tas-patreon-body {
  flex: 1 1 auto;
  min-width: 0;
}
.tas-patreon h3 {
  margin: 0 0 8px 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}
.tas-patreon p {
  margin: 0 0 12px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.tas-patreon-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.tas-patreon-cta:hover { color: var(--text-primary); }
@media (max-width: 700px) {
  .tas-patreon { padding: 0 16px; }
  .tas-patreon-inner { flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 28px 24px; }
  .tas-patreon-icon, .tas-patreon-icon img { width: 88px !important; height: 88px !important; }
}


.tas-gallery img {
  border-radius: var(--radius-md);
  display: block;
}
.tas-col img  { width: 100%; }
.tas-col2a { display: flex; justify-content: center; }
.tas-col2a img { width: 44%; margin: 2%; }
.tas-col3 { display: flex; justify-content: center; }
.tas-col3 img  { width: 29%; margin: 2.5% 1.5%; }
.tas-imgb { width: 95%; margin: 2.5% 0; }
@media (max-width: 800px) {
  .tas-col3, .tas-col2a { flex-direction: column; }
  .tas-col3 img, .tas-col2a img { width: 95%; margin: 2.5% 0; }
}


.tas-disclaimer {
  font-size: 0.8em;
  max-width: 1000px;
  margin: 0 auto;
  color: #888;
}
.tas-disclaimer a { color: #888; }


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}
