/* ======================================================
   GLOBAL RESET
====================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%; 

  font-family: Arial, sans-serif;

  background:
    linear-gradient(
      135deg,
      #020f2d,
      #0f172a
    );

  color: #f8fafc;

  transition:
    background 0.3s ease,
    color 0.3s ease;
}

body {
  min-height: 100vh;
}

/* ======================================================
   LINKS
====================================================== */

a {
  text-decoration: none;
  color: inherit;
}

/* ======================================================
   BUTTONS
====================================================== */

.btn,
button,
.pricing-btn
{
  background: #3b82f6;
  color: white;

  border: none;
  border-radius: 12px;

  padding: 14px 22px;

  cursor: pointer;

  font-size: 1rem;
  font-weight: 600;

  transition: 0.2s ease;

  display: inline-block;

  width: auto;
}

.btn:hover,
button:hover,
.pricing-btn:hover,
.card-btn:hover {
  background: #2563eb;
}

/* ======================================================
   NAVBAR
====================================================== */

.navbar {
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 18px 30px;

  background: rgba(2, 6, 23, 0.95);

  backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(255,255,255,0.06);

  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #e2e8f0;
}

.nav-links a:hover {
  color: #60a5fa;
}

.nav-btn {
  background: linear-gradient(
    to right,
    #2563eb,
    #1d4ed8
  );

  border-radius: 10px;
  padding: 10px 18px;
}

/* ======================================================
   HERO
====================================================== */

.hero {
  text-align: center;
  padding: 100px 24px 80px;
}

.hero h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);

  margin-bottom: 20px;
}

.hero p {
  max-width: 700px;

  margin: 0 auto 30px;

  font-size: 1.1rem;

  color: #cbd5e1;

  line-height: 1.7;
}

/* ======================================================
   FEATURES
====================================================== */

.features {
  max-width: 1400px;

  margin: 0 auto;

  padding: 40px 24px 80px;

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(260px, 1fr));

  gap: 24px;
}

.card {
  background: #1e293b;

  padding: 30px;

  border-radius: 22px;

  border: 1px solid rgba(255,255,255,0.05);

  box-shadow:
    0 10px 25px rgba(0,0,0,0.25);
}

/* ======================================================
   PRICING
====================================================== */

.pricing {
  padding: 80px 24px;

  text-align: center;
}

.pricing-grid {
  max-width: 1200px;

  margin: 50px auto 0;

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(300px, 1fr));

  gap: 28px;
}

.price-card {
  position: relative;

  background: #1e293b;

  padding: 40px 30px;

  border-radius: 24px;

  border: 1px solid rgba(255,255,255,0.06);
}

.price-card.featured {
  border: 2px solid #3b82f6;
}

.popular-badge {
  position: absolute;

  top: -14px;
  left: 50%;

  transform: translateX(-50%);

  background: #3b82f6;

  padding: 8px 16px;

  border-radius: 999px;

  font-size: 0.8rem;
  font-weight: 700;
}

.price {
  font-size: 3rem;
  font-weight: bold;

  margin: 20px 0;
}

.price span {
  font-size: 1rem;
}

.price-card ul {
  list-style: none;

  margin: 30px 0;
}

.price-card li {
  margin-bottom: 14px;

  color: #cbd5e1;
}

/* ======================================================
   CREATE PAGE
====================================================== */

.create-container {
  max-width: 1400px;

  margin: 50px auto;

  padding: 0 24px;

  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 40px;
}

.form-panel,
.preview-panel {
  background: #1e293b;

  padding: 35px;

  border-radius: 24px;

  border: 1px solid rgba(255,255,255,0.05);
}

form {
  display: flex;
  flex-direction: column;

  gap: 16px;
}

