/* SocialTrouble Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --hue: 260;
    --sat: 100%;
    --lig: 65%;

    --brand: hsl(var(--hue), var(--sat), var(--lig));
    --brand-glow: hsla(var(--hue), var(--sat), var(--lig), 0.5);

    --bg: #0a0a0b;
    --surface: #141416;
    --surface-hover: #1f1f22;
    --border: #2d2d30;

    --text-main: #ffffff;
    --text-muted: #a1a1aa;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px -10px var(--brand-glow);

    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.max-w-md {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

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

.flex-col {
    display: flex;
    flex-direction: column;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.title-xl {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-lg {
    font-size: 2.5rem;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(to right, var(--brand), #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted {
    color: var(--text-muted);
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 20px -5px var(--brand-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -5px var(--brand-glow);
    filter: brightness(1.1);
}

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

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: #444;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.card-glass {
    background: rgba(20, 20, 22, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Form Styles */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    text-align: left;
}

.input-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 1rem;
    color: white;
    font-family: inherit;
    transition: all 0.2s;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(var(--hue), var(--sat), var(--lig), 0.1);
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--text-main);
}

/* Profile Specific */
.profile-header {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg);
    box-shadow: 0 0 0 2px var(--brand);
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s;
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
}

.link-card:hover {
    transform: scale(1.02);
    border-color: var(--brand);
    background: var(--surface-hover);
}

.link-card a {
    width: 100%;
    font-weight: 600;
}

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

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

.animate-fade-in {
    animation: fadeIn 0.6s var(--ease-out) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: relative;
    width: 100%;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

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

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

/* Tabs System */
.tab-nav {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: var(--radius-sm);
}

.tab-btn:hover {
    color: white;
    background: var(--surface-hover);
}

.tab-btn.active {
    color: white;
    background: var(--surface-hover);
    box-shadow: 0 0 0 1px var(--border);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s var(--ease-out);
}

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

/* Form Layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {

    .dashboard-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
}