:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --secondary: #1a1a2e;
    --dark: #0f0f1e;
    --darker: #080810;
    --light: #ffffff;
    --gray: #8892b0;
    --gray-dark: #495670;
    --gray-light: #cbd5e0;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    --transition: all 0.2s ease;
    --border-radius: 8px;
}

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

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: var(--darker);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    transition: var(--transition);
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #000000;
    color: var(--light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.3) var(--darker);
    --gap: 5em;
    --line: 1px;
    --grid-color: rgba(0, 212, 255, 0.08);
    background-image:
        linear-gradient(
            -90deg,
            transparent calc(var(--gap) - var(--line)),
            var(--grid-color) calc(var(--gap) - var(--line) + 1px),
            var(--grid-color) var(--gap)
        ),
        linear-gradient(
            0deg,
            transparent calc(var(--gap) - var(--line)),
            var(--grid-color) calc(var(--gap) - var(--line) + 1px),
            var(--grid-color) var(--gap)
        );
    background-size: var(--gap) var(--gap);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

header {
    background: var(--dark);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

.logo img {
    height: 32px;
    width: auto;
}

.logo:hover {
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.language-selector {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background: var(--secondary);
    border-radius: var(--border-radius);
}

.language-selector button {
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-selector button svg {
    width: 24px;
    height: 24px;
    border-radius: 2px;
}

.language-selector button:hover {
    background: rgba(0, 212, 255, 0.1);
}

.language-selector button.active {
    background: rgba(0, 212, 255, 0.2);
}

.main-content {
    padding: 2rem 0;
}

.hero-compact {
    text-align: center;
    padding: 1.25rem 0 1rem;
}

.hero-compact h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    color: var(--light);
}

.hero-compact p {
    font-size: 0.875rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.compiler-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.panel-left,
.panel-right {
    background: var(--secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(0, 212, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.panel-left {
    gap: 1rem;
}

.panel-right {
    gap: 0.75rem;
    position: relative;
}

.rating-widget {
    position: absolute;
    top: -3rem;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    animation: slideInDown 0.3s ease-out;
}

.rating-widget:hover .rating-stars .star:not(.filled) {
    color: rgba(245, 158, 11, 0.3);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.rating-stars {
    display: flex;
    gap: 0.2rem;
}

.rating-stars .star {
    width: 16px;
    height: 16px;
    cursor: pointer;
    transition: var(--transition);
    color: #3a3a4a;
}

.rating-stars .star.filled {
    color: var(--warning);
}

.rating-stars .star.half-filled {
    background: linear-gradient(90deg, var(--warning) 50%, #3a3a4a 50%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.rating-stars .star:hover,
.rating-stars .star.hover {
    color: var(--warning);
    transform: scale(1.15);
}

.rating-stars.disabled .star:hover {
    transform: none;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gray);
    white-space: nowrap;
}

.rating-total {
    font-size: 0.75rem;
}

.rating-average {
    font-weight: 600;
    color: var(--warning);
    font-size: 0.85rem;
}

.upload-zone {
    border: 2px dashed rgba(0, 212, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
}

.upload-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    color: var(--primary);
}

.upload-zone h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--light);
}

.upload-zone p {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.upload-limit {
    font-size: 0.75rem;
    color: var(--gray-dark);
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    background: var(--dark);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    transition: var(--transition);
    font-size: 0.875rem;
}

.file-item:hover {
    border-color: var(--primary);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.file-info svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.file-name {
    font-weight: 500;
    color: var(--light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    color: var(--gray);
    font-size: 0.75rem;
}

.btn-remove-file {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--error);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    width: 32px;
    height: 32px;
}

.btn-remove-file:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.05);
}

.btn-primary {
    width: 100%;
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary svg {
    width: 20px;
    height: 20px;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:disabled {
    background: var(--gray-dark);
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
}

.compiled-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compiled-header h3 {
    font-size: 1rem;
    color: var(--light);
    margin: 0;
}

.compiled-controls {
    display: flex;
    gap: 0.75rem;
}

.toggle-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.toggle-control input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 36px;
    height: 20px;
    background: var(--gray-dark);
    border-radius: 10px;
    transition: var(--transition);
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--light);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-control input[type="checkbox"]:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-control input[type="checkbox"]:checked + .toggle-slider::after {
    transform: translateX(16px);
}

.toggle-label {
    font-size: 0.875rem;
    color: var(--gray);
}

.compiled-search {
    position: relative;
    margin-bottom: 0.75rem;
}

.compiled-search svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--gray);
    pointer-events: none;
}

.compiled-search input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    background: var(--dark);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--light);
    font-size: 0.875rem;
    transition: var(--transition);
}

.compiled-search input:focus {
    outline: none;
    border-color: var(--primary);
}

.compiled-search input::placeholder {
    color: var(--gray);
}

.compiled-list {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.compiled-list:empty::after {
    content: 'No compiled files yet';
    display: block;
    text-align: center;
    color: var(--gray);
    font-size: 0.875rem;
    padding: 2rem 0;
}

.compiled-file {
    background: var(--dark);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    border: 1px solid rgba(0, 212, 255, 0.15);
    transition: var(--transition);
}

.compiled-file:hover {
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.05);
}

.compiled-file-info {
    flex: 1;
    min-width: 0;
}

.compiled-file-name {
    font-weight: 500;
    color: var(--light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-version {
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.compiled-file-meta {
    font-size: 0.75rem;
    color: var(--gray);
}

.compiled-file-download {
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compiled-file-download svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.compiled-file-download:hover {
    background: var(--primary-dark);
}

.file-warning-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition);
    color: var(--warning);
    position: relative;
}

.file-warning-icon:hover {
    transform: scale(1.15);
    filter: brightness(1.3);
}

.warning-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--warning);
}

.warning-badge svg {
    width: 20px;
    height: 20px;
}

.warning-badge:hover {
    transform: scale(1.15);
    filter: brightness(1.3);
}

.file-warning-icon[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--dark);
    color: var(--light);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    white-space: nowrap;
    max-width: 250px;
    white-space: normal;
    z-index: 10000;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.2s ease;
}

.file-warning-icon[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    right: 8px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--dark);
    z-index: 10001;
}

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

.compiled-file-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compiled-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-action svg {
    width: 16px;
    height: 16px;
}

.btn-download-all {
    background: var(--primary);
    color: var(--dark);
}

.btn-download-all:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-download-all:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-clear-all {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-clear-all:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--error);
}

