/* Fonts loaded via <link rel="preload"> in HTML */

:root {
    /* Color Palette - Blue & Cyan */
    --primary-color: #2563eb;
    /* Blue 600 */
    --primary-hover: #1d4ed8;
    --secondary-color: #06b6d4;
    /* Cyan 500 */
    --background-color: #0f172a;
    /* Slate 900 for modern dark mode */
    --surface-color: #1e293b;
    /* Slate 800 */
    --surface-light: #334155;
    /* Slate 700 */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --bg-card: rgba(30, 41, 59, 0.8);
    --success-color: #10b981;
    --danger-color: #ef4444;

    /* Spacing & Layout */
    --container-max-width: 1000px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;

    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

main {
    flex: 1;
    padding: 2rem 0 4rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: preloaderPulse 0.8s ease-in-out infinite alternate;
}

@keyframes preloaderPulse {
    from {
        transform: scale(0.95);
        opacity: 0.7;
    }

    to {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Header (Glassmorphism - Semi-transparent with Blur) */
header {
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

/* Scroll Fade-In Animation (JS-driven, fail-safe) */
/* .scroll-hidden is added by JS — content is ALWAYS visible without JS */
.scroll-hidden {
    opacity: 0;
    transform: translateY(24px);
}

.scroll-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Staggered delay for cards */
.card-grid>.scroll-visible:nth-child(2) {
    transition-delay: 0.08s;
}

.card-grid>.scroll-visible:nth-child(3) {
    transition-delay: 0.16s;
}

.card-grid>.scroll-visible:nth-child(4) {
    transition-delay: 0.24s;
}

/* 3D Tilt */
.tilt-element {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background 0.3s ease;
    will-change: transform;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    flex: 1;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

nav a:hover,
nav a.active {
    color: var(--text-primary);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>a {
    cursor: default;
}

/* Invisible bridge to prevent hover gap */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 12px;
    background: transparent;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(30, 41, 59, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    min-width: 210px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 200;
    flex-direction: column;
    gap: 0;
}

.nav-dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-menu a:hover {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-color);
}

/* Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2.5rem 0 2.5rem;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--surface-color);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
    color: white;
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Section Divider */
.section-divider {
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
    /* glow effect */
    margin: 3rem auto 1.5rem;
    /* Reduced spacing */
    border-radius: 2px;
    opacity: 1;
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-normal);
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--surface-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

textarea.form-control {
    resize: none;
}

/* Footer */
footer {
    background: var(--surface-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social a:hover {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-left: 0.5rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-secondary);
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.lang-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: rgba(30, 41, 59, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    min-width: 160px;
    padding: 0.4rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 200;
}

.lang-dropdown.show {
    display: block;
}

.lang-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.lang-dropdown button:hover {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-color);
}

.lang-dropdown button.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Utils */
.text-center {
    text-align: center;
}

.text-secondary {
    color: var(--text-secondary);
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Tokushoho Contact Reveal */
.reveal-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reveal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    width: fit-content;
}

.reveal-btn:hover {
    background: rgba(37, 99, 235, 0.2);
}

.reveal-challenge {
    display: none;
    background: var(--surface-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.reveal-challenge.show {
    display: block;
}

.reveal-challenge input {
    padding: 0.5rem 0.75rem;
    background: var(--background-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    width: 120px;
}

.reveal-challenge .btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 4px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-family: inherit;
    margin-left: 0.5rem;
    transition: all var(--transition-fast);
}

.reveal-challenge .btn-sm:hover {
    background: var(--primary-hover);
}

.revealed-info {
    display: none;
    color: var(--text-primary);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
}

.revealed-info.show {
    display: block;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for cards */
.card-grid .card.reveal:nth-child(1) {
    transition-delay: 0s;
}

.card-grid .card.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.card-grid .card.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.card-grid .card.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

/* 3D Tilt */
.tilt-element {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background 0.3s ease;
    will-change: transform;
}

/* Search Toggle */
.search-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.search-toggle:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.search-modal.open {
    display: flex;
}

.search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.search-modal-content {
    position: relative;
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    width: 90%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: background var(--transition-fast);
}

.search-result-item:hover {
    background: rgba(37, 99, 235, 0.1);
}

.search-result-title {
    font-weight: 500;
}

.search-result-url {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.search-no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

.search-hint {
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: right;
}

/* Language dropdown scroll support for more items */
.lang-dropdown {
    max-height: 280px;
    overflow-y: auto;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--surface-color);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 200;
    margin-left: 1rem;
}

/* 拡大部分: モバイルメニューボタンのタップ領域を15px広げる */
.mobile-menu-btn::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    bottom: -15px;
    left: -15px;
}



.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    position: absolute;
    left: 0;
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 9px;
}

.mobile-menu-btn span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* Mobile Services Link in Header */
.mobile-services-link {
    display: none;
}

@media (max-width: 768px) {
    .mobile-services-link {
        display: block;
        margin-left: auto;
        color: var(--primary-color);
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
        white-space: nowrap;
        padding: 0.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 4rem 0 2rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 150;

        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all var(--transition-normal);
        margin: 0;
    }

    nav ul.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    nav a {
        font-size: 1.25rem;
    }

    .nav-dropdown {
        text-align: center;
    }

    /* Override hover for mobile, use JS toggle instead */
    .nav-dropdown:hover .dropdown-menu {
        display: none;
    }

    .nav-dropdown.active>.dropdown-menu {
        display: flex !important;
    }

    .dropdown-menu {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        display: none;
        min-width: unset;
        width: 100%;
        margin-top: 1rem;
        padding: 0;
    }

    .dropdown-menu a {
        font-size: 1.1rem;
        padding: 0.75rem;
        color: var(--text-secondary);
    }

    .dropdown-menu a:hover {
        background: transparent;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
    opacity: 0;
}

.cookie-content {
    flex-grow: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-btn {
    white-space: nowrap;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }

    .cookie-btn {
        width: 100%;
    }
}

/* Contact Form Loading */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.spinner {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}

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

/* ============================================
   Home page - extracted from inline styles
   ============================================ */

/* Background space gradient */
.home-space-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1200px;
    z-index: -2;
    pointer-events: none;
    background: linear-gradient(180deg, #02040a 0%, rgba(15, 23, 42, 0) 100%);
}

/* Canvas background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.85;
}

/* Canvas background — reduced opacity variant (info/legal/shop pages)
   Uses #bg-canvas prefix to beat the ID selector's specificity (1-0-0) */
#bg-canvas.bg-canvas-fixed {
    opacity: 0.5;
}

/* News banner section */
.news-section {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.news-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(59, 130, 246, 0.06));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.news-banner-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.news-badge {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #fff;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.news-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.news-text {
    color: var(--text-primary);
    margin: 0;
    font-size: 0.95rem;
    flex: 1;
    min-width: 200px;
}

.news-btn {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    flex-shrink: 0;
}

/* Rating guide section */
.rating-heading {
    margin-bottom: 2rem;
}

.rating-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.rating-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rating-item--special {
    border: 2px solid var(--primary-color);
}

.rating-stars {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ffb400;
}

.rating-stars--glow {
    text-shadow: 0 0 10px rgba(255, 180, 0, 0.5);
}

.rating-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.rating-text--primary {
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 500;
}

/* CTA button row */
.cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 5rem !important;
}

.cta-btn {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
}

/* Footer text */
.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-mobile-br {
    display: none;
}

.footer-version-wrap {
    margin-left: 1rem;
    opacity: 0.7;
}

.footer-version-link {
    color: inherit;
    text-decoration: none;
}

/* Coming-soon subtext */
.coming-soon-sub {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* Version history list items */
.history-li {
    margin-bottom: 0.5rem;
}

/* Note text — secondary small text */
.note-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Cursor pointer utility */
.cursor-pointer {
    cursor: pointer;
}

/* Primary color link */
.link-primary {
    color: var(--primary-color);
}

/* Legal page container — max-width constraint */
.legal-container {
    max-width: 800px;
}

/* Margin-top 1rem utility */
.mt-1rem {
    margin-top: 1rem;
}

/* Small text utility */
.text-sm {
    font-size: 0.9em;
}

/* ============================================
   about.html — extracted from inline styles
   ============================================ */

/* Canvas with mask-image gradient (about/history)
   Uses #bg-canvas prefix to beat the ID selector's specificity (1-0-0) */
#bg-canvas.bg-canvas-masked {
    opacity: 0.6;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 25%, rgba(0, 0, 0, 0.15) 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 25%, rgba(0, 0, 0, 0.15) 100%);
}

/* About hero card */
.about-hero-card {
    text-align: center;
    border-color: var(--primary-color);
}

/* About hero heading — needs .company-doc prefix to beat .company-doc h2 (0-1-1) */
.company-doc .about-hero-heading {
    justify-content: center;
    border: none;
    margin-top: 0;
}

/* About hero text — needs .company-doc prefix to beat .company-doc p (0-1-1) */
.company-doc .about-hero-text {
    margin-bottom: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* About highlight box — needs .company-doc prefix to beat .company-doc p (0-1-1) */
.company-doc .about-highlight-box {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success-color);
    padding: 1.5rem;
    color: var(--text-primary);
    border-radius: 4px;
    margin-top: 1.5rem;
}

/* ============================================
   history.html — extracted from inline styles
   ============================================ */

/* History page container */
.history-container {
    max-width: 800px;
    padding-top: 4rem;
}

/* History subtitle */
.history-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* History section heading */
.history-section-heading {
    margin-top: 2rem;
    font-size: 1.5rem;
}

.history-section-heading-lg {
    margin-top: 3rem;
    font-size: 1.5rem;
}

/* History version button */
.history-version-btn {
    border-color: rgba(99, 102, 241, 0.5);
    color: var(--primary-color);
}

/* History tabs row — flex-start override for the first controls row */
.history-tabs-row {
    justify-content: flex-start;
}

/* ============================================
   shop pages — extracted from inline styles
   ============================================ */

/* Shop main container */
.shop-main {
    padding-top: 1rem;
}

/* Shop canvas variant (height: 100%, z-index: 0, no opacity change from bg-canvas-fixed) */
#bg-canvas.bg-canvas-shop {
    height: 100%;
    z-index: 0;
}

/* Rating service ID label */
.rating-svc-id {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Rating service display name */
.rating-svc-name {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: -0.4rem;
    margin-bottom: 0.5rem;
}

/* Price unit text (e.g. "/100人 (税込)") */
.price-unit-text {
    font-size: 0.85rem;
}

/* Panel move wrapper */
.panel-move-wrap {
    margin-top: 0.8rem;
}

/* Panel move description text */
.panel-move-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

/* Coupon discount display */
.coupon-discount-text {
    font-size: 0.85rem;
    color: #4ade80;
    margin-top: 0.3rem;
}

/* ========================================
   Page-Specific Styles (Externalized)
   ======================================== */

/* --- Legal Document Pages (terms, refund, privacy) --- */
.legal-doc h2 {
    margin-top: 2rem;
    font-size: 1.25rem;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.legal-doc p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-doc ul,
.legal-doc ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-doc li {
    margin-bottom: 0.5rem;
}

/* Refund page emphasis box */
.emphasis-box {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--danger-color);
    padding: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* --- About Page (company-doc) --- */
.company-doc h2 {
    margin-top: 2.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.company-doc h3 {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 4px 4px 0;
}

.company-doc p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.company-doc strong {
    color: var(--text-primary);
}

/* --- Tokushoho Page --- */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--surface-color);
}

.legal-table th,
.legal-table td {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-table th {
    background: rgba(0, 0, 0, 0.2);
    text-align: left;
    width: 30%;
    font-weight: 500;
}

.rev-text {
    unicode-bidi: bidi-override;
    direction: rtl;
    display: inline-block;
}

.toku-container {
    max-width: 800px;
}

.toku-note {
    font-size: 0.9em;
    color: var(--text-secondary);
}

.toku-link {
    color: var(--primary-color);
}

.toku-challenge-desc {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* --- Contact Page --- */
.contact-container {
    max-width: 600px;
    margin: 1rem auto 2rem;
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
}

/* --- Thanks / Contact-Thanks Pages --- */
.thanks-container {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--surface-color);
    border-radius: var(--border-radius-md);
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.thanks-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* --- 404 Error Page --- */
.error-container {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.3));
}

.error-message {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.error-desc {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 500px;
}

/* --- History Page (history.html) --- */
.history-list {
    position: relative;
    margin: 3rem 0;
    padding-left: 2rem;
    border-left: 2px solid rgba(99, 102, 241, 0.3);
}

.history-item {
    position: relative;
    margin-bottom: 2rem;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -2.45rem;
    top: 0.35rem;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    z-index: 1;
}

.history-date {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.25rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.history-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-desc:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.history-scroll-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 1.5rem;
    margin-bottom: 3rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.05);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.history-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.history-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.history-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.history-item.latest::before {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--primary-color);
    animation: pulse-glow 2s infinite;
}

.history-item.latest .history-date {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.5), 0 0 20px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 0 15px rgba(99, 102, 241, 0.8), 0 0 30px rgba(99, 102, 241, 0.5); }
    100% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.5), 0 0 20px rgba(99, 102, 241, 0.3); }
}

.history-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.history-controls-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.history-tabs {
    display: flex;
    gap: 1rem;
}

.history-tabs .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.sort-controls select {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%20%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%207.5L10%2012.5L15%207.5%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 1rem auto;
    padding-right: 2.5rem;
}

.sort-controls select option {
    background-color: #1e293b;
    color: #ffffff;
}

.sort-controls select:focus {
    border-color: var(--primary-color);
}

.search-history {
    flex-grow: 1;
    min-width: 200px;
}

.search-history input {
    width: 100%;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-history input:focus {
    border-color: var(--primary-color);
}

/* --- Versions Page (versions.html) --- */
.versions-main {
    max-width: 800px;
    padding-top: 4rem;
}

.versions-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 25%, rgba(0, 0, 0, 0.15) 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 25%, rgba(0, 0, 0, 0.15) 100%);
}

