@import url('fonts.css');
@import url('site-v7-additions.css');
:root {
  --navy-950: #060b1c;
  --navy-900: #0a1330;
  --navy-800: #0f1d4a;
  --navy-700: #15295e;
  --navy-600: #1d3a82;
  --navy-500: #2851b5;
  --accent: #5eead4;
  --accent-2: #818cf8;
  --accent-warm: #fbbf24;
  --text: #e7ecf7;
  --text-dim: #9aa5c4;
  --text-faint: #6b7799;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 255, 255, 0.24);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.5);
  --error: #fca5a5;
  --success: #86efac;
}

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

html, body {
  background: var(--navy-950);
  color: var(--text);
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 981px) {
  html, body { height: 100vh; overflow: hidden; }
}
@media (max-width: 980px) {
  html, body { min-height: 100vh; overflow-x: hidden; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(94,234,212,0.4); }

/* SEO KEYWORDS BACKGROUND */
.seo-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
  user-select: none;
}
.seo-kw {
  position: absolute;
  font-weight: 700;
  white-space: nowrap;
  color: rgba(94, 234, 212, 0.05);
  text-shadow: 0 0 1px rgba(129, 140, 248, 0.06);
  font-size: 22px;
  font-family: inherit;
  transition: color 0.4s;
  animation: seo-float 24s linear infinite;
}
.seo-kw:hover { color: rgba(94, 234, 212, 0.1); }

.seo-kw-0 { top: 5%;   left: 8%;  transform: rotate(-15deg); font-size: 28px; }
.seo-kw-1 { top: 18%;  left: 65%; transform: rotate(8deg);   font-size: 18px; }
.seo-kw-2 { top: 30%;  left: 25%; transform: rotate(-5deg);  font-size: 32px; }
.seo-kw-3 { top: 45%;  left: 75%; transform: rotate(20deg);  font-size: 16px; }
.seo-kw-4 { top: 60%;  left: 12%; transform: rotate(-10deg); font-size: 24px; }
.seo-kw-5 { top: 75%;  left: 55%; transform: rotate(5deg);   font-size: 20px; }

.seo-kw:nth-child(7n)  { top: 8%;   left: 40%; }
.seo-kw:nth-child(7n+1){ top: 22%;  left: 5%;  font-size: 26px; }
.seo-kw:nth-child(7n+2){ top: 35%;  left: 50%; font-size: 18px; }
.seo-kw:nth-child(7n+3){ top: 50%;  left: 35%; font-size: 22px; }
.seo-kw:nth-child(7n+4){ top: 65%;  left: 80%; font-size: 16px; }
.seo-kw:nth-child(7n+5){ top: 80%;  left: 20%; font-size: 24px; }
.seo-kw:nth-child(7n+6){ top: 92%;  left: 60%; font-size: 20px; }

.seo-kw:nth-child(11n)  { top: 12%; left: 80%; transform: rotate(12deg);  font-size: 18px; }
.seo-kw:nth-child(11n+1){ top: 28%; left: 35%; transform: rotate(-22deg); font-size: 24px; }
.seo-kw:nth-child(11n+2){ top: 42%; left: 10%; transform: rotate(7deg);   font-size: 30px; }
.seo-kw:nth-child(11n+3){ top: 56%; left: 45%; transform: rotate(-8deg);  font-size: 20px; }
.seo-kw:nth-child(11n+4){ top: 70%; left: 88%; transform: rotate(15deg);  font-size: 16px; }

@keyframes seo-float {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* ATMOSPHERIC BACKGROUND */
.bg-mesh {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(94,234,212,0.10), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(129,140,248,0.13), transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(40,81,181,0.08), transparent 70%),
    linear-gradient(180deg, var(--navy-950) 0%, #050818 100%);
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* LAYOUT */
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 18px 20px;
}
@media (min-width: 981px) {
  .container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 18px 24px;
  }
}

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; padding: 0 6px; flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.5px; color: var(--text-dim); font-size: 14px; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.85); } }
.topbar-meta { font-size: 12px; color: var(--text-faint); letter-spacing: 0.6px; }

.layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  flex: 1;
  min-height: 0;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* SIDEBAR */
.sidebar {
  padding: 22px 22px 22px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 0;
  overflow: hidden;
}
@media (max-width: 980px) {
  .sidebar { overflow: visible; }
}

