:root {
    --bg-color: #1e1e1e;
    --text-color: #d4d4d4;
    --accent-color: #e74c3c;
    --secondary-color: #333333;
    --hover-color: #464646;
    --card-color: #2d2d2d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

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

.logo-text {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.profile-icon {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.profile-icon:hover {
    transform: scale(1.1);
}

.profile-page {
    padding: 50px 0;
}

.profile-header {
    background-color: var(--card-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 30px;
    margin-bottom: 30px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    font-weight: bold;
}

.profile-details h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.profile-details p {
    opacity: 0.8;
}

.profile-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.btn {
    background: linear-gradient(90deg, #e74c3c, #ff7f50);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    border: 1px solid var(--accent-color);
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    background-color: var(--card-color);
    border-radius: 10px;
    overflow: hidden;
}

.tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
}

.tab.active {
    background-color: var(--accent-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.orders-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    padding: 8px 12px;
}

.refresh-btn svg {
    width: 14px;
    height: 14px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-item {
    background-color: var(--card-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.order-item:hover {
    transform: translateY(-3px);
}

.order-header {
    padding: 15px;
    background-color: rgba(231, 76, 60, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.order-id {
    font-size: 14px;
    font-weight: bold;
}

.order-date {
    font-size: 12px;
    opacity: 0.8;
}

.order-status {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background-color: #f39c12;
    color: white;
}

.status-in-progress {
    background-color: #3498db;
    color: white;
}

.status-completed {
    background-color: #2ecc71;
    color: white;
}

.status-cancelled {
    background-color: #7f8c8d;
    color: white;
}

.order-details {
    padding: 15px;
}

.order-product {
    margin-bottom: 15px;
    font-size: 16px;
}

.order-properties {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.order-total-price {
    font-size: 16px;
    color: var(--accent-color);
}

.empty-list {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.empty-list.error {
    color: var(--accent-color);
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.library-item {
    background-color: var(--card-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.library-image {
    height: 200px;
    position: relative;
}

.library-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.library-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
}

.library-actions {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.library-actions .btn {
    flex: 1;
    padding: 8px;
    font-size: 12px;
    text-align: center;
}

.share-link {
    display: flex;
    margin-top: 20px;
    margin-bottom: 40px;
    gap: 10px;
    align-items: center;
}

.share-link input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 6px;
    border: none;
    background-color: var(--card-color);
    color: var(--text-color);
    font-family: 'JetBrains Mono', monospace;
}

.share-link .btn {
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto;
    font-size: 14px;
}

@media (max-width: 768px) {
    .profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .orders-list, .library-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-color);
}

/* Стили для форм авторизации */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.auth-tab {
    padding: 10px 20px;
    cursor: pointer;
    color: #888;
    position: relative;
}

.auth-tab.active {
    color: var(--accent-color);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ddd;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background-color: #2a2a2a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group small {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

.form-error {
    color: var(--accent-color);
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 20px;
}

.alternative-login {
    margin-top: 20px;
    text-align: center;
    position: relative;
}

.alternative-login span {
    display: inline-block;
    padding: 0 10px;
    background-color: var(--bg-color);
    position: relative;
    z-index: 1;
    color: #888;
}

.alternative-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #333;
    z-index: 0;
}

.alternative-login button {
    margin-top: 15px;
}

/* Разрешаем выделение текста в полях ввода и текстовых областях */
input, textarea {
    -webkit-user-select: text;
    user-select: text;
}

/* Разрешаем выделение текста в элементах с классом selectable */
.selectable {
    -webkit-user-select: text;
    user-select: text;
}