:root {
  --bg-primary: #0b0c10;
  --bg-card: rgba(31, 41, 55, 0.65);
  --bg-card-hover: rgba(31, 41, 55, 0.85);
  --bg-nav-hover: rgba(255, 255, 255, 0.05);

  --accent-purple: #2488c2;
  --accent-purple-light: #0099ff;
  --accent-purple-glow: rgba(47, 36, 194, 0.4);

  --text-primary: #ffffff;
  --text-secondary: #94a1b2;
  --text-muted: #a6a8b8;
  --text-dim: #8398af;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(36, 136, 194, 0.4);

  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max-width: 1200px;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-normal: 0.3s ease;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-purple: 0 0 20px var(--accent-purple-glow);
  --backdrop-blur: blur(12px);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('../imgs/profile.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

header, main {
  position: relative;
  z-index: 1;
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 8%;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.nav_links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav_links a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.nav_links a:hover, .nav_links a.active {
  color: var(--text-primary);
  background-color: var(--bg-nav-hover);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 55vh;
  padding: 2rem 1rem 1rem;
}

.hero .avatar {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid var(--accent-purple);
  box-shadow: var(--shadow-purple);
  margin-bottom: 1.25rem;
  transition: transform var(--transition-normal);
}

.hero .avatar:hover {
  transform: scale(1.05);
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.bio-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bio-text i {
  color: var(--accent-purple-light);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn-call {
  background: rgba(31, 41, 55, 0.8);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: var(--backdrop-blur);
}

.btn-call:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #000000;
  border: 1px solid #25D366;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1ebc57;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
}

.location-box {
  max-width: 600px;
  margin: 1rem auto 3rem;
  padding: 0 1rem;
  text-align: center;
}

.btn-location {
  background: linear-gradient(135deg, var(--accent-purple), #14488c);
  color: var(--text-primary);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-purple);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-family);
}

.btn-location:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 25px rgba(36, 110, 194, 0.7);
}

.location-result {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
  backdrop-filter: var(--backdrop-blur);
}

.location-result.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.location-result.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.location-result a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 0.5rem;
}

/* Messaging Section */
.messaging-section {
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.message-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: var(--backdrop-blur);
  box-shadow: var(--shadow-card);
}

.message-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.message-card h3 i {
  color: var(--accent-purple-light);
}

.privacy-note {
  font-size: 0.85rem;
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  background: rgba(11, 12, 16, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  transition: all var(--transition-normal);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-purple-light);
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.2);
}

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

.btn-submit {
  width: 100%;
  background: var(--accent-purple);
  color: #ffffff;
  border: none;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-family);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit:hover {
  background: var(--accent-purple-light);
  box-shadow: var(--shadow-purple);
}

.replied-history {
  margin-top: 3rem;
}

.replied-history h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.reply-card {
  background: rgba(19, 24, 35, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all var(--transition-normal);
}

.reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  padding-bottom: 0.5rem;
}

.reply-content {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  white-space: pre-wrap;
}

.subhan-reply-box {
  background: rgba(118, 36, 194, 0.15);
  border-left: 3px solid var(--accent-purple-light);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 0.75rem;
}

.subhan-reply-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-purple-light);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-toggle-status {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family);
}

.btn-toggle-status:hover {
  background: rgba(255,255,255,0.05);
  color: #ffffff;
}

.reply-card.status-hidden .reply-content,
.reply-card.status-hidden .subhan-reply-box {
  filter: blur(6px);
  user-select: none;
  opacity: 0.4;
}

.reply-card.status-locked {
  border-color: rgba(239, 68, 68, 0.4);
}

.reply-card.status-locked .reply-content {
  color: #fca5a5;
}

/* Contact Cards Grid */
.contact-section {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 2rem 8% 6rem;
}

.contact-section h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  position: relative;
}

.contact-section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent-purple);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.cards-grid2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cardx {
  background-color: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all var(--transition-normal);
  backdrop-filter: var(--backdrop-blur);
  max-width: 600px;
  width: 100%;
}

.cardx:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-accent);
  background-color: var(--bg-card-hover);
}

.infosx {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.imagex {
  height: 5.5rem;
  width: 5.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-purple), #4a148c);
  /* background-image: url('../imgs/profile.jpg'); */
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.imagex2 {
  background-image: url('/assets/imgs/profile.jpg'); 
  height: 5.5rem;
  width: 5.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-purple), #4a148c);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;

}

