* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif
}

:root {
    --primary: #4f46e5;
    --bg: #1e293b;
    --card-bg: #fff;
    --success: #10b981;
    --error: #ef4444;
    --primary-light: #6366f1;
    --tab-active: #4f46e5;
    --tab-bg: #fff
}

body {
    background: var(--bg);
    min-height: 100vh;
    padding: 20px 20px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative
}

.notice-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s
}

.notice-modal.show,
.status-island {
    pointer-events: auto;
    opacity: 1
}

.modal-content {
    width: 90%;
    max-width: 400px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: scale(0);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1)
}

.card,
.module-container {
    max-width: 500px;
    width: 100%
}

.notice-modal.show .modal-content {
    transform: scale(1)
}

.close-btn {
    width: 100%;
    height: 40px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s
}

.card,
.num-btn,
.status-island {
    background: var(--card-bg)
}

#cookieCount,
#emailCount,
#idCount,
.status-island {
    font-size: 18px;
    font-weight: 700;
    text-align: center
}

.close-btn:hover {
    background: var(--primary-light)
}

.modal-content p {
    font-size: 16px;
    line-height: 1.6;
    text-align: center
}

.island-wrapper {
    position: fixed;
    top: 20px;
    width: 100%;
    text-align: center;
    z-index: 9999
}

.status-island {
    display: inline-block;
    width: 180px;
    height: 50px;
    line-height: 50px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .2);
    transition: .3s cubic-bezier(.25, .46, .45, .94)
}

.card,
.data-item,
.tip {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1)
}

.status-island.expand {
    width: 260px;
    transform: scale(1.05)
}

.status-island.success {
    color: var(--success)
}

.item-text.error,
.status-island.error {
    color: var(--error)
}

.module {
    width: 100%;
    display: none;
    animation: .4s cubic-bezier(.34, 1.56, .64, 1) forwards fadeSlide
}

.module.active {
    display: block
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateY(20px)
    }

    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

.card {
    margin: 70px 0 15px;
    border-radius: 20px;
    padding: 30px
}

.control-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center
}

.num-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    color: var(--primary);
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s
}

.fetch-btn,
.num-btn:hover {
    background: var(--primary)
}

.num-btn:hover {
    color: #fff
}

.copy-btn:active,
.num-btn:active {
    transform: scale(.95)
}

#cookieCount,
#emailCount,
#idCount {
    width: 80px;
    height: 45px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    outline: 0
}

.count-bounce {
    animation: .5s bounce
}

@keyframes bounce {
    0% {
        transform: scale(1);
        opacity: .5
    }

    50% {
        transform: scale(1.2);
        opacity: 1
    }

    100% {
        transform: scale(1);
        opacity: 1
    }
}

.fetch-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
    white-space: nowrap
}

.fetch-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, .3)
}

.fetch-btn:active {
    transform: translateY(0);
    box-shadow: none
}

.fetch-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none
}

.data-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px
}

.data-item {
    width: 100%;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px) scale(.95);
    transition: .4s cubic-bezier(.34, 1.56, .64, 1)
}

.copy-btn,
.tab-btn {
    cursor: pointer;
    transition: .2s
}

.data-item.show {
    opacity: 1;
    transform: translateY(0) scale(1)
}

.item-text {
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.5
}

.cookie-item-text {
    white-space: pre-wrap !important;
    word-break: break-all !important
}

.item-text span {
    color: var(--primary);
    font-weight: 700
}

.copy-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: var(--success);
    color: #fff;
    font-size: 14px;
    margin-right: 10px
}

.copy-btn:hover {
    background: #34d399
}

.tip {
    text-align: center;
    color: #94a3b8;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 16px
}

.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--tab-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .1);
    z-index: 998
}

.tab-btn {
    flex: 1;
    height: 100%;
    border: none;
    background: 0 0;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    position: relative
}

.tab-btn.active {
    color: var(--tab-active)
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--tab-active);
    border-radius: 2px
}