.versions-back-btn {
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.versions-subtitle {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.versions-note {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 1rem;
}

.versions-note-text {
    font-size: 0.9rem;
}

/* Versions page overrides for shared history classes */
.history-version {
    font-size: 1.15rem;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.versions-main .history-date {
    display: inline-flex;
    align-items: baseline;
    gap: 0.8rem;
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.3);
    font-weight: 600;
    font-size: 1rem;
}

.versions-main .history-item.latest .history-date {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Services Page (services.html)
   ============================================ */

/* --- Block 1: General view UI --- */
.member-info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 215, 0, 0.5);
    color: #FFD700;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: 0.4rem;
    position: relative;
    flex-shrink: 0;
    vertical-align: middle;
}

.member-info-trigger:hover {
    background: rgba(255, 215, 0, 0.15);
}

.member-info-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 41, 59, 0.98);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    width: 260px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    font-weight: 400;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 50;
    pointer-events: none;
}

.member-info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(255, 215, 0, 0.25);
}

.member-info-trigger:hover .member-info-tooltip {
    display: block;
}

.services-separator {
    border: none;
    border-top: 2px solid rgba(255, 255, 255, 0.12);
    margin: 2.5rem 0 0;
}

.shop-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
}

.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.shop-breadcrumb a { color: var(--primary-color); text-decoration: none; }
.shop-breadcrumb a:hover { text-decoration: underline; }

