/* Contact modal styles (copiado y adaptado desde React component) */
.modal {
    display: flex;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 22, 39, 0.8);
}

.modal-content {
    background-color: #0C1E29;
    padding: 40px;
    border-radius: 15px;
    width: 400px;
    text-align: center;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.modal-content .close {
    display: flex;
    justify-content: flex-end;
    font-size: 24px;
    cursor: pointer;
    color: #B8E0D2;
}

.modal-content h2 {
    margin-bottom: 20px;
    font-family: 'Arial', sans-serif;
    color: #B8E0D2;
}

.modal-content input, .modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #4C7283;
    border-radius: 10px;
    background-color: #112935;
    color: #B8E0D2;
    font-size: 16px;
    box-sizing: border-box;
    transition: border 0.3s ease;
}

.modal-content input:focus, .modal-content textarea:focus {
    border-color: #72D1B5;
    outline: none;
}

.modal-content textarea {
    height: 150px;
    resize: none;
}

.contact-button {
    padding: 12px 40px;
    font-size: 16px;
    background-color: #72D1B5;
    color: black;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-button:hover { background-color: #5EB397; }

.od-captcha { display:flex; justify-content:center; align-items:center; margin-bottom:20px; }
.od-auth-captcha { display:flex; justify-content:center; align-items:center; margin:0 0 12px; min-height:78px; }
.od-auth-captcha:empty { min-height:0; margin-bottom:0; }

/* Header auth status (shared across pages) */
.auth-center {
    position: relative;
    left: auto;
    transform: none;
    display: flex;
    align-items: center;
    z-index: 1002;
}

.auth-status-btn {
    background: rgba(19, 35, 55, 0.95);
    color: #c4ff61;
    border: 1px solid rgba(196, 255, 97, 0.35);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 130px;
    height: 51.33px !important;
}

.auth-status-btn:hover {
    border-color: #c4ff61;
    box-shadow: 0 8px 22px rgba(196, 255, 97, 0.15);
    transform: translateY(-1px);
}

.auth-dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    left: auto;
    transform: none;
    min-width: 160px;
    background: #102335;
    border: 1px solid rgba(196, 255, 97, 0.22);
    border-radius: 12px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
    padding: 0.45rem;
    display: none;
}

.auth-dropdown.open {
    display: block;
}

.auth-dropdown button {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: #fff;
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
    font-size: 0.92rem;
    cursor: pointer;
}

.auth-dropdown button:hover {
    background: rgba(114, 209, 181, 0.14);
    color: #b8e0d2;
}

.auth-dropdown [data-auth-credits] {
    background: rgba(196, 255, 97, 0.08);
    border: 1px solid rgba(196, 255, 97, 0.22);
}

.auth-dropdown [data-auth-credits]:hover {
    background: rgba(196, 255, 97, 0.18);
    color: #d9ff9f;
}

.auth-dropdown [data-auth-logout]:hover {
    background: rgba(255, 107, 107, 0.14);
    color: #ff9b9b;
}

.od-auth-content {
    max-width: 460px;
    width: calc(100% - 2rem);
}

.od-auth-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.od-auth-inline input {
    flex: 1;
    margin-bottom: 0;
}

.od-auth-inline-btn {
    margin: 0;
    white-space: nowrap;
    padding: 12px 16px;
}

.od-auth-tabs {
    display: flex;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2e4959;
}

.od-auth-tab {
    flex: 1;
    border: none;
    background: #112935;
    color: #b8e0d2;
    padding: 10px;
    cursor: pointer;
    font-weight: 600;
}

.od-auth-tab.active {
    background: #72d1b5;
    color: #0c1e29;
}

.od-auth-error {
    min-height: 18px;
    color: #ff8f8f;
    font-size: 13px;
    text-align: left;
    margin-bottom: 10px;
}

.od-auth-success {
    min-height: 18px;
    color: #72d1b5;
    font-size: 13px;
    margin-top: 10px;
}

.od-auth-link-row {
    display: flex;
    justify-content: flex-end;
    margin: -8px 0 12px;
}

.od-auth-link-btn {
    border: none;
    background: transparent;
    color: #72d1b5;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.od-auth-link-btn:hover {
    color: #b8e0d2;
}

.od-auth-link-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.od-auth-reset-fields {
    margin: 0 0 12px;
}

.od-auth-reset-fields input {
    margin-bottom: 12px;
}

.od-auth-reset-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.od-auth-reset-btn {
    width: 200px;
    max-width: 100%;
    margin: 0;
}

.od-auth-reset-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.od-profile-content {
    max-width: 560px;
}

.od-profile-help {
    color: #8db5a7;
    font-size: 12px;
    margin: -8px 0 14px;
    text-align: left;
}

.od-profile-grid {
    border: 1px solid #2e4959;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.od-profile-item {
    text-align: left;
}

.od-profile-item span {
    display: block;
    font-size: 13px;
    color: #8db5a7;
    margin-bottom: 4px;
}

.od-profile-item strong {
    color: #e7fff6;
    font-size: 14px;
    word-break: break-word;
}

.od-profile-item-full {
    grid-column: span 2;
}

.od-profile-card-line {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.od-profile-card-line strong {
    flex: 0 1 auto;
}

.od-card-edit-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    border: 1px solid #4c7283;
    background: #112935;
    color: #b8e0d2;
    cursor: pointer;
    transition: all 0.2s ease;
}

.od-card-edit-btn:hover {
    background: #163749;
    border-color: #72d1b5;
    color: #72d1b5;
}

.od-card-edit-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.od-card-edit-btn:disabled,
.od-card-edit-btn.is-loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.od-profile-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}


.od-secondary-btn {
    background: #112935;
    color: #b8e0d2;
    border: 1px solid #4c7283;
}

.od-secondary-btn:hover {
    background: #163749;
}

@media (max-width: 1200px) {
  .modal-content { padding:20px; width:300px; }
  .modal-content textarea { height:100px; }
  .od-auth-inline { flex-direction: column; align-items: stretch; }
  .od-auth-inline-btn { width: 100%; }
  .od-auth-reset-actions { align-items: center; }
  .od-auth-reset-actions .od-auth-reset-btn { width: 180px; }
  .od-profile-grid { grid-template-columns: 1fr; }
  .od-profile-item-full { grid-column: auto; }
  .od-profile-actions { flex-direction: row; align-items: center; justify-content: center; }
  .od-captcha > div,
  .od-auth-captcha > div {
    transform: scale(0.92);
    transform-origin: center top;
  }
}

@media (max-width: 1480px) {
  .auth-center { display: none; }
}
