@font-face {
    font-family: 'Gliker';
    src: url('font/gliker-bold.eot');
    src: url('font/gliker-bold.eot?#iefix') format('embedded-opentype'),
        url('font/gliker-bold.woff2') format('woff2'),
        url('font/gliker-bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@keyframes animate-gradient-text {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- RESET & VARIABLES --- */
:root {
    --bg-color: #f0f5f4;
    --card-bg: #f0f5f4;
    --accent: #207567;
    --success: #358873;
    --maroon: #922B21;
    --text-primary: #1a3c34;
    --text-secondary: #708a83;
    --shadow-light: #ffffff;
    --shadow-dark: #e6eceb;
    --neumorph-out: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
    --neumorph-in: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
    --radius-lg: 30px;
    --radius-md: 15px;
    --font-family: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
    font-family: var(--font-family) !important;
}

body {
    background: linear-gradient(135deg, #f0f5f4 0%, #e8efee 100%);
    font-family: var(--font-family);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* --- LAYOUT DEFAULT (MOBILE FIRST / ORI) --- */
.main-container {
    width: 100%;
    max-width: 1100px;
    position: relative;
    perspective: 1000px;
    margin-bottom: 40px;
}

/* LOGO HEADER STYLE - SPACED MODE */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 40px;
    /* Diturunkan lagi */
    margin-bottom: 15px;
    position: relative;
    z-index: 10;
}

.logo-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    /* Dibesarkan sedikit */
    display: flex;
    justify-content: center;
}

.app-logo {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
    transform: scale(1);
    /* Dikecilkan dari 1.25 */
    position: relative;
    z-index: 1;
}

/* Efek Mengkilap Putih (Logo Shimmer) - FIXED MASKING */
.logo-shimmer {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    /* Disesuaikan ke 0 */
    width: 100%;
    /* Disesuaikan ke 100% */
    height: 100%;
    z-index: 2;
    pointer-events: none;
    -webkit-mask-image: url('assets/pure.avif');
    mask-image: url('assets/pure.avif');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 60%);
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: shine-real 6s infinite ease-in-out;
    transform: scale(1);
}

@keyframes shine-real {
    0% {
        background-position: 200% 0;
    }

    20% {
        background-position: -200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* BOT STATUS PILL */
.bot-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.bot-status-pill.online {
    border-color: rgba(40, 200, 64, 0.2);
    background: #f0fdf4;
    color: #15803d;
}

.bot-status-pill.offline {
    border-color: rgba(220, 38, 38, 0.2);
    background: #fef2f2;
    color: #b91c1c;
}

.bot-status-pill .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.85);
    }
}

/* INSTALL POPUP STYLES */
.install-popup-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: popupPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.install-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    margin-top: -50px;
    /* Float effect */
}

.install-app-icon {
    width: 50px;
    height: auto;
}

.install-popup-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.install-popup-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 20px;
}

