/* ============================
   FREELANCEKIT INDIA — STYLES
   ============================ */

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

:root {
  --indigo-900: #0f0c29;
  --indigo-800: #1a1545;
  --indigo-700: #231e5e;
  --indigo-600: #302870;
  --indigo-500: #4a3fa0;
  --saffron:    #ff9900;
  --saffron-lt: #ffb84d;
  --saffron-dk: #cc7700;
  --accent:     #7c3aed;
  --accent-lt:  #a78bfa;
  --green:      #10b981;
  --text-primary:   #f0eeff;
  --text-secondary: #b0aad4;
  --text-muted:     #7770a0;
  --glass-bg:       rgba(255,255,255,0.05);
  --glass-border:   rgba(255,255,255,0.10);
  --shadow-card:    0 8px 32px rgba(0,0,0,0.35);
  --radius-lg:      18px;
  --radius-md:      12px;
  --radius-sm:      8px;
  --transition:     0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--indigo-900);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================  SCROLLBAR  */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--indigo-800); }
::-webkit-scrollbar-thumb { background: var(--indigo-500); border-radius: 99px; }

/* ============================  NAVBAR  */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,12,41,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 2rem;
  height: 68px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  height: 100%; display: flex; align-items: center; gap: 2rem;
}
.logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 800; font-size: 1.25rem; white-space: nowrap;
  text-decoration: none; color: inherit;
}
.logo-icon { font-size: 1.4rem; }
.logo-accent { color: var(--saffron); }

.nav-tabs {
  display: flex; gap: 0.25rem; flex: 1; justify-content: center;
}
.nav-tab {
  background: transparent; border: none; cursor: pointer;
  color: var(--text-secondary); font-family: 'Outfit', sans-serif;
  font-size: 0.9rem; font-weight: 500;
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-tab:hover { color: var(--text-primary); background: var(--glass-bg); }
.nav-tab.active {
  color: var(--saffron); background: rgba(255,153,0,0.12);
  font-weight: 600;
}
.badge-free {
  background: linear-gradient(135deg, var(--green), #059669);
  color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 0.3rem 0.8rem; border-radius: 99px;
  white-space: nowrap; letter-spacing: 0.5px;
}

/* ============================  TAB SYSTEM  */
.tab-content {
  display: none; padding-top: 68px;
  animation: fadeSlideIn 0.4s ease forwards;
}
.tab-content.active { display: block; }

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

/* ============================  HERO  */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 68px);
  display: flex; align-items: center;
  padding: 4rem 2rem;
}
.hero-bg-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35;
  animation: orb-float 8s ease-in-out infinite;
}
.orb1 { width: 500px; height: 500px; background: var(--accent); top: -100px; left: -150px; animation-delay: 0s; }
.orb2 { width: 400px; height: 400px; background: var(--saffron); top: 100px; right: -100px; animation-delay: 3s; }
.orb3 { width: 300px; height: 300px; background: #ec4899; bottom: -50px; left: 40%; animation-delay: 5s; }

@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,153,0,0.15); border: 1px solid rgba(255,153,0,0.3);
  color: var(--saffron-lt); font-size: 0.85rem; font-weight: 600;
  padding: 0.4rem 1rem; border-radius: 99px; margin-bottom: 1.5rem;
  letter-spacing: 0.3px;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--saffron), #ff6b6b, var(--accent-lt));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.hero-subtitle {
  color: var(--text-secondary); font-size: 1.15rem;
  line-height: 1.7; margin-bottom: 2rem; max-width: 560px;
}
.hero-subtitle strong { color: var(--saffron-lt); font-weight: 700; }

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dk));
  color: #000; font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 700;
  padding: 0.85rem 2rem; border-radius: 99px;
  border: none; cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255,153,0,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(255,153,0,0.5);
  filter: brightness(1.05);
}
.btn-ghost {
  background: transparent; border: 1.5px solid var(--glass-border);
  color: var(--text-primary); font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 500;
  padding: 0.85rem 1.75rem; border-radius: 99px;
  cursor: pointer; transition: var(--transition);
}
.btn-ghost:hover { background: var(--glass-bg); border-color: rgba(255,255,255,0.2); }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.stat-chip {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  padding: 0.4rem 1rem; border-radius: 99px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-secondary);
}