.btn-clear-all:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.confirm-panel {
    position: relative;
    background: var(--secondary);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 450px;
    padding: 2rem;
    z-index: 10001;
    animation: slideInCenter 0.3s ease;
    text-align: center;
}

.confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-icon svg {
    width: 32px;
    height: 32px;
    color: var(--warning);
}

.confirm-panel h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--light);
}

.confirm-panel p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.confirm-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.btn-confirm-cancel {
    padding: 0.75rem 1.5rem;
    background: var(--dark);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--light);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-confirm-cancel:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
}

.btn-confirm-delete {
    padding: 0.75rem 1.5rem;
    background: var(--error);
    border: none;
    color: var(--light);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-confirm-delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.info-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.info-section h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    color: var(--light);
}

.protection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.protection-item {
    background: var(--dark);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.protection-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.features-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    background: var(--secondary);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    display: flex;
    gap: 1rem;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--primary);
}

.feature-item svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-content h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
    color: var(--light);
}

.feature-content p {
    font-size: 0.8125rem;
    color: var(--gray);
    line-height: 1.5;
}

.hosting-link {
    margin: 2rem 0;
    text-align: center;
}

.hosting-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--border-radius);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.hosting-link a:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary);
}

.hosting-link svg {
    width: 20px;
    height: 20px;
}

footer {
    background: var(--dark);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 32px;
    width: auto;
}

.footer-left p {
    font-size: 0.875rem;
    color: var(--gray);
}

.footer-right {
    display: flex;
    gap: 1.5rem;
}

.footer-right a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-right a:hover {
    color: var(--primary);
}

.limit-warning {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--secondary);
    border: 1px solid var(--warning);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    max-width: 400px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.limit-warning-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.limit-warning-content svg {
    width: 24px;
    height: 24px;
    color: var(--warning);
    flex-shrink: 0;
}

.limit-warning-content h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    color: var(--light);
}

.limit-warning-content p {
    font-size: 0.8125rem;
    color: var(--gray);
}

.limit-warning-content button {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    transition: var(--transition);
}

.limit-warning-content button:hover {
    color: var(--light);
}

.notification-container {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    width: 400px;
    max-width: calc(100vw - 3rem);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.notification {
    background: var(--secondary);
    padding: 1rem 1.5rem 1rem 1rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary);
    animation: slideInRight 0.3s ease;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    backdrop-filter: blur(8px);
    color: var(--light);
}

.notification svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.notification span {
    flex: 1;
    word-wrap: break-word;
}

.notification button {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: var(--transition);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification button:hover {
    color: var(--light);
}

.notification-success {
    border-left-color: var(--success);
}

.notification-success svg {
    color: var(--success);
}

.notification-error {
    border-left-color: var(--error);
}

.notification-error svg {
    color: var(--error);
}

.spinner {
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.8s linear infinite;
}

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

.guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.guide-panel {
    position: relative;
    background: var(--secondary);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    z-index: 10001;
    animation: slideIn 0.3s ease;
}

.guide-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--primary);
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.guide-close:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary);
}

.guide-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--light);
    padding-right: 2rem;
}

.guide-section {
    margin-bottom: 2rem;
}

