body {
    margin: 0;

    background-color: transparent;
    
    color: #fff;
    font-family: Arial, sans-serif; 
}

background{
    display: block;
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: -1;
    background: linear-gradient(-135deg, #373238, #2e2930, #35525e, #305350);
    background-size: 400% 400%;
    animation: gradient 35s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes unblur{
    0%{
      filter: blur(8px);
    }
    100%{
      filter: none;
    }
}

speclist{
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 60%;
    overflow: hidden;
}

.flex-center{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

flexMajor{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; height: 100%;
}

.full-width{
  width: 100%;
}

.login-box {
  background-color: #333333;
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  text-align: center;
  width: 340px;
  animation: unblur 0.3s ease-in;
}

.login-box h2 {
  margin-bottom: 20px;
}

.input-container {
  text-align: left;
  margin-bottom: 15px;
}

.input-container label {
  display: block;
  margin-bottom: 5px;
}

.input-container input {
  width: 100%;
  padding: 10px;
  border: 1px solid #555555;
  border-radius: 5px;
  font-size: 16px;
}

input[type=button], input[type=submit] {
  width: 95%;
  padding: 6px;
  background-color: #555555;
  box-shadow: 6px 6px 3px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  margin: 2px;
  font-weight: bold;
}

input[type=button]:hover, input[type=submit]:hover {
  background-color: #5b8d91;
  box-shadow: 0px 0px 7px #9b5db8;
}

input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2);
  vertical-align: middle;
  cursor: pointer;
}

POPUPCONTAIN{
  z-index: 999999;
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  left: 0; top: 0;
  background-color: rgba(0, 0, 0, 0.2);
}

.POPUP{
  display: block;
  position: relative;
  overflow: hidden;
  width: 450px;
  background-color: #333333;
  color: white;
  border-radius: 5px;
  text-align: center;
}

.POPUP .TOP{
  display: block;
  position: relative;
  float: left;
  margin: 2px 0px 2px 8px;
  width: calc(100% - 40px);
  height: 30px; line-height: 30px;
}

.POPUP .BOTTOM{
  display: block;
  position: relative;
  width: calc(100% - 10px);
  margin: 4px auto 4px auto;
  border: 1px solid rgba(0, 0, 0, 0.4);
  background-color: rgba(0, 0, 0, 0.3);
  overflow: hidden;
  padding: 2px;
  box-sizing: border-box;
  border-radius: 2px;
}

/**/
.BTN_CLOSE{
  position: absolute;
  height: 30px; width: 30px;
  top: 0; right: 0;
  cursor: pointer;
  user-select: none;
}

HEADERSPACE{
  display: block;
  position: relative;
  width: 100%;
  height: 40px;
  background-color: #252525;
}

HEADSTRIP{
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 39px;
  border-bottom: 1px solid rgb(168, 168, 168);
  z-index: 9999999;
}

.box_half{
  width: calc(50% - 2px);
  float: left;
  margin: 1px;
}

.box_third{
  width: calc(33.33% - 2px);
  float: left;
  margin: 1px;
}

.txtCenter{
  text-align: center;
}

.txtLeft{
  text-align: left;
}

.txtRight{
  text-align: right;
}

.halfdiv{
  width: 50%;
  position: relative;
  float: left;
}

.fullDiv{ 
  float: left;
  width: 100%;
  position: relative;
}

.varcont .fullDiv{
  float: left;
  width: 100%;
  height: 30px;
  line-height: 30px;
  position: relative;
}

.varcont .halfDiv{
  float: left;
  width: calc(50% - 4px);
  margin: 2px;
  height: 30px;
  line-height: 30px;
  position: relative;
}

BLOCKCONTAINER{
  width: 100%; max-width: 650px; overflow: hidden; margin: auto; position: relative; display: block;
}

BLOCKITEM{
  display: flex;
  width: 100%;
  background-color: #ffffff1a;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

BLOCK1IMAGE{
  flex: 1;
  background-color: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
}

BLOCK1IMAGE img{
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

BLOCK1CONTENT{
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px;
}

BLOCK1CONTENT .text-wrap{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-grow: 1;
}

BLOCK1CONTENT input[type=button]{
  background-color: #007bff;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

BLOCKITEM2 {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #ffffff1a;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.BLOCK2CONTENT {
  display: flex;
  flex-direction: row;
  width: 100%;
}

BLOCK2IMAGE {
  flex: 1;
  background-color: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
}

BLOCK2IMAGE img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

BLOCK2CONTENT {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

BLOCK2CONTENT .text-wrap {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.BLOCK2BUTTON {
  text-align: center;
  padding: 10px 0;
}

.dashboard {
    padding: 32px;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

.empty-state {
    opacity: 0.6;
    padding: 24px;
    text-align: center;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.spec-grid.small {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.spec-card {
    background: #111;
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.spec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

.spec-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
}

.spec-meta {
    margin-top: 10px;
}

.spec-name {
    font-weight: 600;
    font-size: 18px;
}

.spec-role {
    font-size: 12px;
    opacity: .6;
}

.owned-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0b0b0b;
    border-top: 1px solid rgba(255,255,255,.08);
    transform: translateY(85%);
    transition: transform .3s ease;
    z-index: 100;
}

.owned-drawer.open {
    transform: translateY(0);
}

.drawer-handle {
    text-align: center;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(180deg, #111, #0b0b0b);
}

.drawer-content {
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 rgba(255,255,255,0); }
    50% { box-shadow: 0 0 20px rgba(255,255,255,.08); }
    100% { box-shadow: 0 0 0 rgba(255,255,255,0); }
}

.create-spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255,255,255,.15);
    background: rgba(255,255,255,.02);
    box-shadow: none;
    animation: pulse 3s infinite;
}

.create-spec:hover {
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.05);
    transform: translateY(-4px);
}

.create-spec .plus {
    font-size: 48px;
    line-height: 1;
    opacity: .7;
}

.create-spec .create-label {
    margin-top: 8px;
    font-size: 16px;
    opacity: .7;
    font-weight: bold;
    text-align: center;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 200;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: #0f0f0f;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
    animation: pop .2s ease;
}

@keyframes pop {
    from {
        transform: scale(.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal h3 {
    margin: 0 0 16px;
    font-size: 18px;
}

.modal label {
    display: block;
    font-size: 13px;
    opacity: .7;
    margin-bottom: 12px;
}

.modal input,
.modal textarea {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #151515;
    border: 1px solid rgba(255,255,255,.08);
    color: inherit;
    font-family: Arial, sans-serif; 
}

.modal input:focus,
.modal textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,.3);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
}

.btn.primary {
    background: #3b82f6;
    border: none;
    color: white;
}

.btn.secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,.15);
    color: inherit;
}

.btn.danger {
    background: #ef4444;
    border: none;
    color: white;
}