:root {
    --neon-cyan: #00f3ff;
    --neon-red: #ff3366;
    --neon-yellow: #ffcc00;
    --neon-green: #10b981;
    --dark-bg: #0a0b10;
    --panel-bg: rgba(16, 20, 28, 0.75);
}

body {
    background-color: var(--dark-bg);
    color: #e0e6ed;
    font-family: 'Segoe UI', system-ui, sans-serif;
    overflow: hidden;
    height: 100dvh;
    margin: 0;
}

#app-wrapper {
    display: flex;
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
}

#sidebar {
    width: 280px;
    background: rgba(10, 11, 16, 0.95);
    border-right: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1040;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    position: relative;
}

#main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(circle at 50% 0%, rgba(0, 243, 255, 0.05) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
    height: 100dvh;
}

@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        transform: translateX(-100%);
        z-index: 1050;
        width: 280px !important;
    }
    #sidebar.show {
        transform: translateX(0);
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1045;
        backdrop-filter: blur(2px);
    }
    .sidebar-overlay.show {
        display: block;
    }
    .chat-input-wrapper {
        padding: 0.2rem !important;
        margin-bottom: 0.5rem;
    }
    .content-view {
        padding: 0.5rem !important;
    }
    .sidebar-collapse-btn {
        display: none !important;
    }
}

.neon-text {
    color: #fff;
    text-shadow: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan);
}

.nav-link-custom {
    color: #a0aab2;
    border-radius: 8px;
    padding: 12px 20px;
    transition: all 0.2s;
    margin-bottom: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-cyan);
    border-left: 3px solid var(--neon-cyan);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neon-cyan);
}

.glow-btn {
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    transition: all 0.3s;
}

.glow-btn:hover {
    background: var(--neon-cyan);
    color: var(--dark-bg);
    box-shadow: 0 0 15px var(--neon-cyan);
}

.content-view {
    display: none;
    height: 100%;
    flex-direction: column;
    padding: 1rem;
    overflow: hidden;
}

.content-view.active {
    display: flex;
}

#chatDisplay {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) transparent;
}

#chatDisplay::-webkit-scrollbar {
    width: 5px;
}

#chatDisplay::-webkit-scrollbar-track {
    background: transparent;
}

#chatDisplay::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.3);
    border-radius: 10px;
}

#chatDisplay::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 243, 255, 0.5);
}

.chat-bubble-user {
    background: linear-gradient(135deg, #005c97 0%, #363795 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-bubble-bot {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.chat-input-wrapper {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.3);
    position: relative;
}

.modal-content {
    background: rgba(10, 11, 16, 0.95);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    backdrop-filter: blur(10px);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.modal-footer {
    border-top: 1px solid rgba(0, 243, 255, 0.2);
}

.form-control-neon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: white;
}

.form-control-neon:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
    color: white;
}

.form-control-neon::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.leaflet-container {
    background-color: #0f1115;
    border-radius: 12px;
    height: 100%;
    width: 100%;
    cursor: default;
}

.leaflet-container.routing-mode {
    cursor: crosshair !important;
}

.leaflet-container.anchor-mode {
    cursor: crosshair !important;
}

.pricing-card,
.profile-card {
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 243, 255, 0.1);
}

.history-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.history-card:hover {
    background: rgba(0, 243, 255, 0.05);
    border-color: var(--neon-cyan);
    transform: translateX(5px);
}

@keyframes spinRing {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes floatLogo {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.welcome-logo-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-logo-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 3px dashed var(--neon-cyan);
    animation: spinRing 5s linear infinite;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5), inset 0 0 10px rgba(0, 243, 255, 0.2);
    background: rgba(0, 243, 255, 0.05);
}

