/* ==========================================================================
   DENİZ'E ÖZEL DISCORD BIO, BLOG & DOĞUM GÜNÜ TASARIMI (ORTALANMIŞ & HIZLANDIRILMIŞ)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #090712;
  --card-bg: rgba(20, 16, 35, 0.82);
  --card-border: rgba(255, 255, 255, 0.1);
  --accent-pink: #ff4e88;
  --accent-purple: #8a2be2;
  --accent-cyan: #00f2fe;
  --accent-gold: #ffc107;
  --text-main: #f8f9fa;
  --text-muted: #a5a9c0;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-handwriting: 'Caveat', cursive;
  --glow-pink: 0 0 20px rgba(255, 78, 136, 0.35);
}

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

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255, 78, 136, 0.15) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
}

/* --- CUSTOM ROMANTIC GLOWING CURSOR --- */
/* --- ULTRALEAN HIGH-TECH CROSSHAIR CURSOR --- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  margin-left: -4px;
  background: var(--accent-pink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 8px rgba(255, 78, 136, 0.45);
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  margin-left: -18px;
  border: 1px dashed rgba(255, 115, 250, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  box-shadow: 0 0 10px rgba(255, 115, 250, 0.12);
  transition: width 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              height 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              margin 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

/* Futuristic Crosshair Line Accents */
.cursor-follower::before,
.cursor-follower::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* Horizontal line ticks */
.cursor-follower::before {
  top: 50%;
  left: -5px;
  right: -5px;
  height: 1px;
  margin-top: -0.5px;
  background: linear-gradient(90deg, 
    rgba(255, 115, 250, 0.6) 0%, 
    transparent 22%, 
    transparent 78%, 
    rgba(255, 115, 250, 0.6) 100%
  );
}

/* Vertical line ticks */
.cursor-follower::after {
  left: 50%;
  top: -5px;
  bottom: -5px;
  width: 1px;
  margin-left: -0.5px;
  background: linear-gradient(180deg, 
    rgba(255, 115, 250, 0.6) 0%, 
    transparent 22%, 
    transparent 78%, 
    rgba(255, 115, 250, 0.6) 100%
  );
}

/* Hover Target Lock States */
.custom-cursor.cursor-hover {
  width: 12px;
  height: 12px;
  margin-top: -6px;
  margin-left: -6px;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.cursor-follower.cursor-hover {
  width: 48px;
  height: 48px;
  margin-top: -24px;
  margin-left: -24px;
  border-style: solid;
  border-color: rgba(0, 242, 254, 0.55);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.18);
}

.cursor-follower.cursor-hover::before {
  background: linear-gradient(90deg, 
    rgba(0, 242, 254, 0.75) 0%, 
    transparent 25%, 
    transparent 75%, 
    rgba(0, 242, 254, 0.75) 100%
  );
}

.cursor-follower.cursor-hover::after {
  background: linear-gradient(180deg, 
    rgba(0, 242, 254, 0.75) 0%, 
    transparent 25%, 
    transparent 75%, 
    rgba(0, 242, 254, 0.75) 100%
  );
}

@media (max-width: 768px) {
  .custom-cursor, .cursor-follower { display: none !important; }
}

/* --- LIGHTWEIGHT BACKGROUND STARS --- */
.stars-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(1.5px 1.5px at 20px 30px, #ffffff 100%, transparent),
              radial-gradient(2px 2px at 150px 170px, rgba(255,255,255,0.7) 100%, transparent),
              radial-gradient(1.5px 1.5px at 290px 40px, #ffffff 100%, transparent);
  background-size: 320px 320px;
  opacity: 0.4;
}

/* --- NAVBAR --- */
.app-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 65px;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(9, 7, 18, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 0.48rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
}

.nav-btn:hover {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  transform: translateY(-2px);
}

.nav-btn.special-bday-btn {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  border: none;
  box-shadow: var(--glow-pink);
}

/* --- CENTERED MAIN LAYOUT --- */
.main-layout {
  position: relative;
  z-index: 1;
  max-width: 660px; /* Fully centered single-column layout */
  margin: 90px auto 60px auto;
  padding: 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  align-items: center;
}

/* ============================================
   DISCORD POPUP PROFILE CARD - ORTALANMIŞ
   ============================================ */
.profile-card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  text-align: center;
}