/* ============================  STATS SECTION  */
.stats-section, .features-section, .bottom-cta {
  max-width: 1200px; margin: 0 auto;
  padding: 5rem 2rem;
}
.section-label {
  text-transform: uppercase; letter-spacing: 2px;
  font-size: 0.78rem; font-weight: 700; color: var(--saffron);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; margin-bottom: 2.5rem;
  letter-spacing: -0.5px;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.stat-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--accent));
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: rgba(255,255,255,0.18); }
.stat-number {
  font-size: 2.5rem; font-weight: 900; color: var(--saffron);
  margin-bottom: 0.5rem; letter-spacing: -1px;
}
.stat-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; }

/* ============================  FEATURES  */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 2rem;
  cursor: pointer; transition: var(--transition);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.feature-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-card);
  border-color: rgba(255,153,0,0.3);
  background: rgba(255,255,255,0.07);
}
.feature-icon { font-size: 2.5rem; }
.feature-card h3 { font-size: 1.3rem; font-weight: 700; }
.feature-card p { color: var(--text-secondary); line-height: 1.6; font-size: 0.95rem; flex: 1; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.feature-tags span {
  background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.3);
  color: var(--accent-lt); font-size: 0.75rem; font-weight: 600;
  padding: 0.2rem 0.65rem; border-radius: 99px;
}
.feature-cta {
  background: transparent; border: 1.5px solid var(--saffron);
  color: var(--saffron); font-family: 'Outfit', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  padding: 0.6rem 1.25rem; border-radius: 99px;
  cursor: pointer; transition: var(--transition);
  align-self: flex-start; margin-top: 0.25rem;
}
.feature-cta:hover { background: var(--saffron); color: #000; }

/* ============================  BOTTOM CTA  */
.bottom-cta { padding-bottom: 6rem; }
.bottom-cta-inner {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(255,153,0,0.15));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 4rem 3rem;
  text-align: center;
}
.motivational-quote {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 2rem; font-style: italic;
}
.quote-mark { color: var(--saffron); font-size: 2rem; font-style: normal; vertical-align: -0.2em; }
.btn-large { font-size: 1.15rem; padding: 1rem 2.5rem; }

/* ============================  PAGE HEADER */
.page-header {
  max-width: 1200px; margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
}
.page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; margin-bottom: 0.75rem; letter-spacing: -0.5px;
}
.page-subtitle { color: var(--text-secondary); font-size: 1.05rem; }

/* ============================  GLASS CARD  */
.glass-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.panel-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }

/* ============================  FORM STYLES  */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 0.35rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary); font-family: 'Outfit', sans-serif;
  font-size: 0.95rem; padding: 0.65rem 0.9rem;
  transition: var(--transition); outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--saffron);
  background: rgba(255,153,0,0.07);
  box-shadow: 0 0 0 3px rgba(255,153,0,0.12);
}
.form-group select option { background: var(--indigo-800); }
.form-section-title {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--saffron); margin: 1.25rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,153,0,0.2);
}