.profile-pic-wrap {
  position: relative;
  width: 130px;
  aspect-ratio: 1 / 1;
  margin: 4px auto 0;
  flex-shrink: 0;
}
.profile-pic-ring {
  position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent-warm), var(--accent));
  opacity: 0.85; animation: spin 12s linear infinite; filter: blur(0.5px);
}
@keyframes spin { to { transform: rotate(360deg); } }
.profile-pic {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  display: flex; align-items: center; justify-content: center;
  border: 4px solid var(--navy-950);
  overflow: hidden;
}
.profile-pic img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.profile-pic svg { width: 60px; height: 60px; color: var(--text-faint); }

.profile-name {
  text-align: center; margin-top: 14px; font-size: 20px; font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: 0.3px;
}
.profile-tag { text-align: center; font-size: 11.5px; color: var(--accent); margin-top: 4px; letter-spacing: 1px; font-weight: 500; }
.profile-bio { text-align: center; font-size: 12.5px; line-height: 1.75; color: var(--text-dim); margin-top: 10px; padding: 0 4px; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin: 4px 0;
}

.socials { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--glass-strong); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
}
.social-btn:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(94,234,212,0.25);
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn img { width: 22px; height: 22px; object-fit: contain; }

.ad-buttons {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-left: 4px;
  margin-left: -4px;
}
.ad-buttons::-webkit-scrollbar { width: 4px; }

.ad-btn {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer; color: var(--text); font-family: inherit; font-size: 13.5px; font-weight: 500;
  transition: all 0.3s ease; position: relative; overflow: hidden;
  flex-shrink: 0;
}
.ad-btn::after {
  content: ""; position: absolute; top: 0; right: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(94,234,212,0.08), transparent);
  transition: right 0.6s ease;
}
.ad-btn:hover {
  border-color: var(--accent); transform: translateX(-3px);
  background: linear-gradient(135deg, rgba(94,234,212,0.06), rgba(255,255,255,0.02));
}
.ad-btn:hover::after { right: 130%; }

.ad-btn-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0; overflow: hidden;
}
.ad-btn-icon svg { width: 14px; height: 14px; }
.ad-btn-icon img { width: 18px; height: 18px; object-fit: contain; }
.ad-btn-arrow { color: var(--text-faint); font-size: 16px; transition: transform 0.3s ease; }
.ad-btn:hover .ad-btn-arrow { transform: translateX(-4px); color: var(--accent); }

.sidebar-spacer { flex: 1; min-height: 18px; }

.visit-counter {
  padding: 11px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--text-dim);
  flex-shrink: 0;
}
.visit-counter strong { color: var(--accent); font-weight: 700; letter-spacing: 0.5px; }

/* MAIN */
.main { display: flex; flex-direction: column; gap: 14px; min-height: 0; }

.tabs {
  display: flex; gap: 6px; padding: 5px;
  background: var(--glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 16px;
  flex-shrink: 0;
  overflow-x: auto;
}
.tab {
  flex: 1; padding: 12px 16px; background: transparent; border: none;
  color: var(--text-dim); font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; border-radius: 12px; transition: all 0.3s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap;
  min-width: max-content;
}
.tab svg { width: 17px; height: 17px; }
.tab.active {
  background: linear-gradient(135deg, var(--navy-600), var(--navy-700));
  color: #fff;
  box-shadow: 0 6px 20px rgba(40,81,181,0.4), inset 0 1px 0 rgba(255,255,255,0.12);
}
.tab:not(.active):hover { color: var(--text); background: rgba(255,255,255,0.04); }

.panel {
  display: none;
  animation: fadeUp 0.4s cubic-bezier(0.4,0,0.2,1);
  min-height: 0;
}
.panel.active {
  display: flex; flex-direction: column;
  flex: 1; min-height: 0;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-card {
  padding: 22px 24px;
  flex: 1; display: flex; flex-direction: column;
  min-height: 0;
}
@media (min-width: 981px) {
  .panel-card { overflow-y: auto; }
}

.panel-greeting {
  display: flex; gap: 12px; align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border-strong);
  margin-bottom: 18px;
}
.greeting-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-900); box-shadow: 0 8px 24px rgba(94,234,212,0.3);
}
.greeting-icon svg { width: 20px; height: 20px; }
.greeting-text { font-size: 13.5px; line-height: 1.85; color: var(--text); }
.greeting-text strong { color: var(--accent); font-weight: 600; }

