@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: #d1d9e6;
    --neumorph-out: 8px 8px 16px var(--shadow-dark), -8px -8px 16px 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: 'Space Mono', monospace;
}

* { 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-color: var(--bg-color);
    font-family: var(--font-family);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px; /* KEMBALIKAN PADDING MOBILE ASLI */
}

/* --- LAYOUT DEFAULT (MOBILE FIRST / ORI) --- */
.main-container {
    width: 100%;
    max-width: 1200px; /* Default aman */
    position: relative; /* Penting untuk popup absolute/static context */
}

/* KEMBALIKAN STYLE JUDUL ASLI (DEFAULT) */
.page-title {
    font-family: 'Gliker', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    margin-top: 20px;
}

.t-pure {
    display: inline-block;
    font-size: 3.5rem; /* Ukuran asli */
    font-weight: 800;
    transform: rotate(-12deg) translateY(-15px);
    margin-right: -30px;
    z-index: 10;
    background-image: linear-gradient(to right, var(--accent), var(--success), #5dbeb8, var(--accent));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: animate-gradient-text 8s ease infinite;
}

.t-status {
    font-size: 7rem; /* Ukuran asli */
    letter-spacing: -3px;
    z-index: 1;
    background-image: linear-gradient(to right, var(--success), #5dbeb8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: animate-gradient-text 8s ease infinite;
}

/* Default Content Wrapper (Mobile Compatible) */
.content-wrapper {
    display: grid;
    grid-template-columns: 1.6fr 1fr; /* Default Desktop lama, nanti di-override mobile & desktop baru */
    gap: 40px;
    align-items: start;
}

/* --- CARDS --- */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 30px; /* Padding asli */
    box-shadow: var(--neumorph-out);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 200%; height: 100%;
    background: linear-gradient(115deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 60%);
    transform: translateX(-150%) skewX(-20deg);
    animation: shimmer 6s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

/* --- 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;
    position: relative; 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; }
.feature-card {
    min-height: 160px; justify-content: space-between; cursor: pointer;
    background: var(--bg-color) !important;
    box-shadow: var(--neumorph-in) !important;
    border: 1px solid rgba(0,0,0,0.02) !important;
}
.feature-card:hover {
    transform: none;
    box-shadow: inset 10px 10px 20px var(--shadow-dark), inset -10px -10px 20px var(--shadow-light) !important;
}
.feature-top { display: flex; justify-content: space-between; }

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);
}

.shield-icon {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem; /* Ukuran ikon diperbesar sedikit karena tidak ada kotak lagi */
    margin-bottom: 10px;
    opacity: 0.7; /* Membuatnya lebih soft */
}

.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.6rem;
    color: var(--text-secondary); cursor: pointer; z-index: 10;
    transition: all 0.2s; opacity: 0.6;
}
.info-icon-floating:hover { color: var(--accent); opacity: 1; transform: scale(1.1); }
.clickable-group:hover .label-icon i { color: var(--accent); }
.label-icon { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-primary); }
.label-icon i { width: 24px; text-align: center; color: var(--text-secondary); }
.range-slider { -webkit-appearance: none; height: 8px; background: var(--bg-color); box-shadow: var(--neumorph-in); border-radius: 10px; outline: none; width: 100px; }
.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);
}

.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 {
    box-shadow: var(--neumorph-in); 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-y: auto; 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 .page-title { color: #fff; text-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; }
.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);
}
.process-popup {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
    z-index: 999; opacity: 0; transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1); pointer-events: none; width: auto;
}
.process-popup.visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: all; }
.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);
}
/* OLD BUTTON STYLE - OVERRIDDEN BELOW */
.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 { text-align: center; padding: 30px !important; }
.info-header { margin-bottom: 25px; }
.info-icon-large { font-size: 3rem; color: var(--accent); margin-bottom: 10px; opacity: 0.2; }
.info-card-content h2 { font-size: 1.5rem; color: var(--text-primary); margin: 0; }
.steps-container { text-align: left; display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px; }
.step-item { display: flex; gap: 15px; align-items: flex-start; }
.step-number {
    background: var(--bg-color); color: var(--accent); width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; box-shadow: var(--neumorph-out);
}
.info-footer { border-top: 1px solid rgba(0, 0, 0, 0.05); padding-top: 15px; font-size: 0.8rem; color: var(--text-secondary); }
.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; }

/* --- MOBILE SPECIFIC (PASTIKAN AMAN) --- */
@media (max-width: 768px) {
    .content-wrapper { grid-template-columns: 1fr; gap: 20px; }
    .main-container { width: 100%; padding: 0 10px; }
    body { padding: 20px 10px; }
    .card { padding: 25px; border-radius: var(--radius-lg); }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .feature-card { min-height: 120px; padding: 15px; text-align: center; flex-direction: column; align-items: center; justify-content: center; }
    .shield-icon { width: 45px; height: 45px; font-size: 1.2rem; margin-bottom: 8px; }
    .feature-text h3 { font-size: 0.9rem; }
    .feature-text p { display: none; }
    .page-title { flex-direction: column; margin-bottom: 40px; margin-top: 20px; }
    .t-pure { font-size: 2.5rem; margin-right: 0; margin-bottom: -15px; transform: rotate(-5deg); }
    .t-status { font-size: 4rem; }
    .process-popup { width: 90%; bottom: 20px; }
    .btn-process-action { width: 100%; justify-content: center; }
    body { padding-bottom: 100px; }
    .main-container { padding-bottom: 20px; }
    .placeholder-content { padding: 25px 15px; min-height: auto; }
    .form-group, .clickable-group {
        flex-direction: row; align-items: center; justify-content: space-between;
        gap: 10px; padding: 15px 0; margin-bottom: 0; background: transparent; box-shadow: none; border-radius: 0;
    }
    .clickable-group:hover { transform: none; }
    .label-icon { font-size: 0.85rem; gap: 8px; }
    .label-icon i { font-size: 1rem; }
    .range-wrapper { width: auto; justify-content: flex-end; gap: 10px; }
    .range-slider { width: 80px; flex: none; }
}

