/* ============================================================
   GreenSector Details Page - Modern & Animated
   ============================================================ */

:root {
    --gsd-green-1: #16a34a;
    --gsd-green-2: #65a30d;
    --gsd-emerald: #059669;
    --gsd-teal: #14b8a6;
    --gsd-blue: #2563eb;
    --gsd-amber: #f59e0b;
    --gsd-cyan: #06b6d4;
    --gsd-ink: #0f172a;
    --gsd-muted: #64748b;
    --gsd-border: rgba(15, 23, 42, 0.08);
    --gsd-shadow: 0 14px 40px -22px rgba(15, 23, 42, 0.35);
}

/* Reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   HERO
   ============================================================ */
.gsd-hero {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 5.5rem;
    color: #fff;
    background: linear-gradient(135deg, #022c22 0%, #064e3b 45%, #0b3b4a 100%);
    isolation: isolate;
}

.gsd-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.gsd-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    animation: gsdBlob 18s ease-in-out infinite;
}
.gsd-blob--1 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, var(--gsd-emerald), transparent 70%);
    top: -120px; left: -90px;
}
.gsd-blob--2 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, var(--gsd-teal), transparent 70%);
    bottom: -180px; right: -120px;
    animation-delay: -5s;
}
.gsd-blob--3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #84cc16, transparent 70%);
    top: 30%; left: 45%;
    animation-delay: -10s;
}
@keyframes gsdBlob {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(45px, -35px) scale(1.08); }
    66% { transform: translate(-35px, 30px) scale(.94); }
}

.gsd-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
}

.gsd-leaf {
    position: absolute;
    color: rgba(255,255,255,.22);
    font-size: 1.5rem;
    animation: gsdLeaf 12s ease-in-out infinite;
}
.gsd-leaf--1 { top: 18%; left: 8%;  font-size: 1.8rem; }
.gsd-leaf--2 { top: 30%; left: 32%; animation-delay: -3s; }
.gsd-leaf--3 { top: 55%; left: 18%; animation-delay: -6s; font-size: 1.6rem; }
.gsd-leaf--4 { top: 70%; right: 22%; animation-delay: -9s; }
@keyframes gsdLeaf {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: .22; }
    50%      { transform: translateY(-14px) rotate(10deg); opacity: .4; }
}

.gsd-back {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    transition: all .25s ease;
}
.gsd-back:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
    transform: translateX(-3px);
}

.gsd-hero__row {
    display: grid;
    grid-template-columns: 1.45fr .85fr;
    gap: 2.5rem;
    align-items: center;
    margin-top: 1.75rem;
}

.gsd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}
.gsd-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    backdrop-filter: blur(8px);
    animation: gsdChipIn .55s both;
}
.gsd-chips .gsd-chip:nth-child(2) { animation-delay: .08s; }
.gsd-chips .gsd-chip:nth-child(3) { animation-delay: .16s; }
.gsd-chips .gsd-chip:nth-child(4) { animation-delay: .24s; }
.gsd-chip--growth {
    background: linear-gradient(135deg, rgba(132,204,22,.35), rgba(20,184,166,.35));
}
.gsd-chip--ok  { color: #bbf7d0; }
.gsd-chip--off { color: #fecaca; }
@keyframes gsdChipIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gsd-title {
    position: relative;
    font-size: clamp(2.1rem, 4.8vw, 3.6rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 1rem;
    color: #fff;
}
.gsd-title__text {
    background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,.7));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gsd-title__underline {
    display: block;
    width: 92px;
    height: 4px;
    margin-top: .85rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #84cc16, #14b8a6);
    transform-origin: left;
    animation: gsdLine 1.2s ease forwards;
}
@keyframes gsdLine {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.gsd-tagline {
    max-width: 56ch;
    color: rgba(255,255,255,.82);
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0 0 1.4rem;
}

.gsd-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}
.gsd-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .25s ease;
}
.gsd-cta__btn--primary {
    background: linear-gradient(135deg, #84cc16, #14b8a6);
    color: #07291f;
    box-shadow: 0 14px 28px -16px rgba(132,204,22,.7);
}
.gsd-cta__btn--primary:hover { transform: translateY(-2px); color: #07291f; box-shadow: 0 18px 30px -14px rgba(132,204,22,.75); }
.gsd-cta__btn--ghost {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-color: rgba(255,255,255,.2);
    backdrop-filter: blur(8px);
}
.gsd-cta__btn--ghost:hover { background: rgba(255,255,255,.18); color: #fff; transform: translateY(-2px); }

/* Orb */
.gsd-hero__right {
    display: flex;
    justify-content: center;
    align-items: center;
}
.gsd-orb {
    position: relative;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.2), rgba(255,255,255,.02) 70%);
    box-shadow:
        inset 0 0 60px rgba(255,255,255,.08),
        0 30px 80px -20px rgba(0,0,0,.5);
    animation: gsdFloat 6s ease-in-out infinite;
}
.gsd-orb > i {
    font-size: 6rem;
    color: #fff;
    filter: drop-shadow(0 6px 22px rgba(0,0,0,.45));
    animation: gsdSpinSlow 22s linear infinite;
}
.gsd-orb__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,.25);
    animation: gsdRot 22s linear infinite;
}
.gsd-orb__ring--2 {
    inset: 20px;
    border-color: rgba(255,255,255,.18);
    animation-duration: 14s;
    animation-direction: reverse;
}
.gsd-orb__ring--3 {
    inset: 40px;
    border-color: rgba(255,255,255,.12);
    animation-duration: 30s;
}
@keyframes gsdFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes gsdSpinSlow { to { transform: rotate(360deg); } }
@keyframes gsdRot { to { transform: rotate(360deg); } }