.shop-panel-link {
    font-size: 0.88rem;
    color: #7dd3fc;
    text-decoration: none;
    white-space: nowrap;
}

.shop-panel-link:hover { text-decoration: underline; color: #93e0fd; }

.shop-nav-separator {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 0 0 1.5rem 0;
}

/* General view - platform cards */
.svc-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.svc-card-icon {
    width: 70px; height: 70px; border-radius: 50%;
    margin: 0 auto 1rem; display: flex;
    align-items: center; justify-content: center;
}

.svc-card-icon-yt     { background: rgba(255, 0, 0, 0.1); }
.svc-card-icon-tt     { background: rgba(0, 255, 255, 0.1); }
.svc-card-icon-ig     { background: rgba(225, 48, 108, 0.1); }
.svc-card-icon-tw     { background: rgba(29, 161, 242, 0.1); }
.svc-card-icon-note   { background: rgba(65, 179, 73, 0.1); }
.svc-card-icon-twitch { background: rgba(145, 70, 255, 0.1); }
.svc-card-icon-line   { background: rgba(6, 199, 85, 0.1); }

.svc-card h3 { margin-bottom: 0.5rem; font-size: 1.3rem; }
.svc-card-desc { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 1.2rem; }
.svc-card-btn { width: 100%; border-radius: 8px; display: block; text-align: center; }

/* Update banner */
.svc-banner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px; padding: 1.5rem;
    margin-bottom: 3rem; text-align: center;
}

