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

body {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* =========================================
   GLOBAL BACKGROUND & EFFECTS
   ========================================= */
#customBgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.6;
    pointer-events: none;
    display: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( transparent 50%, rgba(255,255,255,0.02) 50% );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: -1;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* =========================================
   VIEWS CONTAINER
   ========================================= */
.view-section {
    display: none; /* Hidden by default, JS toggles this */
    width: 100%;
    min-height: 100vh;
}

.view-section.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* =========================================
   LANDING VIEW
   ========================================= */
#landing-view {
    position: relative;
    z-index: 10;
}

.landing-content {
    text-align: center;
    z-index: 10;
}

.landing-title {
    font-size: 64px;
    letter-spacing: 5px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: glitchIn 0.8s ease-out forwards;
}

.landing-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.landing-btn {
    padding: 15px 40px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-family: inherit;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.landing-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: left 0.3s ease;
    z-index: -1;
}

.landing-btn:hover {
    color: #000;
}

.landing-btn:hover::before {
    left: 0;
}

/* =========================================
   DASHBOARD VIEW (Terminal-themed Layout)
   ========================================= */
#dashboard-view.active {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
}

.dash-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar */
.dash-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    max-width: 260px;
    border: none;
    border-right: 2px solid #333;
    box-shadow: none;
    animation: none;
}

.dash-sidebar .MtDSzZ {
    flex-shrink: 0;
}

.dash-sidebar-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    overflow-y: auto;
}

.dash-sidebar-title {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 3px;
    text-align: center;
    padding: 10px 20px 25px;
    background: linear-gradient(90deg, #fff, #888, #fff);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wave 3s ease infinite;
}

.dash-sidebar-dot {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 10px;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 1.5px;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    position: relative;
}

.dash-nav-item svg {
    fill: #666;
    flex-shrink: 0;
    transition: fill 0.2s ease;
}

.dash-nav-item:hover,
.dash-nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    border-left-color: #fff;
}

.dash-nav-item:hover svg,
.dash-nav-item.active svg {
    fill: #fff;
}

.dash-nav-item.active::after {
    content: '>';
    position: absolute;
    right: 16px;
    color: #fff;
    animation: blink 1s step-end infinite;
}

.dash-logout {
    color: #ff4444 !important;
}

.dash-logout svg {
    fill: #ff4444 !important;
}

.dash-logout:hover {
    color: #ff6666 !important;
    background: rgba(255, 68, 68, 0.05);
    border-left-color: #ff4444;
}

.dash-nav-footer {
    margin-top: auto;
    padding: 15px 10px 0;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Main Content */
.dash-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    min-height: 100vh;
}

.dash-panel {
    display: none;
    max-width: 700px;
    animation: terminalFadeIn 0.5s ease-out;
}

.dash-panel.active {
    display: block;
}

/* Dashboard form styles */
.dash-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 15px;
}

.dash-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-label {
    color: #666;
    font-size: 12px;
    letter-spacing: 1.5px;
}

.dash-input {
    width: 100%;
    padding: 10px 14px;
    background: #0a0a0a;
    border: 1px solid #333;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dash-input:focus {
    outline: none;
    border-color: #555;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dash-input::placeholder {
    color: #444;
}

.dash-textarea {
    min-height: 100px;
    resize: vertical;
}

.dash-file {
    padding: 8px;
    font-size: 12px;
    color: #888;
}

.dash-file::file-selector-button {
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 6px 14px;
    cursor: pointer;
    margin-right: 12px;
    transition: all 0.2s;
}

.dash-file::file-selector-button:hover {
    background: #333;
    border-color: #666;
}

/* Dashboard buttons */
.dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dash-btn svg {
    fill: #fff;
}

.dash-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    transition: left 0.6s ease;
}

.dash-btn:hover {
    background: #222;
    border-color: #666;
}

.dash-btn:hover::before {
    left: 100%;
}

.dash-btn-outline {
    background: transparent;
    border-color: #555;
}

.dash-btn-outline:hover {
    background: rgba(255, 255, 255, 0.03);
}

.dash-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Coming soon placeholder */
.dash-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
    text-align: center;
}

.dash-coming-soon svg {
    fill: #333;
}

.dash-coming-soon span {
    color: #555;
    font-size: 14px;
    letter-spacing: 2px;
}

.dash-coming-soon p {
    color: #444;
    font-size: 12px;
}

/* =========================================
   PROFILE VIEW (Original Card Style)
   ========================================= */
#profile-view {
    padding: 20px;
}

.profile-container {
    max-width: 900px;
    width: 100%;
    /* Re-using previous styles via classes */
}

/* Reuse existing classes */
.emqhJn {
    max-width: 900px;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(5px);
    border: 2px solid #333;
    box-shadow: 0 0 50px rgba(255,255,255,0.1);
    animation: terminalFadeIn 0.8s ease-out backwards;
    position: relative;
    z-index: 2;
}

/* Header */
.MtDSzZ {
    background: rgba(26, 26, 26, 0.95);
    border-bottom: 2px solid #333;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pWRzUV {
    width: 12px;
    height: 12px;
    border: 1px solid #444;
    background: #222;
    border-radius: 50%;
}

