:root {
    --navy: #07112a;
    --navy-deep: #040c1f;
    --navy-mid: #0d1f45;
    --navy-light: #162850;
    --teal: #0097a7;
    --teal-bright: #00bcd4;
    --gold: #c9a84c;
    --gold-light: #e4c16f;
    --white: #f0f4ff;
    --white-dim: rgba(240, 244, 255, 0.72);
    --white-soft: rgba(240, 244, 255, 0.48);
    --white-ghost: rgba(240, 244, 255, 0.10);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

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

html {
    margin: 0 !important;
    padding: 0 !important;
    scroll-behavior: smooth;
    background: var(--navy-deep);
}

body.jg-landing-body {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--navy-deep) !important;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

body.jg-landing-body #wpadminbar {
    position: fixed !important;
    z-index: 999999 !important;
}

#jg-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0.72;
}

.jg-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 16%, rgba(0, 188, 212, 0.18) 0, rgba(0, 188, 212, 0.05) 26%, transparent 48%),
        radial-gradient(circle at 18% 58%, rgba(201, 168, 76, 0.10) 0, transparent 32%),
        linear-gradient(145deg, #040c1f 0%, #07112a 38%, #0d1f45 100%);
}

.jg-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(0, 188, 212, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 188, 212, 0.07) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at 80% 12%, black 0, transparent 56%);
    -webkit-mask-image: radial-gradient(circle at 80% 12%, black 0, transparent 56%);
}

#jg-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.05rem 3rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(4, 12, 31, 0.72);
    border-bottom: 1px solid rgba(0, 188, 212, 0.14);
}

body.admin-bar #jg-nav {
    top: 32px;
}

.jg-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.4px;
}

.jg-logo span {
    color: var(--teal-bright);
}

.jg-nav-links {
    display: flex;
    gap: 2.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.jg-nav-links a {
    color: var(--white-dim);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.jg-nav-links a:hover {
    color: var(--teal-bright);
}

.jg-section,
#jg-footer {
    position: relative;
    z-index: 5;
}

.jg-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 6rem 3rem;
    position: relative;
    z-index: 5;
}

.jg-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal-bright);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.jg-label::after {
    content: '';
    display: block;
    width: 42px;
    height: 1px;
    background: var(--teal);
}

.jg-section h2,
.jg-nl-inner h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 1.4rem;
    color: var(--white);
}

#jg-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 3rem 4rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 44%, rgba(0, 188, 212, 0.20) 0, transparent 34%),
        radial-gradient(circle at 28% 26%, rgba(201, 168, 76, 0.12) 0, transparent 30%),
        linear-gradient(145deg, rgba(4, 12, 31, 0.25), rgba(13, 31, 69, 0.25));
}

#jg-hero::after {
    content: '';
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -1px;
    height: 210px;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(4, 12, 31, 0.95), transparent),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 155 L105 122 L190 142 L305 92 L412 132 L536 70 L650 112 L742 48 L858 108 L965 76 L1088 128 L1210 52 L1312 88 L1440 38 L1440 220 L0 220Z' fill='%23040c1f' opacity='0.75'/%3E%3Cpath d='M0 175 L132 145 L235 166 L356 122 L475 152 L602 105 L722 139 L824 92 L948 150 L1088 117 L1225 163 L1328 122 L1440 150 L1440 220 L0 220Z' fill='%2307112a' opacity='0.95'/%3E%3Cpath d='M0 155 L105 122 L190 142 L305 92 L412 132 L536 70 L650 112 L742 48 L858 108 L965 76 L1088 128 L1210 52 L1312 88 L1440 38' fill='none' stroke='%23c9a84c' stroke-width='2' opacity='0.75'/%3E%3C/svg%3E") center bottom / cover no-repeat;
}

.jg-hero-inner {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 5;
}

.jg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    color: var(--teal-bright);
    letter-spacing: 2.4px;
    text-transform: uppercase;
    margin-bottom: 1.3rem;
}

.jg-eyebrow::before {
    content: '';
    display: block;
    width: 34px;
    height: 1px;
    background: var(--teal-bright);
}

#jg-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.8rem, 8vw, 7.2rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -1.6px;
    color: var(--white);
    margin: 0 0 1.2rem;
}

.jg-name-solid,
.jg-name-outline {
    display: block;
}

.jg-name-outline {
    color: transparent;
    -webkit-text-stroke: 1.1px rgba(240, 244, 255, 0.48);
    text-shadow: none;
}

.jg-subtitle {
    font-family: 'DM Mono', monospace;
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    color: var(--teal-bright);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
}

.jg-desc {
    max-width: 640px;
    font-size: clamp(1.06rem, 1.8vw, 1.22rem);
    color: var(--white-dim);
    line-height: 1.75;
    margin: 0 0 2rem;
}

.jg-desc strong {
    color: var(--white);
    font-weight: 500;
}

.jg-hero-form,
.jg-nl-form {
    display: flex;
    gap: 0.8rem;
}

.jg-hero-form {
    max-width: 570px;
    margin-bottom: 0.8rem;
}

.jg-input {
    flex: 1;
    min-width: 210px;
    background: rgba(240, 244, 255, 0.07);
    border: 1px solid rgba(0, 188, 212, 0.28);
    border-radius: 5px;
    padding: 0.95rem 1.15rem;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.jg-input::placeholder {
    color: rgba(240, 244, 255, 0.42);
}

.jg-input:focus {
    border-color: var(--teal-bright);
    background: rgba(240, 244, 255, 0.10);
}

.jg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--teal), var(--teal-bright));
    color: var(--white);
    padding: 0.95rem 1.45rem;
    border-radius: 5px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(0, 188, 212, 0.75);
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 10px 28px rgba(0, 188, 212, 0.18);
}

