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

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f0f11;
    background: radial-gradient(circle at center, #1a0505 0%, #000000 100%);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.125rem;
}

::-webkit-scrollbar-thumb {
    background: rgba(104, 4, 4, 0.3);
    border-radius: 0.125rem;
}

.tablet-wrapper {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(15, 15, 17, 0.99) 0%, rgba(27, 28, 32, 0.98) 50%, rgba(15, 15, 17, 0.99) 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tablet-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgb(0, 0, 0) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 0, 0) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.tablet-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.tablet-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 3.5rem;
    background: radial-gradient(123.86% 123.86% at 50.00% 50.00%, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.00) 100%);
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.tablet-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 2;
    justify-content: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: 0.2s;
    cursor: pointer;
}

.nav-item:hover, .nav-item.active {
    background: rgba(206, 0, 0, 0.1);
    color: #ff5151;
}

.user-status {

    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

.name-container h1 {
    font-size: 0.875rem;
    font-weight: 400;
    background: radial-gradient(109.09% 109.09% at 50.00% 50.00%, #FFF 0%, rgba(255, 255, 255, 0.00) 100%);
    -webkit-text-fill-color: transparent;
}

.tablet-main {
    display: flex;
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
    flex-direction: column;
}

.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.welcome-logo {
    font-size: 4rem;
    background: radial-gradient(106.45% 106.45% at 50.00% 50.00%, #79140794 0%, rgba(206, 0, 0, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: radial-gradient(106.45% 106.45% at 50.00% 50.00%, #ffffff 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.welcome-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.btn-primary {
    width: auto;
    min-width: 200px;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0.375rem;
    border: 0.0625rem solid rgba(206, 0, 0, 0.4);
    background: rgba(206, 0, 0, 0.1);
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: rgba(206, 0, 0, 0.2);
    border-color: rgba(206, 0, 0, 0.6);
}

.app-form {
    display: none;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: radial-gradient(106.45% 106.45% at 50.00% 50.00%, #79140794 0%, rgba(206, 0, 0, 0.5) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.section-title i {
    font-size: 1.25rem;
    color: #791407;
    -webkit-text-fill-color: #ce0000;
}

.section-title:first-child {
    margin-top: 0;
}

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

.input-group {
    margin-bottom: 1rem;
}

.input-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-field {
    width: 100%;
    height: 3rem;
    text-align: left;
    border-radius: 0.375rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
    background: rgba(25, 25, 30, 0.9);
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0 1rem;
    font-family: 'Inter', sans-serif;
}

.textarea-field {
    width: 100%;
    min-height: 120px;
    border-radius: 0.375rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
    background: rgba(25, 25, 30, 0.9);
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
    resize: vertical;
}

.input-field::placeholder,
.textarea-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-field:focus,
.textarea-field:focus {
    border-color: rgba(206, 0, 0, 0.5);
    background: rgba(25, 25, 30, 0.95);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.portfolio-item {
    background: rgba(25, 25, 30, 0.4);
    border-radius: 0.5rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: 0.2s;
}

.portfolio-item:focus-within {
    border-color: rgba(206, 0, 0, 0.4);
    background: rgba(25, 25, 30, 0.8);
}

.portfolio-item i {
    font-size: 1.25rem;
    color: rgba(206, 0, 0, 0.6);
    padding: 0 1rem;
}

.portfolio-input {
    flex: 1;
    border: none;
    background: transparent;
    height: 3rem;
    border-radius: 0;
}

.portfolio-input:focus {
    background: transparent;
    border-color: transparent;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 1rem;
}

.checkbox-card {
    display: none;
}

.checkbox-label {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.08);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.checkbox-label:hover {
    background: rgba(206, 0, 0, 0.05);
    border-color: rgba(206, 0, 0, 0.2);
    transform: translateY(-0.25rem);
}

.checkbox-card:checked+.checkbox-label {
    background: rgba(206, 0, 0, 0.15);
    border-color: rgba(206, 0, 0, 0.5);
}

.checkbox-card:checked+.checkbox-label i,
.checkbox-card:checked+.checkbox-label span {
    color: white;
}

.checkbox-label i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.checkbox-label span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.role-label {
    display: flex;
    align-items: center;
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.role-label:hover {
    background: rgba(206, 0, 0, 0.05);
    border-color: rgba(206, 0, 0, 0.2);
    transform: translateX(0.25rem);
}

.checkbox-card:checked+.role-label {
    background: rgba(206, 0, 0, 0.15);
    border-color: rgba(206, 0, 0, 0.5);
}

.role-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: rgba(206, 0, 0, 0.6);
}

.checkbox-card:checked+.role-label .role-icon {
    color: #ce0000;
}

.role-text {
    flex: 1;
}

.role-text h4 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.role-text p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.submit-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.fade-out {
    animation: fadeOut 0.4s ease forwards;
}

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

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

div:where(.swal2-container) div:where(.swal2-popup) {
    background: radial-gradient(50% 43.92% at 50% 43.92%, rgba(27, 28, 32, 0.98) 0%, rgba(15, 15, 17, 0.99) 100%) !important;
    border: 0.0625rem solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 0.75rem !important;
}

div:where(.swal2-container) .swal2-title {
    color: white !important;
}

div:where(.swal2-container) .swal2-html-container {
    color: #aaa !important;
}