/* Banner */
.profile-banner {
  height: 130px;
  background-color: #19191a;
  background-size: cover;
  background-position: center top;
  transition: background-color 0.3s ease;
}

/* Avatar section: centers the avatar, pulls it up to overlap banner */
.avatar-section {
  display: flex;
  justify-content: center;
  margin-top: -52px;
  position: relative;
  z-index: 2;
}

.avatar-wrapper {
  position: relative;
  width: 104px;
  height: 104px;
  flex-shrink: 0;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #141023;
  box-shadow: 0 8px 30px rgba(0,0,0,0.55);
  display: block;
}

/* Status dot on bottom-right of avatar */
.status-dot {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid #141023;
  transition: background-color 0.3s ease;
}

.status-dot.status-online  { background-color: #23a55a; box-shadow: 0 0 10px rgba(35,165,90,0.7); }
.status-dot.status-idle    { background-color: #f0b232; box-shadow: 0 0 10px rgba(240,178,50,0.7); }
.status-dot.status-dnd     { background-color: #f23f43; box-shadow: 0 0 10px rgba(242,63,67,0.7); }
.status-dot.status-offline { background-color: #80848e; }

/* ---- Profile info block (centered column below avatar) ---- */
.profile-info {
  padding: 12px 1.6rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Görünen Ad */
.profile-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 10px 0 0 0;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

/* Durum yazısı — geniş pill, ortalanmış */
.discord-custom-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  width: fit-content;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  line-height: 1.4;
}

.custom-status-emoji-wrap img,
.custom-status-emoji-wrap span {
  font-size: 1rem;
  line-height: 1;
  vertical-align: middle;
}

.custom-status-emoji {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
}

.custom-status-emoji-text {
  font-size: 1.05rem;
  line-height: 1;
  vertical-align: middle;
}

/* @kullanıcı adı */
.profile-username {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin: 5px 0 0 0;
  font-weight: 500;
}

/* Rozetler */
.profile-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Divider */
.profile-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 14px 0 0 0;
}

/* Bio section */
.profile-bio-block {
  width: 100%;
  text-align: left;
  margin-top: 14px;
}

.profile-bio-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
}

.profile-bio {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.55;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Badge items */
.badge-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
  cursor: pointer;
}

.badge-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.badge-item:hover {
  transform: translateY(-3px) scale(1.1);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 15px rgba(255, 78, 136, 0.3);
  border-color: rgba(255, 78, 136, 0.4);
}

.badge-tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: #111214;
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
}

.badge-item:hover .badge-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.custom-status-emoji {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
}



/* DISCORD-NATIVE MINIMALIST SPOTIFY WIDGET */
.spotify-widget {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 0.75rem 0.95rem;
  background: rgba(18, 19, 22, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #1db954;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.spotify-widget:hover {
  background: rgba(22, 24, 28, 0.85);
  border-color: rgba(29, 185, 84, 0.4);
}

.spotify-album-art {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.spotify-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  overflow: hidden;
}

.spotify-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.1rem;
}

.spotify-label-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #1db954;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spotify-song {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.2;
}

.spotify-artist {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.2;
}

.spotify-time {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  font-family: monospace;
}

.spotify-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.spotify-progress-bar {
  height: 100%;
  width: 0%;
  background: #1db954;
  border-radius: 0 2px 2px 0;
  transition: width 0.3s linear;
}

/* --- CONTENT AREA (CENTERED VERTICAL STACK) --- */
.content-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.section-block {
  width: 100%;
}

.section-header {
  margin-bottom: 1.2rem;
  text-align: left;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title i {
  color: var(--accent-pink);
}

/* Vertical Stacked Social Links */
.links-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.link-card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--link-color, var(--accent-pink));
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--link-color, var(--accent-pink));
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.link-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.link-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.link-title {
  font-weight: 700;
  font-size: 1rem;
}

.link-category {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.link-arrow {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Vertical Stacked Blog Grid */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.blog-card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 78, 136, 0.4);
}

.blog-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 1rem;
}

.blog-tag {
  background: rgba(9, 7, 18, 0.8);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--accent-pink);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}