.welcome-inner-color-ring {
    position: absolute;
    top: 14px; 
    left: 14px; 
    right: 14px; 
    bottom: 14px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(45deg, #00f3ff, #ff3366, #ffcc00, #10b981) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: spinRing 4s linear infinite reverse, rotateColors 3s linear infinite;
    z-index: 1;
}

@keyframes rotateColors {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.sparkle-text {
    background: linear-gradient(to right, #ff0000, #ff7f00, #ffff00, #00ff00, #00f3ff, #ff3366, #ff0000);
    background-size: 200% auto;
    color: #fff;
    background-clip: text;
    text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineRainbow 3.5s linear infinite;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

@keyframes shineRainbow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.welcome-logo-img {
    width: 115px !important;
    height: 115px !important;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
    animation: floatLogo 3s ease-in-out infinite;
}

.bot-avatar-container {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-avatar-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px dashed var(--neon-cyan);
    animation: spinRing 4s linear infinite;
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.6);
    background: rgba(0, 243, 255, 0.1);
}

.bot-avatar-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 0 3px #00f3ff);
}

@keyframes radarSweep {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.radar-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200vw;
    height: 200vw;
    margin-top: -100vw;
    margin-left: -100vw;
    border-radius: 50%;
    pointer-events: none;
    z-index: 400;
    background: conic-gradient(from 0deg, transparent 70%, rgba(0, 243, 255, 0.1) 95%, rgba(0, 243, 255, 0.4) 100%);
    animation: radarSweep 4s linear infinite;
    display: none;
}

.radar-overlay.active {
    display: block;
}

.opencpn-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 260px;
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-cyan);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
    max-height: 85vh;
    overflow-y: auto;
}

.opencpn-panel::-webkit-scrollbar {
    width: 4px;
}

.opencpn-panel::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 10px;
}

.form-switch .form-check-input:checked {
    background-color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

@keyframes mobPing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.mob-marker {
    position: relative;
    color: var(--neon-red);
    font-size: 24px;
    filter: drop-shadow(0 0 10px var(--neon-red));
}

.mob-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    margin-top: -50%;
    margin-left: -50%;
    border-radius: 50%;
    border: 2px solid var(--neon-red);
    animation: mobPing 1.5s infinite;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.locked-overlay span {
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 0 0 5px #000;
    pointer-events: none;
}

#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    min-width: 280px;
    max-width: 400px;
    padding: 14px 18px;
    border-radius: 12px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    font-size: 0.88rem;
}

.toast-item.toast-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.toast-item.toast-error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.toast-item.toast-info {
    background: rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
    color: var(--neon-cyan);
}

.toast-item.toast-warning {
    background: rgba(255, 204, 0, 0.1);
    border-color: rgba(255, 204, 0, 0.3);
    color: var(--neon-yellow);
}

.toast-item.toast-exit {
    animation: toastSlideOut 0.3s ease-in forwards;
}

.toast-item .toast-close {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    background: none;
    border: none;
    color: inherit;
    font-size: 1rem;
    padding: 0 2px;
}

.toast-item .toast-close:hover {
    opacity: 1;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.typing-indicator {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
    animation: fadeInUp 0.3s ease-out;
}

.typing-indicator.active {
    display: flex;
}

.typing-dots {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 18px 18px 18px 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-cyan);
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%,
    80%,
    100% {
        transform: scale(0.5);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.welcome-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
    gap: 10px;
    max-width: 520px;
    margin: 1.2rem auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.3s;
    cursor: default;
}

.stat-card:hover {
    border-color: rgba(0, 243, 255, 0.4);
    background: rgba(0, 243, 255, 0.04);
    transform: translateY(-2px);
}

.stat-card .stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--neon-cyan);
    display: block;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.62rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: block;
}

.suggested-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 620px;
    margin: 0.5rem auto 1rem;
}

.sug-q-btn {
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.15);
    color: #9ca3af;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.sug-q-btn:hover {
    background: rgba(0, 243, 255, 0.12);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 243, 255, 0.08);
}

.ais-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    vertical-align: middle;
}

.ais-status-dot.online {
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
    animation: statusPulse 2s infinite;
}

