@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Rubik:wght@400;500;600;700&display=swap");

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12131a;
  --bg-card: #1a1b23;
  --bg-card-hover: #22232d;
  --bg-card-glass: rgba(26, 27, 35, 0.8);
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #a78bfa;
  --accent-dark: #7c3aed;
  --accent-glow: rgba(167, 139, 250, 0.3);
  --danger: #ef4444;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px var(--accent-glow);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Loader */
.loader-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Giveaway Announcement Banner */
.giveaway-announcement {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1a1b23 0%, #0a0a0f 100%);
  border-bottom: 1px solid var(--accent);
  padding: 12px 16px;
  animation: slideDown 0.4s ease-out;
}

.giveaway-announcement.hidden {
  display: none;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.giveaway-announcement-content {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.giveaway-announcement-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.giveaway-announcement-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.giveaway-announcement-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.giveaway-announcement-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.giveaway-announcement-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.giveaway-announcement-btn:hover {
  background: var(--accent-dark);
}

.giveaway-announcement-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: var(--transition);
}

.giveaway-announcement-close:hover {
  color: var(--text-primary);
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo {
  position: relative;
}

.loader-shield {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-pulse {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.8); opacity: 0; }
}

.loader-title {
  font-family: "Rubik", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
}

.loader-dots {
  display: flex;
  gap: 6px;
}

.loader-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: loaderDot 1.2s ease-in-out infinite;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.loader-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

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

body {
  font-family: "Rubik", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

/* Background glow effect */
.app {
  position: relative;
}

.app::before {
  content: '';
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.15) 0%, rgba(167, 139, 250, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.app::after {
  content: '';
  position: fixed;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.page-content {
  position: relative;
  z-index: 1;
}

.app {
  min-height: 100vh;
  padding-bottom: 100px;
  padding-top: max(env(safe-area-inset-top), 0px);
}

/* Add top offset only when fixed announcement banner is shown */
.giveaway-announcement:not(.hidden) ~ .app {
  padding-top: 60px;
}

.hidden {
  display: none !important;
}

.channel-gate {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.channel-gate-card {
  width: min(480px, 100%);
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.channel-gate-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.channel-gate-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 18px;
}

.channel-gate-actions {
  display: grid;
  gap: 10px;
}

/* Pages */
.page {
  display: none;
}

.page.active {
  display: block;
}

.page-content {
  padding: 16px 16px;
}

#page-home .page-content {
  padding: 12px 16px;
}

/* Welcome Section */
.welcome-section {
  margin-bottom: 12px;
}

.welcome-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.welcome-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 400;
}

.user-id {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Status Card (Active Subscription) */
.status-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.status-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.status-card-header h3 {
  font-size: 20px;
  font-weight: 600;
}

.status-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.status-badge.active {
  background: var(--accent);
  color: #000;
  box-shadow: var(--shadow-glow);
}

.status-badge.inactive {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-label {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.status-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.progress-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.progress-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.status-card-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Mini Stat Cards */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.mini-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.mini-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.mini-stat-card.clickable {
  cursor: pointer;
}

.mini-stat-card.clickable:active {
  transform: scale(0.98);
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
}

.mini-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mini-stat-header span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.mini-stat-header svg {
  color: var(--text-muted);
  opacity: 0.6;
}

.mini-stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.mini-stat-value.accent {
  color: var(--accent);
}

.mini-stat-value .currency {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.8;
}

.mini-stat-value .status-inactive {
  color: var(--danger);
  font-size: 20px;
}

.mini-stat-value .status-active {
  color: var(--accent);
  font-size: 20px;
}

/* Subscription Card (New Design) */
.subscription-card {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.15), 0 0 60px rgba(167, 139, 250, 0.05);
}

.subscription-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top left, rgba(167, 139, 250, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(167, 139, 250, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.subscription-card-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 8px;
  position: relative;
}

.subscription-card-status {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  position: relative;
}

.subscription-card-status.active {
  color: var(--accent);
}

.subscription-card-plan {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  position: relative;
}

.subscription-card-progress {
  position: relative;
  margin-bottom: 12px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.progress-days {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.progress-percent {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 3px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px var(--accent-glow);
}

.subscription-card-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  position: relative;
}

.subscription-card-status-line.connected {
  color: var(--accent);
}

.subscription-card-status-line svg {
  flex-shrink: 0;
}

/* Connect Button */
.btn-connect {
  margin-bottom: 16px;
  padding: 18px;
  font-size: 16px;
  font-weight: 600;
}

/* Buy Subscription Button */
.btn-buy-subscription {
  margin-bottom: 16px;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
}

/* Subscription Buttons (when active) */
.subscription-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.subscription-buttons .btn {
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
}

/* Trial Card */
.trial-card {
  margin-bottom: 12px;
}

.trial-card-inner {
  background: linear-gradient(145deg, var(--bg-card) 0%, #1e2028 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.trial-card-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(167, 139, 250, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.trial-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--bg-card-hover) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  position: relative;
}

.trial-icon svg {
  width: 20px;
  height: 20px;
}

.trial-icon svg {
  color: var(--accent);
}

.trial-content {
  position: relative;
  z-index: 1;
}

.trial-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.trial-content p {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 12px;
}

.trial-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 14px;
}

.trial-stat {
  display: flex;
  flex-direction: column;
}

.trial-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.trial-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 10px var(--accent-glow);
}

.btn-accent {
  background: var(--accent);
  color: #000;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-accent:active {
  transform: scale(0.98);
  background: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:active {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
}

.btn-block {
  width: 100%;
}

/* Page Title */
.page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

/* Empty Subscription State */
.empty-subscription {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.empty-subscription-icon {
  margin-bottom: 10px;
  color: var(--text-muted);
  opacity: 0.6;
}

.empty-subscription-text {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Subscription Info Card (Page) */
.subscription-info-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-md);
}

.subscription-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.subscription-info-header h3 {
  font-size: 17px;
  font-weight: 600;
}

.tariff-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: transparent;
  color: #c9a227;
  border: 1px solid #c9a227;
}

.tariffs-title {
  margin-top: 8px;
}

/* Subscription Info (Legacy - Page) */
.subscription-info {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.subscription-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.subscription-header h3 {
  font-size: 20px;
  font-weight: 600;
}

.badge {
  background: var(--accent);
  color: #000;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-outline {
  background: transparent;
  color: #c9a227;
  border: 1px solid #c9a227;
}

/* Connection Card */
.connection-card {
  background: linear-gradient(145deg, #1e2028 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}

.connection-title {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.connection-card .btn {
  min-height: 46px;
  padding: 11px 14px;
  font-size: 14px;
}

.connection-url {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.connection-url input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: monospace;
  font-size: 11px;
}

.copy-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:active {
  background: var(--bg-card-hover);
}

/* Subscription Details */
.subscription-details {
  margin-bottom: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 0;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-value {
  font-size: 17px;
  font-weight: 600;
}

/* Servers Section */
.servers-section {
  margin-top: 20px;
}

.server-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-top: 8px;
  font-size: 14px;
}

.refresh-icon {
  display: inline-block;
  vertical-align: middle;
  opacity: 0.5;
  cursor: pointer;
}

/* Tariffs Grid */
.tariffs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.period-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.period-card:active {
  transform: scale(0.98);
}

.period-card.selected {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.1) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.15);
}

.discount-badge {
  position: absolute;
  top: -8px;
  right: 8px;
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}


.recommended-badge {
  position: absolute;
  top: -8px;
  left: 4px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.period-card.recommended {
  border-color: rgba(167, 139, 250, 0.5);
}

.period-card.recommended.selected {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.1) 0%, var(--bg-card) 100%);
}

.period-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.period-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.period-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.period-old-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.period-monthly {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Checkout Section */
.checkout-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.checkout-label {
  font-size: 15px;
  color: var(--text-secondary);
}

.checkout-value {
  font-size: 15px;
  color: var(--text-primary);
}

.checkout-divider {
  height: 1px;
  background: var(--border-color);
  margin: 12px 0;
}

.checkout-total {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.btn-pay {
  margin-top: 20px;
  padding: 18px;
  font-size: 16px;
}

#direct-pay-btn {
  margin-top: 8px;
}

/* Referral Percent Info */
.referral-percent-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(167, 139, 250, 0.05));
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.referral-percent-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(167, 139, 250, 0.2);
  border-radius: 50%;
  color: var(--accent);
  flex-shrink: 0;
}

.referral-percent-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.referral-percent-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.referral-percent-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Referrals Empty State */
.referrals-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-top: 16px;
}

.referrals-empty-icon {
  color: var(--text-muted);
  margin-bottom: 24px;
  opacity: 0.6;
}

.referrals-empty-text {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.6;
}

.referrals-list {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.referral-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.referral-avatar-shell {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.referral-avatar-img,
.referral-avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.referral-avatar-img {
  object-fit: cover;
  display: block;
}

.referral-avatar-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.95), rgba(124, 58, 237, 0.65));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.2);
  opacity: 0;
  transform: scale(0.92);
  transition: var(--transition);
}

.referral-avatar-fallback.always-visible {
  opacity: 1;
  transform: scale(1);
}

.referral-avatar-fallback i {
  font-size: 16px;
}

.referral-info {
  flex: 1;
  min-width: 0;
}

.referral-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.referral-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

.referral-username {
  color: var(--accent);
}

.referral-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.referral-status.paid {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

.referral-status.free {
  background: rgba(156, 163, 175, 0.15);
  color: var(--text-secondary);
}

.gift-toggle-section {
  margin: 14px 0 12px;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.gift-toggle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 12px;
  color: var(--text-secondary);
}

.gift-toggle-hint {
  color: var(--accent);
  font-weight: 600;
}

.gift-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  gap: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
}

.gift-toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 13px;
  will-change: transform;
  -webkit-transform: translateZ(0);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.38), rgba(124, 58, 237, 0.45));
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.16);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.gift-toggle.is-gift .gift-toggle-slider {
  transform: translateX(100%);
}