/* ============================  PROPOSALS  */
.proposals-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem 4rem; }
.template-selector {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem;
}
.tmpl-btn {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-secondary); font-family: 'Outfit', sans-serif;
  font-size: 0.88rem; font-weight: 600;
  padding: 0.55rem 1.1rem; border-radius: 99px;
  cursor: pointer; transition: var(--transition);
}
.tmpl-btn:hover { border-color: var(--saffron); color: var(--saffron-lt); }
.tmpl-btn.active {
  background: rgba(255,153,0,0.18); border-color: var(--saffron);
  color: var(--saffron);
}
.proposal-workspace {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem; align-items: start;
}
.preview-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem;
}
.preview-header .panel-title { margin-bottom: 0; }
.btn-copy {
  display: flex; align-items: center; gap: 0.4rem;
  background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.4);
  color: var(--accent-lt); font-family: 'Outfit', sans-serif;
  font-size: 0.88rem; font-weight: 600;
  padding: 0.5rem 1rem; border-radius: 99px; cursor: pointer;
  transition: var(--transition);
}
.btn-copy:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.proposal-preview {
  background: rgba(255,255,255,0.03); border-radius: var(--radius-md);
  padding: 1.5rem; font-size: 0.95rem; line-height: 1.7;
  color: var(--text-secondary); white-space: pre-wrap;
  min-height: 300px; max-height: 600px; overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.06);
}
.proposal-preview .var-highlight { color: var(--saffron-lt); font-weight: 600; }

/* ============================  SCRIPTS  */
.scripts-container { max-width: 1000px; margin: 0 auto; padding: 0 2rem 4rem; }
.scripts-category-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem;
}
.cat-tab {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-secondary); font-family: 'Outfit', sans-serif;
  font-size: 0.88rem; font-weight: 600;
  padding: 0.55rem 1.1rem; border-radius: 99px;
  cursor: pointer; transition: var(--transition);
}
.cat-tab:hover { border-color: var(--accent-lt); color: var(--accent-lt); }
.cat-tab.active {
  background: rgba(124,58,237,0.2); border-color: var(--accent);
  color: var(--accent-lt);
}
.scripts-list { display: flex; flex-direction: column; gap: 1.25rem; }
.script-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: var(--transition); position: relative;
}
.script-card:hover { border-color: rgba(255,255,255,0.15); box-shadow: var(--shadow-card); }
.script-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1rem; gap: 1rem;
}
.script-title-group { display: flex; flex-direction: column; }
.script-platform {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--saffron); margin-bottom: 0.3rem;
}
.script-title { font-size: 1.05rem; font-weight: 700; }
.script-body {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm); padding: 1rem;
  font-size: 0.9rem; line-height: 1.75; color: var(--text-secondary);
  white-space: pre-wrap;
}
.script-tip {
  margin-top: 0.75rem;
  font-size: 0.8rem; color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  background: rgba(16,185,129,0.08); border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ============================  PORTFOLIO  */
.portfolio-workspace {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem 4rem;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem; align-items: start;
}
.portfolio-form { max-height: calc(100vh - 200px); overflow-y: auto; }
.portfolio-preview-panel { display: flex; flex-direction: column; }
.preview-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.preview-actions .panel-title { margin-bottom: 0; }

/* Share / Export buttons */
.pf-share-btns {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.btn-share-img, .btn-share-pdf, .btn-share-copy {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: 0.8rem; border-radius: 99px; cursor: pointer;
  padding: 0.45rem 1rem; border: 1px solid; transition: var(--transition);
  display: flex; align-items: center; gap: 0.35rem;
}
.btn-share-img {
  background: rgba(139,92,246,0.15); border-color: rgba(139,92,246,0.4);
  color: #a78bfa;
}
.btn-share-img:hover { background: rgba(139,92,246,0.3); color: #fff; }
.btn-share-pdf {
  background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.35);
  color: #fca5a5;
}
.btn-share-pdf:hover { background: rgba(239,68,68,0.25); color: #fff; }
.btn-share-copy { font-size: 0.8rem; padding: 0.45rem 1rem; }

/* Export hint */
.pf-export-hint {
  margin-top: 0.75rem; font-size: 0.78rem; color: var(--text-muted);
  text-align: center; padding: 0.5rem;
}
.pf-export-hint strong { color: var(--saffron-lt); }

/* Loading overlay for export */
.export-loading {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  z-index: 9999; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
}
.export-loading-text {
  color: #fff; font-family: 'Outfit',sans-serif;
  font-size: 1.1rem; font-weight: 700;
}
.export-spinner {
  width: 48px; height: 48px; border: 4px solid rgba(255,255,255,0.2);
  border-top-color: var(--saffron); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.portfolio-card {
  background: linear-gradient(135deg, var(--indigo-700), #1e1850);
  border: 1px solid rgba(255,153,0,0.25);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-card);
  min-height: 300px;
  position: relative; overflow: hidden;
}
.portfolio-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--accent), #ec4899);
}
.empty-portfolio {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 250px; gap: 1rem;
  color: var(--text-muted); text-align: center;
}
.empty-icon { font-size: 3.5rem; }

/* Portfolio card inner styles */
.pf-header { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.5rem; }
.pf-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.pf-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.15rem; }
.pf-role { color: var(--saffron-lt); font-size: 0.95rem; font-weight: 600; }
.pf-city { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.2rem; }
.pf-bio { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; margin-bottom: 1.5rem; }
.pf-section-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--saffron); margin-bottom: 0.6rem;
}
.pf-skills-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.pf-skill-tag {
  background: rgba(255,153,0,0.12); border: 1px solid rgba(255,153,0,0.25);
  color: var(--saffron-lt); font-size: 0.78rem; font-weight: 600;
  padding: 0.25rem 0.65rem; border-radius: 99px;
}
.pf-projects { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.pf-project-item {
  display: flex; gap: 0.5rem; align-items: baseline;
  color: var(--text-secondary); font-size: 0.88rem;
}
.pf-project-item::before { content: '▹'; color: var(--saffron); flex-shrink: 0; }
.pf-meta {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  padding-top: 1.25rem; border-top: 1px solid var(--glass-border);
}
.pf-meta-item { display: flex; gap: 0.4rem; align-items: center; font-size: 0.85rem; color: var(--text-secondary); }
.pf-meta-icon { color: var(--saffron); }
.pf-rate-badge {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dk));
  color: #000; font-weight: 800; font-size: 0.85rem;
  padding: 0.35rem 0.85rem; border-radius: 99px; align-self: center;
}