.install-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn-install-solid {
    flex: 1;
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-install-solid:hover {
    transform: scale(1.05);
    background: var(--success);
}

.btn-text-only {
    flex: 1;
    background: transparent;
    color: #888;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.btn-text-only:hover {
    color: var(--maroon);
}

@keyframes popupPop {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- CARDS (HD GLASS EFFECT) --- */
.card {
    background: linear-gradient(145deg, #ffffff, #e6ebea);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    transform-style: preserve-3d;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.6) 45%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    transform: translateX(-150%);
    animation: hd-shine 6s cubic-bezier(0.19, 1, 0.22, 1) infinite;
    pointer-events: none;
}

@keyframes hd-shine {
    0% {
        transform: translateX(-150%) skewX(-20deg);
    }

    20% {
        transform: translateX(150%) skewX(-20deg);
    }

    100% {
        transform: translateX(150%) skewX(-20deg);
    }
}

/* --- LEFT PANEL --- */
.left-panel {
    gap: 20px;
    min-height: 300px;
    padding: 30px !important;
}

#initial-state-left {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* --- PREVIEW CONTAINER --- */
.preview-container {
    box-shadow: var(--neumorph-in);
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    margin: 20px 0;
}

#editor-img,
#videoPreview {
    max-width: 100%;
    max-height: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- RIGHT COLUMN --- */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: fit-content;
}

.billing-card {
    justify-content: space-between;
    min-height: 180px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.black-icon-circle {
    width: 45px;
    height: 45px;
    background: var(--bg-color);
    box-shadow: var(--neumorph-out);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* AESTHETIC UPLOAD BUTTONS */
.feature-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 15px !important;
    gap: 0 !important;
    min-height: 120px !important;
    background: var(--bg-color) !important;
    box-shadow: var(--neumorph-in) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 18px !important;
}

.feature-card:hover {
    transform: translateY(2px);
    box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light) !important;
}

.feature-top {
    display: contents !important;
    width: auto !important;
}

.shield-icon {
    font-size: 2rem !important;
    margin: 0 0 10px 0 !important;
    color: var(--accent);
    opacity: 0.7;
    transition: all 0.3s ease;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.feature-card:hover .shield-icon {
    transform: scale(1.1);
    opacity: 1;
    color: var(--success);
    filter: drop-shadow(0 0 8px rgba(53, 136, 115, 0.3));
}

.feature-text h3 {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.feature-text p {
    display: none !important;
}

h3 {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.sub-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.small-input,
.ios-input {
    border: none;
    background: var(--bg-color);
    box-shadow: var(--neumorph-in);
    border-radius: 12px;
    padding: 12px;
    color: var(--accent);
    font-weight: 700;
    outline: none;
    text-align: center;
}

.form-group,
.clickable-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 5px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group:last-child {
    border-bottom: none;
}

.clickable-group {
    cursor: pointer;
}

.clickable-group:hover {
    transform: translateX(5px);
    background: transparent;
    box-shadow: none;
}

.label-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.range-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.value-text {
    font-weight: 700;
    color: var(--accent);
}

.input-wrapper {
    display: flex;
    align-items: center;
}

.range-slider {
    -webkit-appearance: none;
    height: 6px;
    background: var(--bg-color);
    box-shadow: var(--neumorph-in);
    border-radius: 10px;
    outline: none;
    width: 80px;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--success);
    cursor: pointer;
    box-shadow: 3px 3px 6px var(--shadow-dark);
}

.placeholder-content {
    width: 100%;
    max-width: 420px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-secondary);
    padding: 25px;
    border: 2px dashed var(--shadow-dark);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    margin: 0 auto;
}

.placeholder-content span {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--accent);
    opacity: 0.9;
    margin-bottom: 2px;
    margin-top: 10px;
}

.placeholder-divider {
    width: 35%;
    height: 1px;
    border-bottom: 1px dashed var(--text-secondary);
    margin: 5px auto;
    opacity: 0.4;
}

.placeholder-svg-wrapper {
    color: var(--success);
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(0.9);
}

.placeholder-content:hover .placeholder-svg-wrapper {
    opacity: 1;
    transform: scale(1);
}

.info-icon-floating {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.4;
    padding: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.info-icon-floating:hover {
    color: var(--accent);
    opacity: 1;
    transform: rotate(90deg) scale(1.1);
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.clickable-group:hover .label-icon i {
    color: var(--accent);
}

.label-icon i {
    width: 24px;
    text-align: center;
    color: var(--text-secondary);
}

.btn-black {
    background: var(--bg-color);
    color: var(--accent);
    border: none;
    padding: 18px;
    border-radius: 20px;
    font-weight: 800;
    box-shadow: var(--neumorph-out);
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-black:active {
    box-shadow: var(--neumorph-in);
    transform: scale(0.98);
}

.result-code-box {
    background: var(--bg-color);
    color: var(--accent);
    font-size: 2.2rem;
    font-weight: 800;
    border-radius: 20px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    border: 2px dashed var(--accent);
}

#scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: crosshair;
}

.progress-container {
    height: 15px;
    background: var(--bg-color);
    box-shadow: var(--neumorph-in);
    border-radius: 10px;
    margin-top: 15px;
    width: 100%;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 10px;
    height: 100%;
    width: 0%;
    transition: width 0.3s;
}

.status-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.result-button {
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
}

/* THEME: STORM & LIGHTNING */
body.processing-theme {
    background: #0d1117;
    background-image: linear-gradient(to bottom, #0d1117 0%, #16212e 100%);
    overflow: hidden;
    overflow-x: hidden;
}

#rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 998;
    background: transparent;
}

.raindrop {
    position: absolute;
    top: -100px;
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.4));
    animation: rainFall 0.8s linear infinite;
}

@keyframes rainFall {
    to {
        transform: translateY(120vh);
    }
}

#lightning-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    mix-blend-mode: overlay;
}

body.processing-theme #lightning-flash {
    animation: lightningStrike 5s infinite;
}