input,
select,
textarea {
  width: 100%;

  padding: 15px;

  border-radius: 12px;

  border: 1px solid #334155;

  background: #0f172a;

  color: white;

  font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

.preview-card {

  border-radius: 24px;

  padding: 40px;

  min-height: 500px;
}

.preview-divider {
  height: 1px;

  background: rgba(255,255,255,0.1);

  margin: 20px 0;
}

.qr-placeholder {
  margin-top: 40px;

  height: 180px;

  border-radius: 20px;

  background: rgba(255,255,255,0.08);

  display: flex;
  align-items: center;
  justify-content: center;
}

/* ======================================================
   LOGIN / AUTH
====================================================== */

.auth-container input,
.login-container input {

  width: 100%;

  padding: 14px 16px;

  margin-bottom: 16px;

  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.1);

  background: #0f172a;

  color: white;

  font-size: 1rem;

  outline: none;

  box-sizing: border-box;
}
.auth-container form,
.login-container form {
  display: flex;
  flex-direction: column;

  gap: 18px;
}

.auth-container button,
.login-container button,
.auth-container .btn,
.login-container .btn,
form button {
  width: 100%;

  max-width: 260px;

  align-self: center;
}
.login-logo {

  width: 140px;

  height: auto;

  display: block;

  margin: 0 auto 20px;
}
.login-branding {

  text-align: center;

  margin-bottom: 28px;
}

.login-branding h1 {

  color: white;

  margin-bottom: 8px;

  font-size: 2rem;
}

.login-branding p {

  color: #cbd5e1;

  font-size: 0.95rem;
}
.login-container h2 {

  text-align: center;

  color: white;

  margin-bottom: 24px;

  font-size: 1.5rem;
}
#googleLoginBtn {

  margin-top: 8px;
}

#signupBtn {

  margin-top: 18px;
}
.auth-container input,
.login-container input {

  width: 100%;

  padding: 14px 16px;

  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.1);

  background: #0f172a;

  color: white;

  font-size: 1rem;

  outline: none;
}
.auth-container input:focus,
.login-container input:focus {

  border-color: #3b82f6;

  box-shadow:
    0 0 0 3px rgba(59,130,246,0.2);
}
.security-note {

  margin-top: 20px;

  color: #94a3b8;

  font-size: 0.85rem;

  line-height: 1.4;
}
.login-footer {

  margin-top: 28px;

  display: flex;

  justify-content: center;

  gap: 18px;

  flex-wrap: wrap;
}

.login-footer a {

  color: #94a3b8;

  text-decoration: none;

  font-size: 0.9rem;
}

.login-footer a:hover {

  color: white;
}

/* ======================================================
   BUSINESS CARD
====================================================== */

.business-card {
  max-width: 430px;

  margin: 60px auto;

  padding: 40px 30px;

  border-radius: 28px;

  text-align: center;

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 15px 35px rgba(0,0,0,0.35);

  transition:
    all 0.3s ease;
}

.business-card img,
.profile-photo {
  width: 120px;
  height: 120px;

  border-radius: 50%;

  object-fit: cover;

  margin-bottom: 20px;

  background: #334155;
}

.business-card a {
  display: block;

  margin-top: 12px;

  padding: 14px;

  border-radius: 12px;

  background: rgba(255,255,255,0.08);

  color: white;
}

.username {
  opacity: 0.85;
}


/* ======================================================
   DASHBOARD
====================================================== */

header {
  padding: 40px 24px 10px;
}

.header-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;

  margin-top: 20px;
}



.card-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 18px;
  margin-bottom: 12px;
  line-height: 1.1;
}

.card-company {
  color: #dbeafe;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.card-username {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.card-stats {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.7;
}


/* ======================================================
   FOOTER
====================================================== */

.site-footer {
  margin-top: 80px;

  padding: 60px 24px 30px;

  background: #020617;

  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  max-width: 1400px;

  margin: 0 auto;

  display: flex;
  justify-content: space-between;

  gap: 40px;

  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #60a5fa;
}

.footer-bottom {
  margin-top: 40px;

  text-align: center;

  color: #64748b;
}

