:root {
    --green: #70e000;
    --dark: #0f172a;
    --soft: #f3fff1;
    --card: rgba(255,255,255,.86);
    --line: rgba(15,23,42,.12);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--dark);
    background:
        radial-gradient(circle at top left, #d9ffbf, transparent 32%),
        radial-gradient(circle at top right, #ffe6a7, transparent 28%),
        linear-gradient(135deg, #f8fff4, #e8ffe8 45%, #ffffff);
    min-height: 100vh;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 18px 7%;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(14px);
    background: rgba(255,255,255,.78);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 30px;
    background: linear-gradient(135deg, #b6ff6a, #4ade80);
    box-shadow: 0 14px 30px rgba(34,197,94,.25);
}
.brand h1 { margin: 0; font-size: 22px; }
.brand span { color: #64748b; font-size: 13px; }
nav { display: flex; gap: 10px; flex-wrap: wrap; }
nav a {
    text-decoration: none;
    color: var(--dark);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
}
nav a.active, nav a:hover { background: var(--dark); color: white; }
main { width: 86%; margin: 0 auto; padding: 34px 0 60px; }
.hero {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 28px;
    align-items: center;
    padding: 42px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(15,23,42,.95), rgba(22,101,52,.92));
    color: white;
    overflow: hidden;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    right: -80px;
    top: -80px;
    background: rgba(112,224,0,.28);
}
.badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.2);
}
.hero h2 { font-size: clamp(34px, 6vw, 64px); margin: 12px 0; line-height: 1; }
.hero p { line-height: 1.7; color: #e2e8f0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn, button {
    border: 0;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.primary { background: linear-gradient(135deg, #70e000, #a3e635); color: #10210c; }
.secondary { background: rgba(255,255,255,.16); color: white; border: 1px solid rgba(255,255,255,.28); }
.hero-card {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 28px;
    padding: 28px;
    text-align: center;
    backdrop-filter: blur(10px);
}
.nailong-face { font-size: 110px; filter: drop-shadow(0 18px 20px rgba(0,0,0,.2)); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 26px 0;
}
.stat-card, .info-card, .form-card, .list-card, .result-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 55px rgba(15,23,42,.08);
}
.stat-card h3 { margin: 0; font-size: 38px; color: #15803d; }
.stat-card p { margin-bottom: 0; color: #64748b; font-weight: 700; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card h3, .form-card h3, .list-card h3 { margin-top: 0; }
.info-card p, .info-card li { line-height: 1.7; }
.page-title { text-align: center; margin-bottom: 26px; }
.page-title h2 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 8px; }
.page-title p { color: #64748b; }
.two-column { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; align-items: start; }
label { display: block; font-weight: 700; margin: 14px 0 8px; }
input[type="text"], textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 15px;
    background: white;
}
.alert { background: #dcfce7; border: 1px solid #86efac; color: #166534; padding: 12px; border-radius: 14px; margin-bottom: 12px; }
.comment-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.comment-item:last-child { border-bottom: none; }
.comment-item p { margin: 8px 0; line-height: 1.6; }
.comment-item small { color: #64748b; }
.question-card {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfff8;
}
.radio-label { font-weight: 500; margin: 9px 0; }
table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 16px; }
th, td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #ecfccb; }
.result-box { margin-bottom: 22px; text-align: center; }
.vote-option {
    border: 1px solid var(--line);
    background: white;
    padding: 16px;
    border-radius: 18px;
    margin: 12px 0;
    display: flex;
    gap: 12px;
    align-items: center;
}
.vote-option span { font-size: 22px; }
.bar-row { margin: 20px 0; }
.bar-label { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 800; }
.bar-bg { height: 18px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #65a30d, #bef264); transition: width .5s; }
footer { text-align: center; padding: 24px; color: #64748b; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
    .navbar { flex-direction: column; align-items: flex-start; }
    main { width: 92%; }
    .hero, .two-column, .content-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .hero { padding: 26px; }
    .stats-grid { grid-template-columns: 1fr; }
    nav a { padding: 9px 11px; }
}

.about-hero {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(133, 255, 69, 0.25), transparent 35%),
        linear-gradient(135deg, #111827, #184436, #2f7d28);
    border-radius: 34px;
    padding: 55px;
    color: white;
    margin-bottom: 35px;
    overflow: hidden;
    position: relative;
}

.about-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    background: rgba(120, 255, 0, 0.25);
    border-radius: 50%;
}

.about-hero-text {
    position: relative;
    z-index: 2;
}

.about-hero-text h2 {
    font-size: 56px;
    line-height: 1.05;
    margin: 22px 0;
    color: #ffffff;
}

.about-hero-text p {
    color: #e8fff0;
    font-size: 18px;
    line-height: 1.8;
    max-width: 820px;
}

.about-hero-visual {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 30px;
    padding: 35px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.about-hero-visual h3 {
    color: #ffffff;
    margin-top: 16px;
}

.about-hero-visual p {
    color: #dfffe7;
    font-weight: 600;
}

.about-nailong-face {
    width: 170px;
    height: 160px;
    background: linear-gradient(145deg, #ffe45e, #ffb703);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    box-shadow: inset -12px -15px 22px rgba(218, 142, 0, 0.28);
}

.about-nailong-face::before,
.about-nailong-face::after {
    content: "";
    position: absolute;
    top: 25px;
    width: 42px;
    height: 42px;
    background: #ffd60a;
    border-radius: 50%;
}

.about-nailong-face::before {
    left: -12px;
}

.about-nailong-face::after {
    right: -12px;
}

.about-eye {
    width: 25px;
    height: 34px;
    background: #102a12;
    border-radius: 50%;
    position: absolute;
    top: 58px;
    z-index: 3;
}

.about-eye::after {
    content: "";
    width: 8px;
    height: 10px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 6px;
}

.about-eye.left {
    left: 48px;
}

.about-eye.right {
    right: 48px;
}

.about-mouth {
    width: 38px;
    height: 20px;
    border-bottom: 5px solid #6b3e00;
    border-radius: 0 0 40px 40px;
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
}

.about-cheek {
    width: 24px;
    height: 13px;
    background: rgba(255, 133, 102, 0.45);
    border-radius: 50%;
    position: absolute;
    top: 100px;
}

.about-cheek.left {
    left: 28px;
}

.about-cheek.right {
    right: 28px;
}

.about-intro {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 35px;
}

.about-image-card {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.8), transparent 38%),
        linear-gradient(145deg, #fff8c9, #ffd84d, #ffb703);
    border-radius: 34px;
    padding: 45px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(255, 183, 3, 0.22);
}

.big-nailong-emoji {
    font-size: 130px;
    filter: drop-shadow(0 18px 18px rgba(122, 79, 0, 0.22));
}

.about-description {
    background: #ffffff;
    border-radius: 28px;
    padding: 34px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
}

.about-description h2 {
    color: #102a12;
    font-size: 32px;
    margin-bottom: 16px;
}

.about-description p {
    color: #506078;
    line-height: 1.8;
    margin-bottom: 14px;
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 42px;
}

.fact-card {
    background: linear-gradient(180deg, #ffffff, #f8fff2);
    border-radius: 24px;
    padding: 24px 16px;
    text-align: center;
    border: 1px solid rgba(27, 112, 50, 0.12);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.05);
    transition: 0.25s;
}

.fact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.1);
}

.fact-card span {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
}

.fact-card h3 {
    color: #102a12;
    font-size: 16px;
    margin-bottom: 6px;
}

.fact-card p {
    color: #0b7a3b;
    font-weight: 800;
}

.personality-section,
.about-gallery-section {
    margin-top: 45px;
}

.section-heading {
    text-align: center;
    margin-bottom: 28px;
}

.section-heading h2 {
    color: #102a12;
    font-size: 34px;
}

.section-heading p {
    color: #64748b;
    font-weight: 500;
}

.personality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.personality-card {
    background: #ffffff;
    border-radius: 26px;
    padding: 28px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    transition: 0.25s;
}

.personality-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.1);
}

.personality-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, #eaffce, #85f000);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 18px;
}

.personality-card h3 {
    color: #102a12;
    margin-bottom: 10px;
}

.personality-card p {
    color: #64748b;
    line-height: 1.7;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.about-gallery-card {
    background:
        radial-gradient(circle at top, #ffffff, transparent 45%),
        linear-gradient(145deg, #fff8c9, #ffd84d);
    border-radius: 26px;
    padding: 26px;
    text-align: center;
    border: 2px solid #ffe066;
    box-shadow: 0 14px 28px rgba(255, 183, 3, 0.18);
    transition: 0.25s;
}

.about-gallery-card:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 20px 38px rgba(255, 183, 3, 0.3);
}

.about-gallery-card div {
    width: 82px;
    height: 82px;
    background: linear-gradient(145deg, #ffe45e, #ffb703);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

.about-gallery-card h4 {
    color: #6b4a00;
}

@media (max-width: 1000px) {
    .about-hero,
    .about-intro {
        grid-template-columns: 1fr;
    }

    .fact-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .about-hero-text h2 {
        font-size: 42px;
    }
}

@media (max-width: 600px) {
    .about-hero {
        padding: 32px;
    }

    .fact-grid,
    .personality-grid,
    .about-gallery {
        grid-template-columns: 1fr;
    }

    .about-hero-text h2 {
        font-size: 34px;
    }
}

.about-hero-real {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: center;
    background: linear-gradient(135deg, #122033, #1a5a3a, #3c8a2e);
    border-radius: 32px;
    padding: 45px;
    color: white;
    margin-bottom: 35px;
}

.about-hero-real .badge {
    background: rgba(255,255,255,0.15);
    color: #fff6bf;
    border: 1px solid rgba(255,255,255,0.2);
}

.about-hero-real h2 {
    font-size: 52px;
    margin: 18px 0;
    line-height: 1.05;
    color: #ffffff;
}

.about-hero-real p {
    color: #eefbf1;
    line-height: 1.8;
}

.about-facts-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.about-facts-inline span {
    background: rgba(255,255,255,0.12);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
}

.about-hero-photo img {
    width: 100%;
    max-width: 360px;
    height: 360px;
    object-fit: cover;
    border-radius: 28px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 18px 35px rgba(0,0,0,0.18);
}

.about-story {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 35px;
}

.story-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.story-card h3 {
    color: #102a12;
    margin-bottom: 14px;
    font-size: 28px;
}

.story-card p {
    color: #59667c;
    line-height: 1.8;
    margin-bottom: 12px;
}

.story-side-image img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 16px 30px rgba(0,0,0,0.1);
}

.real-gallery-section {
    margin-top: 45px;
}

.real-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.real-gallery-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: 0.25s;
}

.real-gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.14);
}

.real-gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.real-gallery-card h4 {
    padding: 16px;
    margin: 0;
    color: #102a12;
    text-align: center;
}

@media (max-width: 1000px) {
    .about-hero-real,
    .about-story {
        grid-template-columns: 1fr;
    }

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

    .about-hero-real h2 {
        font-size: 40px;
    }
}

@media (max-width: 600px) {
    .real-gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-hero-real {
        padding: 30px;
    }

    .about-hero-real h2 {
        font-size: 32px;
    }

    .about-hero-photo img {
        height: 280px;
    }
}

.hero-nailong-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    margin: 0 auto 18px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

.real-gallery-card {
    cursor: pointer;
}

.real-gallery-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: 0.25s ease;
}

.real-gallery-card:hover img {
    transform: scale(1.04);
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.image-modal.show {
    display: flex;
}

.image-modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.image-modal-content img {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 18px;
    display: block;
    background: #f8fafc;
}

.image-modal-content h3 {
    margin-top: 14px;
    color: #102a12;
}

.image-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #111827;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.image-modal-close:hover {
    background: #ef4444;
}

@media (max-width: 600px) {
    .real-gallery-card img {
        height: 260px;
    }

    .image-modal-content {
        padding: 12px;
    }

    .image-modal-content img {
        max-height: 70vh;
    }
}


/* ============================= */
/* FAN CARD DESIGNER PAGE */
/* ============================= */

.fan-card-page {
    min-height: 100vh;
    padding: 45px 7%;
    background:
        radial-gradient(circle at top left, rgba(255, 222, 89, 0.45), transparent 35%),
        radial-gradient(circle at bottom right, rgba(255, 179, 71, 0.35), transparent 35%),
        linear-gradient(135deg, #fffdf2, #fff3c4);
}

.fan-card-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 35px;
}

.fan-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    color: #d18a00;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(184, 124, 0, 0.14);
    margin-bottom: 14px;
}