.gift-toggle-btn { /* mobile fix */
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  position: relative;
  z-index: 1;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 13px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.gift-toggle-btn.active {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.gift-ready-modal .modal-body {
  padding-top: 8px;
}

.gift-success-icon {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.18), rgba(124, 58, 237, 0.30));
  color: #7cc2ff;
}

.gift-ready-code {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(167, 139, 250, 0.18);
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
}

.gift-ready-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

/* Referral Section */
.referral-link-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 16px;
}

.referral-link-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.referral-input-group {
  margin-bottom: 16px;
}

.referral-input-group input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--text-primary);
  font-size: 13px;
}

.referral-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.referral-hint {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Promo Card (Legacy) */
.promo-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, #1e2028 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.promo-icon {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.promo-icon svg {
  color: #000;
}

.promo-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.promo-content p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.promo-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
}

.promo-stat {
  display: flex;
  flex-direction: column;
}

.promo-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.promo-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Support Card */
.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
}

.support-icon {
  margin-bottom: 20px;
  color: var(--text-primary);
}

.support-card h3 {
  font-family: "Rubik", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0;
}

.support-card p {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Empty State */
.empty-state {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  margin-bottom: 20px;
}

.empty-icon {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 2px;
  flex: 1 1 0;
  min-width: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.nav-item.active {
  color: var(--accent);
  background: rgba(167, 139, 250, 0.15);
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

.nav-item span {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
  font-size: 10px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
}

.modal.active {
  display: flex;
  align-items: flex-end;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-body {
  padding: 24px;
}

/* Instructions - New Design */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Instruction App Hint */
.instruction-hint {
  font-size: 13px;
  font-weight: 500;
  color: #a78bfa !important;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Instruction Selectors Container */
.instruction-selectors {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

/* Variant Selector */
.variant-selector {
  display: flex;
  gap: 6px;
}

.variant-btn {
  padding: 12px 24px;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 12px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.15);
}

.variant-btn:hover {
  background: rgba(167, 139, 250, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.25);
}

.variant-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.4);
}

.variant-content.hidden {
  display: none;
}

.platform-content.hidden {
  display: none;
}

/* Platform Tabs */
.platform-tabs {
  display: flex;
  gap: 6px;
}

.platform-tab {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.platform-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

.platform-tab.active {
  color: var(--text-primary);
  border-color: var(--accent);
  background: rgba(167, 139, 250, 0.1);
}

.platform-tab svg {
  width: 14px;
  height: 14px;
}

.platform-selector {
  display: flex;
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 4px;
  gap: 4px;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.platform-btn:hover {
  color: var(--text-primary);
}

.platform-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
}

.platform-btn svg {
  width: 16px;
  height: 16px;
}

/* App Card */
.app-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1a2a3a 0%, #0d1520 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.app-card-indicator {
  width: 8px;
  height: 8px;
  background: #ffd700;
  border-radius: 50%;
}

.app-card-name {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
}

.app-card-logo svg {
  opacity: 0.5;
}

/* Instruction Cards */
.instruction-card {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
}

.instruction-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(167, 139, 250, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.instruction-card-icon.success {
  background: rgba(167, 139, 250, 0.15);
}

.instruction-card-content {
  flex: 1;
}

.instruction-card-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.instruction-card-content p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.instruction-card-content p:last-child {
  margin-bottom: 0;
}

/* Instruction number circle */
.instruction-card-number {
  width: 28px;
  height: 28px;
  background: rgba(167, 139, 250, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.instruction-card-number.success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

/* Instruction links */
.instruction-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.instruction-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  display: block;
  transition: var(--transition);
}

.instruction-link:hover {
  color: var(--accent);
}

.instruction-link:last-child {
  border-bottom: none;
}

.instruction-link.add-sub-btn {
  color: var(--accent);
  font-weight: 500;
}

.instruction-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
}

.platform-instructions.hidden {
  display: none;
}

/* Legacy step styles for compatibility */
.instruction-step {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.step-number {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.step-content p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.app-store-link {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: underline;
  margin-bottom: 8px;
  padding: 4px 0;
}

.app-store-link:hover {
  color: var(--text-primary);
}

.step-content .btn {
  margin-bottom: 12px;
}

.step-content .btn:last-child {
  margin-bottom: 0;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.toast.show {
  opacity: 1;
  visibility: visible;
}

/* Selected Tariff (Modal) */
.selected-tariff {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.selected-tariff h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.selected-tariff p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 10px;
}

.tariff-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
}

/* Devices Selector */
.devices-selector {
  margin-bottom: 24px;
}

.devices-selector label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.devices-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.device-btn {
  flex: 1;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.device-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.devices-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* Payment Methods */
.payment-method-section {
  margin-bottom: 16px;
}

#page-subscription .payment-method-section {
  margin-bottom: 8px;
}

.payment-method-section label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.payment-methods {
  display: flex;
  gap: 8px;
}

.payment-method-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.payment-method-btn.active {
  border-color: var(--accent);
  background: rgba(167, 139, 250, 0.08);
  color: var(--accent);
}

.payment-method-btn svg {
  flex-shrink: 0;
}

/* Payment Loader Overlay */
.payment-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 15, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.payment-loader.active {
  display: flex;
  opacity: 1;
}

.payment-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.payment-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(167, 139, 250, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.payment-loader-text {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
}

/* Total Price */
.total-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
}

#total-price {
  color: var(--accent);
}

/* Giveaway Banner */
.giveaway-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a9c71, #054e40, #0b5c40, #17865a);
  border-radius: var(--radius-lg);
  padding: 0;
  margin-bottom: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: stretch;
  min-height: 72px;
}

.giveaway-banner:active {
  transform: scale(0.98);
}

.giveaway-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.giveaway-banner-image {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  position: relative;
  align-self: flex-end;
  margin-bottom: -8px;
  margin-left: 4px;
}

.giveaway-banner-image svg {
  width: 100%;
  height: 100%;
}

.giveaway-banner-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 12px 0;
}

.giveaway-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.giveaway-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.giveaway-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.3;
}

.giveaway-link-btn {
  flex-shrink: 0;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.giveaway-banner:active .giveaway-link-btn {
  color: #fff;
}

/* Giveaway modal */
.giveaway-modal-body {
  padding: 16px 20px 20px;
}

.giveaway-intro {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.giveaway-section {
  margin-bottom: 16px;
}

.giveaway-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.giveaway-prize-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.giveaway-prize-item {
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.prize-place {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.prize-place.gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
}

.prize-place.silver {
  background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
  color: #000;
}

.prize-place.bronze {
  background: linear-gradient(135deg, #8B7355, #6B5340);
  color: #fff;
}

.giveaway-rules {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 12px;
  border-left: 3px solid var(--accent);
}

.giveaway-rules p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
}

.giveaway-rules p:last-child {
  margin-bottom: 0;
}

.giveaway-footer-info {
  margin-bottom: 16px;
}

.giveaway-deadline-line {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.giveaway-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.4;
}

/* Quick Actions */
.quick-actions-section {
  margin-bottom: 16px;
}

.quick-actions-section .section-title {
  margin-bottom: 12px;
  font-size: 15px;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 12px;
  min-height: 100px;
  color: var(--text-primary);
  font-family: "Rubik", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.quick-action-btn svg {
  width: 20px;
  height: 20px;
}

.quick-action-btn:active {
  transform: scale(0.98);
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
}

.quick-action-btn svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.quick-action-btn span {
  display: block;
}

/* Stats Grid (for referrals page) */
.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.stats-grid.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Stat Card */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.stat-card.clickable {
  cursor: pointer;
}

.stat-card.clickable:active {
  transform: scale(0.98);
  background: var(--bg-card-hover);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 13px;
}

.stat-header svg {
  opacity: 0.5;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-value.accent {
  color: var(--accent);
}

.stat-value.status-inactive {
  color: var(--danger);
}

.stat-value.status-active {
  color: var(--accent);
}

.stat-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ================================
   ADDON SECTIONS (Devices & Traffic)
   ================================ */

.addon-section {
  margin-top: 20px;
}

.addon-header {
  margin-bottom: 12px;
}

.addon-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Addon Stats Row */
.addon-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.addon-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.addon-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.1;
}

.devices-top-card .addon-stat-label {
  font-size: 10px;
  letter-spacing: 0.35px;
}

.addon-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.devices-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.devices-top-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 16px;
}

/* Device Slot Button */
.btn-addon-devices {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-addon-devices:active {
  transform: scale(0.98);
  background: var(--accent-dark);
  box-shadow: 0 2px 10px var(--accent-glow);
}

.btn-addon-devices svg {
  stroke: #000;
}

.devices-list-wrap {
  margin-bottom: 14px;
}

.devices-list-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.devices-empty-card,
.devices-list-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.devices-empty-card {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.devices-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent);
  opacity: 0.9;
  margin-bottom: 8px;
}

.devices-empty-icon i {
  font-size: 22px;
  line-height: 1;
  display: block;
}

.devices-empty-main {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.devices-empty-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.35;
  max-width: 260px;
}

.devices-list-items {
  display: grid;
  gap: 8px;
}

.devices-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 54px 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.devices-list-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.devices-os-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(167, 139, 250, 0.15);
  font-size: 16px;
  flex-shrink: 0;
}

.devices-os-icon i {
  font-size: 14px;
  color: var(--accent);
  line-height: 1;
}

.devices-list-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}

.devices-list-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.devices-list-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-sub-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.device-sub-badge.vpn {
  background: rgba(167, 139, 250, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.45);
  color: #9acbff;
}

.device-sub-badge.antiblock {
  background: rgba(236, 72, 153, 0.18);
  border: 1px solid rgba(236, 72, 153, 0.45);
  color: #6ee7b7;
}

.device-sub-badge.both {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.5);
  color: #c7d2fe;
}

.device-delete-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.device-delete-btn i {
  font-size: 14px;
  line-height: 1;
  display: block;
}

.device-delete-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.device-delete-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.devices-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.devices-action-btn:active {
  transform: scale(0.99);
}

.devices-action-btn.danger {
  border-color: rgba(239, 68, 68, 0.35);
}

.devices-action-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(167, 139, 250, 0.15);
  color: var(--accent);
  font-size: 20px;
  flex-shrink: 0;
}

.devices-action-icon i {
  font-size: 16px;
  line-height: 1;
  display: block;
}

.devices-action-btn.danger .devices-action-icon {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.devices-action-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1;
}

.devices-action-text strong {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.devices-action-text small {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}

.devices-action-arrow {
  font-size: 30px;
  color: var(--text-muted);
  line-height: 1;
}

/* Traffic Card */
.addon-traffic-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.addon-traffic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top right, rgba(167, 139, 250, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.addon-traffic-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  position: relative;
}

.addon-traffic-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.addon-traffic-icon svg {
  stroke: #000;
  fill: none;
}

.addon-traffic-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.addon-traffic-title h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.addon-traffic-price-hint {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

/* Traffic Slider Section */
.addon-traffic-slider-section {
  margin-bottom: 16px;
  position: relative;
}

.addon-traffic-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.addon-traffic-gb {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.addon-traffic-gb-label {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Custom Slider */
.addon-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.addon-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--accent-glow);
  transition: transform 0.15s ease;
}

.addon-slider::-webkit-slider-thumb:active {
  transform: scale(1.1);
}

.addon-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.addon-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Traffic Total */
.addon-traffic-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  position: relative;
}

.addon-traffic-total-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: lowercase;
}

.addon-traffic-total-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

/* Traffic Button */
.btn-addon-traffic {
  width: 100%;
  padding: 14px 20px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--accent-glow);
  position: relative;
}