.guide-section h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.guide-section p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.guide-section code {
    background: var(--dark);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.code-block {
    background: var(--dark);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 1rem 0;
}

.code-header {
    background: rgba(0, 212, 255, 0.1);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-block pre {
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
}

.code-block code {
    background: transparent;
    padding: 0;
    color: var(--gray-light);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.guide-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--warning);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    color: var(--gray-light);
    font-size: 0.875rem;
    margin: 1rem 0;
}

.solution-block {
    margin-bottom: 1.5rem;
}

.solution-block h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.solution-block p {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.guide-section ul {
    list-style: none;
    padding: 0;
}

.guide-section ul li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.guide-section ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.guide-section ul li code {
    background: var(--dark);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    color: var(--primary);
}

.nav-link.guide-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: transparent;
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.nav-link.guide-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .compiler-panel {
        grid-template-columns: 1fr;
    }

    .features-compact {
        grid-template-columns: 1fr;
    }

    .rating-widget {
        position: static;
        justify-content: center;
        margin-bottom: 1rem;
        padding: 0.5rem;
    }

    .hero-compact {
        text-align: center;
    }

    .nav-right {
        gap: 1rem;
    }

    .language-selector {
        gap: 0.25rem;
    }

    .language-selector button {
        width: 24px;
        height: 24px;
    }

    .language-selector button svg {
        width: 20px;
        height: 20px;
    }

    .hero-compact h1 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
    }

    .guide-panel {
        width: 95%;
        max-height: 90vh;
        padding: 1.5rem;
    }

    .guide-panel h2 {
        font-size: 1.25rem;
    }

    .code-block pre {
        font-size: 0.75rem;
    }

    .notification-container {
        top: 10rem;
        width: 95%;
    }
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.custom-options {
    margin: 1.5rem 0;
}

.btn-custom-toggle {
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 153, 204, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-custom-toggle:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 153, 204, 0.1) 100%);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-custom-toggle svg {
    width: 18px;
    height: 18px;
}

.custom-panel {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-field {
    margin-bottom: 1.25rem;
}

.custom-field:last-child {
    margin-bottom: 0;
}

.custom-field label {
    display: block;
    color: var(--gray-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.custom-field input[type="text"],
.custom-field select {
    width: 100%;
    background: rgba(15, 15, 30, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--light);
    font-size: 0.875rem;
    transition: var(--transition);
}

.custom-field input[type="text"]:focus,
.custom-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.custom-field input[type="text"]::placeholder {
    color: var(--gray);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label span {
    color: var(--light);
    font-size: 0.9rem;
    font-weight: 500;
}

.field-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.375rem;
}

.field-hint.warning {
    color: var(--warning);
}

#ipProtectionFields {
    padding-left: 1rem;
    border-left: 2px solid rgba(0, 212, 255, 0.3);
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

@media (max-width: 768px) {
    .custom-panel {
        padding: 1rem;
    }

    .custom-field input[type="text"],
    .custom-field select {
        font-size: 16px;
    }

    .btn-custom-toggle {
        font-size: 0.875rem;
        padding: 0.875rem;
    }
}

@media (max-width: 480px) {
    .compiler-panel {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .panel-left,
    .panel-right {
        min-height: auto;
    }

    .upload-zone {
        padding: 2rem 1rem;
    }

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

    .hero-compact h1 {
        font-size: 2rem;
    }

    .hero-compact p {
        font-size: 0.95rem;
    }

    .features-compact {
        grid-template-columns: 1fr;
    }

    nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-right {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .language-selector {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .btn-primary,
    .btn-action {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .compiled-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .compiled-actions button {
        width: 100%;
    }

    .file-item,
    .compiled-file {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .file-info,
    .compiled-file-info {
        width: 100%;
    }

    .compiled-file-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .custom-field input[type="text"],
    .custom-field select {
        padding: 0.875rem;
    }
}

.file-options-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-panel {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(15, 15, 30, 0.98) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.modal-header h3 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-filename {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    padding: 0.75rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}

.modal-field {
    margin-bottom: 1.25rem;
}

.modal-field label {
    display: block;
    color: var(--light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.modal-field input[type="text"],
.modal-field select {
    width: 100%;
    background: rgba(15, 15, 30, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--light);
    font-size: 0.875rem;
    transition: var(--transition);
}

.modal-field input[type="text"]:focus,
.modal-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.modal-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--light);
    font-weight: 500;
}

.modal-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.modal-hint {
    display: block;
    color: var(--gray);
    font-size: 0.75rem;
    margin-top: 0.375rem;
}

.modal-hint.warning {
    color: #fbbf24;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.btn-modal-cancel,
.btn-modal-save {
    flex: 1;
    padding: 0.875rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-modal-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray);
}

.btn-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
}

.btn-modal-save {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-modal-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.btn-file-options {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-file-options svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.btn-file-options:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: scale(1.05);
}

.options-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.file-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 480px) {
    .modal-panel {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .btn-modal-cancel,
    .btn-modal-save {
        width: 100%;
    }
}
