/* ============================================================= */
/* KuraBNB – DARK THEME (HANYA WARNA) – CREATE / CONNECT PAGE */
/* ============================================================= */

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f1f1f;
    padding: 20px 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    margin-right: 12px;
    transition: transform 0.3s ease;
    border-radius: 10px;
    width: 50px;
    height: 50px;
    object-fit: cover;
}
.logo img:hover {
    transform: scale(1.1);
}
.logo span {
    font-size: 1em;
    font-weight: 700;
    color: #f0b90b;
    letter-spacing: 0.5px;
}

/* Navbar Desktop */
.navbar ul {
    display: flex;
    list-style: none;
    gap: 30px;
}
.navbar li {
    margin: 0;
}
.navbar a {
    text-decoration: none;
    color: #bbbbbb;
    font-weight: 600;
    font-size: 1em;
    transition: color 0.3s ease;
}
.navbar a:hover, .navbar a.active {
    color: #f0b90b;
}

/* Hamburger Icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #bbbbbb;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Sidebar (Mobile Menu) */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: #1f1f1f;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    padding: 90px 20px 20px;
    overflow-y: auto;
    display: none;
}
.sidebar.active {
    left: 0;
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar li {
    margin-bottom: 20px;
}
.sidebar a {
    text-decoration: none;
    color: #bbbbbb;
    font-weight: 600;
    font-size: 1.1em;
    display: block;
    padding: 12px 0;
    transition: color 0.3s ease;
    border-bottom: 1px solid #333;
}
.sidebar a:hover,
.sidebar a.active {
    color: #f0b90b;
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hamburger → X Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}
.container {
    max-width: 700px;
    width: 100%;
    background: #1f1f1f;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}
.container:hover {
    transform: translateY(-5px);
}
h1 {
    color: #f0b90b;
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 700;
}
.subtitle {
    text-align: center;
    color: #aaaaaa;
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Connect Wallet Button */
#connectWalletBtn {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 12px;
    background: linear-gradient(90deg, #f0b90b, #d9a008);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
#connectWalletBtn:hover {
    background: linear-gradient(90deg, #d9a008, #f0b90b);
    transform: translateY(-2px);
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    position: relative;
    margin-bottom: 20px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 1em;
    background: #2c2c2c;
    color: #e0e0e0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f0b90b;
    box-shadow: 0 0 5px rgba(240, 185, 11, 0.3);
}
.form-group label {
    position: absolute;
    top: 12px;
    left: 15px;
    color: #888;
    font-size: 1em;
    transition: all 0.2s ease;
    pointer-events: none;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.85em;
    color: #f0b90b;
    background: #1f1f1f;
    padding: 0 5px;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(90deg, #f0b90b, #d9a008);
    color: #1a1a1a;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
.submit-btn:hover {
    background: linear-gradient(90deg, #d9a008, #f0b90b);
    transform: translateY(-2px);
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
.popup-content {
    background: #1f1f1f;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
    animation: popupFadeIn 0.3s ease;
    border: 1px solid #333;
}
.popup-content h2 {
    color: #f0b90b;
    font-size: 1.5em;
    margin-bottom: 20px;
}
.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.popup-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
.popup-btn.disconnect,
.popup-btn.ok {
    background: linear-gradient(90deg, #f0b90b, #d9a008);
    color: #1a1a1a;
}
.popup-btn.disconnect:hover,
.popup-btn.ok:hover {
    background: linear-gradient(90deg, #d9a008, #f0b90b);
    transform: translateY(-2px);
}
.popup-btn.cancel {
    background: #444;
    color: #e0e0e0;
}
.popup-btn.cancel:hover {
    background: #555;
    transform: translateY(-2px);
}
@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    .hamburger {
        display: flex;
    }
    .navbar {
        display: none;
    }
    .sidebar {
        display: block;
    }
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 1.8em;
    }
    .subtitle {
        font-size: 1em;
    }
    .popup-content {
        padding: 20px;
    }
}