/* Profile image avatar (real photo in live card) */
.pf-avatar-img {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(255,153,0,0.5);
}

/* Profile image upload zone */
.pf-img-upload-area {
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: flex; align-items: center; gap: 1.25rem;
  cursor: pointer; transition: var(--transition);
  background: rgba(255,255,255,0.03);
  margin-bottom: 0.5rem; position: relative;
}
.pf-img-upload-area:hover,
.pf-img-upload-area.drag-over {
  border-color: var(--saffron); background: rgba(255,153,0,0.06);
}
.pf-img-upload-area.drag-over { transform: scale(1.01); }

/* Circular preview thumbnail */
.pf-img-preview-wrap {
  position: relative; flex-shrink: 0;
}
.pf-img-circle {
  width: 70px; height: 70px; border-radius: 50%;
  object-fit: cover; display: block;
  border: 3px solid var(--saffron); box-shadow: 0 0 0 4px rgba(255,153,0,0.15);
}
.btn-remove-img {
  position: absolute; top: -5px; right: -5px;
  background: #ef4444; color: #fff; border: 2px solid var(--bg-primary);
  border-radius: 50%; width: 22px; height: 22px;
  font-size: 11px; font-weight: 900; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.btn-remove-img:hover { background: #dc2626; transform: scale(1.15); }

/* Placeholder text */
.pf-img-placeholder { flex: 1; }
.pf-img-icon { font-size: 1.75rem; margin-bottom: 0.2rem; }
.pf-img-label { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.pf-img-hint { font-size: 0.73rem; color: var(--text-muted); margin-top: 0.15rem; }


.btn-save {
  width: 100%; margin-top: 1rem; text-align: center;
  font-size: 1rem;
}

/* ============================  TOAST  */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #1a1545, #231e5e);
  border: 1px solid var(--green); border-radius: 99px;
  padding: 0.75rem 1.5rem;
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.95rem; font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  opacity: 0; transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 9999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================  TYPEWRITER  */
.typewriter { position: relative; }
.typewriter::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--saffron);
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================  RATE CALCULATOR  */
.rate-calc-section {
  max-width: 1200px; margin: 0 auto;
  padding: 1rem 2rem 5rem;
}
.section-subtitle {
  color: var(--text-muted); font-size: 0.95rem; margin-top: -1.5rem; margin-bottom: 2rem;
}
.rate-calc-card { padding: 0; overflow: hidden; }
.rate-calc-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 0;
}
.rate-calc-inputs {
  padding: 2rem; border-right: 1px solid var(--glass-border);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.rate-calc-results {
  padding: 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  align-content: start;
}
.rate-result-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); padding: 1.25rem;
  transition: var(--transition);
}
.rate-result-card:hover { border-color: rgba(255,153,0,0.2); transform: translateY(-2px); }
.rate-result-card.accent-result {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(255,153,0,0.15), rgba(124,58,237,0.1));
  border-color: rgba(255,153,0,0.35);
}
.rate-result-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.5rem;
}
.rate-result-value {
  font-size: 1.75rem; font-weight: 900; color: var(--saffron);
  letter-spacing: -0.5px;
}
.accent-result .rate-result-value { font-size: 2.2rem; color: var(--saffron); }
.rate-calc-tip {
  grid-column: span 2;
  font-size: 0.82rem; color: var(--green);
  background: rgba(16,185,129,0.08); border-left: 3px solid var(--green);
  padding: 0.6rem 0.9rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.5; display: none;
}
.rate-calc-tip.visible { display: block; }