.jg-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: translateX(-110%);
    transition: transform 0.55s ease;
}

.jg-btn:hover::after {
    transform: translateX(110%);
}

.jg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 188, 212, 0.30);
}

.jg-hero-note,
.jg-form-note {
    font-size: 0.78rem;
    color: rgba(240, 244, 255, 0.45);
}

.jg-hero-note {
    margin: 0 0 2.2rem;
}

.jg-btn-ghost {
    display: inline-flex;
    align-items: center;
    color: var(--white-dim);
    font-size: 0.86rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.jg-btn-ghost:hover {
    color: var(--white);
}

.jg-stats {
    display: flex;
    gap: 2.4rem;
    margin-top: 3rem;
    padding-top: 2.1rem;
    border-top: 1px solid rgba(240, 244, 255, 0.10);
    flex-wrap: wrap;
}

.jg-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-light);
    display: block;
    line-height: 1;
}

.jg-stat-lbl {
    font-size: 0.72rem;
    color: var(--white-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 0.45rem;
    display: block;
}

.jg-hero-panel {
    position: relative;
}

.jg-hero-panel::before {
    content: '';
    position: absolute;
    inset: -20px;
    z-index: -1;
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 188, 212, 0.24), transparent 58%),
        radial-gradient(circle at 100% 80%, rgba(201, 168, 76, 0.16), transparent 48%);
    filter: blur(4px);
}

.jg-tutorial-card {
    background:
        linear-gradient(160deg, rgba(13, 31, 69, 0.88), rgba(4, 12, 31, 0.86)),
        linear-gradient(90deg, rgba(0, 188, 212, 0.14), transparent);
    border: 1px solid rgba(0, 188, 212, 0.22);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.jg-tutorial-card::before {
    content: '';
    position: absolute;
    top: -90px;
    right: -90px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.20), transparent 68%);
}

.jg-card-kicker {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 2px;
    color: var(--gold-light);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.jg-tutorial-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.08;
    color: var(--white);
    margin: 0 0 1rem;
}

.jg-tutorial-card p {
    color: var(--white-dim);
    font-size: 0.96rem;
    line-height: 1.7;
    margin: 0 0 1.4rem;
}

.jg-mini-steps {
    display: grid;
    gap: 0.65rem;
    margin: 1.5rem 0;
}

.jg-mini-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white-dim);
    font-size: 0.88rem;
}

.jg-mini-step span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(0, 188, 212, 0.12);
    border: 1px solid rgba(0, 188, 212, 0.28);
    color: var(--teal-bright);
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
}

.jg-type-box {
    margin-top: 1.3rem;
    min-height: 74px;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(240, 244, 255, 0.06);
    border: 1px solid rgba(240, 244, 255, 0.08);
    display: flex;
    align-items: center;
    color: var(--white);
    font-family: 'DM Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.55;
}

.jg-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--teal-bright);
    margin-left: 4px;
    vertical-align: middle;
    animation: jgBlink 0.8s step-end infinite;
}

#jg-why {
    background: linear-gradient(to bottom, rgba(4, 12, 31, 0.96), rgba(13, 31, 69, 0.96));
}

.jg-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.jg-copy p {
    font-size: 1.04rem;
    color: var(--white-dim);
    margin: 0 0 1.2rem;
}

.jg-copy p strong {
    color: var(--white);
    font-weight: 500;
}

.jg-quote-block,
.jg-gold-quote {
    padding: 1.4rem 1.7rem;
    border-radius: 0 8px 8px 0;
    margin-top: 2rem;
}

.jg-quote-block {
    background: rgba(240, 244, 255, 0.07);
    border: 1px solid rgba(0, 188, 212, 0.20);
    border-left: 3px solid var(--teal-bright);
}

.jg-quote-block p,
.jg-gold-quote p {
    font-family: 'Playfair Display', serif;
    font-size: 1.16rem;
    font-style: italic;
    line-height: 1.55;
    margin: 0;
}

.jg-quote-block p {
    color: var(--white);
}

.jg-gold-quote {
    background: rgba(201, 168, 76, 0.08);
    border-left: 3px solid var(--gold);
}

.jg-gold-quote p {
    color: var(--gold-light);
}

.jg-use-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.jg-use-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 0.95rem;
    background: rgba(240, 244, 255, 0.07);
    border-radius: 7px;
    font-size: 0.9rem;
    color: var(--white-dim);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.22s ease;
}

.jg-use-item:hover {
    background: rgba(0, 151, 167, 0.13);
    border-color: rgba(0, 188, 212, 0.28);
    color: var(--white);
    transform: translateY(-2px);
}

.jg-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-bright);
    box-shadow: 0 0 14px rgba(0, 188, 212, 0.55);
    flex-shrink: 0;
}

#jg-who {
    background: rgba(13, 31, 69, 0.96);
}

.jg-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
    margin-top: 3rem;
}

.jg-card {
    background: rgba(4, 12, 31, 0.58);
    border: 1px solid rgba(0, 188, 212, 0.13);
    border-radius: 13px;
    padding: 1.75rem;
    transition: all 0.28s ease;
    position: relative;
    overflow: hidden;
}

.jg-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(0, 188, 212, 0.13), transparent 38%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.jg-card:hover::before {
    opacity: 1;
}

.jg-card:hover {
    border-color: rgba(0, 188, 212, 0.32);
    transform: translateY(-5px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.20);
}