.blog-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.blog-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.blog-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.read-post-btn {
  background: transparent;
  border: 1px solid var(--accent-pink);
  color: var(--accent-pink);
  padding: 0.55rem 1.2rem;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.2s ease;
}

.read-post-btn:hover {
  background: var(--accent-pink);
  color: white;
  box-shadow: var(--glow-pink);
}

/* --- BIRTHDAY OVERLAY & CAKE --- */
.birthday-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 4, 14, 0.94);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.birthday-overlay.active {
  opacity: 1;
  pointer-events: all;
}

#birthdayCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.overlay-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 580px;
  width: 90%;
  padding: 2.2rem;
  background: rgba(20, 16, 35, 0.88);
  border: 1px solid rgba(255, 78, 136, 0.35);
  border-radius: 32px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
}

.overlay-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}

.birthday-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff4e88, #ffeb3b, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.birthday-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0.4rem 0 1.5rem 0;
}

/* HIGH QUALITY 3D RENDERED CAKE & CANDLES (PROPORTIONALLY BALANCED) */
.cake-wrapper {
  margin: 1rem auto 0.8rem auto;
  position: relative;
  width: 320px; /* Bigger, magnificent cake */
  height: 240px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transition: transform 0.3s ease;
}

.cake-wrapper:hover {
  transform: scale(1.03);
}

.real-cake-img {
  width: 100%;
  height: auto;
  max-height: 230px;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(255, 78, 136, 0.45));
  user-select: none;
  pointer-events: none;
}

/* Sleek, Micro-Proportional 3D Candle Placement */
.candles-group {
  position: absolute;
  top: 72px; /* Positioned right on the cream top surface */
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  display: flex;
  justify-content: space-around;
  z-index: 10;
}

/* Micro-Scale Slim Candle Sticks */
.candle {
  width: 5px; /* Micro-sleek & delicate candle */
  height: 22px;
  background: repeating-linear-gradient(45deg, #ffeb3b, #ffeb3b 3px, #ff9800 3px, #ff9800 6px);
  border-radius: 2px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Candle Wick */
.candle::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 4px;
  background: #222222;
}

/* Micro Delicate Proportional Flame */
.flame {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 12px;
  background: radial-gradient(ellipse at bottom, #ffffff 0%, #ffee55 35%, #ff5722 75%, transparent 100%);
  border-radius: 50% 50% 35% 35%;
  box-shadow: 0 0 10px #ffeb3b, 0 0 20px #ff5722;
  animation: fireGlow 0.4s infinite alternate ease-in-out;
  transform-origin: center bottom;
}

/* Inner Flame Core */
.flame::before {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: #ffffff;
  border-radius: 50% 50% 35% 35%;
}

/* Ember Sparks Effect */
.flame::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #ffeb3b;
  border-radius: 50%;
  box-shadow: 0 0 8px #ffeb3b;
  animation: sparkRise 0.8s infinite ease-out;
}

.flame.blown-out {
  display: none !important;
}

@keyframes fireGlow {
  0% {
    transform: translateX(-50%) scale(1) rotate(-2deg);
    box-shadow: 0 0 20px #ffeb3b, 0 0 40px #ff5722;
  }
  50% {
    transform: translateX(-50%) scale(1.12, 1.18) rotate(3deg);
    box-shadow: 0 0 28px #ffeb3b, 0 0 50px #ff3300, 0 0 70px rgba(255, 78, 136, 0.7);
  }
  100% {
    transform: translateX(-50%) scale(0.95, 1.05) rotate(-3deg);
    box-shadow: 0 0 22px #ffee55, 0 0 42px #ff5722;
  }
}

@keyframes sparkRise {
  0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  100% { opacity: 0; transform: translateX(calc(-50% + 5px)) translateY(-15px) scale(0.3); }
}

.flame.blown-out {
  display: none !important;
}

@keyframes flicker {
  0% { transform: translateX(-50%) scale(1) rotate(-2deg); }
  100% { transform: translateX(-50%) scale(1.15) rotate(2deg); }
}

.smoke-particle {
  position: absolute;
  top: -25px;
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  animation: floatSmoke 1.5s ease-out forwards;
}

@keyframes floatSmoke {
  0% { opacity: 0.9; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-45px) scale(2.8); }
}