.btn-addon-traffic:active {
  transform: scale(0.98);
  background: var(--accent-dark);
  box-shadow: 0 2px 10px var(--accent-glow);
}

/* Referral earnings color override */
.stat-value.accent {
  color: #4ade80;
}

/* Confirm Modal - centered */
.modal-confirm {
  max-width: 400px;
  margin: auto;
  border-radius: var(--radius-lg);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.modal-confirm .modal-body {
  text-align: center;
  padding: 24px;
}

.confirm-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: rgba(167, 139, 250, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.confirm-info {
  margin-bottom: 20px;
}

.confirm-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.antiblock-modal-tariffs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.antiblock-period-card {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.antiblock-period-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.18);
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.1) 0%, var(--bg-card) 100%);
}

.antiblock-period-name {
  font-size: 13px;
  font-weight: 600;
}

.antiblock-period-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.confirm-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.confirm-price-row span:first-child {
  font-size: 14px;
  color: var(--text-muted);
}

.confirm-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.confirm-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 420px) {
  .modal-confirm {
    max-width: 360px;
  }

  .antiblock-period-card {
    padding: 10px;
  }

  .gift-ready-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .gift-toggle {
    grid-template-columns: 1fr 1fr;
  }

  .gift-toggle-btn {
    min-height: 40px;
    font-size: 13px;
  }
}

