    .ct-wrap {
        max-width: 1600px;
        margin: 24px auto;
        padding: 12px;
        color: #efe1c6;
        font-family: 'TF2 Secondary', 'Arial', sans-serif;
        background: #1a0f0a;
        border: 2px solid #4b3a2a;
        border-radius: 8px;
        box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    }
    .ct-top {
        display: flex;
        gap: 12px;
        align-items: center;
        margin-bottom: 20px;
    }
    .ct-logo {
        width: 86px;
        height: 86px;
        border-radius: 12px;
        background: #3b2d1f;
        display: grid;
        place-items: center;
        font-weight: 900;
        color: #ffd05e;
        font-size: 24px;
        border: 2px solid #ffd05e;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .ct-title {
        font-size: 28px;
        font-weight: 800;
        color: #ffe26a;
        text-transform: uppercase;
        margin: 0;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }
    .ct-subtitle {
        color: #bfa980;
        margin: 5px 0 0 0;
        font-size: 14px;
    }
    .ct-tabs {
        display: flex;
        margin-bottom: 20px;
        border-bottom: 2px solid #6b5a41;
        background: #2b1f14;
        border-radius: 8px 8px 0 0;
        box-shadow: inset 0 -2px 0 rgba(0,0,0,0.3);
    }
    .ct-tab {
        padding: 12px 24px;
        background: #2f271d;
        border: 1px solid #6b5a41;
        border-bottom: none;
        border-radius: 8px 8px 0 0;
        color: #bfa980;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.2s ease;
        position: relative;
        overflow: hidden;
    }
    .ct-tab::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: rgba(255, 208, 94, 0.2);
        transform: scaleX(0);
        transition: transform 0.2s ease;
    }
    .ct-tab:hover {
        background: #3a3125;
        color: #ffd05e;
        box-shadow: inset 0 1px 0 rgba(255, 208, 94, 0.1);
    }
    .ct-tab:hover::after {
        transform: scaleX(1);
    }
    .ct-tab.active {
        background: #3a3125;
        color: #ffd05e;
        border-color: #ffd05e;
        box-shadow: inset 0 1px 0 rgba(255, 208, 94, 0.2);
    }
    .ct-tab.active::after {
        transform: scaleX(1);
        background: #ffd05e;
    }
    .ct-tab-content {
        display: none;
    }
    .ct-tab-content.active {
        display: block;
    }
    .ct-contract-subtabs {
        display: flex;
        margin-bottom: 16px;
        border-bottom: 2px solid #6b5a41;
        background: #2b1f14;
        border-radius: 6px 6px 0 0;
    }
    .subtab {
        padding: 8px 16px;
        background: #2f271d;
        border: 1px solid #6b5a41;
        border-bottom: none;
        border-radius: 6px 6px 0 0;
        color: #bfa980;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.2s ease;
    }
    .subtab:hover {
        background: #3a3125;
        color: #ffd05e;
    }
    .subtab.active {
        background: #3a3125;
        color: #ffd05e;
        border-color: #ffd05e;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
    }
    .ct-contract-subcontent {
        display: none;
    }
    .ct-contract-subcontent.active {
        display: block;
    }
    .ct-shop-subtabs {
        display: flex;
        margin-bottom: 16px;
        border-bottom: 2px solid #6b5a41;
        background: #2b1f14;
        border-radius: 6px 6px 0 0;
    }
    .subtab-shop {
        padding: 8px 16px;
        background: #2f271d;
        border: 1px solid #6b5a41;
        border-bottom: none;
        border-radius: 6px 6px 0 0;
        color: #bfa980;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.2s ease;
    }
    .subtab-shop:hover {
        background: #3a3125;
        color: #ffd05e;
    }
    .subtab-shop.active {
        background: #3a3125;
        color: #ffd05e;
        border-color: #ffd05e;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
    }
    .ct-shop-subcontent {
        display: none;
    }
    .ct-shop-subcontent.active {
        display: block;
    }
    .ct-category-tabs {
        display: flex;
        margin-bottom: 16px;
        border-bottom: 2px solid #6b5a41;
        background: #2b1f14;
        border-radius: 6px 6px 0 0;
        overflow-x: auto;
    }
    .category-tab {
        padding: 8px 16px;
        background: #2f271d;
        border: 1px solid #6b5a41;
        border-bottom: none;
        border-radius: 6px 6px 0 0;
        color: #bfa980;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.2s ease;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .category-tab:hover {
        background: #3a3125;
        color: #ffd05e;
    }
    .category-tab.active {
        background: #3a3125;
        color: #ffd05e;
        border-color: #ffd05e;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
    }
    .ct-category-content {
        min-height: 200px;
    }
    .ct-public {
        background: #2c241a;
        padding: 16px;
        border-radius: 10px;
        border: 2px solid #6b5a41;
    }
    .public-section {
        margin-bottom: 30px;
    }
    .public-section h3 {
        color: #ffd77a;
        margin-bottom: 10px;
    }
    .public-item {
        background: #3a3125;
        padding: 8px;
        margin-bottom: 5px;
        border-radius: 4px;
        border-left: 3px solid #ffd05e;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .public-item img {
        width: 32px;
        height: 32px;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #ffd05e;
    }
    .ct-servers {
        display: flex;
        gap: 12px;
        margin: 20px 0;
        flex-wrap: wrap;
        background: #2b1f14;
        padding: 12px;
        border-radius: 8px;
        border: 1px solid #6b5a41;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .ct-server {
        background: #3a3125;
        padding: 15px;
        border-radius: 10px;
        border: 2px solid #6b5a41;
        display: flex;
        gap: 12px;
        align-items: center;
        cursor: pointer;
        transition: all 0.2s ease;
        min-width: 250px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
        position: relative;
        overflow: hidden;
    }
    .ct-server::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(255, 208, 94, 0.1);
    }
    .ct-server:hover {
        transform: translateY(-2px);
        border-color: #ffd05e;
        box-shadow: 0 6px 16px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255, 208, 94, 0.1);
    }
    .ct-server.active {
        border-color: #ffd05e;
        background: #4a3d2e;
        box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255, 208, 94, 0.2);
    }
    .server-info {
        flex: 1;
    }
    .server-name {
        font-weight: 700;
        color: #ffd77a;
        margin: 0 0 5px 0;
        font-size: 16px;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    }
    .server-meta {
        color: #bfa980;
        font-size: 12px;
        margin: 0;
    }
    .ct-main-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    .ct-user-info {
        background: #2c241a;
        padding: 16px;
        border-radius: 10px;
        border: 2px solid #6b5a41;
        display: flex;
        flex-direction: column;
        gap: 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .ct-contracts {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        max-width: 100%;
    }
    
    @media (min-width: 1200px) {
        .ct-contracts {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    
    @media (min-width: 768px) and (max-width: 1199px) {
        .ct-contracts {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media (max-width: 767px) {
        .ct-contracts {
            grid-template-columns: 1fr;
        }
    }
    .ct-contract {
        background: #3a3125;
        border-radius: 12px;
        padding: 0;
        border: 2px solid #6b5a41;
        position: relative;
        overflow: hidden;
        box-shadow: 0 6px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
        transition: all 0.2s ease;
        display: flex;
        flex-direction: column;
        min-height: 400px;
    }
    .ct-contract::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(255, 208, 94, 0.1);
    }
    .ct-contract:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255, 208, 94, 0.1);
    }
    .contract-image {
        width: 100%;
        height: 180px;
        margin-bottom: 0;
        border-radius: 8px 8px 0 0;
        overflow: hidden;
        background: #2f271d;
        border-bottom: 1px solid #6b5a41;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    .contract-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .contract-image-placeholder {
        font-size: 64px;
        color: #6b5a41;
        opacity: 0.3;
    }
    .contract-category {
        position: absolute;
        bottom: 8px;
        left: 8px;
        background: rgba(47, 39, 29, 0.95);
        color: #bfa980;
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 600;
        border: 1px solid #6b5a41;
        z-index: 2;
    }
    .contract-title {
        font-weight: 800;
        color: #ffd77a;
        margin: 16px 16px 8px 16px;
        font-size: 18px;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
        text-align: center;
    }
    .contract-desc {
        color: #bfa980;
        font-size: 13px;
        margin: 0 16px 12px 16px;
        line-height: 1.4;
        text-align: center;
    }
    .contract-meta {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin: 8px 16px;
    }
    .contract-reward {
        color: #9ecb6b;
        font-size: 14px;
        font-weight: 600;
    }

    .exp-reward {
        color: #bed43e;
        font-size: 13px;
        font-weight: 600;
    }
    
    .contract-reward-line {
        color: #9ecb6b;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        margin: 8px 16px;
    }

    .contract-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 8px 16px 16px 16px;
        margin-top: auto;
    }
    
    .ct-contract .progress-bar {
        margin: 8px 16px;
        width: calc(100% - 32px);
    }
    
    .ct-contract small {
        display: block;
        margin: 0 16px 8px 16px;
        text-align: center;
        color: #bfa980;
    }
    
    .ct-contract .completed,
    .ct-contract .taken {
        margin: 8px 16px;
        text-align: center;
        font-weight: 600;
    }
    
    .ct-contract p {
        margin: 0 16px 8px 16px;
        text-align: center;
    }
    
    .ct-contract strong {
        color: #ffd77a;
    }
    
    .ct-contract .out-of-stock {
        text-align: center;
        padding: 10px 16px;
        font-weight: 600;
    }
    
    .ct-contract .reward-received {
        color: #9ecb6b;
        text-align: center;
        margin: 8px 16px;
        font-weight: 600;
        font-size: 14px;
    }
    
    .ct-contract .contract-expired {
        color: #e74c3c;
        text-align: center;
        margin: 8px 16px;
        font-weight: 600;
        font-size: 14px;
    }
    
    .ct-view, .ct-submit, .ct-take-contract {
        background: #5e5242;
        color: #f0e6cf;
        padding: 10px 16px;
        border-radius: 6px;
        border: 1px solid #8b7a60;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.2s ease;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
        width: 100%;
        font-size: 14px;
    }
    .ct-view:hover:not(:disabled), .ct-submit:hover:not(:disabled), .ct-take-contract:hover:not(:disabled) {
        background: #6d6151;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,208,94,0.2);
    }
    .ct-view:disabled, .ct-submit:disabled, .ct-take-contract:disabled {
        background: #7f8c8d;
        cursor: not-allowed;
    }
    .ct-submit {
        background: #d3543a;
        border-color: #a33d28;
    }
    .ct-submit:hover:not(:disabled) {
        background: #e74c3c;
    }
    .ct-take-contract {
        background: #9ecb6b;
        color: #2f271d;
        border-color: #7ea656;
    }
    .ct-take-contract:hover:not(:disabled) {
        background: #aed97b;
        border-color: #9ecb6b;
        box-shadow: 0 3px 10px rgba(158, 203, 107, 0.4);
    }
    .ct-shop-items {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    .ct-shop-item {
        background: #3a3125;
        border-radius: 12px;
        padding: 16px;
        border: 2px solid #6b5a41;
        position: relative;
        overflow: hidden;
        box-shadow: 0 6px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        transition: all 0.2s ease;
    }
    .ct-shop-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(255, 208, 94, 0.1);
    }
    .ct-shop-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255, 208, 94, 0.1);
    }
    .ct-shop-item.dimmed {
        opacity: 0.6;
        pointer-events: none;
    }
    .shop-item-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 12px;
        background: #2f271d;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 48px;
        border: 1px solid #ffd05e;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
        overflow: hidden;
    }
    .shop-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .shop-item-name {
        font-weight: 800;
        color: #ffd77a;
        margin: 0 0 8px 0;
        font-size: 16px;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    }
    .shop-item-desc {
        color: #bfa980;
        font-size: 13px;
        margin: 0 0 12px 0;
        line-height: 1.4;
        flex-grow: 1;
    }
    .shop-item-price {
        color: #9ecb6b;
        font-size: 18px;
        font-weight: bold;
        margin: 0 0 12px 0;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    }
    .stock-info {
        color: #9ecb6b;
        font-size: 12px;
        margin-bottom: 12px;
    }
    .shop-item-category {
        background: #2f271d;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        color: #bfa980;
        align-self: flex-start;
        margin-bottom: 12px;
        border: 1px solid #6b5a41;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .shop-item-buy {
        background: #5e5242;
        color: #f0e6cf;
        padding: 8px 16px;
        border-radius: 6px;
        border: 1px solid #8b7a60;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.2s ease;
        text-align: center;
        width: 100%;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .shop-item-buy:hover:not(:disabled) {
        background: #6d6151;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,208,94,0.2);
    }
    .shop-item-buy:disabled {
        background: #7f8c8d;
        cursor: not-allowed;
    }
    .shop-item-edit {
        background: #dae722;
        color: #f0e6cf;
        padding: 8px 16px;
        border-radius: 6px;
        border: 1px solid #8b7a60;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.2s ease;
        text-align: center;
        width: 100%;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .out-of-stock {
        padding: 8px;
        text-align: center;
        color: #e74c3c;
        font-weight: bold;
    }
    .tf2-backpack {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(131px, 1fr));
        gap: 4px;
        background: #2b1f14;
        padding: 10px;
        border-radius: 4px;
        border: 1px solid #6b5a41;
        max-width: 100%;
        overflow-x: auto;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .history-slot {
        width: 131px;
        height: 131px;
        background: #3b2d1f;
        border: 2px solid #6b5a41;
        border-radius: 4px;
        position: relative;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        color: #efe1c6;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .history-slot::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(255, 208, 94, 0.1);
    }
    .history-slot:hover {
        box-shadow: 0 0 12px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255, 208, 94, 0.2);
        transform: translateY(-1px);
    }
    .history-slot img {
        width: 94px;
        height: 94px;
        object-fit: cover;
        border-radius: 2px;
        margin-bottom: 2px;
        border: 1px solid #ffd05e;
        box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }
    .history-slot .item-name {
        font-size: 9px;
        line-height: 1.1;
        max-width: 127px;
        word-wrap: break-word;
        margin-bottom: 1px;
    }
    .history-slot .item-status {
        font-size: 8px;
        font-weight: bold;
        margin-top: 1px;
    }
    .history-slot .item-qty {
        font-weight: bold;
        color: #ffd05e;
        font-size: 12px;
    }
    .history-empty {
        color: #bfa980;
        font-style: italic;
        font-size: 12px;
    }
    .inventory-pagination button {
        margin: 0 5px;
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .pagination {
        display: none;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 20px;
        padding: 16px;
        background: #2f271d;
        border-radius: 8px;
        border: 2px solid #6b5a41;
    }
    
    .pagination button {
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 600;
        min-width: 100px;
    }
    
    .pagination button:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }
    
    .pagination span {
        color: #ffd77a;
        font-weight: 600;
        font-size: 14px;
        min-width: 150px;
        text-align: center;
    }
    
    .ct-prog {
        background: #241b15;
        padding: 12px;
        border-radius: 8px;
        border: 1px solid #6b5a41;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .prog-title {
        color: #ffd05e;
        margin: 0 0 10px 0;
        font-size: 16px;
        font-weight: 600;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    }
    .prog-list {
        color: #c9b78f;
        font-size: 13px;
    }
    .prog-item {
        padding: 8px;
        margin-bottom: 8px;
        background: #2c241a;
        border-radius: 6px;
        border: 1px solid #3a3125;
    }
    .ct-btn {
        background: #5e5242;
        color: #f0e6cf;
        padding: 10px 16px;
        border-radius: 6px;
        border: 1px solid #8b7a60;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
        position: relative;
        overflow: hidden;
    }
    .ct-btn::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: rgba(255, 208, 94, 0.2);
        transform: scaleX(0);
        transition: transform 0.2s ease;
    }
    .ct-btn:hover {
        background: #6d6151;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,208,94,0.2);
    }
    .ct-btn:hover::after {
        transform: scaleX(1);
    }
    .ct-btn.primary {
        background: #d3543a;
        color: white;
        border-color: #a33d28;
    }
    .ct-btn.primary:hover {
        background: #e74c3c;
    }
    .loading-btn:disabled {
        cursor: wait;
        opacity: 0.6;
    }
    .ct-admin-main {
        background: #2c241a;
        padding: 16px;
        border-radius: 10px;
        border: 2px solid #6b5a41;
        box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .badge {
        background: #3b2b1f;
        padding: 4px 8px;
        border-radius: 12px;
        font-weight: 700;
        color: #ffd05e;
        font-size: 12px;
        border: 1px solid #ffd05e;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .loading {
        color: #bfa980;
        text-align: center;
        padding: 20px;
        font-style: italic;
    }
    .error {
        color: #e74c3c;
        background: #2c241a;
        padding: 12px;
        border-radius: 6px;
        border: 1px solid #e74c3c;
        margin: 10px 0;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .progress-bar {
        width: 100%;
        height: 20px;
        background: #3a3125;
        border-radius: 10px;
        overflow: hidden;
        margin: 5px 0;
        border: 1px solid #6b5a41;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .progress-fill {
        height: 100%;
        background: #9ecb6b;
        transition: width 0.3s ease;
    }
    table {
        width: 100%;
        border-collapse: collapse;
        color: #efe1c6;
        background: #2b1f14;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    }
    th, td {
        border: 1px solid #6b5a41;
        padding: 8px;
        text-align: left;
        vertical-align: middle;
    }
    th {
        background: #3a3125;
        color: #ffd77a;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    }
    td input[type="checkbox"] {
        vertical-align: middle;
    }
    td input[type="number"].qty {
        width: 60px;
        padding: 4px;
        display: inline-block;
        margin-left: 8px;
    }
    form p {
        margin: 10px 0;
    }
    form input, form textarea, form select {
        width: 100%;
        padding: 8px;
        border: 1px solid #6b5a41;
        background: #2f271d;
        color: #efe1c6;
        border-radius: 4px;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.1);
    }
    form input[type="checkbox"] {
        width: auto;
    }
    form input:focus, form textarea:focus, form select:focus {
        outline: none;
        border-color: #ffd05e;
        box-shadow: 0 0 8px rgba(255, 208, 94, 0.3), inset 0 1px 0 rgba(255, 208, 94, 0.1);
    }
    
    /* Toggle Switch стиль для чекбоксов */
    input[type="checkbox"] {
        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        min-width: 64px;
        width: 64px;
        height: 18px;
        background: #d3543a !important;
        border: 2px solid #a33d28 !important;
        border-radius: 9px;
        position: relative;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.3) !important;
        vertical-align: middle;
        display: inline-block;
        margin: 0;
        flex-shrink: 0;
    }
    
    input[type="checkbox"]::before {
        content: '';
        position: absolute;
        width: 22px;
        height: 22px;
        background: #fff !important;
        border-radius: 50%;
        top: -4px;
        left: 2px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    }
    
    input[type="checkbox"]:checked {
        background: #9ecb6b !important;
        border-color: #7ea656 !important;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 0 8px rgba(158, 203, 107, 0.4) !important;
    }
    
    input[type="checkbox"]:checked::before {
        left: 36px;
        background: #fff !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    }
    
    input[type="checkbox"]:hover {
        border-color: #8b7a60;
    }
    
    input[type="checkbox"]:focus {
        outline: none;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.3), 0 0 0 2px rgba(255, 208, 94, 0.3);
    }
    
    input[type="checkbox"]:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    /* Чекбоксы в таблицах */
    table input[type="checkbox"] {
        margin: 0;
        display: inline-block;
        vertical-align: middle;
    }
    
    table input[type="checkbox"].item-select {
        margin-right: 8px;
    }
    
    /* Чекбоксы в label */
    label input[type="checkbox"] {
        margin-right: 8px;
    }
    
    form textarea {
        height: 80px;
        resize: vertical;
    }
    #cooldown-row {
        display: none;
    }
    #cooldown-row label {
        display: block;
        color: #bfa980;
    }
    #cooldown-row input {
        width: 60px;
        display: inline-block;
    }
    .taken {
        color: #ffd05e;
        font-weight: bold;
        margin-top: 10px;
        font-size: 12px;
    }
    .completed {
        color: #9ecb6b;
        font-weight: bold;
        margin-top: 10px;
        font-size: 12px;
    }
    .popup {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }
    .popup-content {
        background: #2f271d;
        padding: 20px;
        border-radius: 10px;
        border: 2px solid #6b5a41;
        max-width: 600px;
        width: 100%;
        position: relative;
        color: #efe1c6;
        box-shadow: 0 8px 32px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .popup-close {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 20px;
        cursor: pointer;
        color: #ffd05e;
        transition: color 0.2s ease;
    }
    .popup-close:hover {
        color: #e74c3c;
    }
    .notification {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #2f271d;
        padding: 15px;
        border-radius: 8px;
        border: 2px solid #6b5a41;
        color: #efe1c6;
        font-size: 14px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.5);
        z-index: 1001;
        max-width: 300px;
    }
    .notification.success {
        border-color: #9ecb6b;
        background: #3a3125;
    }
    .notification.error {
        border-color: #e74c3c;
        background: #2b2218;
    }
    .quality-normal {
        border-color: #B2B2B2 !important;
        color: #B2B2B2 !important;
    }
    .quality-genuine {
        border-color: #4D7455 !important;
        color: #4D7455 !important;
    }
    .quality-vintage {
        border-color: #476291 !important;
        color: #476291 !important;
    }
    .quality-unusual {
        border-color: #8650AC !important;
        color: #8650AC !important;
    }
    .quality-unique {
        border-color: #FFFFFF !important;
        color: #FFFFFF !important;
    }
    .quality-rare {
        border-color: #476291 !important;
        color: #476291 !important;
    }
    .quality-very_rare {
        border-color: #4D7455 !important;
        color: #4D7455 !important;
    }
    .login-message {
        text-align: center;
        color: #e74c3c;
        font-style: italic;
        margin: 10px 0;
    }
    .login-btn {
        background: #ffd05e;
        color: #000;
        border: none;
    }
    .login-btn:hover {
        background: #ffe26a;
    }
    @media (max-width: 768px) {
        .ct-main-grid {
            grid-template-columns: 1fr;
        }
        .ct-servers {
            flex-direction: column;
        }
        .ct-server {
            min-width: auto;
        }
    }
    .color-gold { color: #ffd77a; }
.color-yellow { color: #ffd05e; }
.font-bold-18 { font-size: 18px; font-weight: bold; }
.margin-top-10 { margin-top: 10px; }
.width-100 { width: 100%; }
.grid-1fr { grid-template-columns: 1fr; }
.flex-space-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.margin-0 { margin: 0; }
.margin-bottom-20 { margin-bottom: 20px; }
.margin-bottom-10 { margin-bottom: 10px; }
.flex-gap-10 { display: flex; gap: 10px; align-items: center; }
.flex-gap-10-wrap { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.margin-10-0 { margin: 10px 0; }
.hidden { display: none; }
.text-center { text-align: center; }
.margin-top-5 { margin-top: 5px; }
.font-12 { font-size: 12px; }
.flex-1 { flex: 1; }
.input-style { padding:8px; border:1px solid #6b5a41; background:#2f271d; color:#efe1c6; border-radius:4px; }
.full-width { width: 100%; }
table { width:100%; border-collapse: collapse; }
th { border:1px solid #6b5a41; padding:8px; background:#3a3125; color:#ffd77a; }
td { border:1px solid #6b5a41; padding:8px; }
.max-height-800-overflow { max-height: 800px; overflow-y: auto; border: 1px solid #6b5a41; border-radius: 4px; padding: 10px; background: #2f271d; }
    .ct-admin-main table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #2f271d;
    border: 1px solid #6b5a41;
}

.ct-admin-main th, .ct-admin-main td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #6b5a41;
    color: #efe1c6;
}

.ct-admin-main th {
    background: #3a3125;
    color: #ffd77a;
}

.ct-admin-main button {
    margin: 0 2px;
}

.ct-admin-main form p {
    margin: 10px 0;
}

.ct-admin-main input, .ct-admin-main select, .ct-admin-main textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    background: #2f271d;
    border: 1px solid #6b5a41;
    color: #efe1c6;
    border-radius: 4px;
}

.ct-admin-main label {
    color: #bfa980;
}

.ct-admin-main .ct-btn {
    margin-top: 10px;
}

.ct-level-prog {
    margin-bottom: 20px;
    padding: 15px;
    background: #2f271d;
    border: 1px solid #6b5a41;
    border-radius: 8px;
}

.prog-title {
    color: #ffd77a;
    margin-bottom: 10px;
    text-align: center;
}

.level-bar-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.level-bar {
    flex: 1;
    height: 20px;
    background: #3b3124;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.level-fill {
    height: 100%;
    background: linear-gradient(to right, #ffd05e, #ff8c00);
    transition: width 0.3s ease;
}

.tick {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.level-next-large {
    width: 90px;
    height: 90px;
    background: #ffd05e;
    color: #2f271d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 208, 94, 0.5);
    cursor: pointer; /* 👈 курсор "рука" */
    transition: all 0.2s ease; /* 👈 плавная анимация */
}

.level-next-large:hover {
    background: #ffeb9b; /* чуть светлее при наведении */
    box-shadow: 0 0 15px rgba(255, 208, 94, 0.8);
    transform: scale(1.05); /* лёгкое увеличение */
}


.level-info {
    display: flex;
    justify-content: space-between;
    color: #bfa980;
    font-size: 14px;
}

.level-exp {
    text-align: left;
}

.level-reward {
    text-align: right;
    color: #9ecb6b;
}

/* Стили для полей ввода в таблице уровней */
#levels-table input.incremental-exp,
#levels-table input.credit-reward,
#levels-table input.forum-amount,
#levels-table input.forum-currency,
#levels-table input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #6b5a41;
    background: #2f271d;
    color: #efe1c6;
    border-radius: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.1);
    font-size: 14px;
    box-sizing: border-box;
}

#levels-table input.incremental-exp:focus,
#levels-table input.credit-reward:focus,
#levels-table input.forum-amount:focus,
#levels-table input.forum-currency:focus,
#levels-table input[type="number"]:focus {
    outline: none;
    border-color: #ffd05e;
    box-shadow: 0 0 8px rgba(255, 208, 94, 0.3), inset 0 1px 0 rgba(255, 208, 94, 0.1);
}

/* Дополнительно: стили для span.total-exp (не input, но рядом) */
#levels-table .total-exp {
    font-weight: bold;
    color: #ffd05e;
    padding: 8px;
    display: inline-block;
    background: rgba(255, 208, 94, 0.1);
    border-radius: 4px;
    min-width: 80px;
    text-align: center;
}
    .ct-admin-main table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #2f271d;
    border: 1px solid #6b5a41;
}

.ct-admin-main th, .ct-admin-main td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #6b5a41;
    color: #efe1c6;
}

