:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-light: #818CF8;
  --secondary: #7C3AED;
  --success: #10B981;
  --success-dark: #059669;
  --danger: #EF4444;
  --danger-dark: #DC2626;
  --warning: #F59E0B;
  --warning-dark: #D97706;
  --dark: #1F2937;
  --dark-light: #374151;
  --light: #F3F4F6;
  --white: #FFFFFF;
  --gray: #6B7280;
  --gray-light: #9CA3AF;
  --gray-lighter: #D1D5DB;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --transition: all 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

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

::selection {
  background: var(--primary);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-lighter);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==================== HEADER ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.site-header .container {
  padding: 0 1.5rem;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-header .logo i {
  font-size: 1.1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang-switcher {
  flex-shrink: 0;
}

.lang-switcher select {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-family: inherit;
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
}

.lang-switcher select:focus {
  outline: none;
  border-color: var(--primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
}

.user-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--dark);
  font-size: 0.875rem;
  transition: var(--transition);
}

.user-dropdown a:hover {
  background: var(--light);
  color: var(--primary);
}

.user-dropdown .dropdown-divider {
  border-top: 1px solid var(--border);
  margin: 0.25rem 0;
}

/* ==================== NAVIGATION ==================== */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-list li {
  position: relative;
}

.nav-list li a {
  display: block;
  padding: 0.625rem 1rem;
  color: var(--dark-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  border-radius: var(--radius);
}

.nav-list li a:hover,
.nav-list li.active a {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
}

.nav-list li .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  opacity: 0;
  z-index: 1001;
  padding-top: 0.5rem;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.nav-list li .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 0;
  right: 0;
  height: 1rem;
}

.nav-list li:hover > .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.625rem 1rem;
  color: var(--dark);
  font-size: 0.875rem;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: var(--light);
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--dark);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 4rem 0 3.5rem;
  text-align: center;
  color: var(--white);
  margin-top: 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.hero-section h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-section .hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-search {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 2rem;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  padding: 0.25rem;
}

.search-box i {
  padding: 0 0 0 1.25rem;
  color: var(--gray);
  font-size: 1.1rem;
}

.search-box input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: none;
  font-size: 1rem;
  outline: none;
  background: transparent;
  color: var(--dark);
}

.search-box input:focus {
  box-shadow: none;
}

.search-box .btn {
  border-radius: 2rem;
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero-stats span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.categories-section {
  padding: 3rem 0;
}

.category-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
}

.category-card:hover .category-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
}

.popular-section {
  padding: 3rem 0;
  background: var(--light);
}

/* ==================== CATEGORIES GRID ==================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  border: 2px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--dark);
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--primary);
}

.category-card .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  transition: var(--transition);
}

.category-card:hover .icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  transform: scale(1.1);
}

.category-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.category-card .count {
  font-size: 0.85rem;
  color: var(--gray);
}

/* ==================== CALCULATORS GRID ==================== */
.calculators-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.calculator-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  color: var(--dark);
  display: flex;
  flex-direction: column;
}

.calculator-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.calculator-card .calc-icon {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(124, 58, 237, 0.08));
  color: var(--primary);
}

.calculator-card:hover .calc-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
}

.calculator-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  padding: 0 1.25rem;
  padding-top: 1rem;
}

.calculator-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
  padding: 0 1.25rem 1.25rem;
}

.calc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  color: var(--dark);
  display: flex;
  flex-direction: column;
}

.calc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.calc-card .card-icon {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(124, 58, 237, 0.08));
  color: var(--primary);
}

.calc-card .card-body {
  padding: 1.25rem;
  flex: 1;
}

.calc-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.calc-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
}

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--dark);
}

.form-group .required {
  color: var(--danger);
  margin-left: 0.125rem;
}

.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
  color: var(--dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control::placeholder {
  color: var(--gray-light);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--gray);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.5;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: #000000;
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.1rem;
}

.btn-coffee {
  background: #FFDD00;
  color: #000;
  border-color: #FFDD00;
}

.btn-coffee:hover {
  background: #E5C700;
  border-color: #E5C700;
  color: #000;
  transform: translateY(-1px);
}

.btn-donate {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}

.btn-donate:hover {
  background: var(--success-dark);
  border-color: var(--success-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger-dark);
  border-color: var(--danger-dark);
  color: var(--white);
}

/* ==================== CALCULATOR PAGE ==================== */
.calc-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.calc-main {
  flex: 0 0 70%;
  max-width: 70%;
}

.calc-sidebar {
  flex: 0 0 calc(30% - 2rem);
  max-width: calc(30% - 2rem);
  position: sticky;
  top: 8rem;
}