/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 900px) {

  .create-container {
    grid-template-columns: 1fr;
  }  

  .navbar {
    flex-direction: column;

    gap: 20px;
  }

  .nav-links {
    justify-content: center;
  }

  .auth-container,
  .login-container {
    margin: 40px 16px;
  }
}
/* =========================================
   LOGIN PAGE
========================================= */

.login-container {
  max-width: 420px;

  margin: 80px auto;

  padding: 40px 30px;

  background: #1e293b;

  border-radius: 24px;

  border: 1px solid rgba(255,255,255,0.06);
}

.login-container form {
  display: flex;
  flex-direction: column;

  gap: 18px;

  align-items: center;
}

.login-container input {
  width: 100%;
}

.login-container button {
  width: 180px !important;

  display: block;

  margin: 0 auto;
}
/* =========================================
   STABLE DASHBOARD
========================================= */

.cards-grid {

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(320px, 320px));

  gap: 24px;

  padding: 24px;
}

.dashboard-card {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;

  padding: 20px;
}
.dashboard-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 18px 40px rgba(0,0,0,0.35);
}

.card-top {

  text-align: center;
}

.card-avatar {

  width: 100px;
  height: 100px;

  object-fit: cover;

  border-radius: 20px;

  background: #334155;

  margin-bottom: 16px;
}
.card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  padding-top: 12px;
}

.card-avatar {
  width: 100px;
  height: 100px;

  object-fit: cover;

  border-radius: 50%;

  background: #334155;

  margin-bottom: 24px;
}

.theme-badge {

  display: inline-block;

  margin-top: 16px;

  padding: 10px 16px;

  border-radius: 999px;

  background: #0f172a;

  color: #38bdf8;

  font-weight: 700;
}

.card-actions {

  margin-top: 24px;

  display: flex;

  flex-direction: column;

  gap: 12px;
}

.card-actions-row {

  display: flex;

  gap: 12px;
}

.card-btn {

  width: 100%;
}
#loadingMessage{
  margin-top: 30px;
  color: #cbd5e1;
}

.account-plan,
#analyticsSection,
.premium-lock,
.stats-card{
  margin-top: 25px;
}
.dashboard-container{
  width:100%;
  max-width:1600px;
  margin:0 auto;
  padding:20px;
  box-sizing:border-box;
}

#loadingMessage{
  margin-top:30px;
  margin-bottom:20px;
  color:#cbd5e1;
  font-size:18px;
}

.account-plan,
#analyticsSection,
.premium-lock,
.stats-card{
  margin-top:30px;
}

.stats-card{
  max-width:300px;
}
.container{
  width:100%;
  max-width:800px;
  margin:40px auto;
  padding:30px;
  background:#1e293b;
  border-radius:24px;
  box-sizing:border-box;
}

#editForm{
  display:flex;
  flex-direction:column;
  gap:18px;
}

#editForm input,
#editForm select,
#editForm textarea{
  width:100%;
  padding:14px 16px;
  border-radius:14px;
  border:none;
  box-sizing:border-box;
  font-size:16px;
}

.edit-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:10px;
}
.account-plan,
#analyticsSection,
.premium-lock,
.stats-card{
  max-width:800px;
  margin:30px auto;
  text-align:center;
}

#analyticsSection{
  background:#1e293b;
  padding:30px;
  border-radius:24px;
}

.premium-lock{
  background:#1e293b;
  padding:30px;
  border-radius:24px;
}

.stats-card{
  background:#1e293b;
  padding:30px;
  border-radius:24px;
}

.account-plan{
  margin-top:50px;
}

#loadingMessage{
  text-align:center;
  margin-top:40px;
  color:#cbd5e1;
}
.dashboard-container{
  width:100%;
  max-width:1600px;
  margin:0 auto;
  padding:20px;
  box-sizing:border-box;
}

.cards-grid{
  display:grid;

  grid-template-columns:
    repeat(auto-fit, minmax(340px, 340px));

  justify-content: center;

  gap: 40px;

  margin-top: 50px;

  padding: 20px;
}

#loadingMessage{
  text-align:center;
  margin-top:40px;
  color:#cbd5e1;
  font-size:18px;
}