.infox {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.namex {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.functionx {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.function2 {
  font-size: 0.8rem;
  color: #86efac;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.requestx {
  width: 100%;
  background: transparent;
  border: 1px solid var(--accent-purple);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-family);
  text-decoration: none;
  text-align: center;
  display: inline-block;
}

.requestx:hover {
  background-color: var(--accent-purple);
  box-shadow: 0 0 12px var(--accent-purple-glow);
}

.requestx.hidden-btn {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: not-allowed;
}

.requestx.hidden-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

/* --- PRO MOBILE UI TWEAKS --- */
@media (max-width: 630px) {
  header nav {
    justify-content: center;
    padding: 1rem;
  }
  
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .hero .avatar {
    width: 110px;
    height: 110px;
  }
  
  /* Stack hero buttons for easier thumb tapping */
  .action-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }
  
  .btn-action {
    width: 100%;
    justify-content: center;
  }

  /* Reduce outer page padding */
  .contact-section, .messaging-section {
    padding: 1.5rem 1rem 3rem;
  }
  
  /* Reduce padding inside the main messaging container */
  .message-card {
    padding: 1.25rem 1rem;
  }
  
  /* Dramatically reduce padding around individual replies */
  .reply-card {
    padding: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .reply-header {
    font-size: 0.75rem;
  }

  .subhan-reply-box {
    padding: 0.6rem 0.75rem;
  }
  
  .reply-content {
    font-size: 0.9rem;
  }
}




        .reply-card.featured-card {
            border: 1px solid #ffd700;
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
            background: rgba(30, 25, 10, 0.85);
        }
        .featured-badge {
            background: linear-gradient(135deg, #ffd700, #ffa500);
            color: #000;
            font-size: 0.7rem;
            font-weight: 700;
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            margin-bottom: 0.5rem;
        }
        .live-banner {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #25D366;
            color: #fff;
            padding: 1rem 1.5rem;
            border-radius: 8px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.5);
            z-index: 1000;
            display: none;
            font-weight: 600;
            animation: slideIn 0.3s ease;
        }
        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        /* Thread & Reply Box Styling inside Cards */
        .thread-history {
            margin: 0.8rem 0;
            padding-left: 0.5rem;
            border-left: 2px solid rgba(255, 255, 255, 0.1);
        }
        .msg-bubble {
            margin-bottom: 0.5rem;
            padding: 0.5rem 0.8rem;
            border-radius: 6px;
            font-size: 0.9rem;
        }
        .user-msg { background: rgba(255, 255, 255, 0.05); }
        .admin-msg { background: rgba(37, 211, 102, 0.15); border: 1px solid rgba(37, 211, 102, 0.3); }
        .msg-bubble .time { display: block; font-size: 0.7rem; color: #888; margin-top: 0.2rem; }
        .visitor-reply-box {
            display: flex;
            gap: 0.5rem;
            margin-top: 0.8rem;
        }
        .visitor-reply-box input {
            flex: 1;
            padding: 0.5rem 0.8rem;
            border-radius: 4px;
            border: 1px solid rgba(255,255,255,0.2);
            background: rgba(0,0,0,0.4);
            color: #fff;
        }
        .visitor-reply-box button {
            padding: 0.5rem 1rem;
            background: #25D366;
            color: #000;
            font-weight: 600;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }





        
        /* Pro UI Reply Box Styling */
        .visitor-reply-box {
            display: flex;
            gap: 0.4rem;
            margin-top: 0.8rem;
            background: rgba(0, 0, 0, 0.3);
            padding: 0.4rem;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            transition: border-color 0.3s ease;
        }
        .visitor-reply-box:focus-within {
            border-color: rgba(37, 211, 102, 0.5); /* Subtle green glow when typing */
        }
        .visitor-reply-box input {
            flex: 1;
            padding: 0.6rem 0.5rem;
            border: none;
            background: transparent;
            color: #fff;
            font-size: 0.9rem;
            outline: none;
            font-family: inherit;
        }
        .visitor-reply-box input::placeholder {
            color: #8398af;
        }
        .visitor-reply-box button {
            padding: 0 1.2rem;
            background: #25D366;
            color: #000;
            font-size: 1rem;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .visitor-reply-box button:hover {
            background: #1ebc57;
            transform: scale(1.05);
        }
        .visitor-reply-box button:active {
            transform: scale(0.95);
        }