:root {
    --bg-color: #080808;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent: #fed100;
    /* Jamaican Gold */
    --accent-glow: rgba(254, 209, 0, 0.3);
    --green: #009b3a;
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-family: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Enhanced Background */
.background-blobs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    animation: float 20s infinite alternate;
}

.blob-1 {
    background: var(--green);
    top: -10%;
    left: -10%;
}

.blob-2 {
    background: var(--accent);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

@keyframes float {
    from {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    to {
        transform: translate(100px, 50px) rotate(30deg) scale(1.1);
    }
}

.container {
    width: 100%;
    max-width: 520px;
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Higher End Profile */
.profile {
    text-align: center;
    margin-bottom: 50px;
}

.avatar-container {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--green));
    padding: 3px;
    margin: 0 auto 24px;
    position: relative;
}

.avatar-container::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    opacity: 0.5;
}

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

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.04em;
    background: linear-gradient(to bottom, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#profile-bio {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 90%;
    margin: 0 auto;
}

/* Ultra Modern Link Buttons */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 22px 28px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.link-item:hover {
    background: var(--card-hover);
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(254, 209, 0, 0.05);
}

.link-item i {
    font-size: 1.4rem;
    margin-right: 20px;
    color: var(--accent);
    width: 24px;
    text-align: center;
    transition: var(--transition);
}

.link-item:hover i {
    transform: scale(1.15) rotate(-5deg);
    color: #fff;
}

.link-item::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 28px;
    opacity: 0.3;
    transition: var(--transition);
}

.link-item:hover::after {
    opacity: 1;
    transform: translateX(5px);
}

/* Footer / Admin Button */
.footer {
    margin-top: auto;
    padding: 80px 0 40px;
    text-align: center;
    width: 100%;
}

.admin-btn {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 100px;
    margin-bottom: 20px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.admin-btn:hover {
    background: var(--card-hover);
    color: var(--accent);
    border-color: var(--accent-glow);
}

.admin-btn::after {
    content: 'Settings';
}

/* Refined Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #111;
    width: 100%;
    max-width: 440px;
    border-radius: 32px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal.active .modal-content {
    transform: translateY(0);
}

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

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.close-modal {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Tab Styling */
.editor-tabs {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid var(--glass-border);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Form Controls */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 16px 20px;
    border-radius: 16px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(254, 209, 0, 0.1);
}

textarea {
    height: 100px;
    resize: none;
    line-height: 1.5;
}

.primary-btn,
.secondary-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.primary-btn {
    background: var(--accent);
    color: #000;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(254, 209, 0, 0.2);
    background: #ffe04d;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.editable-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
}

.remove-item {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ff4b4b;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.remove-item:hover {
    opacity: 1;
}

#auth-section p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-align: center;
}

#auth-section .primary-btn {
    margin-top: 20px;
}

.hidden {
    display: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

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