:root {
    --cyber-yellow: #FFD700;
    --cyber-yellow-light: #FFEC8B;
    --cyber-yellow-dark: #CC9900;
    --electric-blue: #00D9FF;
    --hot-pink: #FF006E;
    --neon-green: #39FF14;
    --deep-purple: #6B00FF;
    --void-black: #0A0A0F;
    --dark-grey: #1A1A24;
    --mid-grey: #4A4A5A;
    --light-grey: #B8B8C8;
    --pure-white: #FFFFFF;
    --error-red: #FF4444;
    --success-green: #00C851;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--void-black);
    color: var(--pure-white);
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 211, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 211, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Site Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.98) 0%, rgba(26, 26, 36, 0.95) 100%);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--cyber-yellow), #00d9ff, var(--electric-blue), var(--cyber-yellow)) 1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(255, 211, 0, 0.7));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand:hover img {
    transform: scale(1.1) rotate(-2deg);
    filter: drop-shadow(0 0 25px rgba(255, 211, 0, 0.9));
}

.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-link-btn {
    color: var(--light-grey);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(255, 211, 0, 0.1), rgba(255, 211, 0, 0.1));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link-btn:hover {
    color: var(--pure-white);
    border-color: var(--electric-blue);
    background: linear-gradient(135deg, rgba(255, 211, 0, 0.3), rgba(255, 211, 0, 0.3));
    box-shadow: 0 0 30px rgba(255, 211, 0, 0.5);
    transform: translateY(-3px);
}

/* Profile Dropdown */
.profile-dropdown-container {
    position: relative;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--cyber-yellow);
    background: linear-gradient(135deg, rgba(255, 211, 0, 0.1), rgba(255, 211, 0, 0.1));
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 211, 0, 0.5);
    border-color: var(--electric-blue);
}

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

.profile-icon .default-avatar {
    width: 24px;
    height: 24px;
    fill: var(--cyber-yellow);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.98) 0%, rgba(10, 10, 15, 0.99) 100%);
    border: 1px solid rgba(255, 211, 0, 0.2);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 211, 0, 0.1);
    z-index: 1001;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: rgba(26, 26, 36, 0.98);
    border-left: 1px solid rgba(255, 211, 0, 0.2);
    border-top: 1px solid rgba(255, 211, 0, 0.2);
    transform: rotate(45deg);
}

.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 211, 0, 0.1);
}

.dropdown-header .user-name {
    font-weight: 600;
    color: var(--cyber-yellow);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-header .user-email {
    font-size: 12px;
    color: var(--light-grey);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--light-grey);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    background: transparent;
    border-right: none;
    border-top: none;
    border-bottom: none;
    width: 100%;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(255, 211, 0, 0.1), transparent);
    color: var(--pure-white);
    border-left-color: var(--cyber-yellow);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 211, 0, 0.1);
    margin: 8px 0;
}

.dropdown-item.logout {
    color: var(--error-red);
}

.dropdown-item.logout:hover {
    background: linear-gradient(90deg, rgba(255, 68, 68, 0.1), transparent);
    border-left-color: var(--error-red);
}

main {
    padding: 100px 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(28px, 5vw, 42px);
    color: var(--cyber-yellow);
    margin-bottom: 12px;
    letter-spacing: 4px;
    text-shadow: 0 0 40px rgba(255, 211, 0, 0.3);
}

.page-header p {
    color: var(--light-grey);
    font-size: 18px;
}

.profile-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.profile-sidebar {
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.9) 0%, rgba(10, 10, 15, 0.95) 100%);
    border: 1px solid rgba(255, 211, 0, 0.15);
    border-radius: 16px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--light-grey);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    text-decoration: none;
}

.sidebar-tab:hover {
    background: rgba(255, 211, 0, 0.05);
    color: var(--pure-white);
}

.sidebar-tab.active {
    background: linear-gradient(135deg, rgba(255, 211, 0, 0.15), rgba(255, 211, 0, 0.1));
    color: var(--cyber-yellow);
    box-shadow: 0 0 20px rgba(255, 211, 0, 0.1);
}