.svc-banner-header {
    display: flex; align-items: center; justify-content: center;
    gap: 0.5rem; margin-bottom: 1rem;
}

.svc-banner-badge {
    background: var(--primary-color); color: white;
    padding: 0.2rem 0.6rem; border-radius: 4px;
    font-size: 0.8rem; font-weight: bold;
}

.svc-banner-date { color: var(--text-secondary); font-size: 0.9rem; }

.svc-banner-body { text-align: left; max-width: 600px; margin: 0 auto 1.5rem; }
.svc-banner-body p { color: var(--text-primary); font-weight: 500; }
.svc-banner-body p:first-child { margin-bottom: 0.8rem; }
.svc-banner-body p:last-child { margin-bottom: 0; }

/* Service warning bar (red alert, separate from update banner) */
.svc-warning-bar {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.35);
    border-radius: 10px;
    padding: 0.9rem 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: #fca5a5;
    line-height: 1.5;
}

.svc-warning-bar-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* View switcher tabs */
.svc-section { margin-bottom: 4rem; }

.svc-tab-wrapper {
    display: flex; max-width: 600px; margin: 0 auto 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px; overflow: hidden;
}

.svc-tab {
    flex: 1; padding: 1rem; text-align: center;
    cursor: pointer; font-weight: bold; font-size: 1rem;
    transition: all 0.3s;
}