.jg-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(0, 188, 212, 0.10);
    border: 1px solid rgba(0, 188, 212, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-bright);
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    margin-bottom: 1.1rem;
    position: relative;
    z-index: 1;
}

.jg-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.65rem;
    position: relative;
    z-index: 1;
}

.jg-card-desc {
    font-size: 0.91rem;
    color: var(--white-dim);
    line-height: 1.62;
    position: relative;
    z-index: 1;
}

#jg-about {
    background: linear-gradient(to bottom, rgba(22, 40, 80, 0.96), rgba(7, 17, 42, 0.96));
}

.jg-about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.55fr;
    gap: 5rem;
    align-items: center;
}

.jg-photo-block {
    position: relative;
}

.jg-photo,
.jg-photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 16px;
    display: block;
}

.jg-photo {
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(0, 188, 212, 0.22);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.jg-photo-placeholder span:first-child {
    font-size: 2.4rem;
    opacity: 0.85;
}

.jg-frame {
    position: absolute;
    width: 70px;
    height: 70px;
    border-color: var(--gold);
    border-style: solid;
    pointer-events: none;
}

.jg-frame.tl {
    top: -12px;
    left: -12px;
    border-width: 2px 0 0 2px;
}

.jg-frame.br {
    bottom: -12px;
    right: -12px;
    border-width: 0 2px 2px 0;
}

.jg-skill-strip {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.jg-pill {
    background: rgba(240, 244, 255, 0.07);
    border: 1px solid rgba(0, 188, 212, 0.20);
    border-radius: 100px;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    color: var(--white-dim);
}

#jg-newsletter {
    background:
        radial-gradient(circle at 78% 0%, rgba(0, 188, 212, 0.14), transparent 38%),
        linear-gradient(135deg, rgba(13, 31, 69, 0.98), rgba(4, 12, 31, 0.98));
}

.jg-nl-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 6.2rem 3rem;
    text-align: center;
    position: relative;
    z-index: 5;
}

.jg-nl-inner .jg-label {
    justify-content: center;
}

.jg-nl-desc {
    font-size: 1.02rem;
    color: var(--white-dim);
    margin: 0 0 2.4rem;
    line-height: 1.8;
}

.jg-nl-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    text-align: left;
    margin-bottom: 2.4rem;
}

.jg-benefit {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--white-dim);
    background: rgba(240, 244, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.045);
    padding: 0.68rem 0.85rem;
    border-radius: 7px;
}

.jg-benefit::before {
    content: '→';
    color: var(--teal-bright);
    flex-shrink: 0;
    font-size: 0.78rem;
}

.jg-nl-form {
    max-width: 520px;
    margin: 0 auto 1rem;
}

#jg-footer {
    background: #040c1f;
    padding: 3rem;
    border-top: 1px solid rgba(0, 188, 212, 0.10);
}

.jg-footer-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.jg-footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.jg-footer-brand span {
    color: var(--teal-bright);
}

.jg-footer-tag {
    font-size: 0.82rem;
    color: var(--white-dim);
    line-height: 1.65;
}

.jg-disclaimer {
    font-size: 0.75rem;
    color: rgba(240, 244, 255, 0.34);
    line-height: 1.75;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.jg-disclaimer strong {
    color: rgba(240, 244, 255, 0.56);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.jg-footer-bottom {
    max-width: 1120px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.045);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.75rem;
    color: rgba(240, 244, 255, 0.24);
}

.jg-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.72s ease, transform 0.72s ease;
}

.jg-reveal.jg-on {
    opacity: 1;
    transform: translateY(0);
}

.jg-form-message {
    margin-top: 0.8rem;
    font-size: 0.82rem;
    color: var(--gold-light);
}

@keyframes jgBlink {
    50% {
        opacity: 0;
    }
}

@media (max-width: 980px) {
    #jg-nav {
        padding: 1rem 1.5rem;
    }

    .jg-nav-links {
        display: none;
    }

    #jg-hero {
        padding: 6.4rem 1.5rem 3.5rem;
        min-height: auto;
    }

    .jg-hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .jg-hero-panel {
        max-width: 580px;
    }

    .jg-inner {
        padding: 4.5rem 1.5rem;
    }

    .jg-why-grid,
    .jg-about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .jg-cards {
        grid-template-columns: 1fr 1fr;
    }

    .jg-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 782px) {
    body.admin-bar #jg-nav {
        top: 46px;
    }
}

@media (max-width: 700px) {
    #jg-canvas {
        display: none;
    }

    #jg-hero h1 {
        font-size: clamp(3.4rem, 18vw, 5rem);
    }

    .jg-name-outline {
        -webkit-text-stroke: 0;
        color: var(--white);
        opacity: 0.92;
    }

    .jg-hero-form,
    .jg-nl-form {
        flex-direction: column;
    }

    .jg-btn {
        width: 100%;
    }

    .jg-stats {
        gap: 1.4rem;
    }

    .jg-use-grid,
    .jg-cards,
    .jg-nl-benefits {
        grid-template-columns: 1fr;
    }

    .jg-nl-inner {
        padding: 4.5rem 1.5rem;
    }

    #jg-footer {
        padding: 2.4rem 1.5rem;
    }

    .jg-footer-bottom {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    #jg-canvas {
        display: none !important;
    }

    .jg-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* MC4WP form styling */
.jg-hero-form-wrap,
.jg-nl-form-wrap {
    max-width: 570px;
}

.jg-nl-form-wrap {
    margin: 0 auto 1rem;
}

.jg-mc4wp-inline {
    display: flex;
    gap: 0.8rem;
    align-items: stretch;
}