.account-plan,
#analyticsSection,
.premium-lock,
.stats-card{
  max-width:800px;
  margin:30px auto;
  text-align:center;
}

#analyticsSection,
.premium-lock,
.stats-card{
  background:#1e293b;
  padding:30px;
  border-radius:24px;
}

.account-plan{
  margin-top:50px;
}

#planBadge{
  display:inline-block;
  background:#2563eb;
  color:white;
  padding:12px 24px;
  border-radius:999px;
  font-weight:700;
}
.card-btn {
  width: 100%;

  display: flex;

  align-items: center;

  justify-content: center;

  text-align: center;
}
.card,
.price-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover,
.price-card:hover {
  transform: translateY(-6px);

  box-shadow:
    0 18px 40px rgba(0,0,0,0.35);

  border-color:
    rgba(96,165,250,0.35);
}

/* ========================================
   BUTTONS
======================================== */

.card-btn {
  border: none;

  border-radius: 12px;

  padding: 10px 16px;

  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.25s ease,
    transform 0.2s ease;

  text-decoration: none;

  display: inline-flex;

  align-items: center;

  justify-content: center;
}

.card-btn:hover {
  transform: translateY(-2px);
}

/* ========================================
   OCEAN
======================================== */

.theme-ocean {
  background:
    linear-gradient(
      135deg,
      #0f172a,
      #1e3a8a
    );
}

.theme-ocean .card-btn {
  background:
    rgba(255,255,255,0.10);

  color: white;
}

/* ========================================
   MIDNIGHT
======================================== */

.theme-midnight {
  background:
    linear-gradient(
      135deg,
      #000000,
      #111111
    );
}

.theme-midnight .card-btn {
  background:
    rgba(255,255,255,0.08);

  color: white;
}

/* ========================================
   EMERALD
======================================== */

.theme-emerald {
  background:
    linear-gradient(
      135deg,
      #022c22,
      #065f46
    );
}

.theme-emerald .card-btn {
  background:
    rgba(255,255,255,0.10);

  color: white;
}

/* ========================================
   SUNSET
======================================== */

.theme-sunset {
  background:
    linear-gradient(
      135deg,
      #7c2d12,
      #ea580c
    );
}

.theme-sunset .card-btn {
  background:
    rgba(255,255,255,0.10);

  color: white;
}

/* ========================================
   MINIMAL LIGHT
======================================== */

.theme-minimal-light {
  background: #ffffff;

  color: #111827;

  border:
    1px solid #d1d5db;
}

.theme-minimal-light .card-btn {
  background: #f3f4f6;

  color: #111827;
}

/* ========================================
   CARD TEXT
======================================== */

.card-company {
  opacity: 0.9;
}

.card-username {
  opacity: 0.75;
}

.card-stats {
  margin-top: 12px;

  font-size: 0.9rem;

  opacity: 0.85;
}
/* =========================================
   CONTACT PAGE
========================================= */

.container h1 {
  margin-bottom: 10px;
}

#contactForm {
  display: flex;
  flex-direction: column;

  gap: 18px;

  margin-top: 30px;
}

#contactForm textarea {
  resize: vertical;

  min-height: 160px;
}

#successMessage {
  font-weight: 600;

  text-align: center;
}
/* TEMP BACKWARD COMPATIBILITY */

.ocean {
  background:
    linear-gradient(
      135deg,
      #0f172a,
      #1e3a8a
    );
}

.midnight {
  background:
    linear-gradient(
      135deg,
      #000000,
      #111111
    );
}

.emerald {
  background:
    linear-gradient(
      135deg,
      #022c22,
      #065f46
    );
}

.sunset {
  background:
    linear-gradient(
      135deg,
      #7c2d12,
      #ea580c
    );
}

.minimal {
  background: white;
  color: #111827;
}
.qr-section {
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  margin-top: 24px;

  overflow: visible !important;
}

