/* =============================================================================
   Golden Fox Student Progress — Frontend Styles
   Visual Identity: Gold #EFB048 / Terracotta #C65D1C / Dark #1A1A1A
   Font: Outfit (Google Fonts)
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── Isolamento total do tema WordPress ───────────────────────────────────── */
/* Reseta todos os elementos filhos para não herdar estilos do tema */
.gf-wrapper h1, .gf-wrapper h2, .gf-wrapper h3, .gf-wrapper h4, .gf-wrapper h5, .gf-wrapper h6 {
    font-family: 'Outfit', sans-serif !important;
    color: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
    font-weight: inherit !important;
    border: none !important;
    background: none !important;
    text-transform: none !important;
    letter-spacing: inherit !important;
}
.gf-wrapper p {
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
}
.gf-wrapper a {
    color: inherit !important;
    text-decoration: none !important;
}
.gf-wrapper a:hover { color: inherit !important; }
.gf-wrapper ul, .gf-wrapper ol {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.gf-wrapper img { border: none !important; box-shadow: none !important; }
.gf-wrapper * {
    font-family: 'Outfit', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

/* ── Reset & Root ─────────────────────────────────────────────────────────── */
.gf-wrapper {
    --gf-gold:          #EFB048;
    --gf-gold-light:    #F5C978;
    --gf-gold-dark:     #D4943A;
    --gf-terra:         #C65D1C;
    --gf-terra-light:   #E8875A;
    --gf-dark:          #1A1A1A;
    --gf-darker:        #0D0D0D;
    --gf-surface:       #1E1E1E;
    --gf-surface-2:     #252525;
    --gf-surface-3:     #2C2C2C;
    --gf-border:        rgba(239, 176, 72, 0.15);
    --gf-text:          #F0EAD6;
    --gf-text-muted:    rgba(240, 234, 214, 0.55);
    --gf-radius:        16px;
    --gf-radius-sm:     10px;
    --gf-radius-lg:     24px;
    --gf-shadow:        0 4px 24px rgba(0, 0, 0, 0.35);
    --gf-glow:          0 0 40px rgba(239, 176, 72, 0.18);

    /* Colors for skill levels */
    --gf-excellent:     #4ADE80;
    --gf-good:          #EFB048;
    --gf-average:       #F5C978;
    --gf-needs-work:    #E8875A;
    --gf-empty:         #444;

    font-family: 'Outfit', sans-serif;
    background: #0D0D0D;
    color: var(--gf-text);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 40px;
    -webkit-font-smoothing: antialiased;
}

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

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.gf-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0D0D0D 0%, #1C1408 50%, #120E00 100%);
    border-bottom: 1px solid var(--gf-border);
    padding: 52px 48px 44px;
    width: 100%;
}

.gf-hero__bg-glow {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(239,176,72,0.12) 0%, transparent 65%);
    pointer-events: none;
}

.gf-hero__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 36px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Avatar */
.gf-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.gf-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 3px solid var(--gf-gold);
    object-fit: cover;
    box-shadow: 0 0 0 6px rgba(239,176,72,0.12), var(--gf-glow);
    display: block;
}

.gf-avatar--placeholder {
    background: var(--gf-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gf-level-badge {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1.5px solid transparent;
}

.gf-level-badge--foundation {
    background: rgba(239,176,72,0.15);
    color: var(--gf-gold);
    border-color: rgba(239,176,72,0.4);
}
.gf-level-badge--core {
    background: rgba(198,93,28,0.15);
    color: var(--gf-terra-light);
    border-color: rgba(198,93,28,0.4);
}
.gf-level-badge--mastery {
    background: linear-gradient(135deg, rgba(239,176,72,0.2), rgba(198,93,28,0.2));
    color: var(--gf-gold-light);
    border-color: var(--gf-gold);
}

/* Hero Info */
.gf-hero__info {
    flex: 1;
    min-width: 0;
}

.gf-hero__logo {
    margin-bottom: 12px;
}
.gf-logo-img {
    height: 36px !important;
    width: auto !important;
    display: block !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    opacity: 0.9;
    filter: brightness(1.1);
}

/* Nome + score na mesma linha */
.gf-hero__name-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.gf-hero__name {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    flex: 1;
    min-width: 0;
}

.gf-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.gf-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--gf-surface-2);
    border: 1px solid var(--gf-border);
    color: var(--gf-text);
}
.gf-tag svg { opacity: 0.7; }

