@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #0a0a0a;
    --surface: #1a1a1a;
    --surface-hover: #252525;
    --border: #2a2a2a;
    --accent: #0088cc;
    --accent-hover: #006699;
    --text: #ffffff;
    --text-secondary: #8e8e93;
    --text-muted: #636366;
    --success: #34c759;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    font-size: 16px;
    position: relative;
    perspective: 1000px;
    overflow: hidden;
}

.bg-objects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bg-object {
    position: absolute;
    opacity: 0.25;
    transform-style: preserve-3d;
}

.cube {
    width: 80px;
    height: 80px;
    transform-style: preserve-3d;
    animation: cubeRotate 8s linear infinite;
}

.cube-face {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent);
    background: rgba(0, 136, 204, 0.1);
}

.cube-face:nth-child(1) { transform: rotateY(0deg) translateZ(40px); }
.cube-face:nth-child(2) { transform: rotateY(90deg) translateZ(40px); }
.cube-face:nth-child(3) { transform: rotateY(180deg) translateZ(40px); }
.cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(40px); }
.cube-face:nth-child(5) { transform: rotateX(90deg) translateZ(40px); }
.cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(40px); }

.cube-1 {
    top: 10%;
    left: 5%;
}

.cube-2 {
    top: 35%;
    left: 15%;
    animation-delay: 2s;
}

.cube-3 {
    bottom: 15%;
    right: 15%;
    animation-delay: 4s;
}

.pyramid {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 80px solid rgba(59, 130, 246, 0.2);
    transform-style: preserve-3d;
    animation: pyramidRotate 12s linear infinite;
}

.pyramid::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 80px solid rgba(59, 130, 246, 0.2);
    transform: rotateY(90deg);
}

.pyramid-1 {
    top: 20%;
    right: 10%;
}

.telegram-icon {
    width: 60px;
    height: 60px;
    transform-style: preserve-3d;
    animation: telegramRotate 10s linear infinite;
}

.telegram-icon i {
    font-size: 60px;
    color: var(--accent);
}

.telegram-1 {
    top: 5%;
    right: 5%;
}

.telegram-2 {
    bottom: 5%;
    left: 5%;
    animation-delay: 3s;
}

.telegram-3 {
    top: 45%;
    right: 5%;
    animation-delay: 6s;
}

.line-3d {
    position: absolute;
    width: 150px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    transform-style: preserve-3d;
    animation: lineMove 6s ease-in-out infinite;
    opacity: 0.6;
}

.line-1 {
    top: 25%;
    left: 3%;
    animation-delay: 0s;
}

.line-2 {
    top: 55%;
    right: 5%;
    animation-delay: 2s;
}

.line-3 {
    bottom: 25%;
    left: 10%;
    animation-delay: 4s;
}

@keyframes cubeRotate {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

@keyframes pyramidRotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes telegramRotate {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    25% { transform: rotateX(15deg) rotateY(15deg) rotateZ(5deg); }
    50% { transform: rotateX(0deg) rotateY(30deg) rotateZ(0deg); }
    75% { transform: rotateX(-15deg) rotateY(15deg) rotateZ(-5deg); }
    100% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
}

@keyframes lineMove {
    0%, 100% { 
        transform: translateX(0) rotateX(0deg) rotateY(0deg);
        opacity: 0.3;
    }
    50% { 
        transform: translateX(50px) rotateX(15deg) rotateY(15deg);
        opacity: 0.6;
    }
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 16px;
    position: relative;
    z-index: 1;
}

.header {
    margin-bottom: 16px;
}

h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 400;
}

.card {
    background: linear-gradient(145deg, var(--surface), var(--surface-hover));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.cover-photo {
    height: 100px;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-header {
    padding: 0 16px 12px;
    position: relative;
    margin-top: -40px;
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--surface-hover);
    border: 3px solid var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-info {
    margin-top: 10px;
}

.profile-info h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.profile-info p {
    font-size: 13px;
    color: var(--accent);
    margin: 0;
    font-weight: 500;
}

.info-section {
    padding: 0 16px 16px;
}

.info-section h3 {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.info-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-item {
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.info-item:hover {
    background: var(--surface);
    border-color: var(--accent);
}

.info-item i {
    font-size: 18px;
    color: var(--accent);
}

.info-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s ease;
}

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

.btn:disabled {
    background: var(--surface-hover);
    color: var(--text-muted);
    cursor: not-allowed;
}

.btn.loading {
    background: var(--surface-hover);
    color: var(--text-muted);
    cursor: not-allowed;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.btn.loading .btn-spinner {
    border-color: var(--text-muted);
    border-top-color: var(--accent);
}

.btn.loading .btn-dots span {
    background: var(--text-muted);
}

.btn-loading {
    display: none;
}

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-dots {
    display: flex;
    gap: 4px;
}

.btn-dots span {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.btn-dots span:nth-child(1) { animation-delay: 0s; }
.btn-dots span:nth-child(2) { animation-delay: 0.2s; }
.btn-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.2); }
}

.status {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.status.show {
    transform: translateX(0);
}

.status.success {
    background: rgba(52, 199, 89, 0.2);
    border: 1px solid var(--success);
    color: var(--success);
}

.status.error {
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid var(--error);
    color: var(--error);
}

.status i {
    font-size: 20px;
}

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