/* Success state in confirm modal */
.confirm-success {
  text-align: center;
  padding-top: 8px;
}

.confirm-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: rgba(236, 72, 153, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ec4899;
}

.confirm-success h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.confirm-success p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ================================
   ANTIBLOCK SECTION
   ================================ */

/* Antiblock card in subscription page */
.addon-antiblock-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.addon-antiblock-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top left, rgba(167, 139, 250, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.addon-antiblock-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  position: relative;
}

.addon-antiblock-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.addon-antiblock-icon svg {
  stroke: #000;
}

.addon-antiblock-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.addon-antiblock-title h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.addon-antiblock-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  color: #fff;
  border-radius: 6px;
}

.addon-antiblock-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  position: relative;
}

.addon-antiblock-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
  position: relative;
}

.addon-antiblock-price-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.addon-antiblock-price-period {
  font-size: 14px;
  color: var(--text-muted);
}

/* Active antiblock card */
.addon-antiblock-card.antiblock-active {
  border-color: rgba(236, 72, 153, 0.3);
}

.addon-antiblock-card.antiblock-active::before {
  background: radial-gradient(ellipse at top left, rgba(236, 72, 153, 0.08) 0%, transparent 60%);
}

.addon-antiblock-icon.active {
  background: rgba(236, 72, 153, 0.15);
}

