
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;
        }
        
        html, body {
            width: 100%;
            height: 100%;
            overflow: hidden;
            touch-action: pan-y;
        }
        
        body {
            background-color: #000;
            display: flex;
            flex-direction: column;
            font-family: 'CustomFont', "PingFang SC", "Microsoft YaHei", sans-serif;
            transition: background-color 0.3s;
        }

        body.white-bg {
            background-color: #fff;
        }

        /* Top button styles */
        .top-icons {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-between;
            padding: 10px 15px;
            z-index: 1000;
        }
        
        .left-icon {
            width: 32px;
            height: 32px;
        }
        
        .right-icons {
            display: flex;
            gap: 10px;
        }
        
        .right-icon {
            width: 32px;
            height: 32px;
        }
        
        .background {
            flex: 1;
            background-color: #000;
            aspect-ratio: 16/9;
            position: relative;
            overflow: hidden;
        }
        
        .card {
            background-color: #fff;
            width: calc(100% - 0px);
            height: 80.9%;
            position: absolute;
            bottom: 0;
            left: 0;
            transition: transform 0.3s ease;
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
        }
        
        .card.moved-up {
            transform: translateY(-50px);
        }
        
        .profile-image-container {
            position: absolute;
            top: 16px;
            left: 20px;
            width: 90px;
            height: 90px;
            border-radius: 50%;
        }
        
        .profile-image {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            position: relative;
            z-index: 1;
        }
        
        .profile-frame {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 150px; /* 1.8x size */
            height: 150px;
            z-index: 2;
            pointer-events: none;
        }
        
        /* Name container styles */
        .profile-name-container {
            position: absolute;
            top: 37px;
            left: 130px;
            display: flex;
            align-items: center;
            max-width: calc(100% - 200px);
        }
        
        .profile-text {
            font-size: 16px;
            font-weight: bold;
            color: #000;
            font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
            transition: color 0.3s;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .profile-text.rainbow {
            background: linear-gradient(to right, 
                #DA9DFC,
                #C86EF9,
                #FF73B3,
                #FFA673,
                #FFE673,
                #87E8DE,
                #73C2FF,
                #4A90E2
            );
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .profile-text.gold {
            color: #C89D57;
        }
        
        .profile-text.red {
            color: #FF0000;
        }
        
        .profile-text.default {
            color: #030303;
        }
        
        /* Status button styles */
        .status-button {
            display: flex;
            align-items: center;
            background-color: white;
            border: 1px solid #e0e0e0;
            border-radius:15px;
            padding: 4px 4px;
            height: 20px;
            transition: left 0.3s;
            cursor: pointer;
            margin-left: 10px;
            flex-shrink: 0;
        }
        
        .status-icon {
            width: 16px;
            height: 16px;
            margin-right: 0px;
        }
        
        .status-text {
            font-size: 11px;
            color: #000;
            font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
        }
        
        .like-container {
            position: absolute;
            top: 45px;
            right: 25px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
        }
        
        .like-icon {
            width: 14px;
            height: 14px;
        }
        
         .like-count {
            font-size: 11px;
            color: #000; 
            font-weight: 500; 
            -webkit-text-stroke: 0.25px #000; 
            font-family: 'CustomFont', "PingFang SC", "Microsoft YaHei", sans-serif;
        }
        
        .box3 {
            position: absolute;
            top: 65px;
            left: 130px;
            z-index: 1000;
        }
        
        .box3 .i3 {
            width: auto;
            height: 13.1px;
            margin-left: 5px;
        }

        .box3 .i2 {
            width: auto;
            height: 23.6px;
            vertical-align: middle;
            margin-right: -3px;
            position: relative;
            z-index: 1001;
        }

        .box3 p {
            height: 15.5px;
            line-height: 16px;
            background: linear-gradient(to right, #454545, #303030);
            border: 0;
            color: #F8D49C;
            font-weight: 420;
            font-size: 0.87em;
            padding: 0 8px 0 5px;
            border-top-right-radius:1rem;
            border-bottom-right-radius: 1rem;
            display: inline-block;
            vertical-align: middle;
            position: relative;
            z-index: 1000;
            margin-top: -0.01px;
            letter-spacing: 0.488px;
        }
        
        .box3 p.gold {
            background: linear-gradient(to right, #EDC386, #DAA45F);
            color: #000000;
        }

        .box3 p.orange {
            background: linear-gradient(to right, #FF8A48, #FF5D0D);
            color: #ffffff;
        }
        
        .box3 .list {
            display: none;
        }
        
        .box3 section {
            display: flex;
            align-items: center;
            position: relative;
            z-index: 1000;
        }
        

/* QID-specific styles */
.qid-container p {
    height: 15.5px;
    line-height: 16px;
    background: linear-gradient(to right, #2D0D03, #442519);
    border: 0;
    color: #F9DA94;
    font-weight: 400;
    font-size: 0.7em;
    padding: 0 10px 0 8px;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    z-index: 1000;
    margin-top: -0.01px;
    margin-left: 5px; 
}

.qid-container .i2 {
    width: auto;
    height: 20px !important; 
    vertical-align: middle;
    margin-right: -1px;
    position: relative;
    z-index: 1001;
    transform: translateX(3px);
}

        .location-info {
            position: absolute;
            top: 120.1px;
            left: 20px;
            display: flex;
            align-items: center;
            font-size: 11.3px;
            color: #808080;
            width: calc(100% - 40px);
            margin-bottom: 15px;
        }
        
        .location-text {
            flex-grow: 1;
        }
        
        .location-info .location-icon {
         width: 20px;
          height: 20px;
          margin-left: 17px !important; 
        }
        
      
        .first-icon-row {
            position: absolute;
            top: 135px;
            left: 20px;
            display: flex;
            align-items: center;
            width: calc(100% - 40px);
        }
        
        .first-icon-row .left-icons {
            display: flex;
            gap: 5px; /* Reduce spacing */
            flex-grow: 1;
            align-items: center;
            transition: all 0.3s;
        }


       
          #nlIcon {
            transform: scale(1.01);
            transform-origin: center; 
            transition: transform 0.3s ease;
            }

        .first-icon-row .left-icons img {
            width: 54px;
            height: 54px;
            object-fit: contain;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .first-icon-row .left-icons img.energy-icon {
            transform: scale(0.9);
        }
        
        .first-icon-row img.right-icon {
            width: 20px;
            height: 20px;
            margin-left: 10px;
        }
        
        .level-container {
            display: flex !important;
            align-items: center !important;
            height: 17.6px !important;
            margin-left: 0 !important;
            gap: -1px;
        }
        
        .level-container img {
            height: 17.3px !important;
            width: auto !important;
            margin-right: 3.40px !important;
        }
        
        .medal-icon {
            transform: scale(1.02);
            margin-left: 5px;
            transition: all 0.3s;
        }
        
        .medal-icon.hidden {
            display: none;
        }
        
        .second-icon-row {
            position: absolute;
            top: 180px;
            left: 20px;
            display: flex;
            align-items: center;
            width: calc(100% - 40px);
        }
        
       .second-icon-row .left-icons {
    display: flex;
    gap: 4.5px;
    flex-grow: 1;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
}


        

               .no-icon {
              margin: 0 2px !important;
        }

        .second-icon-row .left-icons img {
            width: 35px;
            height: 35px;
            object-fit: contain; 
            flex-shrink: 0;
        }
        
        .second-icon-row .left-icons img.no-icon {
            width: 19.8px;
            height: 19.8px;
            flex-shrink: 0;
        }
        
        .second-icon-row img.right-icon {
            width:20px;
            height: 20px;
            margin-left: 10px;
            flex-shrink: 0;
        }
        
        .snow-text {
            position: absolute;
            top: 230px;
            left: 20px;
            display: flex;
            align-items: center;
            font-size: 13.5px;
            font-weight: 550;
            color: #000;
            width: calc(100% -0px);
        }
        
        .snow-text .text {
            flex-grow: 1;
        }
        
        .snow-text .icon {
            width: 16px;
            height:  16px;
            margin-left: 10px;
        }

        @font-face {
            font-family: 'CustomFont';
            src: url('ttf.ttf') format('truetype');
            font-display: swap;
        }
        
        .last {
            display: grid;
            align-items: center;
            justify-content: space-between;
            grid-template-columns: repeat(3, 1fr);
            gap: 2vw;
            position: fixed;
            bottom: 29.9px;
            left: 0;
            width: 100%;
            padding: 10px;
            box-sizing: border-box;
            padding-bottom: max(10px, env(safe-area-inset-bottom));
            z-index: 999;
        }

        .last button {
            width: 100%;
            border: none;
            border: 1.5px solid #E6E6E6;
            height: 35%;
            padding-bottom: 23%;
            position: relative;
            border-radius: 15px;
            background-color: #fff;
            cursor: pointer;
        }
        
        .last span {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            font-weight: 500;
            color: #000;
            font-size: 1rem;
        }

        .last button:last-child {
            background-color: #0099ff;
            border-color: #0099ff;
        }

        .last button:last-child span {
            color: #fff !important;
        }

        /* Modified popup styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(12px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y;
            transition: background-color 0.3s ease;
        }
        
        .modal-content {
            background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
            margin: 20px auto;
            padding: 30px;
            width: 92%;
            max-width: 520px;
            max-height: 90vh;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
            position: relative;
            animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-y: auto;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        /* Custom scrollbar */
        .modal-content::-webkit-scrollbar {
            width: 8px;
        }
        .modal-content::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.05);
            border-radius: 4px;
        }
        .modal-content::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #0099ff, #0077cc);
            border-radius: 4px;
            transition: background 0.3s ease;
        }
        .modal-content::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #0077cc, #0055aa);
        }
        
        /* Category tab styles */
        .category-tabs {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            overflow-x: auto;
            white-space: nowrap;
            -webkit-overflow-scrolling: touch;
        }
        
        .tab-btn {
            flex: 1;
            min-width: 60px;
            padding: 8px 12px;
            margin: 0 5px;
            border: none;
            background: rgba(0, 153, 255, 0.1);
            color: #0099ff;
            border-radius: 20px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }
        
        .tab-btn:first-child {
            margin-left: 0;
        }
        
        .tab-btn:last-child {
            margin-right: 0;
        }
        
        .tab-btn:hover {
            background: rgba(0, 153, 255, 0.2);
            transform: translateY(-1px);
        }
        
        .tab-btn.active {
            background: linear-gradient(135deg, #0099ff, #0077cc);
            color: white;
            box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
        }
        
        @keyframes slideIn {
            from {
                transform: translateY(30px) scale(0.95);
                opacity: 0;
            }
            to {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
        }
        
        .close {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 28px;
            color: #aaa;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }
        
        .close:hover {
            color: #333;
            background-color: rgba(0, 0, 0, 0.05);
            transform: rotate(90deg);
        }
        
        #editForm {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        
        .form-row {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        
        .form-row .form-group {
            flex: 1;
        }
        
        #editForm label {
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }
        
        #editForm input[type="text"],
        #editForm input[type="file"],
        #editForm select,
        #editForm input[type="number"] {
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            width: 100%;
        }
        
        #editForm input[type="submit"] {
            background: #0099ff;
            color: white;
            padding: 12px;
            border: none;
            border-radius: 6px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 10px;
            transition: background 0.2s;
        }
        
        #editForm input[type="submit"]:hover {
            background: #0077cc;
        }
        
        .icon-selection {
            margin-top: 10px;
        }
        
        .icon-options {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            gap: 15px;
            padding: 10px 0;
        }
        
        .icon-option {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            padding: 12px 8px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            transition: all 0.3s ease;
            background: white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        
        .icon-option:hover {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            border-color: #0099ff;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 153, 255, 0.2);
        }
        
        .icon-option img {
            width: 50px;
            height: 50px;
            object-fit: contain;
            margin-bottom: 8px;
        }
        
        .icon-option label {
            font-size: 13px;
            font-weight: 500;
            color: #333;
            text-align: center;
            line-height: 1.3;
        }
        
        /* Icon count statistics styles */
        .icon-count {
            font-size: 12px;
            color: #666;
            font-weight: normal;
            background: rgba(0, 153, 255, 0.1);
            padding: 2px 6px;
            border-radius: 10px;
            margin-left: 5px;
        }
        
        /* Optimized form styles */
        .form-group {
            margin-bottom: 20px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 12px;
            border: 1px solid rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }
        
        .form-group:hover {
            background: rgba(255, 255, 255, 1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }
        
        .form-group label {
            font-size: 14px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
            display: block;
        }
        
        .form-group input[type="text"],
        .form-group input[type="number"] {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s ease;
            background: white;
        }
        
        .top-navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 44px;
            background-color: white;
            z-index: 999;
        }
        
        .form-group input[type="text"]:focus,
        .form-group input[type="number"]:focus {
            outline: none;
            border-color: #0099ff;
            box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.1);
        }
        
        /* Optimized button styles */
        button {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        button[type="submit"] {
            background: linear-gradient(135deg, #0099ff 0%, #0077cc 100%);
            color: white;
            box-shadow: 0 4px 15px rgba(0, 153, 255, 0.3);
        }
        
        button[type="submit"]:hover {
            background: linear-gradient(135deg, #0077cc 0%, #0055aa 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 153, 255, 0.4);
        }
        
        /* Optimized close button */
        .close {
            position: absolute;
            right: 20px;
            top: 20px;
            font-size: 24px;
            cursor: pointer;
            color: #666;
            transition: all 0.3s ease;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.05);
        }
        
        .close:hover {
            color: #333;
            background: rgba(0, 0, 0, 0.1);
            transform: rotate(90deg);
        }

        .space-icon-options {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
            gap: 12px;
            margin-top: 15px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 12px;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }
        
        .space-icon-option {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            padding: 12px 8px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            transition: all 0.3s ease;
            background: white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        .space-icon-option:hover {
            background: linear-gradient(135deg, #f5f7fa 0%, #e3f2fd 100%);
            border-color: #0099ff;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 153, 255, 0.2);
        }
        
        .space-icon-option img {
            width: 45px;
            height: 45px;
            object-fit: contain;
            margin-bottom: 6px;
        }
        
        .space-icon-option label {
            font-size: 12px;
            font-weight: 500;
            color: #333;
            text-align: center;
            line-height: 1.2;
        }

        .announcement-modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.7);
            backdrop-filter: blur(5px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        .announcement-content {
            background: white;
            margin: 20px auto;
            padding: 25px;
            width: 90%;
            max-width: 400px;
            max-height: 80vh;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            position: relative;
            animation: slideIn 0.4s ease-out;
            overflow-y: auto;
        }
        
        .announcement-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        
        .announcement-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
        }
        
        .announcement-body {
            font-size: 14px;
            line-height: 1.6;
            color: #555;
            margin-bottom: 15px;
        }
        
        .announcement-body p {
            margin-bottom: 10px;
            padding-left: 15px;
            position: relative;
        }
        
        .announcement-body p:before {
            content: "鈥�";
            color: #0099ff;
            position: absolute;
            left: 0;
        }
        
        .announcement-footer {
            display: flex;
            justify-content: flex-end;
            margin-top: 20px;
        }
        
        .announcement-button {
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            font-size: 14px;
            margin-left: 10px;
        }
        
        .announcement-button.primary {
            background: #0099ff;
            color: white;
        }
        
        .dont-show-again {
            display: flex;
            align-items: center;
            font-size: 13px;
            color: #666;
            margin-top: 15px;
        }
        
        .dont-show-again input {
            margin-right: 10px;
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0,0,0,0.7);
            color: white;
            padding: 10px 20px;
            border-radius: 20px;
            font-size: 14px;
            z-index: 1001;
            display: none;
            animation: toastFade 2s;
        }
        
        @keyframes toastFade {
            0% { opacity: 0; bottom: 20px; }
            20% { opacity: 1; bottom: 30px; }
            80% { opacity: 1; bottom: 30px; }
            100% { opacity: 0; bottom: 20px; }
        }

        .divider-thin {
            position: absolute;
            top: 260px;
            left: 20px;
            right: 20px;
            height: 0.7px;
            background-color: #f5f5f5;
        }

        .add-tag-button {
            position: absolute;
            top: 269px;
            left: 20px;
            display: flex;
            align-items: center;
            background-color: white;
            border: 0.6px solid #d0d0d0;
            border-radius: 6px;
            padding: 4px 8px;
            height: 22px;
        }

        .add-tag-button img {
            width: 16px;
            height: 16px;
            margin-left: -4px;
            margin-right: 0;
        }

        .add-tag-button span {
            font-size: 12px;
            color: #000;
            margin-right: 8px;
        }

        .divider-thick {
            position: absolute;
            top: 308px;
            left: 0;
            right: 0;
            height: 12.5px;
            background-color: #F3F3F7;
        }
        
        .profile-completion {
            position: absolute;
            top: 331px;
            left: 20px;
            display: flex;
            align-items: center;
            width: calc(100% - 40px);
        }
        
        .profile-completion .icon {
            width: 20px;
            height: 20px;
            margin-right: 10px;
        }
        
        .profile-completion .text {
            font-size: 13px;
            color: #000;
            margin-right: 5px;
        }
        
        .profile-completion .completion-action {
            font-size: 12px;
            color: #4073DE;
            margin-left: auto;
        }
        
        .profile-completion .more-icon {
            width: 20px;
            height: 20px;
            margin-left: 10.15px; /* Move right by 0.05px */
        }
        
        .divider-thick-bottom {
            position: absolute;
            top: 365px;
            left: 0;
            right: 0;
            height: 12.5px;
            background-color: #F3F3F7;
        }
        
        .qq-space {
            position: absolute;
            top: 389px;
            left: 20px;
            width: calc(100% - 40px);
        }
        
        .qq-space-title {
            display: flex;
            align-items: center;
            font-size: 13px;
            color: #000;
            margin-bottom: 10px;
        }
        
        .qq-space-title .icon {
            width: 20px;
            height: 20px;
            margin-right: 8px;
        }
        
        .qq-space-title .text {
            flex-grow: 1;
        }
        
        .qq-space-title .share-action {
            font-size: 12px;
            color: #4073DE;
            margin-right: 5px;
        }
        
        .qq-space-title .more-icon {
            width: 20px;
            height: 20px;
            margin-left: 10.15px;
        }
        
        .image-gallery {
            display: flex;
            flex-wrap: wrap;
            gap: 0.2rem;
            margin-top: 0.5rem;
        }
        
        .gallery-image {
            width: calc(25% - 0.2rem);
            height: 0;
            padding-bottom: calc(25% - 0.2rem);
            position: relative;
            overflow: hidden;
            background-color: #f5f5f5;
            display: none;
        }
        
        .gallery-image img {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .preview-container {
            display: flex;
            flex-wrap: wrap;
            gap: 0.2rem;
            margin-top: 10px;
        }
        
        .preview-item {
            width: calc(25% - 0.2rem);
            height: 0;
            padding-bottom: calc(25% - 0.2rem);
            position: relative;
            overflow: hidden;
            background-color: #f5f5f5;
        }
        
        .preview-item img {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .delete-image {
            position: absolute;
            top: 2px;
            right: 2px;
            background: rgba(0,0,0,0.5);
            color: white;
            border: none;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 2;
        }
        
        .signature-modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.7);
            backdrop-filter: blur(5px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 20px 0;
        }
        
        .signature-modal-content {
            background: #fff;
            margin: 20px auto;
            padding: 20px;
            width: 90%;
            max-width: 450px;
            max-height: 80vh;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            position: relative;
            animation: slideIn 0.3s ease-out;
            overflow-y: auto;
        }
        
        .signature-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 15px;
        }
        
        .signature-option {
            display: flex;
            align-items: center;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .signature-option:hover {
            background-color: #f5f5f5;
            border-color: #0099ff;
        }
        
        .signature-option.selected {
            border-color: #0099ff;
            background-color: #f0f7ff;
        }
        
        .signature-option img {
            width: 30px;
            height: 30px;
            margin-right: 10px;
        }
        
        .signature-option .signature-preview {
            flex-grow: 1;
            font-size: 14px;
            color: #333;
        }

        .energy-icon {
            cursor: pointer;
            transition: all 0.3s;
            transform: scale(0s);
        }

        .energy-icon.hidden {
            display: none;
        }
        
        .toggle-container {
            display: flex;
            align-items: center;
            margin-top: 5px;
        }
        
        .toggle-label {
            font-size: 14px;
            margin-right: 10px;
        }
        
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }
        
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 24px;
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .slider {
            background-color: #2196F3;
        }
        
        input:checked + .slider:before {
            transform: translateX(26px);
        }
        
        .qid-container {
            position: absolute;
            top: 67px;
            left: 250px; /* Move right by 0.05px */
            z-index: 1000;
            display: none;
        }
        
        .qid-container section {
            display: flex;
            align-items: center;
            position: relative;
            z-index: 1000;
        }
        
        .qid-container .i2 {
              width: auto;
             height: 20px;
             vertical-align: middle;
             margin-right: -3px;
             position: relative;
             z-index: 1001;
            transform: translateX(2px);
             }
        
        .qid-container p {
            height: 15.5px;
            line-height: 16px;
            background: linear-gradient(to right, #F8DA8E, #F8DA8E);
            border: 0;
            color: #F8DA8E;
            font-weight: 400;
            font-size: 0.7em;
            padding: 0 8px 0 7px;
            border-top-right-radius:1rem;
            border-bottom-right-radius: 1rem;
            display: inline-block;
            vertical-align: middle;
            position: relative;
            z-index: 1000;
            margin-top: -0.01px;
        }
        
        .qid-container p.gold {
            background: linear-gradient(to right, #2D0D03, #452619);
            color: #000000;
        }

        .qid-container p.orange {
            background: linear-gradient(to right, #FF8A48, #FF5D0D);
            color: #ffffff;
        }
        
       .second-icon-options {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            gap: 15px;
            margin-top: 10px;
            padding: 10px 0;
        }
        
        .second-icon-option {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            padding: 12px 8px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            transition: all 0.3s ease;
            background: white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        
        .second-icon-option:hover {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            border-color: #0099ff;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 153, 255, 0.2);
        }
        
        .second-icon-option.selected {
            border-color: #0099ff;
            background-color: #f0f7ff;
        }
        
        .second-icon-option img {
            width: 40px;
            height: 40px;
            object-fit: contain;
            margin-bottom: 5px;
        }
        
        .second-icon-option label {
            font-size: 12px;
            text-align: center;
        }
        
        .second-icon-toggle {
            margin-top: 5px;
        }
        
        .user-tip-modal {
            display: none;
            position: fixed;
            z-index: 10001;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.7);
            backdrop-filter: blur(5px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        .user-tip-content {
            background: white;
            margin: 20px auto;
            padding: 25px;
            width: 90%;
            max-width: 350px;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            position: relative;
            animation: slideIn 0.4s ease-out;
        }
        
        .user-tip-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        
        .user-tip-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
        }
        
        .user-tip-body {
            font-size: 14px;
            line-height: 1.6;
            color: #555;
            margin-bottom: 15px;
        }
        
        .user-tip-body p {
            margin-bottom: 10px;
            padding-left: 15px;
            position: relative;
        }
        
        .user-tip-body p:before {
            content: "鈥�";
            color: #0099ff;
            position: absolute;
            left: 0;
        }
        
        .user-tip-footer {
            display: flex;
            justify-content: flex-end;
            margin-top: 20px;
        }
        
        .user-tip-button {
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            font-size: 14px;
            background: #0099ff;
            color: white;
        }
        
        .medal-toggle-container {
            display: flex;
            align-items: center;
            margin-top: 10px;
        }
.qz-icon.img-small {
    width: 36px !important;  /* Further enlarge icon size */
    height: 36px !important; /* Further enlarge icon size */
    display: inline-block; /* Ensure inline block to support width/height */
    max-width: 36px !important; /* Unified maximum width limit */
    margin-right: 4px !important; /* Adjust spacing for larger icons */
    margin-left: 0 !important; /* Remove left spacing */
    box-sizing: border-box !important; /* Prevent padding/border from expanding */
}
#nlIcon.energy-icon {
    width: 50px !important;  /* Fixed reduction to 50px width, value can be changed */
    height: auto !important; /* Force proportional scaling, no distortion */
    max-width: 50px !important; /* Maximum width limit */
    box-sizing: border-box !important; /* Prevent padding/border from expanding */
}