.calc-sidebar .widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.calc-sidebar .widget h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.formula-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.formula-box h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.formula-box pre {
  background: var(--dark);
  color: #10B981;
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.calc-results {
  background: rgba(16, 185, 129, 0.08);
  border: 2px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 1.5rem 0;
  display: none;
}

.calc-results.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.calc-results h3 {
  color: var(--success-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.results-content table {
  width: 100%;
  border-collapse: collapse;
}

.results-content table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.results-content table td:first-child {
  font-weight: 500;
  color: var(--dark);
}

.results-content table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--success-dark);
  font-size: 1.05rem;
}

.results-content table tr:last-child td {
  border-bottom: none;
  padding-top: 1rem;
  font-size: 1.1rem;
}

.result-tag {
  display: inline-block;
  background: var(--success);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tips-box {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.tips-box h4 {
  color: #1D4ED8;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tips-box ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.tips-box ul li {
  font-size: 0.875rem;
  color: var(--dark-light);
  margin-bottom: 0.375rem;
  line-height: 1.5;
}

.calc-form-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
}

.calc-form-container h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.related-calcs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.related-calc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--light);
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
  color: var(--dark);
}

.related-calc-item:hover {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

.related-calc-item .rc-icon {
  font-size: 1.5rem;
  color: var(--primary);
}

.related-calc-item .rc-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.share-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.share-section span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
}

/* ==================== AUTH PAGES ==================== */
.auth-page {
  min-height: calc(100vh - 7rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  margin-top: 5rem;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
}

.auth-card h1 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.auth-card .auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--gray);
}

.auth-card .auth-footer a {
  font-weight: 500;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--gray);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ==================== USER PAGE ==================== */
.user-layout {
  display: flex;
  gap: 2rem;
  margin-top: 6rem;
  padding: 2rem 0;
  align-items: flex-start;
}

.user-sidebar {
  flex: 0 0 260px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.user-sidebar .user-profile {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.user-sidebar .user-profile img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 3px solid var(--primary);
}

.user-sidebar .user-profile h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.user-sidebar .user-profile p {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
}

.user-nav {
  padding: 0.5rem 0;
}

.user-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--dark);
  font-size: 0.9rem;
  transition: var(--transition);
}

.user-nav a:hover,
.user-nav a.active {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
}

.user-nav a.active {
  font-weight: 600;
  border-right: 3px solid var(--primary);
}

.user-content {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
}

.user-content h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* ==================== STATIC PAGES ==================== */
.page-content {
  margin-top: 6rem;
  padding: 3rem 0;
}

.page-content .container {
  max-width: 800px;
}

.page-content h1 {
  margin-bottom: 2rem;
}

.page-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.page-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.page-content ul,
.page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.page-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(79, 70, 229, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--dark-light);
}

.page-content code {
  background: var(--light);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--danger);
}

.page-content pre {
  background: var(--dark);
  color: #10B981;
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.page-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--dark);
  color: var(--gray-lighter);
  margin-top: auto;
}

.footer-ads {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-main {
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--gray-light);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: var(--gray-light);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 0.25rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--gray-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.donate-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ==================== ALERTS ==================== */
.alert {
  position: fixed;
  top: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s ease;
  max-width: 600px;
  width: calc(100% - 2rem);
  text-align: center;
}

.alert-success {
  background: var(--success);
  color: var(--white);
}

.alert-error,
.alert-danger {
  background: var(--danger);
  color: var(--white);
}

.alert-warning {
  background: var(--warning);
  color: var(--dark);
}

.alert-info {
  background: #3B82F6;
  color: var(--white);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--gray);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .separator {
  color: var(--gray-lighter);
}

.breadcrumb .current {
  color: var(--dark);
  font-weight: 500;
}

/* ==================== SOCIAL SHARE ==================== */
.social-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.footer-social-share span {
  color: var(--gray-light);
  font-size: 0.85rem;
}

.social-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.social-share-btn:hover {
  transform: translateY(-2px);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.social-share-btn.facebook { background: #1877F2; }
.social-share-btn.twitter { background: #1DA1F2; }
.social-share-btn.whatsapp { background: #25D366; }
.social-share-btn.telegram { background: #0088cc; }
.social-share-btn.linkedin { background: #0A66C2; }

/* ==================== BACK TO TOP ==================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ==================== COOKIE NOTICE ==================== */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  padding: 1.25rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  display: none;
}

.cookie-notice.active {
  display: block;
  animation: slideUp 0.3s ease;
}

.cookie-notice .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-notice p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

.cookie-notice .cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

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

/* ==================== BADGES ==================== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-dark);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-dark);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.badge-primary {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

/* ==================== PAGINATION ==================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--dark);
  transition: var(--transition);
  text-decoration: none;
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray);
}

.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ==================== AD SLIDER ==================== */
.ad-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.ad-slide {
  display: none;
}

.ad-slide.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.ad-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.ad-slide a {
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark);
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 10;
}

.slider-btn:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }

.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dots .dot.active {
  background: var(--white);
  width: 24px;
  border-radius: 5px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--gray); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.calc-header {
    padding-top: 55px;
}
nav.breadcrumb a , body > main > section.page-header > div > nav > span {
   
    color: white !important;
}

section.page-header {
    padding: 80px;
	margin-bottom: 80px;
}

section.page-header h1 {
    color: white; 
}

button.btn.btn-primary.btn-lg {
    margin: 30px;
}

.hero-content h1 {
    color: antiquewhite;
}