@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/inter-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/outfit-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/outfit-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/outfit-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/outfit-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/outfit-800.woff2') format('woff2');
}

:root {
  --primary-hsl: 210, 30%, 8%;
  --primary: hsl(var(--primary-hsl));
  --accent-hsl: 198, 100%, 50%;
  --accent: hsl(var(--accent-hsl));
  --accent-light: hsl(198, 100%, 65%);
  --white: #ffffff;
  --bg-gradient: linear-gradient(135deg, rgba(10, 20, 30, 0.92) 0%, rgba(15, 25, 35, 0.8) 100%);
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.4);
  --border-radius-lg: 24px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient), url('../images/bg.webp') no-repeat center center/cover fixed;
  color: var(--white);
  min-height: 100vh;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
}

/* Background Wrapper */
.bg-wrapper {
  display: none;
}

/* Page Layout Wrapper */
.page-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 4rem;
}

/* Top Center Logo */
.logo-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  align-self: center;
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo-icon {
  height: 55px;
  width: 55px;
  border-radius: 12px;
  object-fit: cover;
  filter: drop-shadow(0 4px 12px rgba(0, 168, 255, 0.2));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--white);
  text-transform: uppercase;
}

/* Middle Left Content */
.main-content {
  display: flex;
  align-items: center;
  flex-grow: 1;
  max-width: 680px;
  animation: fadeInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.content-card {
  background: rgba(10, 25, 40, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  background: rgba(0, 168, 255, 0.15);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  border: 1px solid rgba(0, 168, 255, 0.35);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 168, 255, 0.15);
  animation: pulseBadge 2.5s infinite ease-in-out;
}

.badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 30%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: skewX(-25deg);
  animation: shineBadge 4.5s infinite ease-in-out;
}

@keyframes pulseBadge {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.15);
    border-color: rgba(0, 168, 255, 0.35);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.4), 0 0 0 4px rgba(0, 168, 255, 0.08);
    border-color: rgba(0, 168, 255, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.15);
    border-color: rgba(0, 168, 255, 0.35);
  }
}

@keyframes shineBadge {
  0% {
    left: -50%;
  }
  22% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

.heading {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.5px;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.heading span {
  color: var(--accent);
}

.description {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
}

/* Footer Section */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:visited {
  color: var(--white);
}

.footer-links a:hover {
  color: var(--accent);
}

.contact-email {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.contact-email:hover {
  color: var(--accent);
}



/* Custom 404 Layout */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.error-card {
  text-align: center;
  max-width: 500px;
}

.error-code {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 30px rgba(0, 168, 255, 0.2);
}

.error-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.back-btn {
  display: inline-flex;
  padding: 0.8rem 2rem;
  background-color: var(--accent);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Rules */
@media (max-width: 768px) {
  .page-container {
    padding: 1.25rem 1rem;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
  }
  
  .main-content {
    max-width: 450px;
    text-align: center;
    justify-content: center;
  }
  
  .content-card {
    padding: 2rem 1.5rem;
  }

  .badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1rem;
  }
  
  .heading {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .description {
    font-size: 0.92rem;
    line-height: 1.65;
  }
  
  footer {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }
  
  .policy-container {
    padding: 2.5rem 1.5rem;
  }
  
  .policy-title {
    font-size: 2.2rem;
  }
}

/* Large Screens and Laptops support */
@media (min-width: 1440px) {
  html {
    font-size: 17px;
  }
  .page-container {
    max-width: 1440px;
    margin: 0 auto;
  }
}

@media (min-width: 1920px) {
  html {
    font-size: 19px;
  }
  .page-container {
    max-width: 1600px;
  }
}

@media (min-width: 2560px) {
  html {
    font-size: 22px;
  }
  .page-container {
    max-width: 1800px;
  }
}

/* Preloader Screen */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a131c; /* Deep dark theme background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader-logo-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-logo {
  width: 75px;
  height: 75px;
  border-radius: 18px;
  object-fit: cover;
  animation: pulseLogo 2s infinite ease-in-out;
  filter: drop-shadow(0 0 15px rgba(0, 168, 255, 0.4));
  z-index: 2;
}

.preloader-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.03);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spinPreloader 1.5s linear infinite;
  z-index: 1;
}

.preloader-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  animation: pulseText 2s infinite ease-in-out;
}

@keyframes spinPreloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseLogo {
  0% { transform: scale(0.95); filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.3)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(0, 168, 255, 0.6)); }
  100% { transform: scale(0.95); filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.3)); }
}

@keyframes pulseText {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Policy & Terms Layouts */
.policy-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.policy-main {
  width: 100%;
  margin: 2.5rem 0;
  animation: fadeInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.policy-card {
  background: rgba(10, 25, 40, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.policy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.policy-heading {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.policy-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.policy-content {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-size: 1.05rem;
}

.policy-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.policy-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent-light);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.policy-content p {
  margin-bottom: 1rem;
}

.policy-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style-type: square;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

.policy-content li ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  list-style-type: circle;
}

.policy-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.policy-content a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.back-home-wrapper {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: flex-start;
}

/* Scrollbar styling for policy content card */
.policy-content::-webkit-scrollbar {
  width: 8px;
}

.policy-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.policy-content::-webkit-scrollbar-thumb {
  background: rgba(0, 168, 255, 0.3);
  border-radius: 4px;
}

.policy-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 168, 255, 0.5);
}

@media (max-width: 768px) {
  .policy-card {
    padding: 2rem 1.5rem;
  }
  .policy-heading {
    font-size: 2rem;
  }
  .policy-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  .policy-content {
    font-size: 0.95rem;
  }
}

/* Modal Overlay and Container for Delete Account Request */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: rgba(13, 27, 42, 0.96);
  border: 1px solid rgba(0, 168, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 168, 255, 0.15);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* Step list */
.deletion-steps-box {
  background: rgba(0, 168, 255, 0.06);
  border: 1px solid rgba(0, 168, 255, 0.2);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.steps-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.step-num {
  background: var(--accent);
  color: #050c14;
  font-weight: 700;
  font-size: 0.75rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.process-summary-note {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(0, 168, 255, 0.25);
  font-size: 0.88rem;
  color: var(--accent-light);
  font-weight: 600;
  text-align: center;
}

/* Deletion Form */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.form-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 168, 255, 0.25);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-danger {
  flex: 1;
  background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.35);
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #f14350 0%, #e02f2f 100%);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}