.gf-overall-score {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    background: var(--gf-surface-2);
    border: 1px solid var(--gf-border);
    border-radius: var(--gf-radius-sm);
    padding: 10px 20px;
    flex-shrink: 0;
}
.gf-overall-score__label {
    font-size: 12px;
    font-weight: 500;
    color: var(--gf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.gf-overall-score__value {
    font-size: 26px;
    font-weight: 800;
    color: var(--gf-gold);
    letter-spacing: -0.02em;
}
.gf-overall-score__value span {
    font-size: 13px;
    color: var(--gf-text-muted);
    font-weight: 400;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.gf-section {
    margin: 32px auto 0;
    max-width: 1200px;
    width: calc(100% - 96px);
    background: var(--gf-surface);
    border: 1px solid var(--gf-border);
    border-radius: var(--gf-radius-lg);
    padding: 32px 36px;
    box-shadow: var(--gf-shadow);
}

.gf-section__title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
    font-weight: 700;
    color: var(--gf-gold);
    letter-spacing: 0.02em;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gf-border);
}
.gf-section__title svg { color: var(--gf-gold); opacity: 0.8; }

/* ── Journey ──────────────────────────────────────────────────────────────── */
.gf-journey__path {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 28px;
    padding: 8px 0;
    width: 100%;
}

.gf-journey__node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.gf-journey__dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gf-border);
    transition: all 0.3s ease;
}

.gf-journey__node--done .gf-journey__dot {
    background: var(--gf-gold);
    border-color: var(--gf-gold);
    color: var(--gf-dark);
    box-shadow: 0 0 16px rgba(239,176,72,0.4);
}
.gf-journey__node--current .gf-journey__dot {
    background: linear-gradient(135deg, var(--gf-gold), var(--gf-terra));
    border-color: var(--gf-gold-light);
    color: var(--gf-dark);
    box-shadow: 0 0 24px rgba(239,176,72,0.5), 0 0 8px rgba(239,176,72,0.3);
    transform: scale(1.12);
}
.gf-journey__node--upcoming .gf-journey__dot {
    background: var(--gf-surface-3);
    border-color: var(--gf-border);
    color: var(--gf-text-muted);
}

.gf-journey__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.gf-journey__node--done .gf-journey__label    { color: var(--gf-gold); }
.gf-journey__node--current .gf-journey__label { color: var(--gf-gold-light); }
.gf-journey__node--upcoming .gf-journey__label{ color: var(--gf-text-muted); }

.gf-journey__you {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gf-gold);
    background: rgba(239,176,72,0.12);
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
}

.gf-journey__line {
    flex: 1;
    height: 2px;
    min-width: 40px;
    margin-top: -22px; /* align with dot center */
}
.gf-journey__line--done     { background: linear-gradient(90deg, var(--gf-gold), var(--gf-gold)); }
.gf-journey__line--upcoming { background: var(--gf-surface-3); }

/* Progress Bar */
.gf-progress-block {
    background: var(--gf-surface-2);
    border: 1px solid var(--gf-border);
    border-radius: var(--gf-radius);
    padding: 18px 20px;
}

.gf-progress-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--gf-text);
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 6px;
}
.gf-progress-block__next {
    font-size: 12px;
    font-weight: 500;
    color: var(--gf-gold);
    background: rgba(239,176,72,0.1);
    padding: 3px 10px;
    border-radius: 20px;
}
.gf-progress-block__next--mastery {
    color: var(--gf-excellent);
    background: rgba(74,222,128,0.1);
}

.gf-progress-bar__track {
    height: 12px;
    background: var(--gf-surface-3);
    border-radius: 8px;
    overflow: visible;
    position: relative;
}

.gf-progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gf-terra), var(--gf-gold));
    border-radius: 8px;
    position: relative;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(239,176,72,0.3);
}

.gf-progress-bar__thumb {
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: var(--gf-gold-light);
    border: 3px solid var(--gf-dark);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(239,176,72,0.6);
}

.gf-progress-block__detail {
    font-size: 12px;
    color: var(--gf-text-muted);
    margin-top: 10px;
}