.ct-admin-main th {
    background: #3a3125;
    color: #ffd77a;
}

.ct-admin-main button {
    margin: 0 2px;
}

.ct-admin-main form p {
    margin: 10px 0;
}

.ct-admin-main input, .ct-admin-main select, .ct-admin-main textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    background: #2f271d;
    border: 1px solid #6b5a41;
    color: #efe1c6;
    border-radius: 4px;
}

.ct-admin-main label {
    color: #bfa980;
}

.ct-admin-main .ct-btn {
    margin-top: 10px;
}

.ct-level-prog {
    margin-bottom: 20px;
    padding: 15px;
    background: #2f271d;
    border: 1px solid #6b5a41;
    border-radius: 8px;
}

.prog-title {
    color: #ffd77a;
    margin-bottom: 10px;
    text-align: center;
}

.level-bar-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.level-bar {
    flex: 1;
    height: 20px;
    background: #3b3124;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.level-fill {
    height: 100%;
    background: linear-gradient(to right, #ffd05e, #ff8c00);
    transition: width 0.3s ease;
}

.tick {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.level-next-large {
    width: 90px;
    height: 90px;
    background: #ffd05e;
    color: #2f271d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 208, 94, 0.5);
    cursor: pointer; /* 👈 курсор "рука" */
    transition: all 0.2s ease; /* 👈 плавная анимация */
}

.level-next-large:hover {
    background: #ffeb9b; /* чуть светлее при наведении */
    box-shadow: 0 0 15px rgba(255, 208, 94, 0.8);
    transform: scale(1.05); /* лёгкое увеличение */
}


.level-info {
    display: flex;
    justify-content: space-between;
    color: #bfa980;
    font-size: 14px;
}

.level-exp {
    text-align: left;
}

.level-reward {
    text-align: right;
    color: #9ecb6b;
}

#ct-contracts-history {
    display: block !important;
    max-width: 100%;
}
.ct-history-item {
    display: grid;
    grid-template-columns: minmax(150px, 2fr) minmax(80px, 1fr) minmax(100px, 1.2fr) minmax(100px, 1.2fr) minmax(100px, auto);
    gap: 12px;
    align-items: center;
    background: #3a3125;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 2px solid #6b5a41;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    max-width: 100%;
    overflow: hidden;
}
.ct-history-item:hover {
    background: #433828;
    border-color: #ffd05e;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transform: translateX(4px);
}
.ct-history-item.quality-rare {
    border-color: #4b69ff;
}
.ct-history-item.quality-mythical {
    border-color: #8847ff;
}
.ct-history-item.quality-legendary {
    border-color: #d32ce6;
}
.ct-history-item.quality-ancient {
    border-color: #eb4b4b;
}
.ct-history-item.quality-immortal {
    border-color: #e4ae39;
}
.history-title {
    font-weight: 600;
    font-size: 15px;
    color: #ffe26a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.history-status {
    text-align: center;
    padding: 4px 10px;
    background: #2b1f14;
    border-radius: 6px;
    font-size: 13px;
    color: #bfa980;
    border: 1px solid #6b5a41;
}
.history-reward {
    text-align: center;
    font-size: 14px;
    color: #9ecb6b;
    font-weight: 600;
}
.history-date {
    text-align: center;
    font-size: 13px;
    color: #bfa980;
}
.ct-view-history {
    padding: 8px 16px;
    background: #4b3a2a;
    border: 2px solid #6b5a41;
    border-radius: 6px;
    color: #efe1c6;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.ct-view-history:hover {
    background: #5a4833;
    border-color: #ffd05e;
    color: #ffd05e;
    box-shadow: 0 2px 8px rgba(255, 208, 94, 0.3);
}

@media (max-width: 1200px) {
    .ct-history-item {
        grid-template-columns: minmax(120px, 2fr) minmax(70px, 1fr) minmax(90px, 1fr) minmax(90px, 1fr) minmax(90px, auto);
        gap: 10px;
        padding: 10px 12px;
        font-size: 14px;
    }
    .history-title {
        font-size: 14px;
    }
}
@media (max-width: 768px) {
    .ct-history-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .history-title,
    .history-status,
    .history-reward,
    .history-date {
        text-align: left;
    }
    .ct-view-history {
        width: 100%;
    }
}
