* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #ec4899;
    --success: #10b981;
    --error: #ef4444;
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --border: #27272a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== HOME PAGE ===== */
.home-page {
    background: var(--bg-darker);
}

.home-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--text);
}

.btn-nav-primary {
    padding: 0.625rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-nav-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.home-main {
    padding-top: 80px;
    min-height: 100vh;
}

.hero-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 9999px;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.badge-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-light);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn-hero-primary {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.4);
}

.hero-note {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.features-section {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.cta-section {
    max-width: 700px;
    margin: 6rem auto;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.btn-cta {
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    display: inline-block;
    transition: all 0.3s;
}

.btn-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.home-footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* ===== AUTH PAGES ===== */
.auth-page {
    background: var(--bg-darker);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: calc(64px + 2rem); /* Header height + padding */
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
}

.auth-container-modern {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 3rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    display: inline-block;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.auth-form {
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-darker);
}

.input-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.btn-auth-primary {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-auth-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
}

.auth-footer p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

/* Navigation */
.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--text);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

/* Landing Page */
.landing-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.feature .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-muted);
}

/* Auth Pages */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-box {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 400px;
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

.btn-delete {
    background: var(--error);
    color: white;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

/* Dashboard */
.dashboard h1 {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-muted);
}

.quick-actions,
.recent-links,
.recent-section {
    margin-bottom: 3rem;
}

.quick-actions h2,
.recent-links h2,
.recent-section h2 {
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Links */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-item,
.link-item-manager {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.link-icon {
    font-size: 1.5rem;
}

.link-info {
    flex: 1;
}

.link-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.link-info small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.link-status {
    font-size: 1.2rem;
}

.link-status.active {
    color: var(--success);
}

.link-status.inactive {
    color: var(--error);
}

.link-actions {
    display: flex;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state a {
    color: var(--primary);
}

/* Add Link Form */
.add-link-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.add-link-form h2 {
    margin-bottom: 1.5rem;
}

/* Admin Table */
.admin-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.admin-table thead {
    background: var(--bg-dark);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
}

.admin-table th {
    font-weight: 600;
    color: var(--text-muted);
}

.admin-table tbody tr {
    border-top: 1px solid var(--border);
}

.admin-table tbody tr:hover {
    background: var(--bg-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        width: 100%;
    }
    
    .nav-menu a {
        font-size: 0.875rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .admin-table {
        font-size: 0.875rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-menu a {
        font-size: 0.8125rem;
    }
}


/* Navigation */
.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--text);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

.btn-delete {
    background: var(--error);
    color: white;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Dashboard */
.dashboard h1 {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-muted);
}

.quick-actions,
.recent-links,
.recent-section {
    margin-bottom: 3rem;
}

.quick-actions h2,
.recent-links h2,
.recent-section h2 {
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Links */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-item,
.link-item-manager {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.link-icon {
    font-size: 1.5rem;
}

.link-info {
    flex: 1;
}

.link-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.link-info small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.link-status {
    font-size: 1.2rem;
}

.link-status.active {
    color: var(--success);
}

.link-status.inactive {
    color: var(--error);
}

.link-actions {
    display: flex;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state a {
    color: var(--primary);
}

/* Add Link Form */
.add-link-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.add-link-form h2 {
    margin-bottom: 1.5rem;
}

/* Admin Table */
.admin-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.admin-table thead {
    background: var(--bg-dark);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
}

.admin-table th {
    font-weight: 600;
    color: var(--text-muted);
}

.admin-table tbody tr {
    border-top: 1px solid var(--border);
}

.admin-table tbody tr:hover {
    background: var(--bg-dark);
}

/* Responsive */
@media (max-width: 968px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-item {
        white-space: nowrap;
        margin-bottom: 0;
        flex-shrink: 0;
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .nav-item span {
        display: none;
    }
    
    .nav-item svg {
        margin: 0;
    }
    
    .content-area {
        padding: 1.5rem 1rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .view-profile-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .admin-table {
        font-size: 0.875rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
    
    .auth-container-modern {
        padding: 2rem 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 4rem 1.5rem 3rem;
    }
    
    .features-section {
        grid-template-columns: 1fr;
        margin: 4rem auto;
    }
    
    .cta-section {
        margin: 4rem auto;
        padding: 3rem 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .nav-content {
        padding: 1rem 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 1.5rem 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .image-preview-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .upload-area {
        padding: 1.5rem;
    }
    
    .upload-area svg {
        width: 36px;
        height: 36px;
    }
    
    /* Auth page with header adjustment */
    .auth-page {
        padding-top: calc(56px + 1.5rem); /* Mobile header height + padding */
    }
}


/* SVG Icon Buttons */
.btn-icon-svg {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-muted);
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-svg:hover {
    color: var(--text);
}

.btn-icon-svg.btn-delete:hover {
    color: var(--error);
}

.btn svg {
    vertical-align: middle;
}


/* Form Sections */
.form-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.form-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.socials-form {
    max-width: 900px;
}

/* Profile Preview */
.profile-preview {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-label {
    font-weight: 500;
    color: var(--text-muted);
}

.preview-value {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text);
}


/* Custom File Upload Styling */
input[type="file"] {
    display: none;
}

.file-upload-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: 0.75rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    justify-content: center;
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.file-upload-label svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
}

.file-upload-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.file-upload-label.has-file {
    border-style: solid;
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

.file-upload-label.has-file .file-upload-text {
    color: var(--primary);
}


/* Custom Checkbox Styling */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: var(--bg-dark);
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    vertical-align: middle;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

input[type="checkbox"]:hover {
    border-color: var(--primary);
}

input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
}

.form-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-group label input[type="checkbox"] {
    margin-right: 0.75rem;
}


/* Hide YouTube iframe to reduce console errors */
.background-media iframe {
    pointer-events: none;
}


/* URL Input with Prefix */
.url-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s;
    height: 50px;
}

.url-input-wrapper:focus-within {
    border-color: var(--primary);
    background: var(--bg-darker);
}

.url-prefix {
    padding: 0 0 0 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    white-space: nowrap;
    user-select: none;
    line-height: 50px;
}

.url-input-wrapper input {
    flex: 1;
    padding: 0 1rem;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1rem;
    min-width: 0;
    height: 100%;
    line-height: normal;
}

.url-input-wrapper input:focus {
    outline: none;
    border: none;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.modal-close:hover {
    color: var(--error);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Image Editor */
.image-editor-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.image-preview-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    cursor: grab;
    user-select: none;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.image-preview-wrapper:active {
    cursor: grabbing;
}

.image-preview-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
    pointer-events: none;
}

.crop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3);
}

.editor-instructions {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    background: rgba(139, 92, 246, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.editor-instructions p {
    margin: 0.5rem 0;
}

.editor-instructions strong {
    color: var(--primary);
}