.jg-mc4wp-inline input[type="email"] {
    flex: 1;
    min-width: 210px;
    width: 100%;
    background: rgba(240, 244, 255, 0.07);
    border: 1px solid rgba(0, 188, 212, 0.28);
    border-radius: 5px;
    padding: 0.95rem 1.15rem;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    outline: none;
    box-shadow: none;
}

.jg-mc4wp-inline input[type="email"]::placeholder {
    color: rgba(240, 244, 255, 0.42);
}

.jg-mc4wp-inline input[type="email"]:focus {
    border-color: var(--teal-bright);
    background: rgba(240, 244, 255, 0.10);
}

.jg-mc4wp-inline button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--teal), var(--teal-bright));
    color: var(--white);
    padding: 0.95rem 1.45rem;
    border-radius: 5px;
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid rgba(0, 188, 212, 0.75);
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 188, 212, 0.18);
    transition: all 0.25s ease;
}

.jg-mc4wp-inline button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 188, 212, 0.30);
}

.mc4wp-response {
    margin-top: 0.9rem;
    font-size: 0.86rem;
    color: var(--gold-light);
}

.mc4wp-response p {
    margin: 0;
}

.mc4wp-alert {
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.28);
    color: var(--gold-light);
    border-radius: 8px;
    padding: 0.85rem 1rem;
}

@media (max-width: 700px) {
    .jg-mc4wp-inline {
        flex-direction: column;
    }

    .jg-mc4wp-inline button {
        width: 100%;
    }
}

/* ─────────────────────────────────────────────
   MC4WP form/button rescue styling
   ───────────────────────────────────────────── */

.jg-hero-form-wrap,
.jg-nl-form-wrap {
    max-width: 570px;
}

.jg-nl-form-wrap {
    margin: 0 auto 1rem;
}

.jg-hero-form-wrap .mc4wp-form,
.jg-nl-form-wrap .mc4wp-form {
    margin: 0;
}

.jg-hero-form-wrap .mc4wp-form-fields,
.jg-nl-form-wrap .mc4wp-form-fields,
.jg-mc4wp-inline {
    display: flex !important;
    gap: 0.8rem !important;
    align-items: stretch !important;
    width: 100% !important;
}

.jg-hero-form-wrap input[type="email"],
.jg-nl-form-wrap input[type="email"],
.jg-mc4wp-inline input[type="email"] {
    flex: 1 1 auto !important;
    min-width: 210px !important;
    width: 100% !important;
    height: auto !important;
    background: rgba(240, 244, 255, 0.07) !important;
    border: 1px solid rgba(0, 188, 212, 0.28) !important;
    border-radius: 5px !important;
    padding: 0.95rem 1.15rem !important;
    color: var(--white) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    outline: none !important;
    box-shadow: none !important;
}

.jg-hero-form-wrap input[type="email"]::placeholder,
.jg-nl-form-wrap input[type="email"]::placeholder,
.jg-mc4wp-inline input[type="email"]::placeholder {
    color: rgba(240, 244, 255, 0.42) !important;
}

.jg-hero-form-wrap input[type="email"]:focus,
.jg-nl-form-wrap input[type="email"]:focus,
.jg-mc4wp-inline input[type="email"]:focus {
    border-color: var(--teal-bright) !important;
    background: rgba(240, 244, 255, 0.10) !important;
}

.jg-hero-form-wrap input[type="submit"],
.jg-nl-form-wrap input[type="submit"],
.jg-hero-form-wrap button[type="submit"],
.jg-nl-form-wrap button[type="submit"],
.jg-mc4wp-inline input[type="submit"],
.jg-mc4wp-inline button[type="submit"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    background: linear-gradient(135deg, var(--teal), var(--teal-bright)) !important;
    background-color: var(--teal) !important;
    color: var(--white) !important;
    padding: 0.95rem 1.45rem !important;
    min-height: 48px !important;
    border-radius: 5px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    border: 1px solid rgba(0, 188, 212, 0.75) !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-shadow: 0 10px 28px rgba(0, 188, 212, 0.18) !important;
    transition: all 0.25s ease !important;
}

.jg-hero-form-wrap input[type="submit"]:hover,
.jg-nl-form-wrap input[type="submit"]:hover,
.jg-hero-form-wrap button[type="submit"]:hover,
.jg-nl-form-wrap button[type="submit"]:hover,
.jg-mc4wp-inline input[type="submit"]:hover,
.jg-mc4wp-inline button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 36px rgba(0, 188, 212, 0.30) !important;
    filter: brightness(1.04);
}

.mc4wp-response {
    margin-top: 0.9rem !important;
    font-size: 0.86rem !important;
    color: var(--gold-light) !important;
}

.mc4wp-response p {
    margin: 0 !important;
}

.mc4wp-alert {
    background: rgba(201, 168, 76, 0.08) !important;
    border: 1px solid rgba(201, 168, 76, 0.28) !important;
    color: var(--gold-light) !important;
    border-radius: 8px !important;
    padding: 0.85rem 1rem !important;
}

.mc4wp-response a,
.mc4wp-alert a {
    color: var(--teal-bright) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.mc4wp-response a:hover,
.mc4wp-alert a:hover {
    text-decoration: underline !important;
}

@media (max-width: 700px) {

    .jg-hero-form-wrap .mc4wp-form-fields,
    .jg-nl-form-wrap .mc4wp-form-fields,
    .jg-mc4wp-inline {
        flex-direction: column !important;
    }

    .jg-hero-form-wrap input[type="submit"],
    .jg-nl-form-wrap input[type="submit"],
    .jg-hero-form-wrap button[type="submit"],
    .jg-nl-form-wrap button[type="submit"],
    .jg-mc4wp-inline input[type="submit"],
    .jg-mc4wp-inline button[type="submit"] {
        width: 100% !important;
    }
}



/* ─────────────────────────────────────────────
   AI TUTORIAL PAGE
   ───────────────────────────────────────────── */

.jg-tutorial-page #jg-tutorial-hero {
    min-height: 68vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.jg-tutorial-page #jg-tutorial-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 22%, rgba(0, 188, 212, 0.16), transparent 34%),
        radial-gradient(circle at 22% 46%, rgba(201, 168, 76, 0.10), transparent 28%);
    pointer-events: none;
}