.svc-tab-active {
    background: rgba(255, 255, 255, 0.1); color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.svc-tab-inactive { background: transparent; color: rgba(255, 255, 255, 0.5); }
.svc-view { display: block; animation: fadeIn 0.5s; }
.svc-view-title { text-align: center; margin-bottom: 2rem; font-size: 1.8rem; }

.svc-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Member card (gold theme) */
.svc-card-member {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 12px; padding: 1.5rem;
    text-align: center; transition: transform 0.3s, box-shadow 0.3s;
}

.svc-card-icon-member { background: rgba(255, 215, 0, 0.12); }
.svc-card-member h3 { margin-bottom: 0.5rem; font-size: 1.3rem; color: #FFD700; }
.svc-card-btns { display: flex; flex-direction: column; gap: 0.5rem; }
.svc-card-btn-full { width: 100%; border-radius: 8px; }
.svc-card-icon-other { background: rgba(255, 255, 255, 0.07); }
.svc-note-logo { font-size: 1.8rem; font-weight: 900; color: #41B349; }
.svc-member-trigger { margin-top: 0.3rem; }

/* --- Block 2: Platform sections & SMM panel form --- */
.platform-section { margin-top: 3rem; }

.platform-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.2rem; padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.platform-header h3 {
    font-size: 1.25rem; display: flex;
    align-items: center; gap: 0.6rem; margin: 0;
}

.platform-header .view-all-btn {
    font-size: 0.82rem; color: rgba(255, 255, 255, 0.5);
    text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.4rem 1rem; border-radius: 20px;
    transition: all 0.3s; white-space: nowrap;
}

.platform-header .view-all-btn:hover {
    color: #fff; border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.genre-scroll {
    display: flex; gap: 1rem; overflow-x: auto;
    padding-bottom: 0.8rem; scroll-snap-type: x mandatory;
}

.genre-scroll::-webkit-scrollbar { height: 4px; }
.genre-scroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); border-radius: 4px; }
.genre-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 4px; }
.genre-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

.genre-card {
    flex: 0 0 200px; scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px; padding: 1.2rem; text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: pointer; text-decoration: none; color: inherit; display: block;
}

.genre-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.genre-card .genre-icon {
    width: 48px; height: 48px; border-radius: 50%;
    margin: 0 auto 0.8rem; display: flex;
    align-items: center; justify-content: center; font-size: 1.2rem;
}

.genre-card .genre-name { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.3rem; }
.genre-card .genre-sub { font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); }

.genre-icon-yt     { background: rgba(255,0,0,0.1); }
.genre-icon-tt     { background: rgba(0,255,255,0.08); }
.genre-icon-ig     { background: rgba(225,48,108,0.1); }
.genre-icon-tw     { background: rgba(29,161,242,0.1); }
.genre-icon-note   { background: rgba(65,179,73,0.1); }
.genre-icon-twitch { background: rgba(145,70,255,0.1); }
.genre-icon-line   { background: rgba(6,199,85,0.1); }
.genre-icon-member { background: rgba(255,215,0,0.08); }