.ais-status-dot.offline {
    background: #4b5563;
}

@keyframes statusPulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

#sidebar.collapsed {
    width: 68px;
}

#sidebar.collapsed .sidebar-text {
    display: none;
}

#sidebar.collapsed .nav-link-custom {
    padding: 12px 0;
    justify-content: center;
    border-left: none !important;
}

#sidebar.collapsed .nav-link-custom.active {
    background: rgba(0, 243, 255, 0.12);
}

#sidebar.collapsed .nav-link-custom i {
    margin: 0 !important;
}

#sidebar.collapsed .sidebar-section-label {
    display: none;
}

#sidebar.collapsed #sidebarHeader {
    justify-content: center;
    padding: 1rem 0.5rem;
}

#sidebar.collapsed #sidebarHeader h4 {
    display: none;
}

#sidebar.collapsed #authArea .auth-text,
#sidebar.collapsed #authArea .user-info-text {
    display: none;
}

#sidebar.collapsed #authArea {
    padding: 0.5rem;
}

#sidebar.collapsed #authArea a.btn,
#sidebar.collapsed #authArea .user-box {
    width: auto;
    padding: 0.5rem;
    justify-content: center;
}

#sidebar.collapsed .btn-new-chat {
    padding: 0.5rem;
    width: auto !important;
}

#sidebar.collapsed .btn-new-chat .btn-text {
    display: none;
}

#sidebar.collapsed .btn-new-chat i {
    margin: 0;
    font-size: 1rem;
}

.sidebar-collapse-btn {
    display: none;
    position: absolute;
    top: 14px;
    right: -14px;
    width: 28px;
    height: 28px;
    background: var(--dark-bg);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 50%;
    color: var(--neon-cyan);
    font-size: 0.65rem;
    cursor: pointer;
    z-index: 1050;
    transition: all 0.3s;
    align-items: center;
    justify-content: center;
}

.sidebar-collapse-btn:hover {
    background: var(--neon-cyan);
    color: var(--dark-bg);
    box-shadow: 0 0 12px var(--neon-cyan);
}

@media (min-width: 769px) {
    .sidebar-collapse-btn {
        display: flex;
    }
}

.security-timeline {
    position: relative;
    padding-left: 30px;
}

.security-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--neon-cyan), rgba(0, 243, 255, 0.1));
}

.timeline-item {
    position: relative;
    margin-bottom: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all 0.3s;
}

.timeline-item:hover {
    border-color: rgba(0, 243, 255, 0.25);
    background: rgba(0, 243, 255, 0.03);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.timeline-item.tl-warning::before {
    background: var(--neon-yellow);
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.5);
}