/* ── Skills ───────────────────────────────────────────────────────────────── */
.gf-skills__layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 640px) {
    .gf-skills__layout { grid-template-columns: 1fr; }
    .gf-skills__radar-wrap { margin: 0 auto; max-width: 260px; }
}

.gf-skills__radar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gf-surface-2);
    border: 1px solid var(--gf-border);
    border-radius: var(--gf-radius);
    padding: 16px;
}

.gf-skills__bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gf-skill-row {
    display: grid;
    grid-template-columns: 110px 1fr 38px;
    align-items: center;
    gap: 10px;
}

.gf-skill-row__label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gf-text);
}

.gf-skill-row__track {
    height: 8px;
    background: var(--gf-surface-3);
    border-radius: 6px;
    overflow: hidden;
}

.gf-skill-row__fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.gf-skill-row__fill--excellent  { background: linear-gradient(90deg, #16A34A, #4ADE80); }
.gf-skill-row__fill--good       { background: linear-gradient(90deg, var(--gf-terra), var(--gf-gold)); }
.gf-skill-row__fill--average    { background: linear-gradient(90deg, #B45309, var(--gf-gold-light)); }
.gf-skill-row__fill--needs-work { background: linear-gradient(90deg, #9A3412, var(--gf-terra-light)); }
.gf-skill-row__fill--empty      { background: var(--gf-surface-3); }

.gf-skill-row__score {
    font-size: 13px;
    font-weight: 700;
    color: var(--gf-gold);
    text-align: right;
}
.gf-skill-row__score--empty { color: var(--gf-text-muted); }

/* ── Evolution Chart ──────────────────────────────────────────────────────── */
.gf-chart-wrap {
    background: var(--gf-surface-2);
    border: 1px solid var(--gf-border);
    border-radius: var(--gf-radius);
    padding: 20px;
}

/* ── Tests Grid ───────────────────────────────────────────────────────────── */
.gf-tests__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.gf-test-card {
    background: var(--gf-surface-2);
    border: 1px solid var(--gf-border);
    border-radius: var(--gf-radius);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gf-test-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), var(--gf-glow);
}

.gf-test-card--upcoming {
    opacity: 0.45;
    border-style: dashed;
}

.gf-test-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.gf-test-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.gf-test-card__periodo {
    font-size: 11px;
    color: var(--gf-text-muted);
    display: block;
    margin-top: 2px;
}

.gf-test-card__date {
    font-size: 11px;
    color: var(--gf-gold);
    display: block;
    margin-top: 3px;
}

.gf-test-card__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.gf-test-card__badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
}
.gf-test-card__badge--trimestral {
    background: rgba(239,176,72,0.12);
    color: var(--gf-gold);
    border: 1px solid rgba(239,176,72,0.3);
}
.gf-test-card__badge--semestral {
    background: rgba(198,93,28,0.12);
    color: var(--gf-terra-light);
    border: 1px solid rgba(198,93,28,0.3);
}

.gf-test-card__avg {
    font-size: 22px;
    font-weight: 800;
    color: var(--gf-gold);
    line-height: 1;
}
.gf-test-card__avg small {
    font-size: 11px;
    font-weight: 400;
    color: var(--gf-text-muted);
}

.gf-test-card__pending {
    font-size: 12px;
    color: var(--gf-text-muted);
    text-align: center;
    padding: 16px 0 4px;
}

/* Test skills mini-bars */
.gf-test-card__skills {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gf-test-skill {
    display: grid;
    grid-template-columns: 90px 1fr 32px;
    align-items: center;
    gap: 8px;
}
.gf-test-skill__name  { font-size: 11px; color: var(--gf-text-muted); font-weight: 500; }
.gf-test-skill__bar-track {
    height: 5px;
    background: var(--gf-surface-3);
    border-radius: 4px;
    overflow: hidden;
}
.gf-test-skill__bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}
.gf-test-skill__score { font-size: 11px; font-weight: 700; color: var(--gf-gold); text-align: right; }

/* Teacher comment */
.gf-test-card__comment {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--gf-border);
}
.gf-test-card__comment-header {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gf-terra-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.gf-test-card__comment p {
    font-size: 13px;
    color: var(--gf-text-muted);
    line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.gf-footer {
    margin: 40px auto 0;
    max-width: 1200px;
    width: calc(100% - 96px);
    text-align: center;
    padding: 28px;
    border-top: 1px solid var(--gf-border);
}
.gf-footer__logo-img {
    height: 30px !important;
    width: auto !important;
    display: block !important;
    margin: 0 auto 8px !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    opacity: 0.6;
}
.gf-footer__text {
    font-size: 12px;
    color: var(--gf-text-muted);
}

/* ── Share Banner — seção de compartilhamento ────────────────────────────── */
.gf-share-banner {
    width: calc(100% - 96px);
    max-width: 1200px;
    margin: 32px auto 0;
    background: linear-gradient(135deg, var(--gf-surface) 0%, rgba(198,93,28,0.12) 100%);
    border: 1px solid rgba(239,176,72,0.25);
    border-radius: var(--gf-radius);
    overflow: hidden;
    position: relative;
}
.gf-share-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gf-terra), var(--gf-gold), var(--gf-terra));
}
.gf-share-banner__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 28px 32px;
}
.gf-share-banner__text { flex: 1; }
.gf-share-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gf-gold);
    margin-bottom: 8px;
}
.gf-share-banner__title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--gf-text) !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
}
.gf-share-banner__sub {
    font-size: 14px !important;
    color: var(--gf-text-muted) !important;
}
.gf-share-banner__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.gf-share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gf-surface-2);
    border: 1px solid var(--gf-border);
    border-radius: 12px;
    padding: 12px 18px;
    color: var(--gf-text);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    white-space: nowrap;
}
.gf-share-btn:hover {
    background: var(--gf-surface-3) !important;
    border-color: rgba(239,176,72,0.4) !important;
    transform: translateY(-2px) !important;
}
.gf-share-btn:focus,
.gf-share-btn:focus-visible {
    outline: 2px solid rgba(239,176,72,0.5) !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
    background: var(--gf-surface-2) !important;
    color: var(--gf-text) !important;
}
.gf-share-btn:active {
    background: var(--gf-surface-3) !important;
    border-color: rgba(239,176,72,0.55) !important;
    color: var(--gf-text) !important;
    box-shadow: none !important;
    transform: translateY(0) !important;
    outline: none !important;
}
.gf-share-btn svg { color: var(--gf-gold); flex-shrink: 0; }
.gf-share-btn__text {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.gf-share-btn__text span {
    font-size: 13px;
    font-weight: 700;
    color: var(--gf-text);
}
.gf-share-btn__text small {
    font-size: 11px;
    color: var(--gf-text-muted);
    margin-top: 1px;
}
.gf-share-btn--pdf { border-color: rgba(198,93,28,0.35); }
.gf-share-btn--pdf svg { color: var(--gf-terra-light); }
.gf-share-btn--insta svg { color: var(--gf-gold); }
.gf-share-btn--levelup { border-color: rgba(74,222,128,0.3); }
.gf-share-btn--levelup svg { color: #4ADE80; }

/* FAB legacy placeholder — mantido vazio para evitar quebrar referências */
.gf-fab-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.gf-fab-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.gf-fab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gf-surface-2);
    border: 1px solid var(--gf-border);
    border-radius: 30px;
    padding: 10px 18px 10px 14px;
    color: var(--gf-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.gf-fab-item:hover {
    background: var(--gf-surface-3);
    box-shadow: 0 4px 16px rgba(239,176,72,0.2);
    color: var(--gf-gold);
}
.gf-fab-item svg { color: var(--gf-gold); flex-shrink: 0; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .gf-section { width: calc(100% - 48px); padding: 24px 20px; }
    .gf-footer  { width: calc(100% - 48px); }
    .gf-share-banner { width: calc(100% - 48px); }
    .gf-share-banner__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .gf-share-banner__actions { width: 100%; }
}
@media (max-width: 600px) {
    .gf-hero { padding: 32px 20px 28px; }
    .gf-hero__inner { flex-direction: column; text-align: center; }
    .gf-hero__name-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .gf-hero__tags { justify-content: flex-start; }
    .gf-overall-score { width: 100%; justify-content: center; }
    .gf-section { width: calc(100% - 24px); margin: 16px auto 0; padding: 20px 16px; }
    .gf-footer  { width: calc(100% - 24px); }
    .gf-share-banner { width: calc(100% - 24px); }
    .gf-share-banner__inner { padding: 20px 20px; }
    .gf-share-banner__actions { flex-direction: column; }
    .gf-share-btn { width: 100%; justify-content: flex-start; }
    .gf-tests__grid { grid-template-columns: 1fr; }
    .gf-journey__line { min-width: 30px; }
}

/* ══ Modal de compartilhamento ══════════════════════════════════════════════ */
.gf-share-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.gf-share-modal[aria-hidden="true"] { display: none !important; }

.gf-share-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.gf-share-modal__box {
    position: relative;
    background: #1E1E1E;
    border: 1px solid rgba(239, 176, 72, 0.2);
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(239,176,72,0.08);
    animation: gf-modal-in 0.25s ease;
}
@keyframes gf-modal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.gf-share-modal__close {
    position: absolute !important;
    top: 16px !important; right: 16px !important;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 50% !important;
    width: 36px !important; height: 36px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    color: rgba(240,234,214,0.75) !important;
    cursor: pointer !important;
    transition: background 0.2s, color 0.2s !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    line-height: 1 !important;
}
.gf-share-modal__close:hover  { background: rgba(255,255,255,0.14) !important; color: #fff !important; }
.gf-share-modal__close:focus,
.gf-share-modal__close:active { outline: none !important; box-shadow: none !important; background: rgba(255,255,255,0.10) !important; color: rgba(240,234,214,0.75) !important; }
.gf-share-modal__close svg    { display: block !important; stroke: currentColor !important; }

.gf-share-modal__header { margin-bottom: 20px; }
.gf-share-modal__eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: #EFB048; margin-bottom: 8px;
}
.gf-share-modal__title {
    font-size: 20px !important; font-weight: 800 !important;
    color: #F0EAD6 !important; margin-bottom: 6px !important;
}
.gf-share-modal__sub {
    font-size: 13px !important; color: rgba(240,234,214,0.55) !important;
    line-height: 1.5 !important;
}
.gf-share-modal__sub strong { color: #EFB048; font-weight: 700; }

.gf-share-modal__preview {
    position: relative;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    min-height: 80px;
    display: flex; align-items: center; justify-content: center;
}
.gf-share-modal__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}
.gf-share-modal__img[src=""] { display: none; }

.gf-share-modal__loading {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 32px;
    color: rgba(240,234,214,0.5);
    font-size: 13px;
}
.gf-share-modal__loading.is-hidden { display: none; }
.gf-share-modal__spinner {
    width: 28px; height: 28px;
    border: 3px solid rgba(239,176,72,0.2);
    border-top-color: #EFB048;
    border-radius: 50%;
    animation: gf-spin 0.7s linear infinite;
}
@keyframes gf-spin { to { transform: rotate(360deg); } }

.gf-share-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.gf-share-modal__btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 14px; font-weight: 700;
    cursor: pointer; text-decoration: none;
    border: none; transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.gf-share-modal__btn:hover { transform: translateY(-2px) !important; }
.gf-share-modal__btn:focus,
.gf-share-modal__btn:focus-visible { outline: 2px solid rgba(239,176,72,0.5) !important; outline-offset: 2px !important; box-shadow: none !important; }
.gf-share-modal__btn:active { transform: translateY(0) !important; outline: none !important; box-shadow: none !important; }
.gf-share-modal__btn--download {
    background: linear-gradient(135deg, #C65D1C, #EFB048) !important;
    color: #0D0D0D !important;
    box-shadow: 0 4px 16px rgba(239,176,72,0.3) !important;
}
.gf-share-modal__btn--download:hover { box-shadow: 0 6px 24px rgba(239,176,72,0.45) !important; }
.gf-share-modal__btn--download:focus,
.gf-share-modal__btn--download:active { background: linear-gradient(135deg, #C65D1C, #EFB048) !important; color: #0D0D0D !important; }
.gf-share-modal__btn--insta {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(253,29,29,0.25) !important;
}
.gf-share-modal__btn--insta:hover { box-shadow: 0 6px 24px rgba(253,29,29,0.35) !important; }
.gf-share-modal__btn--insta:focus,
.gf-share-modal__btn--insta:active { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045) !important; color: #fff !important; }

@media (max-width: 480px) {
    .gf-share-modal__box { padding: 24px 20px; }
    .gf-share-modal__actions { grid-template-columns: 1fr; }
}