@keyframes lightningStrike {

    0%,
    90% {
        opacity: 0;
    }

    91% {
        opacity: 0.8;
        background: #fff;
    }

    92% {
        opacity: 0.1;
    }

    93% {
        opacity: 0.6;
        background: #a8d0e6;
    }

    94% {
        opacity: 0;
    }

    96% {
        opacity: 0.4;
    }

    100% {
        opacity: 0;
    }
}

body.processing-theme .card {
    background: rgba(22, 33, 46, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    color: #e0e6ed;
    display: none;
}

body.processing-theme .logo-container {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* MACOS OVERLAY */
#macos-progress-overlay {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 450px;
    z-index: 2000;
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    flex-direction: column;
    animation: floatUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.glass-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
}

.glass-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.gd-red {
    background: #ff5f57;
}

.gd-yellow {
    background: #febc2e;
}

.gd-green {
    background: #28c840;
}

.glass-content h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.glass-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.glass-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.glass-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
    border-radius: 10px;
    transition: width 0.3s ease-out;
}

.glass-status-text {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Space Mono', monospace;
}

.glass-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    z-index: 20;
    padding: 5px;
    line-height: 1;
}

.glass-close-btn:hover {
    color: #ff6b6b;
    transform: scale(1.1) rotate(90deg);
}

.glass-close-btn:active {
    transform: scale(0.9) rotate(90deg);
}

