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

.icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    display: inline-block;
    vertical-align: middle;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

.icon-xl {
    width: 48px;
    height: 48px;
}

.icon-margin {
    margin-right: 8px;
}

:root {
    --primary: #00e78c;
    --primary-dark: #00c774;
    --secondary: #00111b;
    --success: #00e78c;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-dark: #00111b;
    --bg-card: rgba(0, 17, 27, 0.6);
    --bg-input: rgba(0, 0, 0, 0.2);
    --text-primary: #F0EEE9;
    --text-secondary: rgba(240, 238, 233, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.6);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(circle at top right, #001a29 0%, #00111b 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in;
}

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

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

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

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

.logo-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 60px; /* Offset for lang-switcher balance */
}

.lang-switcher {
    display: flex;
    gap: 12px;
}

.lang-btn {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
}

.flag-icon {
    width: 22px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.lang-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(0, 243, 131, 0.05);
}

.lang-btn.active {
    color: #fff;
    background: rgba(0, 243, 131, 0.15);
    border-color: var(--primary);
}

main {
    padding: 40px 30px;
    background: rgba(0, 17, 27, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    position: relative;
}

.logo-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}

.logo-link:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.upx-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.subtitle.warning {
    color: var(--warning);
    font-weight: 600;
}

main {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    margin-bottom: 30px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tab-label {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    margin-right: 10px;
    background: var(--bg-input);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tab-label:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.tab-label input[type="radio"] {
    display: none;
}

.tab-label input[type="radio"]:checked+span {
    color: var(--secondary);
}

.tab-label input[type="radio"]:checked {
    &~* {
        color: var(--secondary);
    }
}

.tab-label:has(input[type="radio"]:checked) {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}

.tab-label span {
    font-weight: 600;
    font-size: 1rem;
}

textarea,
select,
input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
}

textarea:focus,
select:focus,
input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 17, 27, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 235, 176, 0.15);
}

.input-section {
    margin-bottom: 25px;
}

.hidden {
    display: none !important;
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: var(--bg-input);
    border: 2px dashed var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    border-color: var(--primary);
    background: var(--border);
    transform: translateY(-2px);
}

.file-icon {
    font-size: 2rem;
}

.file-text {
    font-weight: 600;
    color: var(--text-secondary);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-primary,
.btn-secondary,
.btn-copy {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--secondary);
    box-shadow: 0 8px 25px rgba(0, 231, 140, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 231, 140, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    margin-top: 15px;
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.btn-copy {
    background: var(--primary);
    color: var(--secondary);
    padding: 12px 20px;
    font-size: 0.95rem;
    width: auto;
}

.btn-copy:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-text-action {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-text-action:hover {
    background: rgba(0, 231, 140, 0.1);
    color: var(--primary-dark);
}

.result {
    text-align: center;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

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

.result h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 2rem;
}

.info {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.link-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.link-container input {
    flex: 1;
    width: auto;
}

.secret-content {
    margin-bottom: 30px;
}

.secret-content h2 {
    margin-bottom: 20px;
    color: var(--primary);
}

.secret-box {
    background: var(--bg-input);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid var(--border);
}

.secret-box pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.file-info {
    background: var(--bg-input);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.preview-image {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 4px 15px var(--shadow);
}

.blurred {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
    transition: filter 0.5s ease;
}

.reveal-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.reveal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 17, 27, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10;
    transition: all 0.3s ease;
}

.btn-reveal {
    background: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 231, 140, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-reveal:hover {
    transform: scale(1.05);
    background: var(--primary-dark);
}

.secret-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-item strong {
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 2px solid var(--warning);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
}

.warning-box p {
    color: var(--warning);
    font-weight: 600;
    margin-bottom: 8px;
}

.error-content {
    text-align: center;
    padding: 40px 20px;
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.1);
    }
}

.error-content h2 {
    color: var(--danger);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.error-reasons {
    text-align: left;
    max-width: 400px;
    margin: 20px auto;
    padding-left: 20px;
    color: var(--text-secondary);
}

.error-reasons li {
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 80px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.powered-by {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.powered-by .upx-text {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .header-top {
        flex-direction: column;
        gap: 15px;
    }

    .logo-container {
        margin-left: 0;
    }

    main {
        padding: 25px;
    }

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

    .link-container {
        flex-direction: column;
    }

    .secret-stats {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .stat-item {
        width: 100%;
        justify-content: center;
    }

    .tabs-group {
        flex-direction: row !important;
        justify-content: flex-start;
        gap: 10px;
    }

    .tab-label {
        margin-right: 0;
        flex: 1;
        justify-content: center;
        padding: 12px 10px;
    }

    .upx-logo {
        width: 100px;
    }
}