/* ============================  INVOICE  */
.invoice-workspace {
  max-width: 1400px; margin: 0 auto; padding: 0 2rem 4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
}
.invoice-form-panel { display: flex; flex-direction: column; gap: 1.25rem; }
.inv-section { padding: 1.5rem; }
.inv-section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }

/* Line items */
.line-items-header {
  display: grid; grid-template-columns: 3fr 0.7fr 1fr 1fr 0.3fr;
  gap: 0.5rem; padding: 0.4rem 0.5rem;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border); margin-bottom: 0.5rem;
}
.li-desc { flex: 1; } .li-qty { text-align: center; }
.li-rate { text-align: right; } .li-amt { text-align: right; }
.li-del { text-align: center; }
.line-item-row {
  display: grid; grid-template-columns: 3fr 0.7fr 1fr 1fr 0.3fr;
  gap: 0.5rem; align-items: center; padding: 0.25rem 0;
}
.line-item-row input {
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: 'Outfit', sans-serif; font-size: 0.88rem;
  padding: 0.5rem 0.6rem; width: 100%; outline: none; transition: var(--transition);
}
.line-item-row input:focus {
  border-color: var(--saffron); background: rgba(255,153,0,0.07);
}
.line-item-row input[type="number"] { text-align: right; }
.line-item-amount {
  text-align: right; font-weight: 600; color: var(--saffron-lt);
  font-size: 0.9rem; padding-right: 0.25rem;
}
.btn-del-item {
  background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.25);
  color: #f87171; border-radius: 50%; width: 26px; height: 26px;
  font-size: 0.9rem; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
}
.btn-del-item:hover { background: rgba(239,68,68,0.3); color: #fff; }
.btn-add-item {
  background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3);
  color: var(--green); font-family: 'Outfit', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  padding: 0.45rem 1rem; border-radius: 99px; cursor: pointer;
  transition: var(--transition);
}
.btn-add-item:hover { background: rgba(16,185,129,0.25); }