/* --- SAWERIA POPUP (AESTHETIC) --- */
.saweria-glass {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 280px;
    z-index: 2147483647 !important;
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.saweria-glass.show {
    transform: translateY(0);
    opacity: 1;
}

.saweria-icon {
    font-size: 2.5rem;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin: -40px auto 5px auto;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {

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

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

.saweria-text {
    text-align: center;
}

.saweria-text h4 {
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.saweria-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.saweria-btn {
    background: linear-gradient(135deg, #f0ad4e, #e67e22);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    transition: transform 0.2s;
}

.saweria-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.close-saweria {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: color 0.2s;
}

.close-saweria:hover {
    color: var(--maroon);
}

@media (max-width: 768px) {
    .saweria-glass {
        bottom: 100px;
        right: 50%;
        transform: translateX(50%) translateY(150%);
        left: auto;
    }

    .saweria-glass.show {
        transform: translateX(50%) translateY(0);
    }
}

body.processing-theme .saweria-glass {
    background: rgba(22, 33, 46, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
}

body.processing-theme .saweria-text h4 {
    color: #fff;
}

body.processing-theme .saweria-text p {
    color: #aaa;
}

body.processing-theme .saweria-icon {
    background: #1f2d3d;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fade-out-glass {
    animation: fadeOutGlass 0.8s forwards cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeOutGlass {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.95);
    }
}

.fade-in-result-page {
    animation: fadeInResult 0.8s forwards cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
}

@keyframes fadeInResult {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.processing-theme .features-grid,
body.processing-theme .submit-bar {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.8);
}

.scratch-hint {
    position: absolute;
    font-size: 0.8rem;
    color: var(--text-secondary);
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-text {
    background: var(--bg-color);
    border: none;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto 0 auto;
    padding: 12px 24px;
    border-radius: 15px;
    box-shadow: var(--neumorph-out);
    transition: all 0.2s;
}

.btn-text:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

.btn-text:active {
    box-shadow: var(--neumorph-in);
    transform: translateY(0);
}

.security-banner {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.security-banner p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.timer-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--maroon);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

body.processing-theme .security-banner {
    background: rgba(255, 255, 255, 0.05);
}

body.processing-theme .security-banner p {
    color: #8b9bb4;
}

body.processing-theme .timer-wrapper {
    color: #ff6b6b;
}

.result-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.result-button {
    flex: 1.2;
    margin-bottom: 0;
    text-align: center;
    justify-content: center;
    box-shadow: none !important;
}

.btn-solid {
    background: var(--accent);
    color: white;
    border: none;
    padding: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-solid:hover {
    background: var(--success);
    transform: translateY(-2px);
}

.btn-simple {
    flex: 0.8;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: none !important;
}

.btn-simple:hover {
    background: var(--accent);
    color: white;
}

body.processing-theme .btn-simple {
    border-color: #a8d0e6;
    color: #a8d0e6;
}

body.processing-theme .btn-simple:hover {
    background: #a8d0e6;
    color: #0d1117;
}

.features-grid {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.features-grid.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    position: absolute;
    width: 100%;
    z-index: -1;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-color);
    padding: 30px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    /* Tambahkan ini agar tombol close stay di dalam */
}

.ios-modal-card {
    background: white;
    padding: 24px;
    border-radius: 24px;
    width: 90%;
    max-width: 340px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    /* Tambahkan ini juga */
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.process-popup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 10000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}

.process-popup.visible {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1;
    pointer-events: auto !important;
}

.process-popup button {
    pointer-events: auto !important;
    position: relative;
    z-index: 10001;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-process-action {
    background: var(--text-primary);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-process-action:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-process-action:active {
    transform: scale(0.95);
}

body.processing-theme .glass-effect {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

body.processing-theme .btn-process-action {
    background: #fff;
    color: #000;
}

.text-error {
    color: var(--maroon) !important;
}

.info-card-content {
    max-width: 340px !important;
    padding: 20px !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
    overflow: visible !important;
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.info-header {
    background: transparent;
    padding: 0;
    text-align: center;
    border-bottom: none;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-header h2 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 5px;
    font-weight: 800;
}

.info-icon-large {
    font-size: 2.2rem;
    color: var(--accent);
    filter: drop-shadow(0 4px 10px rgba(32, 117, 103, 0.2));
    margin-bottom: 5px;
    opacity: 1;
}

.steps-container {
    padding: 0;
    background: transparent;
    gap: 8px;
    display: flex;
    flex-direction: column;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(243, 244, 246, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    box-shadow: none;
    transform: none;
    animation: none;
    width: 100%;
}

.step-number {
    width: 26px;
    height: 26px;
    min-width: 26px;
    font-size: 0.75rem;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(32, 117, 103, 0.2);
    flex-shrink: 0;
}

.step-text-wrapper {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.step-item p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.3;
    margin: 0;
}

.step-item p strong {
    font-size: 0.85rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 1px;
}

.info-footer {
    display: none;
}

/* SIMPLE CLOSE BUTTON (X) */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    padding: 5px;
    line-height: 1;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--maroon);
    transform: rotate(90deg);
}

body.processing-theme .modal-close-btn {
    color: rgba(255, 255, 255, 0.5);
}

body.processing-theme .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ff6b6b;
}

.time-inputs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.ios-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 0;
}

.ios-input-group label {
    font-size: 0.75rem;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.ios-input {
    width: 100%;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 12px;
    background: #f2f2f7;
    border: 2px solid transparent;
    font-weight: 800;
    color: var(--accent);
    outline: none;
    transition: all 0.2s;
}

.ios-input:focus {
    border-color: var(--accent);
    background: #fff;
}

.ios-footer {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: none;
}

.ios-btn-cancel,
.ios-btn-save {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.1s;
}

.ios-btn-cancel {
    background: #f0f0f0;
    color: #888;
}

.ios-btn-save {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 10px rgba(32, 117, 103, 0.2);
}

.ios-btn-cancel:active,
.ios-btn-save:active {
    transform: scale(0.96);
}

body.processing-theme .ios-modal-card {
    background: #16212e;
    color: white;
}

body.processing-theme .ios-header h3 {
    color: white;
}

body.processing-theme .ios-input {
    background: rgba(0, 0, 0, 0.3);
    color: #00f2fe;
}

body.processing-theme .ios-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
}

body.processing-theme .ios-btn-save {
    background: #00f2fe;
    color: #000;
}

@media (max-width: 768px) {
    body {
        padding: 15px 10px;
        overflow-x: hidden;
        width: 100%;
    }

    .main-container {
        width: 100%;
        padding: 0 10px;
        margin-bottom: 20px;
        box-sizing: border-box;
    }
}

.logo-container {
    margin-bottom: 25px;
    margin-top: 10px;
    padding: 0 10px;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
}

.right-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card {
    width: 100% !important;
    max-width: 100%;
    padding: 20px !important;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.feature-card {
    min-height: 140px;
    padding: 15px !important;
}

.feature-text h3 {
    font-size: 0.9rem;
}

.feature-text p {
    font-size: 0.75rem;
}

@media (min-width: 769px) {
    .main-container {
        max-width: 1050px;
        /* Lebar ideal laptop/desktop modern */
    }

    body {
        padding: 30px 20px;
    }

    .logo-container {
        margin-bottom: 35px;
    }

    .logo-wrapper {
        max-width: 600px;
        /* Diperbesar dari 400px */
    }

    .app-logo {
        width: 100%;
        /* Memenuhi container wrapper */
    }

    .logo-shimmer {
        left: 0;
        width: 100%;
    }

    .content-wrapper {
        display: grid;
        grid-template-columns: 1.6fr 1fr;
        /* Kiri dominan */
        gap: 20px;
        /* Gap rapat & presisi */
        align-items: start;
        grid-template-areas:
            "preview billing"
            "preview tombol"
            "preview donatur";
    }

    /* RIGHT COLUMN UNWRAPPER - KUNCI LAYOUT RAPI */
    .right-column {
        display: contents;
        /* Ini bikin anak-anaknya (billing, tombol, donatur) jadi direct grid items */
    }

    /* --- ITEM PLACEMENT --- */
    .left-panel {
        grid-area: preview;
        min-height: 550px;
        /* Tinggi konsisten */
        padding: 25px !important;
        height: 100%;
    }

    .billing-card {
        grid-area: billing;
        min-height: auto;
        padding: 20px !important;
        /* Padding ramping */
        height: 100%;
    }

    .features-grid {
        grid-area: tombol;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .leaderboard-card {
        grid-area: donatur;
        height: 100%;
        max-height: 400px;
        /* Batasi tinggi leaderboard biar ga panjang kebawah */
        padding: 20px !important;
        display: flex;
        flex-direction: column;
    }

    .leaderboard-list {
        flex: 1;
        overflow-y: auto;
        padding-right: 5px;
        /* Space buat scrollbar */
    }

    /* CUSTOM SCROLLBAR FOR LEADERBOARD */
    .leaderboard-list::-webkit-scrollbar {
        width: 5px;
    }

    .leaderboard-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .leaderboard-list::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }

    .leaderboard-list::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.2);
    }

    /* UPLOAD BUTTONS COMPACT */
    .feature-card {
        min-height: 100px !important;
        /* Tombol lebih ceper */
        padding: 15px !important;
    }

    .shield-icon {
        font-size: 1.6rem !important;
        margin-bottom: 8px !important;
    }

    .feature-text h3 {
        font-size: 0.8rem !important;
    }

    /* BILLING CARD COMPACT */
    .card-top h3 {
        font-size: 1rem;
    }

    .black-icon-circle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    /* EDITOR MODE CENTERED */
    .content-wrapper.editor-active {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 700px;
        /* Lebar editor pas */
        margin: 0 auto;
    }

    .content-wrapper.editor-active .left-panel {
        min-height: auto;
    }

    /* Sembunyikan elemen kanan saat editor aktif */
    .content-wrapper.editor-active .billing-card,
    .content-wrapper.editor-active .features-grid,
    .content-wrapper.editor-active .leaderboard-card {
        display: none;
    }
}

.popup-content {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 5px !important;
}

.btn-process-action {
    border: none;
    padding: 16px 20px;
    border-radius: 18px !important;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.5px;
    font-family: var(--font-family) !important;
}

/* Tombol Utama (Proses) */
.btn-main-action {
    background: var(--accent) !important;
    color: white !important;
    box-shadow: 0 10px 25px rgba(32, 117, 103, 0.3);
}

.btn-main-action:hover {
    transform: translateY(-3px) scale(1.02);
    background: var(--success) !important;
    box-shadow: 0 15px 30px rgba(32, 117, 103, 0.4);
}

/* Tombol Batal (Glass Style) */
.btn-cancel-action {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #6b7280 !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.btn-cancel-action:hover {
    background: #ffebee !important;
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
    transform: translateY(-3px);
}

.btn-process-action:active {
    transform: scale(0.95);
}

/* Storm Theme Adjustment */
body.processing-theme .btn-main-action {
    background: #fff !important;
    color: #000 !important;
}

body.processing-theme .btn-cancel-action {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ff6b6b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* MASCOT FOOTER STYLE */
.mascot-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-bottom: 20px;
    position: relative;
    z-index: 10;
}

.mascot-container {
    position: relative;
    /* ASALNYA: 650px.
       Ganti jadi 800px atau 850px biar makin gede */
    width: 850px;

    display: flex;
    justify-content: center;
    transition: transform 0.3s ease;
}

.mascot-container:hover {
    transform: translateY(-5px) scale(1.02);
}

.mascot-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
}

/* Area Papan (Overlay) - UKURAN LEBIH KECIL */
.mascot-board-content {
    position: absolute;
    top: 47%;
    left: 58%;

    /* Ganti scale dari 0.85 jadi 0.75 biar logo lebih kecil */
    transform: translate(-50%, -50%) rotate(-3deg) scale(0.65);

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    /* Gap dikecilin dikit (10px) biar tetep rapet walau logonya ngecil */
    gap: 10px;

    width: auto;
    white-space: nowrap;
}

/* Animasi Gelombang Ikon */
@keyframes iconWave {

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

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

.social-links-board {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links-board a {
    color: #333;
    font-size: 2rem;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    animation: iconWave 2s infinite ease-in-out;
}

/* Stagger Animation (Gelombang) */
.social-links-board a:nth-child(1) {
    animation-delay: 0s;
}

.social-links-board a:nth-child(2) {
    animation-delay: 0.2s;
}

.social-links-board a:nth-child(3) {
    animation-delay: 0.4s;
}

.social-links-board a:hover {
    animation-play-state: paused;
    /* Stop animasi saat dihover */
    transform: scale(1.2) rotate(-10deg);
    /* Miring Kiri */
    color: var(--accent);
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsif */
@media (max-width: 768px) {
    .mascot-container {
        width: 450px;
        /* Lebih besar di HP (sebelumnya 320px) */
    }

    .social-links-board {
        gap: 15px;
    }

    .social-links-board a {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
}

/* Storm Theme Adjustment */
body.processing-theme .mascot-img {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

/* NOTIFICATION WALL */
.notif-wall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.wall-content {
    background: white;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    animation: slideUp 0.4s ease forwards;
}

.wall-icon {
    width: 80px;
    height: 80px;
    background: #ffebee;
    color: #ef4444;
    border-radius: 50%;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.wall-content h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 10px;
    font-weight: 800;
}

.wall-content p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.wall-btn {
    width: 100%;
    padding: 14px;
    background: #207567;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.wall-btn:hover {
    background: #165248;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(32, 117, 103, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BACK ICON (FLOATING) */
.back-icon-floating {
    position: absolute;
    top: 15px;
    /* Sejajar dengan history icon */
    left: 15px;
    /* Pojok kiri */
    font-size: 1.2rem;
    /* Ukuran disamakan dengan history */
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.4;
    padding: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.back-icon-floating:hover {
    color: var(--accent);
    opacity: 1;
    transform: scale(1.1);
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* HISTORY ICON (FLOATING) */
.history-icon-floating {
    position: absolute;
    top: 15px;
    right: 60px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.4;
    padding: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.history-icon-floating:hover {
    color: var(--accent);
    opacity: 1;
    transform: scale(1.1) rotate(-10deg);
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* HISTORY ICON (FLOATING) */
.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    margin-bottom: 8px;
}

.history-code {
    font-family: monospace;
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
}

.history-time {
    font-size: 0.7rem;
    color: #888;
}

.history-btn-copy {
    background: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* FIX REMINI TOGGLE & PRESETS */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 34px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

input:checked+.toggle-slider {
    background-color: var(--accent);
}

input:checked+.toggle-slider:before {
    transform: translateX(22px);
}

.quality-presets {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: center;
}

.preset-btn {
    flex: 1;
    max-width: 150px;
    padding: 12px;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.preset-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.preset-btn.selected {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(32, 117, 103, 0.2);
}

.quality-info-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    opacity: 0.8;
    text-align: center;
}

/* FIX MISSING SIZE BADGE */
.size-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    background: var(--accent);
    /* Default fallback */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
}