.mic-status-text {
  font-size: 0.92rem;
  color: var(--accent-cyan);
  margin-top: 1rem;
}

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

.action-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: white;
  box-shadow: var(--glow-pink);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--card-border);
  color: white;
}

/* --- ROMANTIC LETTER MODAL --- */
.letter-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(5, 3, 10, 0.92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.letter-modal.active {
  opacity: 1;
  pointer-events: all;
}

.letter-card {
  position: relative;
  max-width: 580px;
  width: 100%;
  background: #fff0f5;
  color: #2c1820;
  border-radius: 24px;
  padding: 2.8rem 2.2rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  max-height: 85vh;
  overflow-y: auto;
}

.letter-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.1);
  border: none;
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.letter-stamp {
  position: absolute;
  top: 25px;
  right: 55px;
  font-size: 2rem;
  transform: rotate(12deg);
}

.letter-header {
  font-family: var(--font-handwriting);
  font-size: 2.2rem;
  color: var(--accent-pink);
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.letter-text {
  font-family: var(--font-handwriting);
  font-size: 1.6rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #3d2331;
}

/* --- BLOG MODAL --- */
.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(5, 3, 10, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.blog-modal.active {
  opacity: 1;
  pointer-events: all;
}

.blog-modal-card {
  position: relative;
  max-width: 620px;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  overflow: hidden;
  max-height: 85vh;
  overflow-y: auto;
}

.blog-modal-header {
  height: 200px;
  background-size: cover;
  background-position: center;
  padding: 1.5rem;
}

.blog-modal-body {
  padding: 1.8rem;
}

.blog-modal-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0.5rem 0 1rem 0;
}

.blog-full-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* --- LIVE EDITOR DRAWER --- */
.editor-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: #120e24;
  border-left: 1px solid var(--card-border);
  z-index: 1200;
  box-shadow: -10px 0 30px rgba(0,0,0,0.6);
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
}

.editor-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 1.2rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-body {
  padding: 1.2rem;
  flex: 1;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  color: white;
  padding: 0.6rem;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.85rem;
}

.editor-link-item, .editor-post-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.8rem;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.remove-field-btn {
  align-self: flex-end;
  background: rgba(240, 71, 71, 0.2);
  color: #f04747;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
}

.drawer-footer {
  padding: 1rem;
  border-top: 1px solid var(--card-border);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-small {
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
}

/* --- BIRTHDAY COUNTDOWN CARD --- */
.countdown-card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 2rem 1.5rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.countdown-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple), var(--accent-cyan));
}

.countdown-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  background: rgba(255, 78, 136, 0.15);
  border: 1px solid rgba(255, 78, 136, 0.3);
  color: var(--accent-pink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.countdown-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
}

.countdown-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.45;
}

/* Timer Grid */
.countdown-timer-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.unit-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.03), 0 8px 20px rgba(0, 0, 0, 0.25);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.1) 100%);
  text-shadow: 0 0 10px rgba(255, 78, 136, 0.5);
}

.unit-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.timer-divider {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-pink);
  margin-top: -1.2rem;
  animation: timerBlink 1.5s infinite;
}

@keyframes timerBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Actions & Buttons */
.countdown-actions {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
}

.btn-locked {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  padding: 0.75rem 1.6rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-locked:hover {
  background: rgba(255, 78, 136, 0.12);
  border-color: rgba(255, 78, 136, 0.4);
  color: var(--text-main);
}

.highlight-pulse {
  animation: cardPulseGlow 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardPulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 40px rgba(255, 78, 136, 0.6), 0 0 20px rgba(0, 242, 254, 0.4);
    border-color: var(--accent-pink);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  }
}

/* --- TOAST NOTIFICATIONS --- */
.bday-toast-container {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.bday-toast {
  background: rgba(18, 14, 36, 0.92);
  border: 1px solid var(--accent-pink);
  color: var(--text-main);
  padding: 0.8rem 1.4rem;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--glow-pink);
  backdrop-filter: blur(12px);
  pointer-events: all;
  animation: toastFadeIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

@media (max-width: 520px) {
  .unit-box {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }
  .timer-divider {
    font-size: 1.4rem;
  }
}