.jg-tutorial-hero-wrap {
    max-width: 860px;
    position: relative;
    z-index: 2;
}

.jg-tutorial-page #jg-tutorial-hero h1 {
    font-family: 'Playfair Display', serif !important;
    font-size: clamp(3rem, 7vw, 5.6rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -1.2px !important;
    color: var(--white) !important;
    margin-bottom: 1.3rem !important;
}

.jg-tutorial-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.jg-tutorial-lead {
    max-width: 760px;
    color: var(--white-dim);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.4rem;
}

.jg-tutorial-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 2.4rem;
}

.jg-tutorial-card {
    background: rgba(4, 12, 31, 0.58);
    border: 1px solid rgba(0, 188, 212, 0.13);
    border-radius: 14px;
    padding: 1.5rem;
    transition: all 0.28s ease;
    position: relative;
    overflow: hidden;
}

.jg-tutorial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 188, 212, 0.3);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
}

.jg-tutorial-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 188, 212, 0.10);
    border: 1px solid rgba(0, 188, 212, 0.22);
    color: var(--teal-bright);
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    margin-bottom: 1rem;
}

.jg-tutorial-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.7rem;
}

.jg-tutorial-card p {
    color: var(--white-dim);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.jg-mini-example {
    font-size: 0.82rem;
    color: var(--gold-light);
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.9rem;
}

.jg-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.jg-compare-card {
    border-radius: 16px;
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.jg-compare-bad {
    background: rgba(4, 12, 31, 0.62);
    border-color: rgba(201, 168, 76, 0.18);
}

.jg-compare-good {
    background: linear-gradient(160deg, rgba(13, 31, 69, 0.88), rgba(4, 12, 31, 0.88));
    border-color: rgba(0, 188, 212, 0.24);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.20);
}

.jg-compare-tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.9rem;
}

.jg-compare-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.jg-compare-card p {
    color: var(--white-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.jg-code-box {
    background: rgba(240, 244, 255, 0.06);
    border: 1px solid rgba(0, 188, 212, 0.16);
    border-radius: 12px;
    padding: 1.2rem;
    color: var(--white);
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.75;
    white-space: pre-wrap;
}

.jg-code-box-large {
    margin-top: 1rem;
    font-size: 0.9rem;
    padding: 1.4rem;
}

.jg-copy-panel {
    background:
        linear-gradient(160deg, rgba(13, 31, 69, 0.88), rgba(4, 12, 31, 0.88)),
        linear-gradient(90deg, rgba(0, 188, 212, 0.10), transparent);
    border: 1px solid rgba(0, 188, 212, 0.20);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.jg-tutorial-note {
    margin-top: 1rem;
    color: var(--white-dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

.jg-tutorial-quote {
    margin-top: 2.5rem;
    padding: 1.5rem 1.8rem;
    background: rgba(201, 168, 76, 0.08);
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
    max-width: 760px;
}

.jg-tutorial-quote p {
    margin: 0;
    color: var(--gold-light);
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    line-height: 1.5;
}

.jg-next-step-box {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    background: rgba(4, 12, 31, 0.58);
    border: 1px solid rgba(0, 188, 212, 0.16);
    border-radius: 18px;
    padding: 2.3rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.jg-next-step-box p {
    color: var(--white-dim);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .jg-tutorial-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .jg-compare-grid {
        grid-template-columns: 1fr;
    }

    .jg-tutorial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .jg-tutorial-page #jg-tutorial-hero {
        padding: 7rem 0 2rem;
        min-height: auto;
    }

    .jg-tutorial-grid {
        grid-template-columns: 1fr;
    }

    .jg-code-box,
    .jg-code-box-large {
        font-size: 0.8rem;
    }

    .jg-next-step-box {
        padding: 1.6rem;
    }
}

/* ─────────────────────────────────────────────
   PROMPT LIBRARY
   ───────────────────────────────────────────── */

.jg-prompt-page #jg-prompt-hero {
    min-height: 62vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.jg-prompt-page #jg-prompt-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 22%, rgba(0, 188, 212, 0.16), transparent 34%),
        radial-gradient(circle at 22% 46%, rgba(201, 168, 76, 0.10), transparent 28%);
    pointer-events: none;
}

.jg-prompt-hero-wrap {
    max-width: 880px;
    position: relative;
    z-index: 2;
}

.jg-prompt-page #jg-prompt-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -1.2px;
    color: var(--white);
    margin: 0 0 1.3rem;
}

.jg-prompt-shell {
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.5rem;
    padding: 0 3rem 5rem;
    position: relative;
    z-index: 5;
}

.jg-prompt-sidebar {
    position: sticky;
    top: 92px;
    align-self: start;
    background: rgba(4, 12, 31, 0.62);
    border: 1px solid rgba(0, 188, 212, 0.13);
    border-radius: 16px;
    padding: 1rem 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.jg-prompt-sidebar-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal-bright);
    padding: 0 1rem 0.65rem;
}

.jg-prompt-cat {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    background: transparent;
    border: none;
    color: var(--white-dim);
    padding: 0.62rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s ease;
}

.jg-prompt-cat:hover {
    background: rgba(0, 188, 212, 0.08);
    color: var(--white);
}

.jg-prompt-cat.active {
    background: rgba(0, 188, 212, 0.13);
    color: var(--white);
    border-left: 2px solid var(--teal-bright);
}

.jg-prompt-cat em {
    font-style: normal;
    color: rgba(240, 244, 255, 0.42);
    background: rgba(240, 244, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 0.05rem 0.45rem;
    font-size: 0.72rem;
}

.jg-prompt-main {
    min-width: 0;
}

.jg-prompt-toolbar {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.jg-sidebar-toggle {
    display: none;
    background: rgba(240, 244, 255, 0.07);
    border: 1px solid rgba(0, 188, 212, 0.18);
    color: var(--white-dim);
    border-radius: 8px;
    padding: 0.78rem 1rem;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
}

.jg-prompt-search-wrap {
    position: relative;
    flex: 1;
}

.jg-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(240, 244, 255, 0.38);
    font-family: 'DM Mono', monospace;
}

#prompt-search {
    width: 100%;
    background: rgba(240, 244, 255, 0.07);
    border: 1px solid rgba(0, 188, 212, 0.18);
    color: var(--white);
    border-radius: 10px;
    padding: 0.9rem 1rem 0.9rem 2.6rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    outline: none;
}

#prompt-search::placeholder {
    color: rgba(240, 244, 255, 0.42);
}

#prompt-search:focus {
    border-color: var(--teal-bright);
    background: rgba(240, 244, 255, 0.10);
}