.PDRgBS {
    margin-left: auto;
    color: #666;
    font-size: 12px;
    letter-spacing: 1px;
}

.surQPx {
    padding: 40px;
}

/* Profile Header Section */
.xSmljb {
    border: 1px solid #333;
    padding: 30px;
    margin-bottom: 30px;
    background: rgba(15, 15, 15, 0.5);
}

.AIgQyp {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.EmPHcd {
    width: 100px;
    height: 100px;
    border: 2px solid #444;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.MATrRJ h1 {
    font-size: 36px;
    margin-bottom: 4px;
    background: linear-gradient(90deg,#fff,#888,#fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200%;
    animation: wave 3s ease infinite;
}

.MATrRJ .profile-username {
    color: #666;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.MATrRJ .profile-desc {
    color: #999;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 4px;
}

.MATrRJ p {
    color: #888;
    font-size: 14px;
}

.etQfRa {
    display: flex;
    gap: 12px;
}

/* Profile Links Section */
.profile-links-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.profile-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #333;
    background: rgba(15, 15, 15, 0.8);
    color: #ccc;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.profile-link-item:hover {
    border-color: #555;
    background: rgba(30, 30, 30, 0.9);
    color: #fff;
}

.profile-link-favicon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Dashboard Links List */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
}

.links-empty {
    color: #555;
    font-size: 13px;
    text-align: center;
    padding: 20px;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid #333;
    background: rgba(15, 15, 15, 0.5);
    transition: border-color 0.2s ease;
}

.link-item:hover {
    border-color: #444;
}

.link-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.link-favicon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.link-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.link-item-label {
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
}

.link-item-url {
    color: #555;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-remove-btn {
    background: transparent;
    border: 1px solid #333;
    color: #666;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.link-remove-btn svg {
    fill: #666;
}

.link-remove-btn:hover {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.link-remove-btn:hover svg {
    fill: #ff4444;
}

/* Dashboard Hint Text */
.dash-hint {
    color: #555;
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* =========================================
   DISCORD SECTION (Profile Page)
   ========================================= */
.discord-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
}

.discord-left {
    flex-shrink: 0;
}

.discord-avatar-wrap {
    position: relative;
    width: 64px;
    height: 64px;
}

.discord-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #333;
    object-fit: cover;
    background: #1a1a1a;
}

.discord-presence-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid rgba(15, 15, 15, 0.8);
    background: #747f8d;
}

.discord-right {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.discord-display-name {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
}

.discord-username {
    color: #666;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.discord-status-row {
    margin-top: 4px;
}

.discord-presence-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #747f8d;
}

.discord-custom-status {
    color: #999;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

/* =========================================
   AUDIO PLAYER (Profile Page)
   ========================================= */
.audio-player {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

.audio-play-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #444;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.audio-play-btn:hover {
    background: #333;
    border-color: #666;
}

.audio-play-btn svg {
    fill: #fff;
}

.audio-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.audio-label {
    color: #888;
    font-size: 11px;
    letter-spacing: 1.5px;
}

.audio-progress-bar {
    width: 100%;
    height: 4px;
    background: #222;
    border: 1px solid #333;
    overflow: hidden;
}

.audio-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #555, #fff);
    transition: width 0.3s linear;
}

.kGDPhT {
    width: 40px;
    height: 40px;
    border: 1px solid #444;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.kGDPhT:hover {
    background: #333;
}

.kGDPhT svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* Info Box */
.ioxWsc {
    border: 1px solid #333;
    padding: 20px;
    background: rgba(15, 15, 15, 0.8);
}

.VGMSac {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #888;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.DUozzJ {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    font-size: 13px;
}

.adMunF { color: #666; }
.MuWawd { color: #fff; }
.PhlzPb { color: #4ade80; }

/* Toast */
.gCHlYe {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    color: #000;
    padding: 15px 25px;
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 2000;
}
.gCHlYe.show { display: flex; }

/* Overlay for Intro */
.YdfwcS {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.YdfwcS.started {
    animation: fadeOutIntro 0.8s ease-out 0.5s forwards;
    pointer-events: none;
}

@keyframes fadeOutIntro {
    to { opacity: 0; }
}

.VrjLpb {
    font-size: 24px;
    letter-spacing: 3px;
    color: #666;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes wave {
    0%,100% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
}

@keyframes glitchIn {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    #dashboard-view.active {
        flex-direction: column;
    }

    .dash-layout {
        flex-direction: column;
    }

    .dash-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .dash-sidebar-body {
        padding: 10px 0;
    }

    .dash-sidebar-title {
        padding: 8px 20px 12px;
        font-size: 22px;
    }

    .dash-nav-footer {
        flex-direction: row;
        padding: 10px 10px 0;
    }

    .dash-content {
        margin-left: 0;
        padding: 20px;
    }

    .AIgQyp {
        flex-direction: column;
        text-align: center;
    }

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

    .dash-btn-group {
        flex-direction: column;
    }
}
