@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ══════════════════════════════════════
   RESET & BASE
══════════════════════════════════════ */
.ggp-wrap * { box-sizing: border-box; }

.ggp-wrap {
  font-family: 'Inter', -apple-system, sans-serif;
  max-width: 480px;
  margin: 40px auto;
  padding: 0 16px;
}

/* ══════════════════════════════════════
   CARD — Glassmorphism + floating shadow
══════════════════════════════════════ */
.ggp-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 48px 44px;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow:
    0 2px 0 rgba(23,85,25,0.08),
    0 20px 60px rgba(23,85,25,0.12),
    0 60px 120px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

/* Decorative blobs behind card */
.ggp-wrap::before {
  content: '';
  position: fixed;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(46,133,49,0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* Top accent line — animated */
.ggp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    #0e3310, #175519, #2e8531, #7cc07e,
    #2e8531, #175519, #0e3310);
  background-size: 300% 100%;
  animation: ggp-flow 4s linear infinite;
}

@keyframes ggp-flow {
  0%   { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

/* Subtle watermark */
.ggp-card::after {
  content: '🌍';
  position: absolute;
  bottom: -30px; right: -20px;
  font-size: 120px;
  opacity: 0.04;
  transform: rotate(-15deg);
  pointer-events: none;
}

/* ══════════════════════════════════════
   LOGO
══════════════════════════════════════ */
.ggp-card > div:first-child {
  text-align: center;
  font-size: 52px;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 12px rgba(23,85,25,0.2));
  animation: ggp-float 3s ease-in-out infinite;
}

@keyframes ggp-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ══════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════ */
.ggp-h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  color: #0e3310;
  text-align: center;
  margin: 8px 0 6px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.ggp-sub {
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 32px;
  line-height: 1.6;
}

.ggp-sh {
  font-size: 11px;
  font-weight: 700;
  color: #175519;
  margin: 28px 0 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ggp-sh::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #d8edd8, transparent);
}

.ggp-lbl {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 7px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.ggp-req { color: #ef4444; }
.ggp-opt { color: #d1d5db; font-size: 10px; font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ══════════════════════════════════════
   MOBILE ROW FIX
══════════════════════════════════════ */
.ggp-mob-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ggp-mob-row .ggp-inp {
  flex: 1;
  min-width: 0;
}

/* ══════════════════════════════════════
   INPUTS — Floating label style
══════════════════════════════════════ */
.ggp-inp {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  background: #f9fafb;
  color: #111827;
}

.ggp-inp:hover { border-color: #b3dbb4; background: #fff; }

.ggp-inp:focus {
  border-color: #175519;
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(23,85,25,0.08),
    0 4px 16px rgba(23,85,25,0.06);
  transform: translateY(-1px);
}

.ggp-inp::placeholder {
  color: #d1d5db;
  font-weight: 400;
}

.ggp-sel {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px 40px 14px 18px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.25s;
  color: #111827;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.ggp-sel:hover { border-color: #b3dbb4; }
.ggp-sel:focus { border-color: #175519; background-color: #fff; box-shadow: 0 0 0 4px rgba(23,85,25,0.08); }

/* ══════════════════════════════════════
   COUNTRY CODE — Clean flag only
══════════════════════════════════════ */
.ggp-cc {
  width: 90px !important;
  flex-shrink: 0 !important;
  border-radius: 16px !important;
  padding: 0 8px 0 10px !important;
  font-size: 14px !important;
  text-align: left !important;
  background-color: #f0f7f0 !important;
  border-color: #b3dbb4 !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  color: #111827 !important;
  letter-spacing: 0 !important;
  height: 52px !important;
  line-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23175519' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
}

.ggp-cc option {
  color: #111827;
  font-size: 14px;
  background: white;
}

/* ══════════════════════════════════════
   BUTTON — Magnetic effect
══════════════════════════════════════ */
.ggp-btn {
  width: 100%;
  padding: 16px 28px;
  background: linear-gradient(135deg, #134314 0%, #175519 50%, #1d6b20 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.ggp-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}

.ggp-btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 32px rgba(23,85,25,0.4);
}

.ggp-btn:hover::before { left: 100%; }
.ggp-btn:active { transform: translateY(0) scale(0.99); }
.ggp-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.ggp-btn-s {
  background: white !important;
  color: #374151 !important;
  border: 1.5px solid #e5e7eb;
  box-shadow: none;
}

.ggp-btn-s:hover {
  background: #f0f7f0 !important;
  border-color: #7cc07e;
  color: #175519 !important;
  box-shadow: 0 4px 12px rgba(23,85,25,0.1) !important;
  transform: translateY(-2px) scale(1) !important;
}

.ggp-back {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  letter-spacing: 0.3px;
  transition: color 0.15s;
}

.ggp-back:hover { color: #175519; }

.ggp-link {
  background: none;
  border: none;
  color: #175519;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  font-family: inherit;
  border-bottom: 1.5px solid #b3dbb4;
  padding-bottom: 1px;
  transition: all 0.15s;
}

.ggp-link:hover { color: #0e3310; border-color: #175519; }

/* ══════════════════════════════════════
   ERROR
══════════════════════════════════════ */
.ggp-err {
  background: #fff5f5;
  border: 1px solid #fca5a5;
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: #dc2626;
  margin: 12px 0;
  font-weight: 500;
  animation: ggp-shake 0.3s ease;
}

@keyframes ggp-shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

/* ══════════════════════════════════════
   OTP BOXES
══════════════════════════════════════ */
.ggp-otp-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px 0;
}

.ggp-obox {
  width: 54px;
  height: 64px;
  border: 2px solid #e5e7eb;
  border-radius: 18px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
  background: #f9fafb;
  color: #0e3310;
}

.ggp-obox:focus {
  border-color: #175519;
  background: white;
  box-shadow: 0 0 0 4px rgba(23,85,25,0.12);
  transform: scale(1.08) translateY(-2px);
}

.ggp-dev {
  background: linear-gradient(135deg, #0e3310, #175519);
  color: white;
  border-radius: 18px;
  padding: 18px 20px;
  text-align: center;
  font-size: 14px;
  margin: 14px 0;
  box-shadow: 0 8px 24px rgba(23,85,25,0.25);
}

/* ══════════════════════════════════════
   PROGRESS
══════════════════════════════════════ */
.ggp-prog {
  background: #f3f4f6;
  border-radius: 99px;
  height: 4px;
  margin-bottom: 6px;
  overflow: hidden;
}

.ggp-prog div {
  background: linear-gradient(90deg, #0e3310, #175519, #2e8531, #7cc07e);
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}

.ggp-prog div::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
  animation: ggp-progress-glow 1.5s ease-in-out infinite;
}

@keyframes ggp-progress-glow {
  0%,100% { opacity: 0; }
  50%      { opacity: 1; }
}

/* ══════════════════════════════════════
   CHIPS
══════════════════════════════════════ */
.ggp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ggp-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1.5px solid #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
  background: #f9fafb;
  color: #6b7280;
  user-select: none;
  font-family: inherit;
}

.ggp-chip:hover {
  border-color: #7cc07e;
  background: #f0f7f0;
  color: #175519;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23,85,25,0.12);
}

.ggp-chip.on {
  border-color: transparent;
  background: linear-gradient(135deg, #175519, #2e8531);
  color: white;
  box-shadow: 0 4px 14px rgba(23,85,25,0.3);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════
   TOGGLE
══════════════════════════════════════ */
.ggp-tog {
  flex: 1;
  padding: 13px;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  background: #f9fafb;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s;
  color: #6b7280;
}

.ggp-tog:hover { border-color: #7cc07e; background: #f0f7f0; color: #175519; }

.ggp-tog-on {
  border-color: transparent;
  background: linear-gradient(135deg, #175519, #2e8531);
  color: white;
  box-shadow: 0 6px 16px rgba(23,85,25,0.28);
}

/* ══════════════════════════════════════
   SENIOR CITIZEN BOX
══════════════════════════════════════ */
.ggp-senior {
  background: linear-gradient(135deg, #fffdf0, #fffbeb);
  border: 1.5px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 20px;
  padding: 20px;
  margin: 16px 0;
}

.ggp-sen-hdr {
  font-weight: 800;
  color: #b45309;
  margin-bottom: 16px;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.ggp-ct-sec {
  border-top: 1px dashed #fcd34d;
  padding-top: 14px;
  margin-top: 14px;
}

.ggp-ct-hdr {
  font-weight: 700;
  color: #b45309;
  font-size: 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════
   REVIEW
══════════════════════════════════════ */
.ggp-review {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.ggp-rrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}

.ggp-rrow:last-child { border: none; }

/* ══════════════════════════════════════
   GANDHI ID PREVIEW
══════════════════════════════════════ */
.ggp-id-prev {
  background: linear-gradient(135deg, #071a08 0%, #0e3310 40%, #175519 70%, #1d6b20 100%);
  border-radius: 22px;
  padding: 28px 24px;
  color: white;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(14,51,16,0.4);
}

.ggp-id-prev::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(124,192,126,0.18), transparent 50%);
  pointer-events: none;
}

/* ══════════════════════════════════════
   BADGE
══════════════════════════════════════ */
.ggp-id-badge {
  display: inline-block;
  background: linear-gradient(135deg, #175519, #2e8531);
  color: white;
  padding: 7px 20px;
  border-radius: 99px;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 14px rgba(23,85,25,0.35);
}

/* ══════════════════════════════════════
   DASHBOARD
══════════════════════════════════════ */
#ggp-dash.ggp-wrap { max-width: 100%; padding: 0; }

.ggp-loading {
  text-align: center;
  padding: 80px 20px;
  color: #9ca3af;
}

.ggp-spin {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #175519;
  border-radius: 50%;
  animation: gspin 0.8s cubic-bezier(0.4,0,0.6,1) infinite;
  margin: 0 auto 16px;
}

@keyframes gspin { to { transform: rotate(360deg); } }

.ggp-dh {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #071a08, #0e3310, #175519, #1d6b20);
  color: white;
  border-radius: 28px;
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(14,51,16,0.35);
}

.ggp-dh::after {
  content: '🕊️';
  position: absolute;
  right: -10px; bottom: -20px;
  font-size: 100px;
  opacity: 0.06;
  transform: rotate(-10deg);
}

.ggp-dav {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 0 0 1px rgba(255,255,255,0.1);
}

.ggp-dname {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.ggp-dgid {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: rgba(255,255,255,0.12);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}

.ggp-dstats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.ggp-dst {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 18px;
  padding: 18px 12px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.ggp-dst:hover {
  border-color: #b3dbb4;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(23,85,25,0.12);
}

.ggp-dst div {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: #175519;
  line-height: 1;
  margin-bottom: 4px;
}

.ggp-dst small {
  font-size: 10px;
  color: #9ca3af;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ggp-dacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.ggp-da {
  flex: 1;
  min-width: 110px;
  padding: 13px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #374151;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  font-family: inherit;
  letter-spacing: 0.2px;
}

.ggp-da:hover {
  background: linear-gradient(135deg, #175519, #2e8531);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(23,85,25,0.28);
  text-decoration: none;
}

.ggp-posts-sec {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.ggp-posts-ttl {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #0e3310;
  margin: 0 0 18px;
  letter-spacing: -0.3px;
}

.ggp-pgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ggp-pcard {
  border: 1px solid #f3f4f6;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  background: #fafafa;
}

.ggp-pcard:hover {
  border-color: #b3dbb4;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(23,85,25,0.12);
  text-decoration: none;
}

.ggp-pimg { width: 100%; height: 110px; object-fit: cover; }

.ggp-pbody { padding: 14px; }

.ggp-pdate {
  font-size: 10px;
  color: #9ca3af;
  margin-bottom: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.ggp-ptitle {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 5px;
  line-height: 1.4;
}

.ggp-pexc {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.6;
}

.ggp-logout {
  background: none;
  border: none;
  color: #d1d5db;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  padding: 8px 0;
  letter-spacing: 0.3px;
  transition: color 0.15s;
}

.ggp-logout:hover { color: #ef4444; }

/* ══════════════════════════════════════
   STATS WIDGET
══════════════════════════════════════ */
.ggp-stats-w {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.ggp-si { text-align: center; }

.ggp-si span {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: #175519;
  line-height: 1;
  margin-bottom: 4px;
}

.ggp-si small {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .ggp-wrap { margin: 0 auto; padding: 0; max-width: 100%; }
  .ggp-card {
    padding: 32px 24px;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 8px 32px rgba(23,85,25,0.1);
    margin: 0;
  }
  .ggp-card::before { border-radius: 0; }
}

@media (max-width: 480px) {
  .ggp-card { padding: 28px 20px; }
  .ggp-h2 { font-size: 26px; }
  .ggp-obox { width: 42px; height: 52px; font-size: 21px; border-radius: 13px; }
  .ggp-otp-row { gap: 7px; }
  .ggp-dstats { grid-template-columns: repeat(2, 1fr); }
  .ggp-pgrid { grid-template-columns: 1fr; }
  .ggp-dacts { flex-direction: column; }
  .ggp-mob-row { gap: 8px; }
  .ggp-cc { width: 76px !important; }
}

@media (max-width: 380px) {
  .ggp-card { padding: 24px 16px; }
  .ggp-obox { width: 36px; height: 46px; font-size: 18px; }
  .ggp-otp-row { gap: 5px; }
  .ggp-cc { width: 68px !important; font-size: 13px !important; }
}