.jg-prompt-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.jg-prompt-section-head h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    line-height: 1.1;
    margin: 0;
}

.jg-prompt-count {
    color: rgba(240, 244, 255, 0.45);
    font-size: 0.86rem;
    white-space: nowrap;
}

.jg-prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1rem;
}

.jg-prompt-card {
    background:
        linear-gradient(160deg, rgba(13, 31, 69, 0.80), rgba(4, 12, 31, 0.78)),
        linear-gradient(90deg, rgba(0, 188, 212, 0.08), transparent);
    border: 1px solid rgba(0, 188, 212, 0.15);
    border-radius: 16px;
    padding: 1.15rem;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
    transition: all 0.22s ease;
    overflow: hidden;
}

.jg-prompt-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 188, 212, 0.30);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.jg-prompt-card-head {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.jg-prompt-card-head h3 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 1.15rem;
    line-height: 1.25;
    margin: 0;
}

.jg-prompt-card-head span {
    align-self: flex-start;
    color: var(--gold-light);
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 999px;
    padding: 0.18rem 0.6rem;
    font-size: 0.72rem;
    white-space: nowrap;
}

.jg-prompt-text {
    background: rgba(240, 244, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 11px;
    color: var(--white-dim);
    font-family: 'DM Mono', monospace;
    font-size: 0.81rem;
    line-height: 1.65;
    padding: 0.9rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 138px;
    overflow: hidden;
    position: relative;
}

.jg-prompt-text.expanded {
    max-height: none;
}

.jg-prompt-actions {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.jg-prompt-copy,
.jg-prompt-expand {
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.jg-prompt-copy {
    background: linear-gradient(135deg, var(--teal), var(--teal-bright));
    color: var(--white);
    border: 1px solid rgba(0, 188, 212, 0.75);
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(0, 188, 212, 0.14);
}

.jg-prompt-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 188, 212, 0.25);
}

.jg-prompt-copy.copied {
    background: rgba(201, 168, 76, 0.14);
    color: var(--gold-light);
    border-color: rgba(201, 168, 76, 0.28);
}

.jg-prompt-expand {
    background: transparent;
    color: rgba(240, 244, 255, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: auto;
}

.jg-prompt-expand:hover {
    color: var(--white);
    border-color: rgba(0, 188, 212, 0.24);
}

.jg-prompt-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--white-dim);
    padding: 4rem 1rem;
    background: rgba(4, 12, 31, 0.46);
    border: 1px solid rgba(0, 188, 212, 0.12);
    border-radius: 16px;
}

.jg-prompt-empty strong {
    display: block;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
}

@media (max-width: 980px) {
    .jg-prompt-shell {
        grid-template-columns: 1fr;
        padding: 0 1.5rem 4rem;
    }

    .jg-sidebar-toggle {
        display: inline-flex;
    }

    .jg-prompt-sidebar {
        display: none;
        position: relative;
        top: auto;
        max-height: none;
    }

    .jg-prompt-sidebar.open {
        display: block;
    }

    .jg-prompt-toolbar {
        flex-wrap: wrap;
    }
}

@media (max-width: 700px) {
    .jg-prompt-page #jg-prompt-hero {
        padding: 7rem 0 2rem;
        min-height: auto;
    }

    .jg-prompt-section-head {
        align-items: start;
        flex-direction: column;
    }

    .jg-prompt-grid {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────────
   PRIVATE PROMPT LIBRARY V2
   ───────────────────────────────────────────── */

.jg-private-prompt-page #jg-private-hero {
    min-height: 58vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.jg-private-prompt-page #jg-private-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 22%, rgba(0, 188, 212, 0.16), transparent 34%),
        radial-gradient(circle at 22% 46%, rgba(201, 168, 76, 0.10), transparent 28%);
    pointer-events: none;
}

.jg-private-hero-wrap {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.jg-private-prompt-page #jg-private-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -1.2px;
    color: var(--white);
    margin: 0 0 1.3rem;
}

