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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #e0e0e0;
}

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

.section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hidden {
    display: none !important;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #00d4ff;
}

h3 {
    font-size: 1.2rem;
    margin: 30px 0 15px;
    color: #a0a0a0;
}

.subtitle {
    color: #888;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #b0b0b0;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.form-group input::placeholder {
    color: #666;
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.error {
    background: rgba(255, 82, 82, 0.2);
    border: 1px solid #ff5252;
    color: #ff8a8a;
    padding: 14px;
    border-radius: 10px;
    margin-top: 20px;
}

.message {
    padding: 14px;
    border-radius: 10px;
    margin-top: 20px;
}

.message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #81c784;
}

.message.error {
    background: rgba(255, 82, 82, 0.2);
    border: 1px solid #ff5252;
    color: #ff8a8a;
}

.info-box {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.info-box h3 {
    color: #00d4ff;
    margin: 0 0 10px;
}

.info-box p {
    color: #a0a0a0;
    margin-bottom: 10px;
}

.info-box code {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    color: #00d4ff;
}

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

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.tab.active {
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    color: #fff;
}

.tab-content {
    display: none;
}

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

.profile-info {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row label {
    width: 150px;
    font-weight: 600;
    color: #888;
}

.info-row span {
    color: #fff;
}

.channel-list, .notes-list {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.channel-item, .note-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.channel-item:last-child, .note-item:last-child {
    border-bottom: none;
}

.channel-name {
    font-weight: 600;
    color: #00d4ff;
}

.channel-info {
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
}

.note-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 10px;
}

.note-item.unread {
    border-left: 3px solid #00d4ff;
}

.note-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.note-from {
    font-weight: 600;
    color: #7c3aed;
}

.note-date {
    font-size: 0.85rem;
    color: #888;
}

.note-message {
    color: #e0e0e0;
    line-height: 1.5;
}

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

footer {
    text-align: center;
    padding: 30px;
    color: #555;
    font-size: 0.9rem;
}

.demo-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-section h3 {
    color: #7c3aed;
    margin-bottom: 10px;
}

.demo-section p {
    color: #888;
    margin-bottom: 15px;
}

.service-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-btn {
    padding: 12px 24px;
    background: #1a1f2e;
    border: 2px solid #00d4a0;
    border-radius: 25px;
    color: #00d4a0;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.service-btn:hover {
    background: rgba(0, 212, 160, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 160, 0.3);
    transform: translateY(-1px);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ff5252;
}

.help-text {
    padding: 25px;
    margin: 0;
    overflow-y: auto;
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #00d4ff;
    background: rgba(0, 0, 0, 0.3);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.doc-btn {
    padding: 12px 24px;
    background: #1a1f2e;
    border: 2px solid #00d4a0;
    border-radius: 25px;
    color: #00d4a0;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.doc-btn:hover {
    background: rgba(0, 212, 160, 0.1);
    box-shadow: 0 0 15px rgba(0, 212, 160, 0.3);
    transform: translateY(-1px);
}

.modal-large {
    max-width: 900px;
    max-height: 85vh;
}

.doc-content {
    padding: 25px;
    overflow-y: auto;
    line-height: 1.7;
    color: #e0e0e0;
}

.doc-content h1 {
    color: #00d4ff;
    font-size: 1.8rem;
    margin: 20px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.doc-content h2 {
    color: #00d4a0;
    font-size: 1.4rem;
    margin: 25px 0 12px 0;
}

.doc-content h3 {
    color: #7c3aed;
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
}

.doc-content p {
    margin: 8px 0;
}

.doc-content code {
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
    color: #00d4ff;
}

.doc-content pre.code-block {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
}

.doc-content pre.code-block code {
    background: none;
    padding: 0;
    color: #00d4ff;
}

.doc-content ul {
    margin: 10px 0;
    padding-left: 25px;
}

.doc-content li {
    margin: 5px 0;
}

.doc-content a {
    color: #00d4ff;
    text-decoration: none;
}

.doc-content a:hover {
    text-decoration: underline;
}

.doc-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 25px 0;
}

.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.doc-content td {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.doc-content strong {
    color: #00d4a0;
}

.doc-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.doc-modal-close:hover {
    color: #ff5252;
}

@media (max-width: 600px) {
    .container {
        padding: 20px 10px;
    }
    
    .section {
        padding: 25px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-row label {
        width: 100%;
        margin-bottom: 5px;
    }
}