.fan-card-header h1 {
    font-size: 42px;
    color: #553600;
    margin-bottom: 12px;
}

.fan-card-header p {
    color: #806118;
    line-height: 1.7;
    font-size: 16px;
}

.fan-card-wrapper {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
    align-items: start;
}

.designer-panel,
.preview-panel {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 218, 116, 0.8);
    border-radius: 30px;
    padding: 26px;
    box-shadow: 0 18px 45px rgba(150, 100, 0, 0.15);
    backdrop-filter: blur(12px);
}

.designer-panel h2,
.preview-panel h2 {
    color: #543800;
    margin-bottom: 6px;
    font-size: 24px;
}

.panel-desc,
.preview-panel p {
    color: #8a6a22;
    font-size: 14px;
}

.form-group {
    margin-top: 20px;
}

.form-group label {
    display: block;
    color: #604300;
    font-weight: 800;
    margin-bottom: 9px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    border: 2px solid #ffe08a;
    background: #fffdfa;
    border-radius: 18px;
    padding: 13px 15px;
    color: #5e4300;
    font-size: 15px;
    outline: none;
    transition: 0.25s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #ffb800;
    box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.18);
}

.theme-options,
.shape-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}

.theme-btn,
.shape-btn {
    border: 2px solid #ffe29c;
    background: #fffdf7;
    border-radius: 16px;
    padding: 11px 12px;
    cursor: pointer;
    color: #684b00;
    font-weight: 800;
    transition: 0.25s ease;
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.theme-btn:hover,
.shape-btn:hover,
.theme-btn.active,
.shape-btn.active {
    border-color: #ffb300;
    background: #fff2bd;
    transform: translateY(-2px);
}

.theme-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
}