.jg-private-shell {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 1.5rem;
    padding: 0 3rem 5rem;
    position: relative;
    z-index: 5;
}

.jg-private-sidebar {
    position: sticky;
    top: 92px;
    align-self: start;
    background: rgba(4, 12, 31, 0.62);
    border: 1px solid rgba(0, 188, 212, 0.13);
    border-radius: 16px;
    padding: 1rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.jg-private-sidebar-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal-bright);
    margin-bottom: 1rem;
}

.jg-filter-group {
    margin-bottom: 0.9rem;
}

.jg-filter-group label,
.jg-edit-row label {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(240, 244, 255, 0.48);
    margin-bottom: 0.35rem;
}

.jg-filter-group select,
.jg-edit-row input,
.jg-edit-row select,
.jg-edit-row textarea {
    width: 100%;
    background: rgba(240, 244, 255, 0.07);
    border: 1px solid rgba(0, 188, 212, 0.18);
    color: var(--white);
    border-radius: 9px;
    padding: 0.75rem 0.85rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.jg-edit-row textarea {
    resize: vertical;
    line-height: 1.55;
}

.jg-filter-group select:focus,
.jg-edit-row input:focus,
.jg-edit-row select:focus,
.jg-edit-row textarea:focus {
    border-color: var(--teal-bright);
    background: rgba(240, 244, 255, 0.10);
}

.jg-private-reset,
.jg-private-action-btn {
    background: rgba(240, 244, 255, 0.07);
    border: 1px solid rgba(0, 188, 212, 0.18);
    color: var(--white-dim);
    border-radius: 9px;
    padding: 0.72rem 0.9rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.jg-private-reset {
    width: 100%;
    margin-top: 0.3rem;
}

.jg-private-reset:hover,
.jg-private-action-btn:hover {
    color: var(--white);
    border-color: rgba(0, 188, 212, 0.34);
    background: rgba(0, 188, 212, 0.10);
}

.jg-private-action-btn.danger {
    color: #ffb0a8;
    border-color: rgba(255, 120, 110, 0.24);
}

.jg-private-main {
    min-width: 0;
}

.jg-private-toolbar {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 1rem;
}

.jg-private-add {
    white-space: nowrap;
}

.jg-private-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.jg-import-label {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
}

.jg-import-label input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.jg-private-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 1rem;
}

.jg-private-card {
    background:
        linear-gradient(160deg, rgba(13, 31, 69, 0.80), rgba(4, 12, 31, 0.78)),
        linear-gradient(90deg, rgba(0, 188, 212, 0.08), transparent);
    border: 1px solid rgba(0, 188, 212, 0.15);
    border-radius: 16px;
    padding: 1.15rem;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
    transition: all 0.22s ease;
    overflow: hidden;
}

.jg-private-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 188, 212, 0.30);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.jg-private-card-top {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.jg-private-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 1.18rem;
    line-height: 1.25;
    margin: 0;
}

.jg-private-star {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    background: rgba(201, 168, 76, 0.07);
    color: rgba(240, 244, 255, 0.34);
    cursor: pointer;
    font-size: 1rem;
    flex: 0 0 auto;
}

.jg-private-star.active {
    color: var(--gold-light);
    background: rgba(201, 168, 76, 0.14);
}

.jg-private-short {
    color: var(--white-dim);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 0.8rem;
}

.jg-private-meta,
.jg-detail-meta,
.jg-private-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.jg-private-meta {
    margin-bottom: 0.85rem;
}

.jg-private-meta span,
.jg-detail-meta span,
.jg-private-tags em {
    font-style: normal;
    color: var(--gold-light);
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    font-size: 0.72rem;
}

.jg-private-tags {
    margin-top: 0.75rem;
}

.jg-private-tags em {
    color: rgba(240, 244, 255, 0.58);
    background: rgba(240, 244, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.07);
}

