:root {
    --bg-color: #0a0a0a;
    --card-bg: #111111;
    --card-border: #222222;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-color: #1772bd; /* Red */
    --accent-hover: #00aeff;
    --success-color: #10b981;
    --input-bg: #1a1a1a;
    --input-border: #333333;
    --radius-lg: 12px;
    --radius-md: 8px;
    --transition: all 0.3s ease;
    --accent-glow: rgba(239, 68, 68, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    padding-bottom: 50px;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    width: 60px;
    height: 60px;
    background-color: none  ;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.logo-icon {
    color: #fff;
    font-size: 1.8rem;
}

.logo-icongt{
  width:64px;
  height:64px;
  object-fit:contain;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 5px;
}

.highlight {
    color: var(--accent-color);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.social-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Card Styling */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.icon-accent {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

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

input[type="password"],
input[type="text"],
textarea {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

input:focus, textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.1);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
}

.input-hint {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 8px;
}

.mt-2 { margin-top: 16px; }

/* Custom Select */
.custom-select {
    position: relative;
    cursor: pointer;
}

.select-trigger {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.select-trigger small {
    background-color: #222;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    margin-left: 8px;
}

.select-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    z-index: 100;
    display: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.custom-select.active .select-options {
    display: block;
}

.option {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.option:hover {
    background-color: #1a1a1a;
}

.option.selected {
    color: var(--accent-color);
}

/* Upload Grid */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.upload-item {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px dashed var(--input-border);
    cursor: pointer;
    transition: var(--transition);
}

.upload-item:hover {
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.upload-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.upload-icon-box {
    width: 36px;
    height: 36px;
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.upload-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.label-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.file-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.status-icon {
    color: var(--accent-color);
}

.preview-area {
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    background-color: #000;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-area .placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    gap: 10px;
}

.preview-area img, .preview-area video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.textarea-wrapper {
    position: relative;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.char-count {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.value-badge {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--accent-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Slider */
.slider-wrapper {
    padding-top: 10px;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Main Button */
.btn-primary {
    width: 100%;
    background-color: var(--accent-color);
    color: hsl(0, 0%, 0%);
    border: none;
    border-radius: var(--radius-lg);
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display:flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    margin-bottom: 40px;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-download {
    width: 100%;
    background-color: var(--accent-color);
    color: hsl(0, 0%, 0%);
    border: none;
    border-radius: var(--radius-lg);
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    margin-bottom: 40px;
}

.btn-download:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

.btn-download:active {
    transform: translateY(0);
}

/* Result Card */
.result-card {
    border-color: rgba(239, 68, 68, 0.2);
    animation: fadeIn 0.5s ease;
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.status-badge {
    background-color: var(--success-color);
    color: white;
    padding: 10px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
}

.result-video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.result-video-wrapper video {
    width: 100%;
    height: 100%;
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.loader-content{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 4px solid rgba(251, 191, 36, 0.1);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom:18px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loader-status {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 10px;
}

/* Access Gate Overlay - KUNCI MATI */
.access-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000000 !important; /* Hitam pekat */
    z-index: 9999999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden !important;
}

.access-overlay.hidden {
    display: none !important;
}

.access-card {
    background: #151515 !important;
    border: 2px solid var(--accent-color) !important;
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 0 60px rgba(239, 68, 68, 0.4) !important;
}

.access-icon-box {
    width: 80px;
    height: 80px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.access-form {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.access-form input {
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 1.2rem;
    border-color: var(--card-border);
}

.access-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.access-hint a {
    color: #facc15 !important; /* Kuning Cerah */
    text-decoration: underline;
    font-weight: bold;
    transition: all 0.3s ease;
}

.access-hint a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px #facc15;
}