.genre-card-member { border-color: rgba(255,215,0,0.2); }
.platform-header-member { border-bottom-color: rgba(255,215,0,0.15); }
.platform-header-member h3 { color: #FFD700; }
.genre-note-logo { font-size: 1.3rem; font-weight: 900; color: #41B349; }

/* SMM Info Panel */
.smm-info-panel { flex: 1; min-width: 280px; display: none; }
.smm-info-card {
    background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; padding: 1.5rem;
}
.smm-info-title {
    font-weight: bold; font-size: 1.05rem; margin-bottom: 1rem;
    color: #6495ED; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.8rem;
}
.smm-info-section-head { font-weight: bold; font-size: 0.95rem; color: #6495ED; margin: 0 0 1rem; }
.smm-info-ratings { margin-bottom: 1rem; }
.smm-info-divider { border-top: 1px solid rgba(255,255,255,0.1); margin: 1rem 0; }
.smm-info-limits {
    margin-bottom: 1rem; font-size: 0.88rem; line-height: 1.7;
    color: rgba(255,255,255,0.85);
}
.smm-info-notes { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.7); }
.smm-info-guarantee {
    margin-bottom: 1rem; font-size: 0.85rem; line-height: 1.6;
    color: rgba(255,255,255,0.85); display: none;
}

/* SMM Container + ProMode */
.smm-view { display: none; animation: fadeIn 0.5s; }
.smm-container {
    background: rgba(15,23,42,0.6); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 2rem;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    max-width: 1100px; margin: 0 auto;
}
.smm-promode-bar {
    display: flex; align-items: center; background: rgba(0,0,0,0.5);
    padding: 0.8rem 1.2rem; border-radius: 8px;
    border: 1px dashed rgba(255,255,255,0.2); margin-bottom: 2rem;
}
.smm-promode-checkbox { margin-right: 12px; transform: scale(1.5); cursor: pointer; }
.smm-promode-label {
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    font-weight: bold; font-size: 0.95rem;
}
.smm-promode-help {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; background: rgba(255,255,255,0.2);
    border-radius: 50%; font-size: 0.7rem; color: white;
    cursor: default; flex-shrink: 0; -webkit-user-select: none; user-select: none; margin-left: 6px;
}

/* SMM Form Inputs */
.smm-columns { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.smm-left-col { flex: 1; min-width: 320px; min-height: 780px; }
.smm-field-group { margin-bottom: 0.8rem; }
.smm-field-group-rel { margin-bottom: 0.8rem; position: relative; }
.smm-field-hidden { display: none; }
.smm-field-group-hidden { margin-bottom: 0.8rem; display: none; }
.smm-label { display: block; margin-bottom: 0.5rem; color: var(--text-secondary); font-size: 0.9rem; }
.smm-input {
    width: 100%; padding: 1rem; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(10,20,40,0.95); color: #ffffff;
    font-size: 1rem; box-sizing: border-box;
}
.smm-select {
    width: 100%; padding: 1rem; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(10,20,40,0.95); color: #ffffff;
    font-size: 1rem; box-sizing: border-box; cursor: pointer;
}
.smm-input-readonly {
    width: 100%; padding: 1rem; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.5);
    font-size: 1rem; box-sizing: border-box; cursor: default;
}
.smm-search-results {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    z-index: 100; max-height: 280px; overflow-y: auto;
    background: rgba(10,20,40,0.98); border: 1px solid rgba(100,149,237,0.4);
    border-radius: 0 0 8px 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.smm-custom-dropdown { position: relative; width: 100%; }
.smm-custom-display {
    width: 100%; padding: 0.7rem 2rem 0.7rem 0.7rem; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(10,20,40,0.95); color: #ffffff;
    font-size: 0.92rem; box-sizing: border-box; cursor: pointer;
    white-space: normal; word-break: break-word; line-height: 1.4;
    min-height: 2.6rem; position: relative;
}
.smm-dropdown-arrow {
    position: absolute; right: 0.6rem; top: 50%;
    transform: translateY(-50%); font-size: 0.7rem;
    color: rgba(255,255,255,0.5); pointer-events: none;
}
.smm-custom-options {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    z-index: 200; max-height: 480px; overflow-y: auto;
    background: rgba(10,20,40,0.98); border: 1px solid rgba(100,149,237,0.4);
    border-radius: 0 0 8px 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.smm-quantity-row { display: flex; align-items: center; gap: 0.4rem; }
.smm-quantity-input {
    flex: 1.5; padding: 1rem; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(10,20,40,0.95); color: #ffffff;
    font-size: 1rem; box-sizing: border-box; min-width: 0;
}
.smm-operator { color: rgba(255,255,255,0.5); font-size: 1.2rem; font-weight: bold; flex-shrink: 0; }
.smm-unit-display {
    flex: 1; padding: 0.5rem 0.3rem; border-radius: 8px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7); font-size: 0.78rem;
    text-align: center; min-width: 0; line-height: 1.4; overflow: hidden;
}
.smm-total-display {
    flex: 1; padding: 1rem 0.4rem; border-radius: 8px;
    background: rgba(100,149,237,0.1); border: 1px solid rgba(100,149,237,0.3);
    color: #6495ED; font-size: 0.85rem; text-align: center;
    font-weight: bold; white-space: nowrap; min-width: 0;
}
.smm-limit-hint { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 6px; }
.smm-limit-hint-right { text-align: right; padding-right: 4px; }
.smm-limit-hint-left { padding-left: 4px; }
.smm-coupon-help {
    display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; background: rgba(255,255,255,0.15);
    border-radius: 50%; font-size: 0.65rem; color: white;
    cursor: default; -webkit-user-select: none; user-select: none;
    vertical-align: middle; margin-left: 4px;
}
.smm-submit-btn {
    display: none; width: 100%; padding: 1rem; border-radius: 8px;
    font-size: 1.1rem; font-weight: bold; box-sizing: border-box;
}

/* --- Block 3: Mobile responsive + utilities --- */
@media (max-width: 768px) {
    #smmColumnsWrapper { flex-direction: column; }
    #smmLeftColumnWrapper { display: contents; }
    #smmServiceInfo { order: 2; margin-bottom: 1.5rem; max-width: 100%; }
    .smm-order-1 { order: 1; margin-bottom: 0.8rem; max-width: 100%; }
    .smm-order-3 { order: 3; max-width: 100%; }
    #smmColumnsWrapper { gap: 0.6rem !important; }
    .smm-order-1, #smmLinkGroup, #smmExtraGroup, #smmChargeGroup { margin-bottom: 0.4rem !important; }
    #smmNormalInputs>div, #smmProInputs>div { margin-bottom: 0.4rem !important; }
    #smmServiceInfo { padding: 0.8rem !important; margin-bottom: 0.8rem; }
    #smmQuantityRow { flex-wrap: wrap; }
    #smmQuantityRow>input { flex: 1 1 40% !important; }
    #smmQuantityRow>#smmUnitDisplay { flex: 0 1 auto !important; max-width: 40%; }
    #smmQuantityRow>#smmTotalDisplay { flex: 0 1 auto !important; }
}

#smmColumnsWrapper select, #smmColumnsWrapper input {
    text-overflow: ellipsis; white-space: nowrap; overflow: hidden; max-width: 100%;
}

#smmSearchInput { padding-right: 2rem; }

.bg-canvas-fixed {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1; pointer-events: none; opacity: 0.5;
}

.mt-1rem { margin-top: 1rem; }
.member-btn-wrapper { text-align: center; margin-bottom: 2rem; }

/* Member Authenticated Page */
.member-auth-heading { color: #FFD700; }
.member-auth-badge {
    cursor: default;
    pointer-events: none;
    opacity: 0.9;
}

.member-btn-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; font-weight: bold; border: none;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
    padding: 0.8rem 2rem; border-radius: 30px;
}

.member-btn-icon {
    display: inline-block; vertical-align: middle;
    margin-right: 8px; fill: currentColor;
}

.smm-field-error { font-size: 0.75rem; color: #ff4d4d; margin-top: 4px; display: none; }

/* --- Block 4: Animations & Member Modal --- */
@keyframes spinner { 100% { transform: rotate(360deg); } }

@keyframes spinner-stroke {
    0% { stroke-dasharray: 0 150; stroke-dashoffset: 0; }
    47.5% { stroke-dasharray: 42 150; stroke-dashoffset: -16; }
    95%, 100% { stroke-dasharray: 42 150; stroke-dashoffset: -59; }
}

.shake-animation { animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both; }

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Member Modal */
.member-modal-overlay {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); z-index: 1000;
    align-items: center; justify-content: center;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

.member-modal-body {
    background: rgba(15, 23, 42, 0.85);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; padding: 2rem;
    max-width: 400px; width: 90%; text-align: center;
    position: relative; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.member-modal-close {
    position: absolute; top: 10px; right: 15px;
    background: none; border: none;
    color: var(--text-secondary); font-size: 1.5rem; cursor: pointer;
}

.member-modal-title { margin-bottom: 1rem; color: #FFD700; line-height: 1.4; }
.member-modal-desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.5rem; }
.member-modal-input-wrap { margin-bottom: 1.5rem; position: relative; }
.member-modal-honeypot { position: absolute; left: -9999px; top: -9999px; }

.member-modal-code-input {
    width: 100%; padding: 0.8rem; border-radius: 6px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2); color: var(--text-primary);
    font-size: 1rem; text-align: center;
}

.member-modal-error { color: #ff4d4d; font-size: 0.8rem; margin-top: 5px; display: none; text-align: left; }
.member-modal-bot-warn { color: #ff9900; font-size: 0.8rem; margin-top: 10px; display: none; text-align: left; }

.member-modal-bot-panel {
    margin-top: 10px; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.05); padding: 15px;
    border-radius: 6px; border: 1px dashed var(--border-color);
}

.member-modal-bot-challenge { margin-bottom: 10px; text-align: center; width: 100%; }
.member-modal-bot-q { margin-bottom: 0.5rem; color: var(--text-secondary); font-size: 0.85rem; }
.member-modal-bot-row { display: flex; gap: 5px; justify-content: center; }

.member-modal-bot-answer {
    width: 80px; padding: 0.4rem; border-radius: 4px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2); color: var(--text-primary); text-align: center;
}

.member-modal-bot-check-btn {
    padding: 0.4rem 0.8rem; border: none;
    background: rgba(255, 255, 255, 0.1); color: var(--text-primary);
    cursor: pointer; border-radius: 4px;
}

.member-modal-bot-error { color: #ff4d4d; font-size: 0.75rem; margin-top: 5px; display: none; }
.member-modal-bot-checkbox-row { display: flex; align-items: center; }
.member-modal-bot-checkbox { margin-right: 10px; cursor: not-allowed; transform: scale(1.2); }
.member-modal-bot-label { cursor: not-allowed; font-size: 0.85rem; color: var(--text-secondary); }
.member-modal-lockout { color: #ff9900; font-size: 0.8rem; margin-top: 5px; display: none; text-align: left; }

.member-modal-submit {
    width: 100%; margin-bottom: 1.5rem; position: relative;
    min-height: 48px; background: var(--primary-color);
}

.member-modal-submit-text { display: inline-block; }
.member-modal-submit-loader { display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.member-modal-spinner-group { transform-origin: center; animation: spinner 2s linear infinite; }
.member-modal-spinner-circle { animation: spinner-stroke 1.5s ease-in-out infinite; }
.member-modal-hr { border-color: var(--border-color); opacity: 0.3; margin-bottom: 1.5rem; }
.member-modal-not-member { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; }

.member-modal-join-btn {
    width: 100%; border-color: #ff0000; color: #ff0000; box-shadow: none;
}

/* ============================================================
   Member Shop – Inline ordering for member-exclusive services
   ============================================================ */
.svc-card-member-fullwidth {
    grid-column: 1 / -1;
    padding: 0;
    background: transparent;
    border: none;
}

.ms-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,165,0,0.04));
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 12px;
}
.ms-section-header h3 { margin: 0; color: #FFD700; font-size: 1.15rem; }
.ms-badge {
    font-size: 0.78rem; color: #FFD700; background: rgba(255,215,0,0.12);
    border: 1px solid rgba(255,215,0,0.3); border-radius: 20px; padding: 0.2rem 0.7rem;
    white-space: nowrap;
}

/* Platform tabs */
.ms-platform-tabs {
    display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem;
}
.ms-tab {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6); border-radius: 20px; padding: 0.35rem 0.9rem;
    font-size: 0.82rem; cursor: pointer; transition: all 0.2s;
}
.ms-tab:hover { background: rgba(255,255,255,0.1); color: #fff; }
.ms-tab.active {
    background: rgba(255,215,0,0.15); border-color: rgba(255,215,0,0.4);
    color: #FFD700; font-weight: 600;
}

/* Service cards grid */
.ms-services-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem; margin-bottom: 1rem;
}
.ms-service-card {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,215,0,0.15);
    border-radius: 10px; padding: 1rem; cursor: pointer;
    transition: all 0.25s; display: flex; flex-direction: column; gap: 0.4rem;
}
.ms-service-card:hover {
    background: rgba(255,215,0,0.06); border-color: rgba(255,215,0,0.4);
    transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255,215,0,0.1);
}
.ms-card-platform {
    font-size: 0.72rem; color: rgba(255,255,255,0.4); text-transform: uppercase;
    letter-spacing: 0.5px; font-weight: 600;
}
.ms-card-name { font-size: 0.92rem; color: #fff; font-weight: 500; line-height: 1.3; }
.ms-card-price { font-size: 0.85rem; color: #FFD700; font-weight: 600; }
.ms-card-select-btn {
    margin-top: auto; padding: 0.4rem 0.8rem; border-radius: 6px;
    border: 1px solid rgba(255,215,0,0.3); background: rgba(255,215,0,0.1);
    color: #FFD700; font-size: 0.82rem; cursor: pointer; transition: all 0.2s;
    text-align: center;
}
.ms-card-select-btn:hover { background: rgba(255,215,0,0.2); border-color: #FFD700; }

/* Order form */
.ms-order-form {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,215,0,0.2);
    border-radius: 12px; padding: 1.5rem;
}
.ms-order-header {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem;
}
.ms-back-btn {
    background: none; border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7); border-radius: 6px; padding: 0.3rem 0.7rem;
    font-size: 0.82rem; cursor: pointer; transition: all 0.2s;
}
.ms-back-btn:hover { border-color: #FFD700; color: #FFD700; }
.ms-order-header h3 { margin: 0; color: #FFD700; font-size: 1.1rem; }

/* Ratings */
.ms-ratings-grid { margin-bottom: 1.25rem; }
.ms-rating-row {
    display: flex; align-items: baseline; gap: 0.5rem; padding: 0.25rem 0;
    flex-wrap: wrap; font-size: 0.85rem;
}
.ms-rating-label { color: rgba(255,255,255,0.6); min-width: 2.5em; font-weight: 500; }
.ms-rating-stars { color: #FFD700; letter-spacing: 1px; font-size: 0.9rem; }
.ms-rating-desc { color: rgba(255,255,255,0.4); font-size: 0.78rem; }

/* Form fields */
.ms-order-field { margin-bottom: 1rem; }
.ms-order-field label { display: block; color: rgba(255,255,255,0.7); font-size: 0.88rem; margin-bottom: 0.4rem; }
.ms-unit-label { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.ms-qty-select {
    width: 100%; padding: 0.6rem 0.8rem; border-radius: 8px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
    color: #fff; font-size: 0.9rem; appearance: auto;
}
.ms-url-input {
    width: 100%; padding: 0.6rem 0.8rem; border-radius: 8px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
    color: #fff; font-size: 0.9rem; box-sizing: border-box;
}
.ms-url-input::placeholder { color: rgba(255,255,255,0.3); }

/* Price display */
.ms-price-display {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem 1rem; border-radius: 8px; margin-bottom: 1rem;
    background: rgba(255,215,0,0.06); border: 1px solid rgba(255,215,0,0.15);
}
.ms-price-label { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.ms-price-value { color: #FFD700; font-size: 1.2rem; font-weight: 700; }

/* Order button */
.ms-order-btn {
    width: 100%; padding: 0.8rem; border-radius: 8px; font-size: 1rem;
    font-weight: 600; cursor: pointer; transition: all 0.25s; border: none;
}
.ms-order-btn.disabled {
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.3);
    cursor: not-allowed;
}
.ms-order-btn.active {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000; box-shadow: 0 4px 15px rgba(255,165,0,0.3);
}
.ms-order-btn.active:hover {
    transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,165,0,0.4);
}

/* Notes */
.ms-notes { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
.ms-notes h4 { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 0.5rem; }
.ms-notes ul { padding-left: 1.2rem; margin: 0; }
.ms-notes li { color: rgba(255,255,255,0.5); font-size: 0.82rem; margin-bottom: 0.3rem; line-height: 1.4; }

@media (max-width: 600px) {
    .ms-services-grid { grid-template-columns: 1fr; }
    .ms-section-header { flex-wrap: wrap; }
}