.addon-antiblock-icon.active svg {
  stroke: #ec4899;
}

.addon-antiblock-badge.active {
  background: linear-gradient(135deg, #ec4899, #a855f7);
}

.antiblock-active-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  position: relative;
}

.antiblock-active-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.antiblock-active-row span:first-child {
  color: var(--text-muted);
}

.antiblock-active-row span:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

.antiblock-active-status {
  color: #ec4899 !important;
}

/* Antiblock page styles */
.antiblock-status-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.antiblock-status-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.antiblock-status-icon {
  width: 56px;
  height: 56px;
  background: rgba(167, 139, 250, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.antiblock-status-icon.active {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

.antiblock-status-info h3 {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.antiblock-status-badge {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.antiblock-status-badge.active {
  color: #ec4899;
}

.antiblock-status-details {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.antiblock-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.antiblock-detail-row span:first-child {
  font-size: 14px;
  color: var(--text-muted);
}

.antiblock-detail-row span:last-child {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.antiblock-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.antiblock-info-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.antiblock-info-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.antiblock-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.antiblock-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
}

.antiblock-feature svg {
  color: #ec4899;
  flex-shrink: 0;
}

.antiblock-renew-section {
  margin-bottom: 18px;
}

.antiblock-renew-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.antiblock-renew-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.antiblock-renew-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.antiblock-renew-card:active {
  transform: scale(0.98);
}

.antiblock-renew-card.selected {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.1) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.15);
}

.antiblock-renew-card.recommended {
  border-color: #ec4899;
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.10) 0%, var(--bg-card) 100%);
}

.antiblock-renew-card.recommended.selected {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.1) 0%, var(--bg-card) 100%);
}

.antiblock-renew-discount {
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

.antiblock-renew-recommended {
  position: absolute;
  top: -8px;
  left: 12px;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.antiblock-renew-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.antiblock-renew-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.antiblock-renew-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.antiblock-renew-old-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.antiblock-renew-monthly {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.antiblock-renew-checkout {
  margin-top: 14px;
}

/* mobile button anti-flicker (purple theme) */
.payment-method-btn,
.gift-toggle-btn,
.nav-item,
.tab-btn,
.platform-btn,
.method-btn {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform, background-color, border-color;
}
.payment-method-btn:focus,
.gift-toggle-btn:focus,
.tab-btn:focus,
.platform-btn:focus,
.method-btn:focus {
  outline: none;
}
