:root {
    --primary: #00f2fe;
    --primary-alt: #00e5ff;
    --primary-glow: rgba(0, 242, 254, 0.5);
    --secondary: #ff9100;
    --secondary-alt: #ffcc00;
    --secondary-glow: rgba(255, 145, 0, 0.5);
    --bg-dark: #000b14;
    --bg-card: #001624;
    --bg-input: #002233;
    --text-main: #e2f8ff;
    --text-muted: #88a9bc;
    --border-color: rgba(0, 242, 254, 0.2);
    --font-main: 'Outfit', sans-serif;
    --shadow-3d: 0 10px 0 #00060a, 0 20px 30px rgba(0, 0, 0, 0.5);
    --shadow-inner: inset 0 2px 5px rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 25px var(--primary-glow);
    }

    100% {
        box-shadow: 0 0 10px var(--primary-glow);
    }
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Animated Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary);
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.15;
    animation: move-blobs 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    background: var(--primary);
    animation-duration: 30s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    background: var(--secondary);
    animation-duration: 35s;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: var(--primary);
    opacity: 0.1;
    animation-duration: 40s;
    animation-delay: -10s;
}

@keyframes move-blobs {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(100px, 50px) scale(1.1) rotate(10deg);
    }

    66% {
        transform: translate(-50px, 150px) scale(0.9) rotate(-10deg);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
}

#app {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.premium-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
    border: none;
}

.logo-container {
    margin: 1rem 0 2rem;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.main-logo {
    width: 320px;
    /* Big for desktop */
    max-width: 90vw;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    animation: float-logo 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05) rotate(2deg);
}

@keyframes float-logo {
    0% {
        transform: translateY(0px) rotateX(5deg);
        filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    }

    50% {
        transform: translateY(-20px) rotateX(10deg);
        filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.3));
    }

    100% {
        transform: translateY(0px) rotateX(5deg);
        filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    }
}

h1 {
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    line-height: 0.9;
    background: linear-gradient(to bottom, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.subtitle {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px var(--primary-glow);
}

.description {
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 6rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 0 #00060a, 0 15px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 0 #00060a, 0 30px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 10px;
    font-weight: 900;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-tag.tag-1 {
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.feature-tag.tag-2 {
    background: rgba(255, 145, 0, 0.1);
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.feature-tag.tag-3 {
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

.generator-section {
    background: var(--bg-card);
    border-radius: 30px;
    border: 2px solid var(--border-color);
    padding: 4rem;
    margin-bottom: 5rem;
    box-shadow: var(--shadow-3d);
    position: relative;
    overflow: hidden;
}

.generator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="text"],
select {
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    padding: 1.2rem;
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-inner);
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1.02);
}

.color-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}

.color-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Premium Color Picker Styling */
input[type="color"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 50px;
    background-color: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
    box-shadow: var(--shadow-inner);
}

input[type="color"]:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2);
}

/* Bedrock Section Styling */
.bedrock-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 2px dashed var(--border-color);
}

.unicode-preview-card {
    text-align: center;
    margin-bottom: 2.5rem;
    background: rgba(0, 11, 20, 0.5);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-inner);
}

#unicodeDisplay {
    font-size: 3.5rem;
    margin: 1rem 0;
    color: #fff;
    text-shadow: 0 0 20px var(--primary-glow);
}

#bedrockQueueList {
    background: var(--bg-input);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    max-height: 250px;
    overflow-y: auto;
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.queue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.queue-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.btn {
    padding: 1.2rem 3rem;
    border-radius: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    border: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-alt));
    color: var(--bg-dark);
    box-shadow: 0 6px 0 #009eb5, 0 10px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 0 #009eb5, 0 15px 30px rgba(0, 242, 254, 0.4);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #009eb5;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-alt));
    color: var(--bg-dark);
    box-shadow: 0 6px 0 #b56a00, 0 10px 20px rgba(255, 145, 0, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 0 #b56a00, 0 15px 30px rgba(255, 145, 0, 0.4);
}

.preview-container {
    background: #000;
    border-radius: 20px;
    padding: 4rem;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    border: 2px solid var(--border-color);
    box-shadow: inset 0 0 50px rgba(0, 242, 254, 0.1);
}

#canvas-wrapper {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

#rankPreview {
    max-width: 100%;
    image-rendering: pixelated;
    display: block;
}

.snippet-section {
    margin-top: 4rem;
}

.snippet-box {
    background: #000;
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    position: relative;
    box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    /* Prevent child overflow from breaking border */
}

pre {
    color: var(--primary);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 1rem;
    line-height: 1.5;
    overflow-x: auto;
    padding-bottom: 3rem;
    /* Space for the absolute button */
    white-space: pre;
}

#copySnippetBtn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    min-width: auto;
    width: auto;
}

footer {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-muted);
    font-size: 1rem;
    border-top: 1px solid var(--border-color);
}

.heart {
    color: var(--secondary);
    display: inline-block;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Custom Checkbox Styling */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-dark);
    font-size: 14px;
    font-weight: 900;
}

@media (max-width: 768px) {
    #app {
        padding: 1.5rem;
    }

    h1 {
        font-size: 3.5rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .generator-section {
        padding: 2rem 1.5rem;
    }

    .controls-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .color-controls {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
        gap: 1rem;
    }

    .preview-container {
        padding: 2rem 1rem;
    }

    .btn {
        width: 100%;
        padding: 1.2rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .main-logo {
        width: 150px;
        /* Keep mobile size as approved by user */
    }

    .snippet-box {
        padding: 1.5rem;
    }

    pre {
        font-size: 0.85rem;
        padding-bottom: 4rem;
    }

    #copySnippetBtn {
        width: calc(100% - 3rem);
        left: 1.5rem;
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    .color-controls {
        grid-template-columns: 1fr;
    }

    .unicode-preview-card {
        padding: 1.5rem;
    }

    #unicodeDisplay {
        font-size: 2.5rem;
    }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 11, 20, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-card {
    background: var(--bg-card);
    padding: 3.5rem 2.5rem;
    border-radius: 30px;
    border: 2px solid var(--primary);
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.2), var(--shadow-3d);
    transform: scale(0.9);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.modal-card h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #fff;
    text-transform: uppercase;
}

.modal-card p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    to {
        transform: scale(1);
    }
}