/* --- DESKTOP SPECIFIC OVERRIDES (REBUILT & ISOLATED) --- */
@media (min-width: 769px) {
    /* 1. Layout Container - Compact Desktop */
    .main-container {
        max-width: 950px;
    }

    /* 2. Judul - Stacked & Ukuran Desktop (Override Default) */
    .page-title {
        flex-direction: column;
        margin-bottom: 40px;
    }
    .t-pure {
        font-size: 3.8rem;
        transform: rotate(-6deg);
        margin-bottom: -15px;
        margin-right: 0;
    }
    .t-status {
        font-size: 5.5rem;
    }
    
    /* 3. Padding Body Desktop */
    body {
        padding: 20px;
    }
    .card {
        padding: 20px;
    }

    /* 4. Grid Balance - 1:1 Split (Default Desktop) */
    .content-wrapper {
        grid-template-columns: 1fr 1fr; /* Kolom sama lebar */
        gap: 30px; /* Jarak rapi */
        align-items: stretch; /* Tinggi sejajar */
    }

    /* 5. Kolom Kanan - Space Between agar mengisi tinggi */
    .right-column {
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Kunci layout presisi */
        height: 100%; /* Paksa isi tinggi */
    }

    /* 6. Upload Buttons mengisi sisa ruang bawah */
    .features-grid {
        flex-grow: 1; /* Isi sisa tinggi */
        align-content: end; /* Tombol ada di bawah */
        gap: 20px;
        margin-top: 20px; /* Jarak dari progress card */
    }
    
    .feature-card {
        height: 100%; /* Full height di area grid */
        min-height: 140px;
    }

    /* --- EDITOR CENTER MODE (Hanya untuk Desktop) --- */
    /* Dipicu oleh class JS saat file dipilih */
    .content-wrapper.editor-active {
        display: flex;
        flex-direction: column; /* Ubah ke column agar tombol proses bisa di bawahnya */
        align-items: center; /* Tengahin secara horizontal */
        justify-content: center;
        grid-template-columns: none;
    }

    .content-wrapper.editor-active .left-panel {
        width: 100%;
        max-width: 600px; /* Batasi lebar agar rapi di tengah */
        min-height: auto;
    }
    
    /* Hide right column ONLY inside editor-active on desktop */
    .content-wrapper.editor-active + .right-column, 
    .content-wrapper.editor-active .right-column { 
        display: none; 
    }

    /* --- DESKTOP PROCESS BUTTON FIX --- */
    /* Saat mode editor aktif (centered), tombol proses muncul di bawah card */
    .content-wrapper.editor-active ~ .process-popup, /* Jika sibling */
    .process-popup.visible { 
        /* Override posisi fixed floating */
        position: static; 
        transform: none;
        opacity: 1;
        width: 100%;
        max-width: 600px; /* Samakan dengan lebar card editor */
        margin: 20px auto 0 auto; /* Tengahin */
        display: flex;
        justify-content: center;
        background: transparent; /* Hilangkan background glass container di desktop biar bersih */
        box-shadow: none;
        border: none;
        backdrop-filter: none;
        pointer-events: auto;
    }
}

/* =================================================================
   AESTHETIC GLASS BUTTONS (Global Override)
   ================================================================= */

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

/* Base Glass Button (Capsule Clean) */
.btn-process-action {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: var(--accent) !important;
    font-family: 'Space Mono', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 800;
    border-radius: 50px !important; /* Kapsul Shape */
    padding: 14px 25px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

/* Process (Capsule Glass) */
.btn-process-action:not(.btn-cancel-action) {
    background: rgba(255, 255, 255, 0.6) !important;
}
.btn-process-action:not(.btn-cancel-action):hover {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.03);
}

/* Cancel (Capsule Red Glass) */
.btn-cancel-action {
    background: rgba(192, 57, 43, 0.1) !important;
    border-color: rgba(192, 57, 43, 0.2) !important;
    color: #c0392b !important;
}
.btn-cancel-action:hover {
    background: rgba(192, 57, 43, 0.2) !important;
    transform: scale(1.03);
}

/* Storm Theme Adjustment */
body.processing-theme .btn-process-action {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}
body.processing-theme .btn-cancel-action {
    color: #ff6b6b !important;
}

/* --- FOOTER --- */
@keyframes footerFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@keyframes footerFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-footer {
    width: 100%;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    color: var(--text-secondary);
    animation: footerFadeIn 1s ease-out forwards;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: footerFloat 3s ease-in-out infinite;
}

.watermark {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0.8;
}

.watermark strong {
    color: var(--accent);
    background: linear-gradient(90deg, var(--accent), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: animate-gradient-text 4s linear infinite;
}

.social-links {
    display: flex;
    gap: 20px;
    font-size: 1.3rem;
}

.social-icon {
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    opacity: 0.6;
}

.social-icon:hover {
    color: var(--accent);
    transform: scale(1.2) translateY(-3px);
    opacity: 1;
}