.alert {
  padding: 12px 16px; border-radius: 11px; margin-bottom: 14px;
  font-size: 13.5px; transition: opacity 0.4s;
}
.alert-success { background: rgba(134,239,172,0.08); border: 1px solid rgba(134,239,172,0.25); color: var(--success); }
.alert-error { background: rgba(252,165,165,0.08); border: 1px solid rgba(252,165,165,0.25); color: var(--error); }
.alert.fade-out { opacity: 0; }

form { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.field-grow { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.field-grow .textarea { flex: 1; min-height: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 12px;
}

.field { position: relative; display: flex; flex-direction: column; }
.field label {
  font-size: 12px; color: var(--text-dim); margin-bottom: 6px; font-weight: 500;
  padding-right: 4px; display: flex; align-items: center; gap: 6px;
}
.field label::before {
  content: ""; width: 4px; height: 4px;
  background: var(--accent); border-radius: 50%;
}

.input, .textarea, .select {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 11px;
  padding: 12px 14px; color: var(--text); font-family: inherit; font-size: 13.5px;
  width: 100%; transition: all 0.25s ease; outline: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  background: rgba(94,234,212,0.05);
  box-shadow: 0 0 0 3px rgba(94,234,212,0.1);
}

.id-field { position: relative; height: 46px; }
.id-field .input { height: 46px; padding-right: 145px; }
.platform-select {
  position: absolute;
  top: 4px; bottom: 4px; right: 4px;
  background: var(--navy-700);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  border-radius: 8px;
  padding: 0 28px 0 14px;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 4l3 3 3-3' stroke='%235eead4' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: 8px center;
  min-width: 130px;
}

.textarea { resize: none; min-height: 90px; line-height: 1.75; }

.submit-row { display: flex; justify-content: center; margin-top: 6px; }
.btn-submit {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--navy-950); border: none; padding: 13px 42px; border-radius: 12px;
  font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; gap: 9px; transition: all 0.3s ease;
  box-shadow: 0 12px 30px rgba(94,234,212,0.3);
  position: relative; overflow: hidden;
}
.btn-submit::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(100%); transition: transform 0.6s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(94,234,212,0.45); }
.btn-submit:hover::before { transform: translateX(-100%); }
.btn-submit svg { width: 17px; height: 17px; }

/* bots & tools */
.bot-grid, .tool-grid {
  display: flex; flex-direction: column; gap: 14px; flex: 1;
}
@media (min-width: 981px) {
  .bot-grid, .tool-grid { overflow-y: auto; padding-left: 4px; }
}

.bot-card, .tool-card {
  padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start;
  transition: all 0.3s ease; cursor: pointer; position: relative;
}
.bot-card:hover, .tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--glass-strong);
}

.bot-icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); border: 1px solid var(--border-strong);
  position: relative; overflow: hidden;
}
.bot-icon::after {
  content: ""; position: absolute; inset: -1px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), transparent);
  opacity: 0; z-index: -1; filter: blur(12px); transition: opacity 0.3s;
}
.bot-card:hover .bot-icon::after { opacity: 0.6; }
.bot-icon svg { width: 24px; height: 24px; }
.bot-icon img { width: 30px; height: 30px; object-fit: contain; }

.tool-image {
  flex-shrink: 0;
  width: 120px; height: 90px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--border-strong);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.tool-image img { width: 100%; height: 100%; object-fit: cover; }
.tool-image-placeholder { color: var(--text-faint); }
.tool-image-placeholder svg { width: 36px; height: 36px; }

.bot-info, .tool-info { flex: 1; min-width: 0; }
.bot-title, .tool-title {
  font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 5px;
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.bot-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; padding: 3px 8px; border-radius: 6px;
  background: rgba(94,234,212,0.12); color: var(--accent); font-weight: 600;
  border: 1px solid rgba(94,234,212,0.25);
}
.bot-desc, .tool-desc {
  color: var(--text-dim); font-size: 13px; line-height: 1.75;
}
.bot-cta {
  flex-shrink: 0; color: var(--text-faint); transition: all 0.3s ease;
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  align-self: center;
}
.bot-card:hover .bot-cta, .tool-card:hover .bot-cta {
  color: var(--accent); background: rgba(94,234,212,0.12); transform: translateX(-4px);
}

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-faint); font-size: 14px; }