.sidebar-tab svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.profile-content {
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.9) 0%, rgba(10, 10, 15, 0.95) 100%);
    border: 1px solid rgba(255, 211, 0, 0.15);
    border-radius: 16px;
    padding: 40px;
    min-height: 500px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 24px;
    color: var(--cyber-yellow);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.section-description {
    color: var(--light-grey);
    margin-bottom: 32px;
    font-size: 15px;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    color: var(--light-grey);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(10, 10, 15, 0.5);
    border: 2px solid rgba(255, 211, 0, 0.2);
    border-radius: 10px;
    color: var(--pure-white);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--cyber-yellow);
    box-shadow: 0 0 20px rgba(255, 211, 0, 0.2);
}

input::placeholder {
    color: var(--mid-grey);
}

input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.profile-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 211, 0, 0.03);
    border-radius: 12px;
    border: 1px dashed rgba(255, 211, 0, 0.2);
}

.profile-image-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--cyber-yellow);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 211, 0, 0.1), rgba(255, 211, 0, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 30px rgba(255, 211, 0, 0.2);
}

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

.profile-image-preview .default-avatar {
    width: 60px;
    height: 60px;
    fill: var(--cyber-yellow);
}

.profile-image-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-image-actions p {
    color: var(--light-grey);
    font-size: 14px;
    margin-bottom: 8px;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--cyber-yellow) 0%, #FFA500 100%);
    border: none;
    border-radius: 50px;
    color: var(--void-black);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 211, 0, 0.4);
}

.btn-remove {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--error-red);
    border-radius: 50px;
    color: var(--error-red);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: rgba(255, 68, 68, 0.1);
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 211, 0, 0.1);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--cyber-yellow) 0%, #FFA500 100%);
    border: none;
    border-radius: 50px;
    color: var(--void-black);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 211, 0, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    border: 2px solid var(--electric-blue);
    border-radius: 50px;
    color: var(--electric-blue);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--electric-blue);
    color: var(--void-black);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--cyber-yellow);
    border-radius: 50px;
    color: var(--cyber-yellow);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-text:hover {
    background: var(--cyber-yellow);
    color: var(--void-black);
    box-shadow: 0 0 20px rgba(255, 211, 0, 0.3);
}

.security-card {
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid rgba(255, 211, 0, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.security-card h3 {
    color: var(--cyber-yellow);
    font-size: 18px;
    margin-bottom: 8px;
}

.security-card p {
    color: var(--light-grey);
    font-size: 14px;
    margin-bottom: 16px;
}

.status-message {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}

.status-message.success {
    display: block;
    background: rgba(0, 200, 81, 0.1);
    border: 1px solid var(--success-green);
    color: var(--success-green);
}

.status-message.error {
    display: block;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--error-red);
    color: var(--error-red);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(10, 10, 15, 0.3);
    border-top-color: var(--void-black);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid rgba(255, 211, 0, 0.1);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(255, 211, 0, 0.3);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--cyber-yellow);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--light-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.quick-link-card {
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid rgba(255, 211, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: var(--pure-white);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.quick-link-card:hover {
    background: rgba(255, 211, 0, 0.05);
    border-color: var(--cyber-yellow);
    transform: translateY(-2px);
}

.quick-link-card svg {
    width: 32px;
    height: 32px;
    fill: var(--cyber-yellow);
    flex-shrink: 0;
}

.quick-link-card h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.quick-link-card p {
    font-size: 13px;
    color: var(--light-grey);
}

@media (max-width: 900px) {
    .profile-container {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }

    .sidebar-tabs {
        flex-direction: row;
        flex-wrap: wrap;
    }

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

    .profile-image-section {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-grey);
        padding: 20px;
    }
}

@media (max-width: 600px) {
    main {
        padding: 100px 20px 40px;
    }

    .profile-content {
        padding: 24px;
    }

    .site-header {
        padding: 12px 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
