html, body {
    min-height: 100%;
    margin: 0;
    color: #111111;
    background: #000000;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    position: relative;
    padding: 2rem 1.5rem 3rem;
    background-color: #000000;
    background-image: url("https://i.ibb.co/4Zn7ddcf/magic-edit-TUFIUj-JTSUxm-Wlkj-MSNj-NDcz-ZWIy-OGFj-MWRj-Ym-E4-MTZl-Mj-I2-MWVm-N2-Zl-Zm-Jk-Zi-Mx-Mzc2-Iy-N.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@keyframes float-shine {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
}

.ui.raised.segment {
    background: #000000 !important;
    color: #f7f7f7 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 48px rgba(0,0,0,0.28) !important;
    padding: 2.5rem !important;
    position: relative;
    z-index: 1;
}

.hero-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 1.8rem 1.6rem;
    margin-bottom: 1.8rem;
    border-radius: 20px;
    background: #000000;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 45px rgba(0,0,0,0.28);
}

.hero-top {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

.hero-copy {
    padding: 1.4rem 1.6rem;
    background: #000000;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 0 0 0.4rem;
}

.hero-primary,
.hero-secondary {
    min-width: 11rem;
    padding: 1rem 1.5rem;
    border-radius: 999px !important;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-primary {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 20px 55px rgba(0,0,0,0.32) !important;
}

.hero-secondary {
    background: rgba(255,255,255,0.08) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
}

.hero-secondary:hover,
.hero-primary:hover {
    transform: translateY(-1px);
}

.tab-menu {
    background: #050505 !important;
    border-radius: 18px !important;
    padding: 0.35rem 0.5rem !important;
}

.tab-menu .item {
    background: transparent !important;
    color: #d8d8d8 !important;
    border: none !important;
}

.tab-menu .item.active,
.tab-menu .item:hover {
    background: rgba(255,255,255,0.08) !important;
    color: #ffffff !important;
}

.warning.message {
    background: rgba(255,255,255,0.05) !important;
    color: #f1f1f1 !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
}

.warning.message .header {
    color: #ffffff !important;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.ui.button.animated {
    position: relative;
    overflow: hidden;
}

.ui.button.animated::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 25%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ui.button.animated:hover::before {
    opacity: 1;
}

.ui.button.glow {
    background: linear-gradient(135deg, #000000 0%, #202020 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 18px 46px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08) !important;
}

.ui.button.glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 60px rgba(0,0,0,0.42);
}

.ui.menu .item {
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 18px;
    margin: 0 0.25rem;
    transition: all 0.18s ease;
    padding: 0.85rem 1.2rem !important;
    background: transparent !important;
    border: none !important;
}

.ui.menu .item.active,
.ui.menu .item:hover {
    background: rgba(255,255,255,0.08) !important;
    color: #ffffff !important;
}

.ui.icon.message {
    display: none;
    align-items: center;
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    box-shadow: 0 20px 45px rgba(0,0,0,0.08) !important;
    border-radius: 24px !important;
    padding: 1.4rem 1.5rem !important;
    margin-top: 1.5rem;
    animation: fade-in 0.35s ease;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ui.primary.button,
.ui.basic.button {
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
    .hero-panel {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions {
        justify-content: stretch;
    }
    .ui.menu {
        display: grid !important;
        grid-template-columns: 1fr;
    }
    .ui.menu .item {
        margin: 0 0 0.75rem !important;
    }
}

.ui.inverted.segment:not(.raised),
.ui.inverted.form,
.ui.inverted.secondary.pointing.menu {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    color: inherit !important;
}

.ui.header {
    color: #ffffff !important;
    font-size: clamp(2.2rem, 2.6vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.4rem;
}

.ui.menu {
    background: #000000 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 18px 60px rgba(0,0,0,0.22) !important;
    margin-bottom: 1.8rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.ui.menu .item {
    color: #f7f7f7 !important;
    font-weight: 700;
    border-radius: 18px;
    margin: 0 0.25rem;
    transition: all 0.18s ease;
}

.ui.menu .item.active,
.ui.menu .item:hover {
    background: #111111 !important;
    color: #ffffff !important;
}

.ui.tab.segment {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.ui.form .field {
    margin-bottom: 1.5rem;
}

.ui.form .field label {
    color: #f7f7f7 !important;
    font-weight: 700;
    margin-bottom: 0.65rem !important;
    display: block;
}

.ui.form input[type="password"],
.ui.form textarea,
.ui.dropdown,
#editor,
.ace_editor {
    background: rgba(255,255,255,0.06) !important;
    color: #f7f7f7 !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 18px !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04) !important;
}

.ui.form input[type="password"] {
    padding: 1rem 1.1rem !important;
}

.ui.form textarea,
#editor {
    min-height: 14rem;
}

.ui.divider {
    border-color: rgba(0,0,0,0.08) !important;
}

.ui.button {
    border-radius: 999px !important;
    min-width: 10rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.ui.button:hover {
    transform: translateY(-1px);
}

.ui.primary.button {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
}

.ui.button:not(.primary) {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid rgba(0,0,0,0.16) !important;
}

.ui.icon.message {
    display: none;
    align-items: center;
    background: #fafafa !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    box-shadow: 0 20px 45px rgba(0,0,0,0.08) !important;
    border-radius: 24px !important;
    padding: 1.4rem 1.5rem !important;
    margin-top: 1.5rem;
}

.ui.message .header {
    color: #000000 !important;
}

.ui.message p,
.ui.message li,
.ui.message code {
    color: #1b1b1b !important;
}

.ui.warning.message {
    background: #ffffff !important;
}

.ui.success.message {
    background: #f7fff4 !important;
    border-color: rgba(0,0,0,0.12) !important;
}

.ui.error.message {
    background: #fff3f3 !important;
    border-color: rgba(0,0,0,0.12) !important;
}

.link,
a {
    color: #ffffff !important;
    text-decoration: underline;
    cursor: pointer;
}

.link:hover,
a:hover {
    opacity: 0.8;
}

#messages div.message {
    display: none;
}

.ui.basic.modal {
    background: rgba(255,255,255,0.98) !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    box-shadow: 0 42px 90px rgba(0,0,0,0.18) !important;
    border-radius: 24px !important;
    color: #000000 !important;
}

.ui.basic.modal .header,
.ui.basic.modal .content,
.ui.basic.modal .actions,
.ui.basic.modal p,
.ui.basic.modal li,
.ui.basic.modal code {
    color: #000000 !important;
}

.ui.basic.modal .button {
    background: #000000 !important;
    color: #ffffff !important;
    border: none !important;
}

.ui.basic.modal .button:hover {
    background: #111111 !important;
}

#continue,
#submit {
    min-width: 12rem;
}

@media (max-width: 768px) {
    body {
        padding: 1rem 1rem 2rem;
    }
    .ui.raised.segment {
        padding: 1.6rem !important;
    }
    .ui.menu {
        display: grid !important;
        grid-template-columns: 1fr;
    }
    .ui.menu .item {
        margin: 0 0 0.75rem !important;
    }
}

.ui.fluid.dropdown {
    border-radius: 18px !important;
}

.ui.fluid.dropdown .menu {
    max-height: 280px !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    color: #000000 !important;
}

.ui.fluid.dropdown .menu .item,
.ui.fluid.dropdown .menu .header,
.ui.fluid.dropdown .menu .divider {
    background: #ffffff !important;
    color: #000000 !important;
}

.ui.fluid.dropdown .menu .item:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}

.ui.fluid.dropdown .selected.item,
.ui.fluid.dropdown .item {
    color: #000000 !important;
    background: #ffffff !important;
    border: none !important;
}

.ui.fluid.dropdown .item:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}

#editor {
    overflow: hidden;
}

#user-info img {
    border: 2px solid rgba(255,255,255,0.1);
}