/* ============================================================
   STATS STRIP
   ============================================================ */
.gsd-body {
    margin-top: -3rem;
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
}
.gsd-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.gsd-stat {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--gsd-border);
    box-shadow: var(--gsd-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
}
.gsd-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px -22px rgba(15,23,42,.4);
}
.gsd-stat__icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.gsd-stat__icon--green { background: linear-gradient(135deg, #16a34a, #65a30d); box-shadow: 0 10px 22px -10px rgba(22,163,74,.55); }
.gsd-stat__icon--blue  { background: linear-gradient(135deg, #2563eb, #0ea5e9); box-shadow: 0 10px 22px -10px rgba(37,99,235,.55); }
.gsd-stat__icon--amber { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 10px 22px -10px rgba(245,158,11,.55); }
.gsd-stat__icon--cyan  { background: linear-gradient(135deg, #06b6d4, #6366f1); box-shadow: 0 10px 22px -10px rgba(6,182,212,.55); }
.gsd-stat__value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--gsd-ink);
}
.gsd-stat__label {
    font-size: .82rem;
    color: var(--gsd-muted);
    margin-top: .15rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.gsd-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--gsd-border);
    box-shadow: var(--gsd-shadow);
    overflow: hidden;
    margin-bottom: 1.25rem;
    transition: transform .35s ease, box-shadow .35s ease;
}
.gsd-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px -24px rgba(15,23,42,.4);
}
.gsd-card__head {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gsd-border);
    background: linear-gradient(180deg, #fafbfd, #fff);
}
.gsd-card__head h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gsd-ink);
    margin: 0;
    flex: 1;
}
.gsd-card__icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}
.gsd-card__icon--green { background: linear-gradient(135deg, #16a34a, #65a30d); box-shadow: 0 8px 18px -10px rgba(22,163,74,.55); }
.gsd-card__icon--blue  { background: linear-gradient(135deg, #2563eb, #0ea5e9); box-shadow: 0 8px 18px -10px rgba(37,99,235,.55); }
.gsd-card__icon--amber { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 8px 18px -10px rgba(245,158,11,.55); }
.gsd-card__icon--cyan  { background: linear-gradient(135deg, #06b6d4, #6366f1); box-shadow: 0 8px 18px -10px rgba(6,182,212,.55); }
.gsd-card__count {
    font-size: .75rem;
    font-weight: 700;
    color: var(--gsd-muted);
    background: #f1f5f9;
    padding: .2rem .55rem;
    border-radius: 999px;
}
.gsd-card__body { padding: 1.25rem; }
.gsd-muted { color: var(--gsd-muted); }
.gsd-desc {
    color: #1e293b;
    line-height: 1.75;
    white-space: pre-line;
    margin: 0;
}

/* Pills */
.gsd-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}
.gsd-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    border: 1px solid;
    transition: transform .25s ease, box-shadow .25s ease;
    animation: gsdPillIn .5s both;
    animation-delay: var(--d, 0ms);
}
.gsd-pill i { font-size: .85rem; }
.gsd-pill:hover { transform: translateY(-2px); }
.gsd-pill--blue {
    background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe;
}
.gsd-pill--blue:hover { box-shadow: 0 8px 16px -10px rgba(37,99,235,.5); }
.gsd-pill--amber {
    background: #fffbeb; color: #b45309; border-color: #fde68a;
}
.gsd-pill--amber:hover { box-shadow: 0 8px 16px -10px rgba(245,158,11,.5); }
@keyframes gsdPillIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Trends */
.gsd-trend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.gsd-trend__item {
    display: flex;
    align-items: stretch;
    gap: .75rem;
}
.gsd-trend__num {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #06b6d4, #6366f1);
    color: #fff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px -10px rgba(6,182,212,.5);
}
.gsd-trend__body {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .85rem;
    border-radius: 12px;
    border: 1px solid var(--gsd-border);
    background: #fff;
    color: var(--gsd-ink);
    font-weight: 500;
    transition: all .25s ease;
}
.gsd-trend__body i { color: #06b6d4; font-size: 1.05rem; }
.gsd-trend__item:hover .gsd-trend__body {
    transform: translateX(4px);
    border-color: rgba(6,182,212,.35);
    box-shadow: 0 10px 22px -16px rgba(6,182,212,.45);
}

/* Advice */
.gsd-advice .gsd-card__head { background: linear-gradient(180deg, #f0fdf4, #fff); }
.gsd-advice__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.gsd-advice__list li {
    display: flex;
    align-items: start;
    gap: .65rem;
    padding: .65rem .85rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #f0fdf4, #fff);
    border: 1px solid #d1fae5;
    transition: all .25s ease;
}
.gsd-advice__list li:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 22px -16px rgba(22,163,74,.4);
}
.gsd-advice__list i {
    color: #16a34a;
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.gsd-side {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.gsd-summary,
.gsd-actions {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--gsd-border);
    box-shadow: var(--gsd-shadow);
    padding: 1.1rem 1.15rem;
}
.gsd-summary__head {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--gsd-border);
    margin-bottom: .85rem;
}
.gsd-summary__icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #16a34a, #65a30d);
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 10px 22px -10px rgba(22,163,74,.55);
}
.gsd-summary__label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--gsd-muted);
    font-weight: 700;
}
.gsd-summary__name {
    font-weight: 800;
    color: var(--gsd-ink);
    line-height: 1.2;
}
.gsd-summary__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.gsd-summary__list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .9rem;
}
.gsd-summary__k { color: var(--gsd-muted); font-weight: 500; }
.gsd-summary__v { color: var(--gsd-ink); font-weight: 700; }
.gsd-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: .35rem;
}
.gsd-dot.is-on  { background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.15); }
.gsd-dot.is-off { background: #94a3b8; }

.gsd-actions {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.gsd-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .7rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .25s ease;
}
.gsd-btn i { font-size: 1rem; }
.gsd-btn--primary {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(22,163,74,.6);
}
.gsd-btn--primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 14px 28px -12px rgba(22,163,74,.75); }
.gsd-btn--ghost {
    background: #fff;
    color: #16a34a;
    border-color: rgba(22,163,74,.25);
}
.gsd-btn--ghost:hover { background: rgba(22,163,74,.06); transform: translateY(-2px); }
.gsd-btn--danger {
    background: #fff;
    color: #dc2626;
    border-color: rgba(220,38,38,.25);
}
.gsd-btn--danger:hover { background: rgba(220,38,38,.06); transform: translateY(-2px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .gsd-hero__row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .gsd-orb { width: 220px; height: 220px; margin: 0 auto; }
    .gsd-orb > i { font-size: 4.4rem; }
    .gsd-side { position: static; }
    .gsd-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .gsd-hero { padding: 2.75rem 0 4rem; }
    .gsd-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .gsd-blob, .gsd-leaf, .gsd-orb, .gsd-orb > i,
    .gsd-orb__ring, .gsd-pill, .gsd-chip {
        animation: none !important;
    }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}
