/* =========================================================
   Rachat / revente DIGILIB33 — style cohérent site sombre
   ========================================================= */

/* --- Bouton boutique CTA --- */
.shop-sell-cta {
    margin: 0 auto 2.5rem;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1.2fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.08), rgba(33, 150, 243, 0.06));
    border: 1px solid rgba(135, 206, 235, 0.28);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.shop-sell-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(135, 206, 235, 0.12), transparent 55%);
    pointer-events: none;
}

.shop-sell-cta h2 {
    margin: 0 0 0.4rem;
    color: var(--text-primary);
    font-size: 1.35rem;
}

.shop-sell-cta p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.55;
}

.shop-sell-cta .btn {
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .shop-sell-cta {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.4rem 1.25rem;
    }
}

/* --- Profil + notifications --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
    order: 3;
}

.nav-menu {
    order: 2;
}

.nav-brand {
    order: 1;
}

@media (min-width: 769px) {
    .navbar .container {
        flex-wrap: nowrap;
    }
    .nav-actions {
        margin-left: 0.5rem;
        order: 3;
    }
    .nav-toggle {
        display: none !important;
    }
}

.nav-user {
    position: relative;
}

.nav-user-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(135, 206, 235, 0.45);
    background: var(--bg-tertiary);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.nav-user-toggle:hover,
.nav-user.open .nav-user-toggle {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.15);
    transform: translateY(-1px);
}

.nav-user-avatar {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-primary);
    line-height: 1;
}

.nav-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 2px var(--bg-secondary);
    animation: notifPulse 1.6s ease-in-out infinite;
}

.nav-notif-badge[hidden] {
    display: none !important;
}

@keyframes notifPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.nav-user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(320px, calc(100vw - 24px));
    max-height: min(70vh, calc(100dvh - 88px));
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 1200;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-user.open .nav-user-dropdown {
    display: block;
    animation: dropdownIn 0.18s ease;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-user-head {
    padding: 0.75rem 1rem 0.45rem;
    border-bottom: 1px solid var(--border-color);
}

.nav-user-head strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
}

.nav-user-head span {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.nav-notif-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0.4rem 0.9rem 0;
}

.nav-notif-markall {
    background: none;
    border: none;
    color: var(--accent-secondary);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 4px 6px;
}

.nav-notif-markall:hover {
    text-decoration: underline;
}

.nav-notif-list {
    max-height: 140px;
    overflow-y: auto;
    padding: 0.2rem 0;
}

.nav-notif-list:has(.notif-empty) {
    max-height: none;
}

.notif-empty {
    padding: 0.55rem 1rem;
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.notif-item {
    display: block;
    padding: 0.75rem 1.1rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.15s;
}

.notif-item:hover {
    background: var(--hover-bg);
}

.notif-item.unread {
    background: rgba(135, 206, 235, 0.06);
    border-left-color: var(--accent-primary);
}

.notif-item-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.notif-item-body {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item-time {
    margin-top: 0.3rem;
    font-size: 0.72rem;
    color: rgba(176, 224, 230, 0.65);
}

.nav-user-links {
    border-top: 1px solid var(--border-color);
    padding: 0.3rem 0;
}

.nav-user-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.42rem 1rem;
    color: var(--text-secondary) !important;
    text-decoration: none;
    font-size: 0.88rem;
}

.nav-user-links a:hover {
    background: var(--hover-bg);
    color: var(--accent-primary) !important;
}

.nav-user-links .nav-logout {
    color: #ef9a9a !important;
}

/* --- Formulaire vente --- */
.sell-page {
    padding: 40px 0 100px;
}

.sell-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

.sell-aside-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.4rem;
    margin-bottom: 1rem;
}