/* GST toggle */
.tax-toggles { margin-bottom: 0.5rem; }
.toggle-label {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  margin-bottom: 1rem;
}
.toggle-label input[type="checkbox"] { display: none; }
.toggle-switch {
  width: 42px; height: 24px; background: var(--glass-bg);
  border: 1px solid var(--glass-border); border-radius: 99px;
  position: relative; transition: var(--transition); flex-shrink: 0;
}
.toggle-switch::after {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-muted); top: 2px; left: 2px;
  transition: var(--transition);
}
.toggle-label input:checked + .toggle-switch { background: rgba(16,185,129,0.3); border-color: var(--green); }
.toggle-label input:checked + .toggle-switch::after { background: var(--green); transform: translateX(18px); }
.gst-options { display: none; }
.gst-options.visible { display: block; }

/* Invoice actions */
.inv-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.inv-actions .btn-ghost { font-size: 0.9rem; padding: 0.75rem 1.25rem; }

/* Preview panel */
.invoice-preview-panel { position: relative; }
.preview-sticky { position: sticky; top: 84px; }
.invoice-document {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  overflow: hidden; min-height: 400px;
  color: #1a1a2e;
}
.inv-empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 350px; gap: 1rem;
  color: #999; text-align: center; background: #fff;
}
.inv-empty-state .empty-icon { font-size: 3rem; }