/* ============================================
   PROJECTS GRID — NEW GLASS STYLE (no image)
   ============================================ */
.project-panel-card {
  padding: 18px;
}
@media (min-width: 981px) {
  .project-panel-card { overflow-y: auto; }
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 130px;
}

/* glow effect */
.project-card-glow {
  position: absolute;
  top: 0;
  right: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.1), rgba(129, 140, 248, 0.06), transparent);
  transition: right 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* top-right corner accent */
.project-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 60px;
  height: 60px;
  background: linear-gradient(225deg, rgba(94, 234, 212, 0.15) 0%, transparent 50%);
  border-radius: 0 16px 0 30px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* shimmer line at top */
.project-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.06), rgba(129, 140, 248, 0.03));
  box-shadow:
    0 12px 40px rgba(94, 234, 212, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.project-card:hover::before { opacity: 1; }
.project-card:hover::after { opacity: 1; }
.project-card:hover .project-card-glow { right: 130%; }

.project-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.project-card-header {
  display: flex;
  align-items: center;
  gap: 11px;
}

.project-card-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.project-card-icon svg { width: 18px; height: 18px; }

.project-card:hover .project-card-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--navy-950);
  transform: rotate(-8deg) scale(1.05);
  box-shadow: 0 6px 18px rgba(94, 234, 212, 0.35);
}

.project-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
  transition: color 0.3s ease;
}
.project-card:hover .project-card-title {
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-card-desc {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-dim);
  flex: 1;
}

.project-card-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  transition: all 0.3s ease;
  align-self: flex-start;
}
.project-card-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}
.project-card:hover .project-card-arrow {
  color: var(--accent);
  gap: 10px;
}
.project-card:hover .project-card-arrow svg {
  transform: translateX(-3px);
}

@media (max-width: 980px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* ANNOUNCEMENT POPUP */
.announcement {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 320px;
  background: var(--glass-strong);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  z-index: 100;
  animation: slideInUp 0.5s cubic-bezier(0.16,1,0.3,1);
}
.announcement[data-platform="desktop"] { display: block; }
.announcement[data-platform="mobile"]  { display: none; }
.announcement-header { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.announcement-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(94,234,212,0.12);
  font-size: 17px;
}
.announcement-title { flex: 1; font-size: 14.5px; font-weight: 700; color: var(--text); }
.announcement-close {
  background: transparent; border: none; color: var(--text-faint);
  cursor: pointer; padding: 4px; border-radius: 6px;
  transition: all 0.2s ease; font-size: 18px; line-height: 1;
}
.announcement-close:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.announcement-content { font-size: 13px; line-height: 1.75; color: var(--text-dim); }

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

@media (max-width: 980px) {
  .announcement[data-platform="desktop"] { display: none; }
  .announcement[data-platform="mobile"] {
    display: flex; flex-direction: column;
    position: fixed; bottom: 0; left: 0; right: 0;
    width: 100%; border-radius: 18px 18px 0 0;
    border-bottom: none;
    padding: 14px 16px 18px;
    z-index: 1000;
  }
}
.announcement.dismissed { display: none !important; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .tool-card { flex-wrap: wrap; }
  .tool-image { width: 100%; height: 140px; }
  .ad-buttons { max-height: none; }
  .profile-pic-wrap { width: 130px; }
  .seo-kw { font-size: 14px !important; opacity: 0.6; }
}
@media (max-width: 560px) {
  .container { padding: 14px 12px 80px; }
  .panel-card { padding: 18px 16px; }
  .project-panel-card { padding: 14px; }
  .topbar { flex-direction: column; gap: 6px; align-items: flex-start; }
  .tab { font-size: 12.5px; padding: 11px 8px; }
  .tab span { display: none; }
  .bot-card { flex-wrap: wrap; }
  .profile-pic-wrap { width: 110px; }
  .id-field .input { padding-right: 130px; }
  .platform-select { min-width: 115px; font-size: 12px; }
  .seo-kw { font-size: 12px !important; }
}

.layout > * { animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) backwards; }
.layout > *:nth-child(1) { animation-delay: 0.1s; }
.layout > *:nth-child(2) { animation-delay: 0.25s; }

/* Prevent iOS zoom on input focus — font-size must be >= 16px on mobile */
@media (max-width: 768px) {
  .input, .textarea, .select { font-size: 16px; }
}