.sell-aside-card h3 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sell-steps {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.sell-aside-tip {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.sell-aside-tip i {
    color: var(--accent-primary);
    margin-top: 3px;
}

.sell-aside-tip p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.sell-aside-link {
    width: 100%;
    justify-content: center;
}

.sell-form-wrap {
    padding: 2rem 2.2rem;
}

.sell-fieldset {
    border: none;
    margin: 0 0 1.75rem;
    padding: 0;
}

.sell-fieldset legend {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding: 0;
}

.sell-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}

.sell-cat-card {
    cursor: pointer;
}

.sell-cat-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sell-cat-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 96px;
    padding: 1rem 0.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.sell-cat-inner i {
    font-size: 1.4rem;
    color: var(--accent-primary);
}

.sell-cat-card:hover .sell-cat-inner,
.sell-cat-card.selected .sell-cat-inner,
.sell-cat-card input:checked + .sell-cat-inner {
    border-color: var(--accent-primary);
    background: rgba(135, 206, 235, 0.08);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.sell-type-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sell-type-chip {
    cursor: pointer;
}

.sell-type-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sell-type-chip span {
    display: inline-block;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sell-type-chip:hover span,
.sell-type-chip.selected span,
.sell-type-chip input:checked + span {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: rgba(135, 206, 235, 0.1);
}

.sell-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sell-form .form-group {
    margin-bottom: 0;
}

.sell-form label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.sell-form input[type="text"],
.sell-form input[type="number"],
.sell-form input[type="file"],
.sell-form select,
.sell-form textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.sell-form input:focus,
.sell-form select:focus,
.sell-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: rgba(176, 224, 230, 0.7);
}

.sell-actions {
    margin-top: 0.5rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.sell-legal {
    margin-top: 0.85rem;
    font-size: 0.8rem;
    color: rgba(176, 224, 230, 0.65);
}

@media (max-width: 900px) {
    .sell-layout {
        grid-template-columns: 1fr;
    }
    .sell-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* --- Liste annonces --- */
.trade-loading {
    text-align: center;
    padding: 2.5rem;
    color: var(--text-secondary);
}

.trade-list {
    display: grid;
    gap: 1rem;
}

.trade-card {
    display: block;
    text-decoration: none;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.trade-card:hover {
    border-color: rgba(135, 206, 235, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.trade-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.trade-card-top h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.15rem;
}

.trade-card-meta {
    margin: 0 0 0.85rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.trade-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.trade-card-bottom strong {
    color: var(--accent-primary);
    font-size: 1.15rem;
}

.trade-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    border-radius: 18px;
}

.trade-empty i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.trade-empty h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.trade-empty p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.trade-status-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.trade-status-pending { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.trade-status-discussion { background: rgba(33, 150, 243, 0.15); color: #64b5f6; }
.trade-status-offer { background: rgba(156, 39, 176, 0.15); color: #ce93d8; }
.trade-status-accepted { background: rgba(76, 175, 80, 0.15); color: #81c784; }
.trade-status-rejected { background: rgba(244, 67, 54, 0.15); color: #e57373; }
.trade-status-closed { background: rgba(158, 158, 158, 0.15); color: #bdbdbd; }

/* --- Page annonce + chat --- */
.listing-page {
    padding: 40px 0 100px;
}

.listing-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.listing-price-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.listing-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.listing-price {
    font-size: 1.6rem;
    color: var(--accent-primary);
}

.listing-offer {
    font-size: 1.6rem;
    color: #81c784;
}

.listing-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.listing-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.listing-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.25rem;
    margin: 0 0 1.5rem;
}

.listing-specs div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.listing-specs dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(176, 224, 230, 0.65);
}

.listing-specs dd {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.listing-desc h3 {
    margin: 0 0 0.6rem;
    color: var(--text-primary);
}

.listing-desc p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.listing-admin-box {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(135, 206, 235, 0.25);
    background: rgba(135, 206, 235, 0.05);
}

.listing-admin-box h3 {
    margin: 0 0 0.5rem;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.listing-admin-meta {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.trade-status-form .form-group {
    margin-bottom: 0.75rem;
}

.trade-status-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.trade-status-form select,
.trade-status-form input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.listing-chat {
    display: flex;
    flex-direction: column;
    min-height: 520px;
    max-height: 720px;
    padding: 0 !important;
    overflow: hidden;
}

.chat-header {
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-header h3 {
    margin: 0 0 0.35rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.chat-header p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: var(--bg-primary);
}

.chat-loading,
.chat-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem 1rem;
}

.chat-bubble {
    max-width: 85%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    animation: bubbleIn 0.2s ease;
}

@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-bubble-user {
    align-self: flex-end;
    background: rgba(33, 150, 243, 0.18);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-bottom-right-radius: 4px;
}

.chat-bubble-admin {
    align-self: flex-start;
    background: rgba(135, 206, 235, 0.1);
    border: 1px solid rgba(135, 206, 235, 0.28);
    border-bottom-left-radius: 4px;
}

.chat-bubble-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
}

.chat-bubble-meta strong {
    color: var(--accent-primary);
}

.chat-bubble-admin .chat-bubble-meta strong {
    color: #90caf9;
}

.chat-bubble-meta span {
    color: rgba(176, 224, 230, 0.6);
}

.chat-bubble-body {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-compose {
    display: flex;
    gap: 0.6rem;
    padding: 0.9rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.chat-compose textarea {
    flex: 1;
    resize: none;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.chat-compose textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.chat-compose button {
    align-self: flex-end;
    width: 46px;
    height: 46px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .listing-layout {
        grid-template-columns: 1fr;
    }
    .listing-specs {
        grid-template-columns: 1fr;
    }
    .listing-chat {
        min-height: 420px;
    }
}

/* Alertes génériques si absentes */
.alert {
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.35);
    color: #81c784;
}

.alert-error {
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid rgba(244, 67, 54, 0.35);
    color: #ef9a9a;
}

/* =========================================================
   Hébergement web — domaine + commande
   ========================================================= */

.domain-checker {
    margin-top: 0.5rem;
    padding: 2rem;
}

.domain-checker-head {
    margin-bottom: 1.25rem;
}

.domain-checker-head h3 {
    margin: 0 0 0.35rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.domain-checker-head p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.domain-search-form {
    margin-top: 0.25rem;
}

.domain-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: stretch;
}

.domain-search-fields {
    flex: 1 1 280px;
    display: flex;
    align-items: stretch;
    min-height: 54px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.domain-search-fields:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.18);
}

.domain-search-label {
    display: flex;
    align-items: center;
    padding: 0 0 0 1rem;
    color: rgba(176, 224, 230, 0.55);
    font-weight: 600;
    font-size: 1rem;
    user-select: none;
    white-space: nowrap;
}

.domain-search-fields input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.85rem 0.5rem;
    outline: none;
    box-shadow: none;
    border-radius: 0;
}

.domain-search-fields input[type="text"]::placeholder {
    color: rgba(176, 224, 230, 0.35);
    font-weight: 500;
}

.domain-search-fields select {
    flex: 0 0 auto;
    min-width: 108px;
    border: none;
    border-left: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--accent-primary);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0 2.1rem 0 0.9rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--accent-primary) 50%),
        linear-gradient(135deg, var(--accent-primary) 50%, transparent 50%);
    background-position:
        calc(100% - 16px) calc(50% - 2px),
        calc(100% - 10px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.domain-search-fields select:hover,
.domain-search-fields select:focus {
    background-color: rgba(135, 206, 235, 0.08);
}

.domain-search-fields select option {
    background: #1a1a1a;
    color: #87CEEB;
    font-weight: 600;
}

.domain-search-btn {
    flex: 0 0 auto;
    min-height: 54px;
    padding: 0 1.6rem;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.domain-search-result {
    margin-top: 1.15rem;
}

.domain-result {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.25rem 1.4rem;
    border-radius: 12px;
    text-align: center;
}

.domain-result-text {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.domain-result.ok {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #69f0ae;
}

.domain-result.bad {
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #ff8a80;
}

.domain-result-loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 1rem;
}

@media (max-width: 640px) {
    .domain-search-row {
        flex-direction: column;
    }

    .domain-search-btn {
        width: 100%;
    }

    .domain-search-fields select {
        min-width: 96px;
    }

    .domain-result-text {
        font-size: 1.2rem;
    }
}

.hosting-order-panel {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.hosting-order-panel h4 {
    margin: 0 0 1.25rem;
    color: var(--text-primary);
}

.hosting-plan-pick {
    cursor: pointer;
    position: relative;
}

.hosting-plan-pick input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hosting-plan-pick.selected,
.hosting-plan-pick:has(input:checked) {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(135, 206, 235, 0.2);
}

.hosting-plan-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
    text-align: center;
}

.hosting-order-summary {
    margin-top: 1.75rem;
    padding: 1.5rem;
    border-radius: 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.hosting-summary-lines {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.hosting-summary-lines > div {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
}

.hosting-summary-lines strong { color: var(--text-primary); }

.hosting-summary-total {
    padding-top: 0.65rem;
    border-top: 1px solid var(--border-color);
    font-size: 1.15rem;
}

.hosting-summary-total strong { color: var(--accent-primary); }

.hosting-notes {
    width: 100%;
    margin-bottom: 1rem;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
}

.hosting-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.hosting-access-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.15rem;
}

.hosting-access-card h3 {
    margin: 0 0 0.75rem;
    color: var(--accent-primary);
    font-size: 1rem;
}

.hosting-access-card p {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0 0 0.65rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.hosting-access-card code {
    color: var(--text-primary);
    font-size: 0.92rem;
    word-break: break-all;
}

.hosting-admin-detail { margin-bottom: 2rem; }

.hosting-admin-actions { margin: 1rem 0; }

.hosting-form-section {
    margin: 1.5rem 0 0.75rem;
    color: var(--accent-primary);
    font-size: 1.05rem;
}

.hosting-access-form .form-group { margin-bottom: 0.75rem; }
.hosting-access-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}
.hosting-access-form input,
.hosting-access-form select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.host-status-pending { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.host-status-wait { background: rgba(33, 150, 243, 0.15); color: #64b5f6; }
.host-status-prov { background: rgba(156, 39, 176, 0.15); color: #ce93d8; }
.host-status-active { background: rgba(76, 175, 80, 0.15); color: #81c784; }
.host-status-rejected,
.host-status-cancelled { background: rgba(244, 67, 54, 0.15); color: #e57373; }