.timeline-item.tl-success::before {
    background: var(--neon-green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.compliance-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.compliance-item:hover {
    border-color: rgba(0, 243, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.compliance-item .comp-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
    display: block;
}

.comp-badge {
    font-size: 0.62rem;
    padding: 2px 10px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 6px;
    font-weight: 600;
}

.comp-active {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.comp-pending {
    background: rgba(255, 204, 0, 0.1);
    color: var(--neon-yellow);
    border: 1px solid rgba(255, 204, 0, 0.25);
}

.pricing-card.featured {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.12);
    position: relative;
}

.pricing-card.featured::before {
    content: 'POPULER';
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--neon-cyan);
    color: var(--dark-bg);
    font-size: 0.58rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 0 0 8px 8px;
    letter-spacing: 1px;
}

.pricing-card.current-plan {
    border-color: var(--neon-green);
    position: relative;
}

.pricing-card.current-plan::after {
    content: 'AKTIF';
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--neon-green);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 0 0 8px 8px;
    letter-spacing: 1px;
}

.plan-feature {
    padding: 5px 0;
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-feature i.fa-check {
    color: var(--neon-green);
    width: 16px;
    text-align: center;
}

.plan-feature i.fa-xmark {
    color: #4b5563;
    width: 16px;
    text-align: center;
}

.plan-feature.disabled {
    opacity: 0.3;
}

.manual-coord-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
    transition: border-color 0.3s;
}

.manual-coord-form:focus-within {
    border-color: rgba(0, 243, 255, 0.3);
}

.coord-input-group {
    position: relative;
}

.coord-input-group label {
    position: absolute;
    top: -9px;
    left: 14px;
    background: var(--dark-bg);
    padding: 0 6px;
    font-size: 0.68rem;
    color: var(--neon-cyan);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.port-chip {
    background: rgba(0, 243, 255, 0.06);
    border: 1px solid rgba(0, 243, 255, 0.15);
    color: #9ca3af;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.port-chip:hover {
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.history-search-wrapper {
    position: relative;
    margin-bottom: 1.2rem;
}

.history-search-wrapper .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #4b5563;
    font-size: 0.85rem;
}

.history-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e0e6ed;
    font-size: 0.88rem;
    transition: all 0.3s;
}

.history-search-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.history-search-input::placeholder {
    color: #374151;
}

.history-card .delete-chat-btn {
    opacity: 0;
    transition: all 0.2s;
    background: none;
    border: none;
    color: var(--neon-red);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.history-card:hover .delete-chat-btn {
    opacity: 0.7;
}

.history-card .delete-chat-btn:hover {
    opacity: 1;
    background: rgba(255, 51, 102, 0.12);
}

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    height: 75px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

.fade-in-up-d1 {
    animation: fadeInUp 0.5s ease-out 0.08s both;
}

.fade-in-up-d2 {
    animation: fadeInUp 0.5s ease-out 0.16s both;
}

.fade-in-up-d3 {
    animation: fadeInUp 0.5s ease-out 0.24s both;
}

.fade-in-up-d4 {
    animation: fadeInUp 0.5s ease-out 0.32s both;
}

.payment-banner {
    padding: 12px 20px;
    border-radius: 12px;
    margin: 0.5rem 1rem 0;
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    animation: fadeInUp 0.4s ease-out;
}

.payment-banner.show {
    display: flex;
}

.payment-banner.banner-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

.payment-banner.banner-failed {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.regulasi-accordion .accordion-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px !important;
    margin-bottom: 8px;
    overflow: hidden;
}

.regulasi-accordion .accordion-button {
    background: rgba(255, 255, 255, 0.03);
    color: #e0e6ed;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: none;
}

.regulasi-accordion .accordion-button:not(.collapsed) {
    background: rgba(0, 243, 255, 0.08);
    color: var(--neon-cyan);
}

.regulasi-accordion .accordion-button::after {
    filter: invert(1);
}

.regulasi-accordion .accordion-body {
    color: #9ca3af;
    font-size: 0.84rem;
    line-height: 1.7;
    padding: 16px 20px;
}

.regulasi-accordion .accordion-body ul {
    padding-left: 18px;
    margin: 8px 0;
}

.regulasi-accordion .accordion-body li {
    margin-bottom: 4px;
}

.danger-glow {
    box-shadow: 0 0 25px rgba(255, 51, 102, 0.15);
    border-color: var(--neon-red) !important;
}

.regulasi-search-box {
    position: relative;
    margin-bottom: 1rem;
}

.regulasi-search-box input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    color: #e0e6ed;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.regulasi-search-box input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.regulasi-search-box input::placeholder {
    color: #4b5563;
}

.regulasi-search-box .search-ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #4b5563;
    font-size: 0.8rem;
    pointer-events: none;
}

.regulasi-search-box .search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    cursor: pointer;
    font-size: 0.75rem;
    background: none;
    border: none;
    padding: 4px;
    display: none;
    transition: color 0.2s;
}

.regulasi-search-box .search-clear:hover {
    color: var(--neon-cyan);
}

.regulasi-search-box .search-clear.visible {
    display: block;
}

.accordion-item.reg-hidden {
    display: none;
}

.regulasi-count {
    font-size: 0.72rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.75rem;
}