@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Noto+Sans+JP:wght@300;400;700&display=swap');

:root {
    --bg-color: #050508;
    --card-bg: rgba(10, 10, 15, 0.6);
    --card-border: rgba(0, 243, 255, 0.2);
    --primary-neon: #00f3ff;
    --secondary-neon: #bc13fe;
    --success-neon: #00ff66;
    --text-main: #ffffff;
    --text-muted: #8b8b9b;
    --danger: #ff003c;
    --glow-spread: 15px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(188, 19, 254, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 243, 255, 0.05) 0%, transparent 40%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 243, 255, 0.02) 2px, rgba(0, 243, 255, 0.02) 4px);
    background-attachment: fixed;
}

h1,
h2,
h3,
.brand {
    font-family: 'Orbitron', 'Noto Sans JP', sans-serif;
}

/* Cyberpunk Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--primary-neon);
    box-shadow: 0 0 var(--glow-spread) rgba(0, 243, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-main);
    text-shadow: 0 0 10px var(--primary-neon), 0 0 20px var(--primary-neon);
    text-decoration: none;
    letter-spacing: 2px;
}

nav .nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav .nav-links a:hover {
    color: var(--primary-neon);
    text-shadow: 0 0 8px var(--primary-neon);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
    text-transform: uppercase;
    font-family: 'Orbitron', 'Noto Sans JP', sans-serif;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(100%) skewX(-15deg);
}

.btn-primary {
    background: transparent;
    color: var(--primary-neon);
    border: 2px solid var(--primary-neon);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3), inset 0 0 10px rgba(0, 243, 255, 0.2);
}

.btn-primary:hover {
    background: var(--primary-neon);
    color: #000;
    box-shadow: 0 0 20px var(--primary-neon), inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-neon);
    border: 2px solid var(--secondary-neon);
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.3), inset 0 0 10px rgba(188, 19, 254, 0.2);
}

.btn-outline:hover {
    background: var(--secondary-neon);
    color: #fff;
    box-shadow: 0 0 20px var(--secondary-neon);
}

/* Container & Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem;
}

.hero {
    text-align: center;
    padding: 6rem 0 4rem;
    animation: fadeInDown 0.8s ease backwards;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(188, 19, 254, 0.4));
    line-height: 1.1;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    border-left: 3px solid var(--primary-neon);
    padding-left: 1rem;
    text-align: left;
    background: rgba(0, 243, 255, 0.03);
    padding: 1rem;
}

/* Neon Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--primary-neon);
    box-shadow: 0 0 15px var(--primary-neon);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-neon);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 243, 255, 0.1);
}

.card:hover::after {
    opacity: 1;
}

.card-recommend {
    border-color: rgba(188, 19, 254, 0.5);
}

.card-recommend:hover {
    border-color: var(--secondary-neon);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(188, 19, 254, 0.2);
}

.card-recommend::after {
    background: var(--secondary-neon);
    box-shadow: 0 0 15px var(--secondary-neon);
}

/* Profile Section */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding: 3rem;
    border-bottom: 1px solid var(--card-border);
    position: relative;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #000;
    border: 2px solid var(--secondary-neon);
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.2), inset 0 0 10px rgba(188, 19, 254, 0.2);
    padding: 5px;
    transition: all 0.5s ease;
}

.profile-avatar:hover {
    box-shadow: 0 0 20px var(--secondary-neon), inset 0 0 15px var(--secondary-neon);
    transform: scale(1.05);
}

.profile-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.profile-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-neon);
}

/* Owner Avatar Gradient Border & Animation */
.owner-avatar-container {
    display: inline-block;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4500, #ff1493, #00f3ff);
    background-size: 200% 200%;
    animation: gradientFlow 3s ease infinite, float 4s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 69, 0, 0.4), 0 0 8px rgba(0, 243, 255, 0.4);
    margin-bottom: 1rem;
}

.owner-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #050508;
}

.stats-pulse {
    animation: pulseGlow 2.5s infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.03);
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 8px rgba(0, 255, 102, 0.3);
    }

    50% {
        box-shadow: 0 0 35px rgba(0, 255, 102, 0.9), inset 0 0 10px rgba(0, 255, 102, 0.2);
    }

    100% {
        box-shadow: 0 0 8px rgba(0, 255, 102, 0.3);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* FAQ Mobile Tweaks */
@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .card {
        padding: 1.5rem;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.3rem;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .nav-links a,
    .nav-links .btn {
        margin-left: 0 !important;
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    nav {
        flex-direction: column;
        text-align: center;
        padding: 0.8rem 1rem;
    }

    nav .brand {
        font-size: 1.3rem;
    }

    /* Order Tab Responsive Structure */
    .market-section {
        flex-direction: column !important;
    }

    .market-section .card {
        width: 100% !important;
        min-width: unset;
    }

    .accordion-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Tables */
.table-container {
    width: 100%;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1.5rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    color: var(--primary-neon);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(0, 243, 255, 0.05);
    font-family: 'Orbitron', sans-serif;
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background-color: rgba(0, 243, 255, 0.03);
}

/* Forms & Inputs */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.accordion-btn {
    width: 100%;
    text-align: left;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 1rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-content {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    color: var(--text-color);
    box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.15);
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    background: rgba(0, 243, 255, 0.02);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}