* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #252a3b, #050711);
    color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 480px;
    background: rgba(8, 10, 20, 0.9);
    border-radius: 18px;
    padding: 24px 20px 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
}

h1, h2 {
    text-align: center;
    margin-bottom: 12px;
}

h1 {
    font-size: 1.6rem;
}

p.subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #bbbbc9;
    margin-bottom: 18px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    font-size: 0.85rem;
    color: #c8c8d5;
}

input[type="text"],
input[type="password"],
input[type="url"],
input[type="file"] {
    width: 100%;
    padding: 10px 11px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 7, 16, 0.9);
    color: #f5f5f5;
    font-size: 0.9rem;
}

input::placeholder {
    color: #80809b;
}

.links-wrapper {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-row {
    display: flex;
    gap: 6px;
}

.link-row input[type="text"] {
    flex: 0.4;
}

.link-row input[type="url"] {
    flex: 0.6;
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
}

button.primary,
.btn.primary {
    background: linear-gradient(135deg, #ff7a3c, #ffb347);
    color: #11111a;
    font-weight: 600;
    width: 100%;
    margin-top: 6px;
}

button.secondary,
.btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #f5f5f5;
}

button.icon-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.1rem;
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

button:active,
.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.footer {
    margin-top: 16px;
    text-align: center;
    font-size: 0.75rem;
    color: #8b8ba0;
}

.footer span {
    color: #ff914d;
}

/* Profile page */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 145, 77, 0.8);
    background: radial-gradient(circle, #2b3045, #101321);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.username {
    font-weight: 600;
    font-size: 1.1rem;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.links-list a {
    display: block;
}

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.error {
    background: rgba(255, 77, 77, 0.1);
    color: #ffb1b1;
    border: 1px solid rgba(255, 77, 77, 0.4);
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.success {
    background: rgba(77, 255, 136, 0.08);
    color: #b6ffd2;
    border: 1px solid rgba(77, 255, 136, 0.4);
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* Password forms on edit/delete pages */
.password-form {
    margin-top: 10px;
}