/* ===== INVOICE DOCUMENT INTERNALS (white bg, print styles) ===== */
.inv-doc-inner { padding: 2.5rem; font-size: 0.85rem; line-height: 1.55; color: #1a1a2e; }
.inv-doc-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid #f0ecff;
}
.inv-brand-block { flex: 1; }
.inv-brand-name { font-size: 1.5rem; font-weight: 900; color: #2d1b69; margin-bottom: 0.2rem; }
.inv-brand-sub { font-size: 0.82rem; color: #666; line-height: 1.5; }
.inv-title-block { text-align: right; }
.inv-title-word {
  font-size: 2rem; font-weight: 900; letter-spacing: 2px;
  color: #ff9900; display: block; line-height: 1;
}
.inv-number-line { font-size: 0.85rem; color: #666; margin-top: 0.3rem; }
.inv-date-badge {
  display: inline-block; background: #f8f5ff;
  border: 1px solid #e8e0ff; border-radius: 6px;
  padding: 0.2rem 0.6rem; font-size: 0.78rem; color: #6b46c1; margin-top: 0.3rem;
}

.inv-parties {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  margin-bottom: 1.75rem;
}
.inv-party-label {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.5px; color: #ff9900; margin-bottom: 0.4rem;
}
.inv-party-name { font-weight: 800; font-size: 1rem; color: #2d1b69; margin-bottom: 0.2rem; }
.inv-party-sub { font-size: 0.8rem; color: #666; line-height: 1.5; }
.inv-party-gst { font-size: 0.75rem; color: #888; margin-top: 0.25rem; }

.inv-items-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.inv-items-table th {
  background: #f8f5ff; text-align: left; padding: 0.6rem 0.75rem;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: #6b46c1;
}
.inv-items-table th:not(:first-child) { text-align: right; }
.inv-items-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid #f0ecff; font-size: 0.83rem; }
.inv-items-table td:not(:first-child) { text-align: right; }
.inv-items-table tr:last-child td { border-bottom: none; }
.inv-items-table tbody tr:hover td { background: #fdf8ff; }

.inv-totals {
  margin-left: auto; width: 55%; border-top: 2px solid #f0ecff; margin-bottom: 1.5rem;
}
.inv-totals-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 0; font-size: 0.83rem;
}
.inv-totals-row.total-final {
  border-top: 2px solid #2d1b69; margin-top: 0.5rem; padding-top: 0.75rem;
  font-size: 1rem; font-weight: 900; color: #2d1b69;
}
.inv-totals-row .totals-label { color: #555; }
.inv-totals-row .totals-val { font-weight: 600; color: #1a1a2e; }
.inv-totals-row.total-final .totals-val { color: #ff9900; font-size: 1.1rem; }
.discount-row .totals-val { color: #10b981; }

.inv-footer-area {
  border-top: 1px solid #f0ecff; padding-top: 1.25rem;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem;
}
.inv-notes-block { flex: 1; }
.inv-notes-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #6b46c1; margin-bottom: 0.4rem; }
.inv-notes-text { font-size: 0.82rem; color: #555; line-height: 1.5; }
.inv-terms-block { text-align: right; }
.inv-terms-term { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #6b46c1; margin-bottom: 0.4rem; }
.inv-terms-val { font-size: 0.85rem; font-weight: 600; color: #2d1b69; }
.inv-stamp {
  text-align: right; margin-top: 2rem; padding-top: 1rem;
  border-top: 1px solid #f0ecff;
}
.inv-stamp-text { font-size: 0.72rem; color: #aaa; margin-bottom: 1.5rem; }
.inv-signature-line {
  display: inline-block; width: 160px; border-bottom: 1px solid #ccc;
  margin-bottom: 0.3rem;
}
.inv-stamp-name { font-size: 0.78rem; font-weight: 700; color: #2d1b69; }
.inv-powered {
  text-align: center; margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid #f0ecff;
  font-size: 0.7rem; color: #bbb;
}
.inv-powered span { color: #ff9900; font-weight: 700; }

/* Print styles */
@media print {
  body > *:not(#print-invoice-wrapper) { display: none !important; }
  #print-invoice-wrapper {
    position: fixed; inset: 0; background: #fff; z-index: 99999;
    padding: 0; margin: 0;
  }
  .inv-doc-inner { padding: 1.5cm; }
  @page { size: A4; margin: 0; }
}

/* ============================  FOOTER  */
.site-footer {
  background: rgba(10,8,30,0.95);
  border-top: 1px solid var(--glass-border);
  margin-top: 0;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem;
}
.footer-tagline {
  color: var(--text-muted); font-size: 0.88rem;
  line-height: 1.65; margin-bottom: 1.5rem;
  max-width: 240px;
}
.footer-social {
  display: flex; gap: 0.6rem; margin-bottom: 1.25rem;
}
.social-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 50%; color: var(--text-secondary);
  font-size: 0.85rem; font-weight: 700;
  text-decoration: none; transition: var(--transition);
  cursor: pointer;
}
.social-btn:hover {
  background: rgba(255,153,0,0.15);
  border-color: var(--saffron); color: var(--saffron);
  transform: translateY(-2px);
}
.footer-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,153,0,0.1); border: 1px solid rgba(255,153,0,0.2);
  color: var(--saffron-lt); font-size: 0.78rem; font-weight: 600;
  padding: 0.3rem 0.8rem; border-radius: 99px;
}
.footer-col-title {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-secondary); margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none; display: flex; flex-direction: column; gap: 0.7rem;
}
.footer-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; transition: var(--transition);
  display: flex; align-items: center; gap: 0.3rem;
}
.footer-links a:hover { color: var(--saffron-lt); transform: translateX(3px); }

.footer-bottom {
  border-top: 1px solid var(--glass-border);
}
.footer-bottom-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem;
}
.footer-copy {
  color: var(--text-muted); font-size: 0.82rem;
}
.footer-bottom-links {
  display: flex; align-items: center; gap: 0.6rem;
}
.footer-bottom-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.82rem; transition: var(--transition);
}
.footer-bottom-links a:hover { color: var(--saffron-lt); }
.footer-dot { color: var(--text-muted); font-size: 0.7rem; }

/* ============================  MODALS  */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1; pointer-events: all;
}
.modal-box {
  background: linear-gradient(145deg, var(--indigo-800), var(--indigo-700));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 700px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  animation: modalIn 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 1.75rem 1.75rem 0;
  flex-shrink: 0;
}
.modal-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--saffron); margin-bottom: 0.3rem;
}
.modal-title { font-size: 1.4rem; font-weight: 800; }
.modal-close {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-secondary); font-family: 'Outfit', sans-serif;
  font-size: 1rem; width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.modal-body {
  padding: 1.5rem 1.75rem 1.75rem;
  overflow-y: auto; flex: 1;
  color: var(--text-secondary); line-height: 1.7;
}
.modal-body h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--text-primary); margin: 1.5rem 0 0.5rem;
}
.modal-body h3:first-of-type { margin-top: 0; }
.modal-body p { margin-bottom: 0.8rem; font-size: 0.93rem; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-body ul {
  list-style: none; margin-left: 0; margin-bottom: 0.8rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.modal-body ul li { font-size: 0.9rem; }
.modal-body strong { color: var(--text-primary); }
.modal-updated {
  font-size: 0.78rem; color: var(--text-muted);
  margin-bottom: 1.25rem !important;
  padding: 0.4rem 0.8rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* About modal */
.about-hero-block {
  display: flex; align-items: flex-start; gap: 1rem;
  background: rgba(255,153,0,0.07); border: 1px solid rgba(255,153,0,0.15);
  border-radius: var(--radius-md); padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.about-logo-big { font-size: 2.5rem; flex-shrink: 0; line-height: 1; }
.about-features { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.about-feature-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); padding: 1rem;
  font-size: 0.9rem;
}
.about-feature-icon { font-size: 1.5rem; flex-shrink: 0; }

/* FAQ modal */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: rgba(255,153,0,0.25); }
.faq-q {
  padding: 1rem 1.25rem;
  font-weight: 700; font-size: 0.95rem;
  color: var(--text-primary); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: '+'; color: var(--saffron); font-size: 1.2rem; font-weight: 400; }
.faq-a {
  padding: 0 1.25rem 1rem;
  font-size: 0.88rem; color: var(--text-secondary);
  border-top: 1px solid var(--glass-border);
  padding-top: 0.75rem;
}

/* Contact modal */
.contact-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem; margin: 1.25rem 0;
}
.contact-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); padding: 1.25rem;
  text-align: center; transition: var(--transition);
}
.contact-card:hover {
  border-color: rgba(255,153,0,0.3);
  background: rgba(255,153,0,0.06);
  transform: translateY(-2px);
}
.contact-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--saffron); margin-bottom: 0.25rem;
}
.contact-value { font-size: 0.82rem; color: var(--text-secondary); word-break: break-all; }
.contact-form-section h3 {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 1rem; margin-top: 0.5rem;
}

/* ============================  RESPONSIVE  */
@media (max-width: 1000px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
  .proposal-workspace,
  .portfolio-workspace,
  .invoice-workspace { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .preview-sticky { position: static; }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .navbar { padding: 0 1rem; }
  .nav-tabs { gap: 0; }
  .nav-tab { font-size: 0.78rem; padding: 0.4rem 0.55rem; }
  .hero { padding: 3rem 1.25rem; }
  .stats-section, .features-section, .bottom-cta { padding: 3rem 1.25rem; }
  .proposals-container, .scripts-container { padding: 0 1.25rem 3rem; }
  .portfolio-workspace { padding: 0 1.25rem 3rem; }
  .page-header { padding: 2rem 1.25rem 1.5rem; }
  .bottom-cta-inner { padding: 2.5rem 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem 1.25rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .modal-box { max-height: 92vh; }
  .modal-header, .modal-body { padding-left: 1.25rem; padding-right: 1.25rem; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .rate-calc-grid { grid-template-columns: 1fr; }
  .rate-calc-inputs { border-right: none; border-bottom: 1px solid var(--glass-border); }
  .rate-calc-section { padding: 1rem 1.25rem 3rem; }
  .rate-result-card.accent-result .rate-result-value { font-size: 1.75rem; }
}