.theme-dot.sunny {
    background: linear-gradient(135deg, #ffb800, #fff176);
}

.theme-dot.pink {
    background: linear-gradient(135deg, #ff7eb3, #ffd1e3);
}

.theme-dot.blue {
    background: linear-gradient(135deg, #4aa3ff, #cbe8ff);
}

.theme-dot.purple {
    background: linear-gradient(135deg, #9b5cff, #e0c9ff);
}

.designer-actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

.random-btn,
.reset-btn {
    width: 100%;
    border: none;
    border-radius: 18px;
    padding: 13px 16px;
    cursor: pointer;
    font-weight: 900;
    transition: 0.25s ease;
}

.random-btn {
    background: linear-gradient(135deg, #ffb300, #ff8c00);
    color: white;
    box-shadow: 0 10px 22px rgba(255, 152, 0, 0.26);
}

.reset-btn {
    background: #fff;
    color: #bf7900;
    border: 2px solid #ffd56a;
}

.random-btn:hover,
.reset-btn:hover {
    transform: translateY(-3px);
}

.preview-panel {
    position: sticky;
    top: 20px;
}

.preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.fan-card-preview {
    position: relative;
    max-width: 470px;
    min-height: 610px;
    margin: 0 auto;
    padding: 28px;
    overflow: hidden;
    box-shadow: 0 25px 55px rgba(110, 75, 0, 0.28);
    transition: 0.3s ease;
}

.fan-card-preview::before {
    content: "";
    position: absolute;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    top: -90px;
    right: -90px;
    background: rgba(255, 255, 255, 0.32);
}

.fan-card-preview::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    bottom: -70px;
    left: -70px;
    background: rgba(255, 255, 255, 0.25);
}

.fan-card-preview.sunny {
    background: linear-gradient(145deg, #ffd84f, #ffae00, #fff2a8);
}

.fan-card-preview.pink {
    background: linear-gradient(145deg, #ff9ac8, #ff6fa9, #ffe2ef);
}

.fan-card-preview.blue {
    background: linear-gradient(145deg, #75c8ff, #2d9cff, #dff3ff);
}

.fan-card-preview.purple {
    background: linear-gradient(145deg, #b78cff, #8d5bff, #efe3ff);
}

.fan-card-preview.rounded {
    border-radius: 36px;
}

.fan-card-preview.soft {
    border-radius: 18px 55px 18px 55px;
}

.fan-card-preview.ticket {
    border-radius: 34px;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 42%,
        96% 50%,
        100% 58%,
        100% 100%,
        0 100%,
        0 58%,
        4% 50%,
        0 42%
    );
}

.card-decoration {
    position: absolute;
    z-index: 2;
    font-size: 34px;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.1));
}

.decor-1 {
    left: 28px;
    top: 90px;
}

.decor-2 {
    right: 30px;
    bottom: 105px;
}

.card-top,
.character-circle,
.fan-card-preview h3,
.fan-card-preview p,
.mood-chip,
.card-footer-info {
    position: relative;
    z-index: 4;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(70, 45, 0, 0.8);
    font-weight: 900;
    font-size: 14px;
}

.card-top strong {
    background: rgba(255, 255, 255, 0.55);
    padding: 8px 12px;
    border-radius: 999px;
}

.character-circle {
    width: 185px;
    height: 185px;
    margin: 58px auto 28px;
    background: rgba(255, 255, 255, 0.78);
    border: 7px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 8px 18px rgba(255, 255, 255, 0.8),
        0 18px 35px rgba(90, 60, 0, 0.18);
}

.character-circle span {
    font-size: 92px;
}

.fan-card-preview h3 {
    text-align: center;
    color: #503400;
    font-size: 35px;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.fan-card-preview p {
    text-align: center;
    color: rgba(72, 48, 0, 0.78);
    font-size: 16px;
    font-weight: 800;
}

.mood-chip {
    width: fit-content;
    margin: 28px auto 0;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: #5c3d00;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(90, 60, 0, 0.12);
}

.card-footer-info {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    display: flex;
    justify-content: space-between;
    color: rgba(65, 42, 0, 0.75);
    font-weight: 900;
    font-size: 13px;
}

.download-note {
    max-width: 470px;
    margin: 18px auto 0;
    background: #fff8d7;
    border: 1px dashed #e9b600;
    color: #7a5a00;
    padding: 12px 16px;
    border-radius: 18px;
    text-align: center;
}

.download-note p {
    margin: 0;
    font-weight: 700;
}

@media (max-width: 950px) {
    .fan-card-wrapper {
        grid-template-columns: 1fr;
    }

    .preview-panel {
        position: static;
    }
}

@media (max-width: 560px) {
    .fan-card-page {
        padding: 32px 5%;
    }

    .fan-card-header h1 {
        font-size: 31px;
    }

    .designer-panel,
    .preview-panel {
        padding: 20px;
        border-radius: 24px;
    }

    .theme-options,
    .shape-options {
        grid-template-columns: 1fr;
    }

    .designer-actions {
        flex-direction: column;
    }

    .fan-card-preview {
        min-height: 540px;
        padding: 22px;
    }

    .character-circle {
        width: 150px;
        height: 150px;
        margin-top: 46px;
    }

    .character-circle span {
        font-size: 76px;
    }

    .fan-card-preview h3 {
        font-size: 28px;
    }

    .card-footer-info {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

.character-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.character-btn {
    border: 2px solid #ffe29c;
    background: #fffdf7;
    border-radius: 18px;
    padding: 6px;
    cursor: pointer;
    transition: 0.25s ease;
    height: 78px;
    overflow: hidden;
}

.character-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
    display: block;
}

.character-btn:hover,
.character-btn.active {
    border-color: #ffb300;
    background: #fff2bd;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(255, 179, 0, 0.25);
}

.character-circle {
    overflow: hidden;
}

.character-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 560px) {
    .character-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .character-btn {
        height: 95px;
    }
}

.download-btn {
    width: 100%;
    border: none;
    border-radius: 18px;
    padding: 13px 16px;
    cursor: pointer;
    font-weight: 900;
    transition: 0.25s ease;
    background: linear-gradient(135deg, #7c4dff, #a855f7);
    color: white;
    box-shadow: 0 10px 22px rgba(124, 77, 255, 0.26);
}

.download-btn:hover {
    transform: translateY(-3px);
}

@media (max-width: 560px) {
    .download-btn {
        width: 100%;
    }
}

/* ============================= */
/* NAILONG FAN CARD DESIGNER */
/* CSS TERPISAH DARI fan_card.php */
/* ============================= */

.fan-card-designer {
    --gold-50: #fffbeb;
    --gold-100: #fef3c7;
    --gold-200: #fde68a;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-600: #d97706;
    --gold-800: #92400e;
    --surface: #ffffff;
    --surface-2: #fffbee;
    --border: rgba(245, 158, 11, 0.2);
    --border-hover: rgba(245, 158, 11, 0.5);
    --text-primary: #1c1100;
    --text-secondary: #78580a;
    --text-muted: #a87c2a;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-xl: 28px;
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);

    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.5;
    padding-bottom: 70px;
}

.fan-card-designer *,
.fan-card-designer *::before,
.fan-card-designer *::after {
    box-sizing: border-box;
}

.fan-card-designer .page-header {
    text-align: center;
    padding: 56px 24px 40px;
    max-width: 680px;
    margin: 0 auto;
}

.fan-card-designer .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-600);
    background: var(--gold-100);
    border: 1px solid var(--gold-200);
    padding: 7px 16px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
}

.fan-card-designer .page-header h1 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 14px;
}

.fan-card-designer .page-header p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

.fan-card-designer .designer-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px;
    align-items: start;
}

.fan-card-designer .panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.fan-card-designer .panel-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.fan-card-designer .panel-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.fan-card-designer .field {
    margin-bottom: 20px;
}

.fan-card-designer .field label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.fan-card-designer .field input,
.fan-card-designer .field select {
    width: 100%;
    height: 42px;
    border: 1.5px solid var(--border);
    background-color: var(--surface-2);
    border-radius: var(--radius-md);
    padding: 0 14px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.fan-card-designer .field input:focus,
.fan-card-designer .field select:focus {
    border-color: var(--gold-400);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
    background: var(--surface);
}

.fan-card-designer .divider {
    height: 1px;
    background: var(--border);
    margin: 22px 0;
}

.fan-card-designer .chip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.fan-card-designer .chip-grid-2 {
    grid-template-columns: repeat(3, 1fr);
}

.fan-card-designer .theme-chip,
.fan-card-designer .shape-chip {
    position: relative;
    border: 1.5px solid var(--border);
    background: var(--surface-2);
    border-radius: var(--radius-md);
    padding: 10px 8px;
    cursor: pointer;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.fan-card-designer .theme-chip:hover,
.fan-card-designer .shape-chip:hover {
    border-color: var(--border-hover);
    background: var(--gold-50);
}

.fan-card-designer .theme-chip.active,
.fan-card-designer .shape-chip.active {
    border-color: var(--gold-500);
    background: var(--gold-100);
    color: var(--gold-800);
}

.fan-card-designer .theme-chip.active::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-500);
}

.fan-card-designer .dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: block;
}

.fan-card-designer .dot.sunny {
    background: conic-gradient(#fbbf24, #fde68a, #fbbf24);
}

.fan-card-designer .dot.pink {
    background: conic-gradient(#f472b6, #fbcfe8, #f472b6);
}

.fan-card-designer .dot.blue {
    background: conic-gradient(#60a5fa, #bfdbfe, #60a5fa);
}

.fan-card-designer .dot.purple {
    background: conic-gradient(#a78bfa, #ddd6fe, #a78bfa);
}

.fan-card-designer .dot.mint {
    background: conic-gradient(#34d399, #a7f3d0, #34d399);
}

.fan-card-designer .dot.peach {
    background: conic-gradient(#fb923c, #fed7aa, #fb923c);
}

.fan-card-designer .char-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.fan-card-designer .char-btn {
    border: 2px solid var(--border);
    background: var(--surface-2);
    border-radius: var(--radius-md);
    padding: 4px;
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 1;
    overflow: hidden;
}

.fan-card-designer .char-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.fan-card-designer .char-btn:hover {
    border-color: var(--gold-400);
    transform: translateY(-2px);
}

.fan-card-designer .char-btn.active {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.fan-card-designer .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
}

.fan-card-designer .fc-btn {
    min-height: 42px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px;
}

.fan-card-designer .fc-btn:hover {
    transform: translateY(-2px);
}

.fan-card-designer .btn-random {
    background: var(--gold-100);
    color: var(--gold-800);
    border: 1.5px solid var(--gold-200);
}

.fan-card-designer .btn-reset {
    background: var(--surface-2);
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
}

.fan-card-designer .btn-download {
    grid-column: span 2;
    height: 46px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    font-size: 15px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
}

.fan-card-designer .btn-download:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.38);
}

.fan-card-designer .preview-panel {
    position: sticky;
    top: 24px;
}

.fan-card-designer .preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.fan-card-designer .preview-hint {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--gold-50);
    border: 1px dashed var(--gold-200);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-top: 16px;
    text-align: center;
}

.fan-card-designer .fan-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    min-height: 560px;
    margin: 0 auto;
    padding: 24px;
    overflow: hidden;
    transition: 0.3s ease;
    cursor: default;
}

.fan-card-designer .fan-card.sunny {
    background: linear-gradient(145deg, #fef08a, #fbbf24, #fde68a);
}

.fan-card-designer .fan-card.pink {
    background: linear-gradient(145deg, #fbcfe8, #f472b6, #fce7f3);
}

.fan-card-designer .fan-card.blue {
    background: linear-gradient(145deg, #bfdbfe, #60a5fa, #eff6ff);
}

.fan-card-designer .fan-card.purple {
    background: linear-gradient(145deg, #ddd6fe, #a78bfa, #f5f3ff);
}

.fan-card-designer .fan-card.mint {
    background: linear-gradient(145deg, #a7f3d0, #34d399, #ecfdf5);
}

.fan-card-designer .fan-card.peach {
    background: linear-gradient(145deg, #fed7aa, #fb923c, #fff7ed);
}

.fan-card-designer .fan-card.rounded {
    border-radius: 36px;
}

.fan-card-designer .fan-card.soft {
    border-radius: 20px 50px 20px 50px;
}

.fan-card-designer .fan-card.ticket {
    border-radius: 32px;
    clip-path: polygon(0 0, 100% 0, 100% 40%, 97% 50%, 100% 60%, 100% 100%, 0 100%, 0 60%, 3% 50%, 0 40%);
}

.fan-card-designer .fan-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    top: -80px;
    right: -80px;
    background: rgba(255,255,255,0.28);
    pointer-events: none;
}

.fan-card-designer .fan-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    bottom: -60px;
    left: -60px;
    background: rgba(255,255,255,0.20);
    pointer-events: none;
}

.fan-card-designer .card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 4;
}

.fan-card-designer .card-label-text {
    font-size: 12px;
    font-weight: 900;
    color: rgba(60,35,0,0.65);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fan-card-designer .card-id-badge {
    font-size: 12px;
    font-weight: 900;
    background: rgba(255,255,255,0.55);
    color: rgba(60,35,0,0.75);
    padding: 5px 11px;
    border-radius: 999px;
}

.fan-card-designer .card-avatar-wrap {
    position: relative;
    z-index: 4;
    width: 160px;
    height: 160px;
    margin: 40px auto 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.65);
    padding: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.14), inset 0 0 0 2px rgba(255,255,255,0.5);
}

.fan-card-designer .card-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
}

.fan-card-designer .card-avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.fan-card-designer .card-body {
    position: relative;
    z-index: 4;
    text-align: center;
}

.fan-card-designer .card-subtitle-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.5);
    color: rgba(70,42,0,0.65);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.fan-card-designer .card-name {
    font-size: 30px;
    font-weight: 900;
    color: rgba(45,25,0,0.9);
    line-height: 1.1;
    margin-bottom: 6px;
    text-transform: capitalize;
}

.fan-card-designer .card-title {
    font-size: 14px;
    font-weight: 800;
    color: rgba(65,38,0,0.7);
    margin-bottom: 0;
}

.fan-card-designer .card-mood {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    min-width: 180px;
    margin: 22px auto 0;
    padding: 10px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.62);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.fan-card-designer .card-mood-label {
    font-size: 10px;
    font-weight: 900;
    color: rgba(70,42,0,0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.fan-card-designer .card-mood-value {
    font-size: 16px;
    font-weight: 900;
    color: rgba(55,30,0,0.85);
    margin-top: 2px;
}

.fan-card-designer .card-sticker {
    position: absolute;
    z-index: 6;
    right: 46px;
    top: 290px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    animation: fanCardFloat 3s ease-in-out infinite;
}

.fan-card-designer .card-deco {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    font-size: 26px;
    opacity: 0.6;
    animation: fanCardFloat 3.5s ease-in-out infinite;
}

.fan-card-designer .deco-a {
    left: 28px;
    top: 80px;
}

.fan-card-designer .deco-b {
    right: 32px;
    top: 130px;
    font-size: 22px;
    animation-delay: 0.6s;
}

.fan-card-designer .deco-c {
    right: 38px;
    bottom: 110px;
    font-size: 28px;
    animation-delay: 1.1s;
}

.fan-card-designer .deco-d {
    left: 34px;
    bottom: 88px;
    font-size: 24px;
    animation-delay: 0.4s;
}

@keyframes fanCardFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.fan-card-designer .card-footer {
    position: absolute;
    bottom: 22px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    z-index: 4;
    font-size: 12px;
    font-weight: 900;
    color: rgba(60,35,0,0.65);
}

@media (max-width: 900px) {
    .fan-card-designer .designer-layout {
        grid-template-columns: 1fr;
    }

    .fan-card-designer .preview-panel {
        position: static;
    }

    .fan-card-designer .fan-card {
        max-width: 380px;
    }
}

@media (max-width: 560px) {
    .fan-card-designer .page-header {
        padding: 36px 20px 28px;
    }

    .fan-card-designer .designer-layout {
        padding: 0 16px 60px;
        gap: 16px;
    }

    .fan-card-designer .panel {
        padding: 18px;
        border-radius: var(--radius-xl);
    }

    .fan-card-designer .chip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fan-card-designer .chip-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .fan-card-designer .fan-card {
        min-height: 500px;
    }

    .fan-card-designer .card-name {
        font-size: 24px;
    }

    .fan-card-designer .actions {
        grid-template-columns: 1fr;
    }

    .fan-card-designer .btn-download {
        grid-column: span 1;
    }
}