.jg-private-preview {
    background: rgba(240, 244, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 11px;
    color: var(--white-dim);
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.65;
    padding: 0.9rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 135px;
    overflow: hidden;
    margin: 0;
}

.jg-private-card-actions,
.jg-detail-actions {
    margin-top: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.jg-private-modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    z-index: 999999;
    padding: 1rem;
    align-items: center;
    justify-content: center;
}

.jg-private-modal-bg.open {
    display: flex;
}

.jg-private-modal {
    width: min(760px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    background:
        linear-gradient(160deg, rgba(13, 31, 69, 0.98), rgba(4, 12, 31, 0.98));
    border: 1px solid rgba(0, 188, 212, 0.22);
    border-radius: 18px;
    padding: 1.6rem;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.jg-private-modal.wide {
    width: min(1000px, 100%);
}

.jg-private-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.jg-private-modal-head h2 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    line-height: 1.1;
    margin: 0;
}

.jg-private-x {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(240, 244, 255, 0.06);
    color: var(--white-dim);
    cursor: pointer;
    font-size: 1.5rem;
}

.jg-private-x:hover {
    color: var(--white);
    border-color: rgba(0, 188, 212, 0.24);
}

.jg-detail-section {
    margin-top: 1rem;
    background: rgba(240, 244, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 13px;
    padding: 1rem;
}

.jg-detail-section h3 {
    color: var(--teal-bright);
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 0.65rem;
}

.jg-detail-section p,
.jg-detail-list {
    color: var(--white-dim);
    margin: 0;
    line-height: 1.7;
    font-size: 0.94rem;
}

.jg-detail-list {
    padding-left: 1.1rem;
}

.jg-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.jg-detail-code {
    background: rgba(4, 12, 31, 0.62);
    border: 1px solid rgba(0, 188, 212, 0.14);
    border-radius: 11px;
    color: var(--white);
    font-family: 'DM Mono', monospace;
    font-size: 0.86rem;
    line-height: 1.7;
    padding: 1rem;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0 0 0.8rem;
}

.detail-copy {
    display: inline-flex;
}

.jg-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.jg-edit-row.full {
    grid-column: 1 / -1;
}

@media (max-width: 980px) {
    .jg-private-shell {
        grid-template-columns: 1fr;
        padding: 0 1.5rem 4rem;
    }

    .jg-private-sidebar {
        display: none;
        position: relative;
        top: auto;
        max-height: none;
    }

    .jg-private-sidebar.open {
        display: block;
    }

    .jg-private-toolbar {
        flex-wrap: wrap;
    }

    .jg-private-add {
        width: 100%;
    }

    .jg-detail-grid,
    .jg-edit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .jg-private-prompt-page #jg-private-hero {
        min-height: auto;
        padding: 7rem 0 2rem;
    }

    .jg-private-grid {
        grid-template-columns: 1fr;
    }

    .jg-private-actions {
        flex-direction: column;
    }

    .jg-private-action-btn,
    .jg-import-label {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ─────────────────────────────────────────────
   PRIVATE PROMPT LIBRARY — FORM / BUTTON POLISH FIX
   ───────────────────────────────────────────── */

/* Force private library form fields to stay dark */
.jg-private-prompt-page input,
.jg-private-prompt-page select,
.jg-private-prompt-page textarea,
.jg-private-modal input,
.jg-private-modal select,
.jg-private-modal textarea {
    background-color: rgba(240, 244, 255, 0.07) !important;
    background-image: none !important;
    border: 1px solid rgba(0, 188, 212, 0.22) !important;
    color: var(--white) !important;
    box-shadow: none !important;
    outline: none !important;
    font-family: 'DM Sans', sans-serif !important;
}

/* Prompt text areas should use mono */
.jg-private-modal textarea,
.jg-detail-code,
.jg-private-preview {
    font-family: 'DM Mono', monospace !important;
}

/* Placeholder colour */
.jg-private-prompt-page input::placeholder,
.jg-private-prompt-page textarea::placeholder,
.jg-private-modal input::placeholder,
.jg-private-modal textarea::placeholder {
    color: rgba(240, 244, 255, 0.42) !important;
    opacity: 1 !important;
}

/* Search field specifically */
#private-search {
    background: rgba(240, 244, 255, 0.07) !important;
    color: var(--white) !important;
    border: 1px solid rgba(0, 188, 212, 0.22) !important;
    min-height: 58px;
}

/* Modal title input specifically */
#f-title {
    background: rgba(240, 244, 255, 0.07) !important;
    color: var(--white) !important;
    min-height: 54px;
}

/* Native select closed state */
.jg-private-prompt-page select,
.jg-private-modal select {
    color: var(--white) !important;
    min-height: 54px;
    padding-right: 2.5rem !important;
    cursor: pointer;
    appearance: auto !important;
    -webkit-appearance: auto !important;
}

/* Native dropdown options — browser still controls much of this */
.jg-private-prompt-page select option,
.jg-private-modal select option {
    background: #ffffff !important;
    color: #111827 !important;
}

/* Fix Add item / action buttons alignment */
.jg-private-prompt-page button,
.jg-private-modal button,
.jg-private-action-btn,
.jg-private-reset,
.jg-private-add,
.jg-import-label {
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* Action buttons */
.jg-private-action-btn,
.jg-private-reset,
.jg-import-label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 58px !important;
    padding: 0 1.15rem !important;
    gap: 0.5rem !important;
}

/* Main turquoise button */
.jg-private-add,
.jg-private-modal .jg-btn,
.jg-private-card-actions .jg-prompt-copy,
.jg-detail-actions .jg-btn,
.detail-copy {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 58px !important;
    padding: 0 1.35rem !important;
    line-height: 1 !important;
    text-align: center !important;
}

/* Prevent button text from sitting visually high/low */
.jg-private-add *,
.jg-private-action-btn *,
.jg-private-reset *,
.jg-prompt-copy *,
.detail-copy * {
    line-height: 1 !important;
}

/* Star button centring fix */
.jg-private-star {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    font-size: 1.1rem !important;
    text-align: center !important;
}

/* Close X button centring fix */
.jg-private-x {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    font-size: 1.65rem !important;
}

/* Card action row polish */
.jg-private-card-actions {
    align-items: center !important;
}

.jg-private-card-actions .jg-prompt-copy,
.jg-private-card-actions .jg-private-action-btn {
    min-height: 46px !important;
    padding: 0 1rem !important;
}

/* Import file label should behave like a button */
.jg-import-label {
    cursor: pointer !important;
}

/* Modal grid spacing improvement */
.jg-edit-grid {
    align-items: start;
}

.jg-edit-row {
    min-width: 0;
}

/* Make modal fields visually consistent */
.jg-edit-row input,
.jg-edit-row select {
    height: 54px !important;
}

.jg-edit-row textarea {
    min-height: 110px;
}

/* Scrollbar inside modal slightly cleaner */
.jg-private-modal {
    scrollbar-color: rgba(0, 188, 212, 0.45) rgba(240, 244, 255, 0.08);
    scrollbar-width: thin;
}

.jg-private-modal::-webkit-scrollbar {
    width: 10px;
}

.jg-private-modal::-webkit-scrollbar-track {
    background: rgba(240, 244, 255, 0.06);
}

.jg-private-modal::-webkit-scrollbar-thumb {
    background: rgba(0, 188, 212, 0.35);
    border-radius: 999px;
}