[id^="qrcode"] {
  width: 180px !important;
  height: 180px !important;

  background: #ffffff !important;

  padding: 14px !important;

  border-radius: 0 !important;

  overflow: visible !important;

  display: flex;
  justify-content: center;
  align-items: center;
}

[id^="qrcode"] canvas,
[id^="qrcode"] img {
  width: 180px !important;
  height: 180px !important;

  border-radius: 0 !important;

  background: white !important;

  image-rendering: pixelated;

  transform: none !important;

  filter: none !important;
}
.dashboard-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  justify-content: center;

  margin-top: 18px;
}

.dashboard-btn {
  min-width: 150px;
}
.analytics-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));

  gap: 18px;

  margin-top: 20px;
}
/* =========================
   SOCIAL MEDIA ICONS
========================= */

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  gap: 14px;

  width: 100%;

  margin-bottom: 22px;
}

.social-btn {
  position: relative;

  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 18px;

  background: rgba(255,255,255,0.08);

  backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.12);

  text-decoration: none;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.08);
}

.social-btn svg {
  width: 24px;
  height: 24px;

  fill: currentColor;
}

/* Glow Layer */
.social-btn::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  background: currentColor;

  filter: blur(18px);

  opacity: 0;

  z-index: -1;

  transition: opacity 0.3s ease;
}

.social-btn:hover::before {
  opacity: 0.22;
}

/* Platform Colors */

.facebook {
  color: #1877f2;
}

.facebook:hover {
  box-shadow: 0 0 18px rgba(24,119,242,0.6);
}

.instagram {
  color: #e1306c;
}

.instagram:hover {
  box-shadow: 0 0 18px rgba(225,48,108,0.6);
}

.linkedin {
  color: #0a66c2;
}

.linkedin:hover {
  box-shadow: 0 0 18px rgba(10,102,194,0.6);
}

.x {
  color: #ffffff;
}

.x:hover {
  box-shadow: 0 0 18px rgba(255,255,255,0.45);
}
.social-btn i {
  font-size: 24px;
}
.seo-section {
  max-width: 900px;

  margin: 80px auto;

  padding: 0 24px;

  text-align: center;
}

.seo-section h2 {
  margin-top: 50px;

  font-size: 2rem;
}

.seo-section p {
  margin-top: 14px;

  line-height: 1.8;

  opacity: 0.9;
}

.legal-container {

  width: 100%;

  max-width: 900px;

  margin: 80px auto;

  padding: 40px;

  background: #1e293b;

  border-radius: 24px;

  color: white;

  line-height: 1.8;
}

.legal-container h1 {

  margin-bottom: 20px;

  font-size: 2.5rem;
}

.legal-container h2 {

  margin-top: 36px;

  margin-bottom: 12px;

  color: #60a5fa;
}

.legal-container p,
.legal-container li {

  color: #cbd5e1;
}

.legal-container ul {

  padding-left: 20px;
}
/* ================= AUTH BUTTONS ================= */

.auth-buttons {
  display: flex;

  flex-direction: column;

  gap: 16px;

  margin-top: 20px;
}

.auth-buttons button {
  width: 100%;

  padding: 14px;

  border-radius: 14px;

  border: none;

  font-size: 16px;

  font-weight: 600;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.auth-buttons button:hover {
  transform: translateY(-1px);
}
/* ================= GOOGLE BUTTON ================= */

#googleLoginBtn {
  width: 100%;

  padding: 14px;

  border-radius: 14px;

  border: none;

  background: white;

  color: #111827;

  font-size: 16px;

  font-weight: 600;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 12px;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#googleLoginBtn:hover {
  transform: translateY(-1px);

  box-shadow:
    0 10px 20px rgba(0,0,0,0.18);
}

.google-icon {
  width: 20px;

  height: 20px;
}
/* ================= FORGOT PASSWORD ================= */

.forgot-link {
  margin-top: 14px;

  text-align: left;
}

.forgot-link a {
  color: #38bdf8;

  text-decoration: none;
}

.forgot-link a:hover {
  text-decoration: underline;
}